Browse Source

安宁数据采集 批量新增按100分组

master
wangchao 5 years ago
parent
commit
30164211e0
  1. 10
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/AnScreenCollServiceImpl.java

10
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/AnScreenCollServiceImpl.java

@ -65,7 +65,7 @@ public class AnScreenCollServiceImpl implements AnScreenCollService {
affectRows = communityProjectProfileDao.deleteBatch(customerId);
}
}
Lists.partition(formDTO.getDataList(),NumConstant.ONE_THOUSAND).forEach(list -> {
Lists.partition(formDTO.getDataList(),NumConstant.ONE_HUNDRED).forEach(list -> {
communityProjectProfileDao.insertBatch(list,customerId);
});
@ -90,7 +90,7 @@ public class AnScreenCollServiceImpl implements AnScreenCollService {
affectRows = pmRankDao.deleteBatch(customerId);
}
}
Lists.partition(formDTO.getDataList(),NumConstant.ONE_THOUSAND).forEach(list -> {
Lists.partition(formDTO.getDataList(),NumConstant.ONE_HUNDRED).forEach(list -> {
pmRankDao.insertBatch(list,customerId);
});
}
@ -117,7 +117,7 @@ public class AnScreenCollServiceImpl implements AnScreenCollService {
}
String quarterId = DateUtils.getQuarterId(formDTO.getMonthId());
String yearId = DateUtils.getYearId(formDTO.getMonthId());
Lists.partition(formDTO.getDataList(),NumConstant.ONE_THOUSAND).forEach(list -> {
Lists.partition(formDTO.getDataList(),NumConstant.ONE_HUNDRED).forEach(list -> {
pmTotalMonthlyDao.insertBatch(list,
customerId,
formDTO.getMonthId(),
@ -148,7 +148,7 @@ public class AnScreenCollServiceImpl implements AnScreenCollService {
}
String quarterId = DateUtils.getQuarterId(formDTO.getMonthId());
String yearId = DateUtils.getYearId(formDTO.getMonthId());
Lists.partition(formDTO.getDataList(),NumConstant.ONE_THOUSAND).forEach(list -> {
Lists.partition(formDTO.getDataList(),NumConstant.ONE_HUNDRED).forEach(list -> {
orgMonthlyDao.insertBatch(list,
customerId,
formDTO.getMonthId(),
@ -179,7 +179,7 @@ public class AnScreenCollServiceImpl implements AnScreenCollService {
}
String quarterId = DateUtils.getQuarterId(formDTO.getMonthId());
String yearId = DateUtils.getYearId(formDTO.getMonthId());
Lists.partition(formDTO.getDataList(),NumConstant.ONE_THOUSAND).forEach(list -> {
Lists.partition(formDTO.getDataList(),NumConstant.ONE_HUNDRED).forEach(list -> {
governMonthlyDao.insertBatch(list,
customerId,
formDTO.getMonthId(),

Loading…
Cancel
Save