修改bug
This commit is contained in:
@ -175,6 +175,17 @@ public class OutConstructionValueRangeServiceImpl extends ServiceImpl<OutConstru
|
||||
OutConstructionValueRange byId = this.getById(Convert.toLong(processEvent.getBusinessId()));
|
||||
byId.setAuditStatus(processEvent.getStatus());
|
||||
if (processEvent.getSubmit()) {
|
||||
// 设置确认数量默认值
|
||||
List<OutConstructionValue> valueList = constructionValueService.lambdaQuery()
|
||||
.eq(OutConstructionValue::getRangeId, byId.getId())
|
||||
.list();
|
||||
List<OutConstructionValue> list = valueList.stream()
|
||||
.filter(value -> value.getConfirmNum() == null || value.getConfirmNum() == 0)
|
||||
.peek(value -> value.setConfirmNum(value.getArtificialNum() != null ? value.getArtificialNum() : value.getUavNum()))
|
||||
.toList();
|
||||
if (CollUtil.isNotEmpty(list)) {
|
||||
constructionValueService.updateBatchById(list);
|
||||
}
|
||||
byId.setAuditStatus(BusinessStatusEnum.WAITING.getStatus());
|
||||
}
|
||||
// 如果为完成状态,则锁定对应进度计划详情
|
||||
|
||||
@ -965,7 +965,7 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl<PgsProgressPla
|
||||
value.setArtificialNum(finishedNumber.subtract(aiFill).intValue());
|
||||
value.setUavNum(aiFill.intValue());
|
||||
value.setPlanNum(planDetail.getPlanNumber().intValue());
|
||||
value.setReportDate(now.minusDays(1));
|
||||
value.setReportDate(planDetail.getDate());
|
||||
value.setPlanDate(planDetail.getDate());
|
||||
// 计算产值
|
||||
BigDecimal constructionPrice = category.getConstructionPrice();
|
||||
@ -1042,7 +1042,7 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl<PgsProgressPla
|
||||
value.setArtificialNum(finishedNumber.subtract(aiFill).intValue());
|
||||
value.setUavNum(aiFill.intValue());
|
||||
value.setPlanNum(planDetail.getPlanNumber().intValue());
|
||||
value.setReportDate(now.minusDays(1));
|
||||
value.setReportDate(planDetail.getDate());
|
||||
value.setPlanDate(planDetail.getDate());
|
||||
// 计算产值
|
||||
BigDecimal constructionPrice = category.getConstructionPrice();
|
||||
|
||||
Reference in New Issue
Block a user