Commit a6144923 authored by zhoumaotao's avatar zhoumaotao

代码调整

parent a7f2f3a5
...@@ -2,6 +2,7 @@ package com.gavel.kwell.service.impl; ...@@ -2,6 +2,7 @@ package com.gavel.kwell.service.impl;
import com.gavel.common.base.service.impl.BaseEditServiceImpl; import com.gavel.common.base.service.impl.BaseEditServiceImpl;
import com.gavel.common.business.service.CommonService; import com.gavel.common.business.service.CommonService;
import com.gavel.common.utils.CollectionUtils;
import com.gavel.common.utils.DateUtils; import com.gavel.common.utils.DateUtils;
import com.gavel.common.utils.NumberUtils; import com.gavel.common.utils.NumberUtils;
import com.gavel.common.utils.StringUtils; import com.gavel.common.utils.StringUtils;
...@@ -134,11 +135,17 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa ...@@ -134,11 +135,17 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
for(Date date : dateList){ for(Date date : dateList){
GpfkHgVO gpfkHgVO = new GpfkHgVO(); GpfkHgVO gpfkHgVO = new GpfkHgVO();
List<Gpfk> gpfks = gpfkcxDao.queryGpfk(date,gxbzs); List<Gpfk> gpfks = gpfkcxDao.queryGpfk(date,gxbzs);
Double fksl = gpfks.stream().mapToDouble(Gpfk::getFksl).sum(); Integer fksl =0;
Double hgsl = gpfks.stream().mapToDouble(Gpfk::getHgsl).sum(); Double hgsl =0.0;
gpfkHgVO.setFkrq(date); if(CollectionUtils.isNotEmpty(gpfks)){
fksl= gpfks.size();
hgsl = gpfks.stream().mapToDouble(Gpfk::getHgsl).sum();
gpfkHgVO.setFksl(fksl); gpfkHgVO.setFksl(fksl);
gpfkHgVO.setHgsl(hgsl); gpfkHgVO.setHgsl(hgsl);
}else {
gpfkHgVO.setFksl(fksl);
gpfkHgVO.setHgsl(hgsl);
}
gpfkHgVOList.add(gpfkHgVO); gpfkHgVOList.add(gpfkHgVO);
} }
return gpfkHgVOList; return gpfkHgVOList;
......
...@@ -9,7 +9,7 @@ public class GpfkHgVO extends BaseEntity { ...@@ -9,7 +9,7 @@ public class GpfkHgVO extends BaseEntity {
private Date fkrq; private Date fkrq;
private Double fksl;//反馈数量 private Integer fksl;//反馈数量
private Double hgsl;//合格数量 private Double hgsl;//合格数量
...@@ -21,11 +21,11 @@ public class GpfkHgVO extends BaseEntity { ...@@ -21,11 +21,11 @@ public class GpfkHgVO extends BaseEntity {
this.fkrq = fkrq; this.fkrq = fkrq;
} }
public Double getFksl() { public Integer getFksl() {
return fksl; return fksl;
} }
public void setFksl(Double fksl) { public void setFksl(Integer fksl) {
this.fksl = fksl; this.fksl = fksl;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment