|
@@ -347,7 +347,9 @@ public class MajorProductionServiceImpl extends ServiceImpl<MajorProductionMappe
|
|
|
public Boolean confirmDelivery(TaskRecordDTO<Long> taskRecordDTO) {
|
|
|
Long id = taskRecordDTO.getTaskData();
|
|
|
if (id!=null){
|
|
|
- boolean update = this.update(new LambdaUpdateWrapper<MajorProduction>().set(MajorProduction::getDelivery, Boolean.TRUE).eq(BaseEntity::getId, id));
|
|
|
+ boolean update = this.update(new LambdaUpdateWrapper<MajorProduction>()
|
|
|
+ .set(MajorProduction::getDelivery, Boolean.TRUE)
|
|
|
+ .set(MajorProduction::getDeliveryDate,new Date()).eq(BaseEntity::getId, id));
|
|
|
return update;
|
|
|
}
|
|
|
return Boolean.FALSE;
|
|
@@ -391,7 +393,7 @@ public class MajorProductionServiceImpl extends ServiceImpl<MajorProductionMappe
|
|
|
Long productionFundId = orderReportDTO.getProductionFundId();
|
|
|
if (productionFundId==null){
|
|
|
MajorProduction production = majorProductionMapper.selectOne(new LambdaQueryWrapper<MajorProduction>().eq(BaseEntity::getId,orderReportDTO.getId()).eq(BaseEntity::getDeleted, Boolean.FALSE)
|
|
|
- .select(MajorProduction::getReportNo, MajorProduction::getMajorId, MajorProduction::getProduction, MajorProduction::getEvaluateAmount));
|
|
|
+ .select(MajorProduction::getReportNo, MajorProduction::getMajorId, MajorProduction::getProduction, MajorProduction::getEvaluateAmount,MajorProduction::getStandardAmount));
|
|
|
ProductionFund productionFund = new ProductionFund();
|
|
|
productionFund.setProductionType(production.getProduction());
|
|
|
productionFund.setBusinessType(MainBusinessEnum.MAJOR_BUSINESS.name());
|
|
@@ -400,6 +402,7 @@ public class MajorProductionServiceImpl extends ServiceImpl<MajorProductionMappe
|
|
|
productionFund.setProductionNo(production.getReportNo());
|
|
|
productionFund.setRealAmount(orderReportDTO.getThisTimeAmount());
|
|
|
productionFund.setEvaluateAmount(production.getEvaluateAmount());
|
|
|
+ productionFund.setStandardAmount(production.getStandardAmount());
|
|
|
productionFundService.save(productionFund);
|
|
|
productionFundId = productionFund.getId();
|
|
|
}else {
|