Browse Source

修改更新中心点的条件 不为空时才修改

master
jianjun 4 years ago
parent
commit
e3682cb613
  1. 19
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/EIDimServiceImpl.java

19
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/EIDimServiceImpl.java

@ -15,6 +15,7 @@ import com.epmet.service.evaluationindex.screen.ScreenCustomerGridService;
import com.epmet.service.org.CustomerAgencyService;
import com.epmet.service.org.CustomerDepartmentService;
import com.epmet.service.org.CustomerGridService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -143,14 +144,16 @@ public class EIDimServiceImpl implements EIDimService {
//客户id 和组织id 都相等 且 名字 包含关系时才修改
if (grid.getCustomerId().equals(param.getCustomerId())) {
AtomicInteger integer = new AtomicInteger(0);
param.getCenterDataList().forEach(o -> {
String title = o.getTitle().replace("委会","");
if (grid.getGridName().contains(title)) {
Integer effectRow = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(), title, o.getCenter());
integer.addAndGet(effectRow);
}
result.put(grid.getGridId(), integer.intValue());
});
if ("[]".equals(grid.getCenterMark()) || StringUtils.isBlank(grid.getCenterMark())){
param.getCenterDataList().forEach(o -> {
String title = o.getTitle().replace("委会","");
if (grid.getGridName().contains(title)) {
Integer effectRow = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(), title, o.getCenter());
integer.addAndGet(effectRow);
}
result.put(grid.getGridId(), integer.intValue());
});
}
}
});
return result;

Loading…
Cancel
Save