本文主要是介绍1、java曲线图统计,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、按照天数的曲线
1、曲线图的实体类相关类
1、解释:如果下面的y2list 其实没有用到,因为上面只有一个曲线
public class UserAppsComplateData implements Serializable {
private List<String> xlist;
private List<Long> y1list;
private List<Long> y2list;
public List<String> getXlist() {
return xlist;
}
public void setXlist(List<String> xlist) {
this.xlist = xlist;
}
public List<Long> getY1list() {
return y1list;
}
public void setY1list(List<Long> y1list) {
this.y1list = y1list;
}
public List<Long> getY2list() {
return y2list;
}
public void setY2list(List<Long> y2list) {
this.y2list = y2list;
}
}
2、js调用controller
/**
* 获取商务在投产品数量列表
* @return
*/
@RequestMapping("getAppPutInList")
@ResponseBody
public ResponseBean getAppPutInList(Long adminId,String startDate, String endDate){
try {
if(adminId == null) adminId = CasConfig.RemoteUserUtil.getRemoteUserId();
return ResponseBean.buildSuccess(saleService.getAppPutInList(adminId,startDate,endDate));
} catch (AppException e) {
return ResponseBean.buildFailure(e.getMessage());
}
}
3、服务层开始实现吧,朋友
@Override
public UserAppsComplateData getAppPutInList(Long adminId, String startDate, String endDate) {
UserAppsComplateData complateData = new UserAppsComplateData();
List<String> xlist = new ArrayList
这篇关于1、java曲线图统计的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!