|
@@ -423,6 +423,26 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean saveDetailMonth(BizArchiveInput bizArchiveInput) {
|
|
|
+ if (bizArchiveInput.getVerifyStatus().equals(1)) {
|
|
|
+ // 判断是循环还是单次
|
|
|
+ if (bizArchiveInput.getServiceType().equals(1)) {
|
|
|
+ List<BizArchiveInputDetail> inputDetailList = archiveInputDetailService.query()
|
|
|
+ .eq("contract_id",bizArchiveInput.getId()).list();
|
|
|
+ inputDetailList.forEach(inputDetail->{
|
|
|
+ TimeVo vo = getTime(bizArchiveInput.getId(),inputDetail.getId(),inputDetail.getTaskTypeId(),inputDetail.getCompanyId());
|
|
|
+ if(null != vo){
|
|
|
+ inputDetail.setInputStartMonth(vo.getStartTime());
|
|
|
+ inputDetail.setInputEndMonth(vo.getEndTime());
|
|
|
+ archiveInputDetailService.updateById(inputDetail);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
private boolean stopHousingFund(BizWorkOrder workOrder) {
|
|
|
List<Map<String, Object>> maps = Arrays.stream(housingFundTaskTableNames).map(v -> {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -1278,6 +1298,7 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
|
|
|
workOrderService.saveBatch(bizWorkOrders);
|
|
|
workOrderDetailService.saveBatch(bizWorkOrderDetails);
|
|
|
bizWorkOrders.forEach(this::addLoopTasks);
|
|
|
+ archiveInputs.forEach(this::saveDetailMonth);
|
|
|
if (failureNum > 0) {
|
|
|
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
|
|
throw new ServiceException(failureMsg.toString());
|