|
@@ -1245,18 +1245,14 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
tbSopInfoService.saveJobRemind(map);
|
|
tbSopInfoService.saveJobRemind(map);
|
|
|
|
|
|
if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
- && tfFlowApprove.getSetup().intValue() == 4) {
|
|
|
|
|
|
+ && tfFlowApprove.getSetup().intValue() >= 4) {
|
|
|
|
+ tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
|
|
+ } else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW
|
|
|
|
+ && tfFlowApprove.getSetup().intValue() >= 4) {
|
|
tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
- }
|
|
|
|
-
|
|
|
|
- if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW
|
|
|
|
- && tfFlowApprove.getSetup().intValue() > 4) {
|
|
|
|
FlowTaskResult flowTaskResultDeviceOut = this.getFormProperties(tfCustomFlowEntity, 4);
|
|
FlowTaskResult flowTaskResultDeviceOut = this.getFormProperties(tfCustomFlowEntity, 4);
|
|
tbDeviceDeliveryService.updateStatusBySop(flowTaskResultDeviceOut, tfCustomFlowEntity.getCrmNo(),
|
|
tbDeviceDeliveryService.updateStatusBySop(flowTaskResultDeviceOut, tfCustomFlowEntity.getCrmNo(),
|
|
DeviceDeliveryStatusEnum.RECEIVE, sysUser.getId());
|
|
DeviceDeliveryStatusEnum.RECEIVE, sysUser.getId());
|
|
- } else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW
|
|
|
|
- && tfFlowApprove.getSetup().intValue() == 4) {
|
|
|
|
- tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 1);
|
|
FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 1);
|