Commit 85259b03 by zhangkb

修改报表3数据生成逻辑

parent b706ee55
......@@ -233,6 +233,13 @@ public class IndicatorsReportService {
resultRank = CalculateUtils.sortMapByValue(resultRank,type);//按照value从小到大排序
int limitNum = 0;
for(IndicatorsReportThree indReportData : dataList) {
//判断是否存在
IndicatorsReportThree DBIndReportData = reportThreeMapper.getByParam(
indReportData.getCompareObj(), indReportData.getCompareDate(),
indReportData.getCompareType());
if(DBIndReportData!=null) {
indReportData.setId(DBIndReportData.getId());
}
for(Map.Entry<String, Integer> map : resultRank.entrySet()) {
if(map.getValue()==1 || map.getValue()==2 || map.getValue()==3) {
if(indReportData.getCompareObj().equals(map.getKey())) {
......
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