Commit b57be7db by hzc

测试报表一没数据

parent 12966555
...@@ -276,6 +276,9 @@ public class IndScorecardService { ...@@ -276,6 +276,9 @@ public class IndScorecardService {
} }
indImproveScoreValue = String.format("%.4f",new BigDecimal(improveScore)); indImproveScoreValue = String.format("%.4f",new BigDecimal(improveScore));
result.put("improveScore",indImproveScoreValue); result.put("improveScore",indImproveScoreValue);
}else{
//没有同期值
result.put("improveScore","No");//表示不纳入单位得分计算标识
} }
}else { }else {
result.put("improveScore","No");//表示不纳入单位得分计算标识 result.put("improveScore","No");//表示不纳入单位得分计算标识
......
...@@ -7,6 +7,7 @@ import java.util.LinkedHashMap; ...@@ -7,6 +7,7 @@ import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -30,6 +31,7 @@ import com.keymobile.indicators.model.mapper.report.ReportTwoMapper; ...@@ -30,6 +31,7 @@ import com.keymobile.indicators.model.mapper.report.ReportTwoMapper;
import com.keymobile.indicators.service.hytobacco.BaseIndDataService; import com.keymobile.indicators.service.hytobacco.BaseIndDataService;
import com.keymobile.indicators.utils.CalculateUtils; import com.keymobile.indicators.utils.CalculateUtils;
@Slf4j
@Service @Service
public class IndicatorsReportService { public class IndicatorsReportService {
private Logger logger = LoggerFactory.getLogger(IndicatorsReportService.class); private Logger logger = LoggerFactory.getLogger(IndicatorsReportService.class);
...@@ -547,6 +549,7 @@ public class IndicatorsReportService { ...@@ -547,6 +549,7 @@ public class IndicatorsReportService {
@Async @Async
public String dealReportOne(String compareId,List<String> indIds, public String dealReportOne(String compareId,List<String> indIds,
List<String> compareObjs,Integer date,String code) { List<String> compareObjs,Integer date,String code) {
int count=0;
for(String indId : indIds) { for(String indId : indIds) {
Map<String,Object> paramMap = new HashMap<>(); Map<String,Object> paramMap = new HashMap<>();
paramMap.put("indId", indId); paramMap.put("indId", indId);
...@@ -602,8 +605,10 @@ public class IndicatorsReportService { ...@@ -602,8 +605,10 @@ public class IndicatorsReportService {
} }
} }
} }
count += datas.size();
this.batchSaveOrUpdate(datas);//批量新增或修改 this.batchSaveOrUpdate(datas);//批量新增或修改
} }
log.info("compareId={}:date={}报表一完成,生成{}条数据",compareId,date,count);
return "deal indicators report one success"; return "deal indicators report one success";
} }
...@@ -1029,7 +1034,8 @@ public class IndicatorsReportService { ...@@ -1029,7 +1034,8 @@ public class IndicatorsReportService {
if(StringUtils.isNotBlank(sameCalData.getScore())) { if(StringUtils.isNotBlank(sameCalData.getScore())) {
indReportData.setLastSameScore(new BigDecimal(sameCalData.getScore())); indReportData.setLastSameScore(new BigDecimal(sameCalData.getScore()));
} }
if(StringUtils.isNotBlank(sameCalData.getImproveScore())) { if(StringUtils.isNotBlank(sameCalData.getImproveScore())
&&!"No".equals(sameCalData.getImproveScore())) {
indReportData.setLastSameImprove(new BigDecimal(sameCalData.getImproveScore())); indReportData.setLastSameImprove(new BigDecimal(sameCalData.getImproveScore()));
} }
//算同比 //算同比
......
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