|
@@ -97,6 +97,9 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
@Resource
|
|
@Resource
|
|
TBSopPlanDateLogService tbSopPlanDateLogService;
|
|
TBSopPlanDateLogService tbSopPlanDateLogService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TBDeviceDeliveryService tbDeviceDeliveryService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询动态sop表名是否存在
|
|
* 查询动态sop表名是否存在
|
|
*
|
|
*
|
|
@@ -324,6 +327,15 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
}
|
|
}
|
|
flowTaskResult.setFormProperty(flowFormWidgetResultList);
|
|
flowTaskResult.setFormProperty(flowFormWidgetResultList);
|
|
flowApproveParam.setFormProperties(JacksonUtil.parseJson(flowTaskResult));
|
|
flowApproveParam.setFormProperties(JacksonUtil.parseJson(flowTaskResult));
|
|
|
|
+ } else if (flowTaskResult.getSetup().intValue() == 4) {//现场环境测试,修改设备发货管理里的设备改为已签收
|
|
|
|
+ List<TBDeviceDelivery> tbDeviceDeliveryList = tbDeviceDeliveryService.list(new QueryWrapper<TBDeviceDelivery>().lambda().eq(TBDeviceDelivery::getSopNo, tbSopInfo.getSopNo()));
|
|
|
|
+ if (!CollectionUtils.isEmpty(tbDeviceDeliveryList)) {
|
|
|
|
+ for (TBDeviceDelivery t : tbDeviceDeliveryList) {
|
|
|
|
+ t.setStatus(DeviceDeliveryStatusEnum.RECEIVE);
|
|
|
|
+ t.updateInfo(sysUser.getId());
|
|
|
|
+ }
|
|
|
|
+ tbDeviceDeliveryService.updateBatchById(tbDeviceDeliveryList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectBySopNoOrCrmNo(tfCustomFlowEntity.getCode(), tfCustomFlowEntity.getCrmNo());
|
|
CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectBySopNoOrCrmNo(tfCustomFlowEntity.getCode(), tfCustomFlowEntity.getCrmNo());
|