|
|
@ -216,7 +216,11 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
delAndInsertPartyAbility(result,customerId,monthId); |
|
|
|
delPartyAbility(customerId, monthId); |
|
|
|
List<List<PartyAbilityGridMonthlyFormDTO>> partition = ListUtils.partition(result, NumConstant.ONE_HUNDRED); |
|
|
|
partition.forEach(r -> { |
|
|
|
insertPartyAbility(r); |
|
|
|
}); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
@ -364,7 +368,11 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
delAndInsertGovernAbility(result,customerId,monthId); |
|
|
|
delGovernAbility(customerId, monthId); |
|
|
|
List<List<GovernAbilityGridMonthlyFormDTO>> resultList = ListUtils.partition(result, NumConstant.ONE_HUNDRED); |
|
|
|
resultList.forEach(r -> { |
|
|
|
insertGovernAbility(r); |
|
|
|
}); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
@ -490,30 +498,58 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 删除并插入党建能力的记录 |
|
|
|
* @Description 插入党建能力的记录 |
|
|
|
* @param result |
|
|
|
* @author zxc |
|
|
|
* @date 2020/9/19 4:06 下午 |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delAndInsertPartyAbility(List<PartyAbilityGridMonthlyFormDTO> result,String customerId,String monthId){ |
|
|
|
public void insertPartyAbility(List<PartyAbilityGridMonthlyFormDTO> result){ |
|
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
|
partyAbilityOrgMonthlyService.deleteOldPartyAbility(customerId, monthId); |
|
|
|
partyAbilityOrgMonthlyService.insertPartyAbility(result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 删除并插入治理能力的记录 |
|
|
|
* @Description 删除党建能力的记录 |
|
|
|
* @param customerId |
|
|
|
* @param monthId |
|
|
|
* @author zxc |
|
|
|
* @date 2020/9/19 4:06 下午 |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delPartyAbility(String customerId,String monthId){ |
|
|
|
Integer delNum; |
|
|
|
do { |
|
|
|
delNum = partyAbilityOrgMonthlyService.deleteOldPartyAbility(customerId, monthId); |
|
|
|
}while (delNum > NumConstant.ZERO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 插入治理能力的记录 |
|
|
|
* @param result |
|
|
|
* @author zxc |
|
|
|
* @date 2020/9/19 4:06 下午 |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delAndInsertGovernAbility(List<GovernAbilityGridMonthlyFormDTO> result,String customerId,String monthId){ |
|
|
|
public void insertGovernAbility(List<GovernAbilityGridMonthlyFormDTO> result){ |
|
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
|
governAbilityOrgMonthlyService.deleteOldGovernAbilityRecord(customerId, monthId); |
|
|
|
governAbilityOrgMonthlyService.insertGovernAbilityRecord(result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 删除治理能力的记录 |
|
|
|
* @param customerId |
|
|
|
* @param monthId |
|
|
|
* @author zxc |
|
|
|
* @date 2020/9/19 4:06 下午 |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delGovernAbility(String customerId,String monthId){ |
|
|
|
Integer delNum; |
|
|
|
do { |
|
|
|
delNum = governAbilityOrgMonthlyService.deleteOldGovernAbilityRecord(customerId, monthId); |
|
|
|
}while (delNum > NumConstant.ZERO); |
|
|
|
} |
|
|
|
} |
|
|
|