|
@@ -6,9 +6,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.qmth.boot.api.exception.ApiException;
|
|
import com.qmth.sop.business.activiti.service.ActivitiService;
|
|
import com.qmth.sop.business.activiti.service.ActivitiService;
|
|
import com.qmth.sop.business.bean.dto.DataPermissionDto;
|
|
import com.qmth.sop.business.bean.dto.DataPermissionDto;
|
|
import com.qmth.sop.business.bean.dto.OrgUserNameDto;
|
|
import com.qmth.sop.business.bean.dto.OrgUserNameDto;
|
|
|
|
+import com.qmth.sop.business.bean.dto.UserArchivesDto;
|
|
import com.qmth.sop.business.bean.params.*;
|
|
import com.qmth.sop.business.bean.params.*;
|
|
import com.qmth.sop.business.bean.result.*;
|
|
import com.qmth.sop.business.bean.result.*;
|
|
import com.qmth.sop.business.entity.*;
|
|
import com.qmth.sop.business.entity.*;
|
|
@@ -18,6 +20,7 @@ import com.qmth.sop.common.contant.SystemConstant;
|
|
import com.qmth.sop.common.enums.*;
|
|
import com.qmth.sop.common.enums.*;
|
|
import com.qmth.sop.common.util.GsonUtil;
|
|
import com.qmth.sop.common.util.GsonUtil;
|
|
import com.qmth.sop.common.util.JacksonUtil;
|
|
import com.qmth.sop.common.util.JacksonUtil;
|
|
|
|
+import com.qmth.sop.common.util.ResultUtil;
|
|
import com.qmth.sop.common.util.ServletUtil;
|
|
import com.qmth.sop.common.util.ServletUtil;
|
|
import org.activiti.engine.TaskService;
|
|
import org.activiti.engine.TaskService;
|
|
import org.activiti.engine.task.IdentityLink;
|
|
import org.activiti.engine.task.IdentityLink;
|
|
@@ -105,10 +108,13 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
TBDeviceDeliveryService tbDeviceDeliveryService;
|
|
TBDeviceDeliveryService tbDeviceDeliveryService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- TBUserArchivesService tbUserArchivesService;
|
|
+ TBSopLogService tbSopLogService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- TBSopLogService tbSopLogService;
|
|
+ TBCrmDetailService tbCrmDetailService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBUserArchivesService tbUserArchivesService;
|
|
|
|
|
|
|
|
|
|
* 查询动态sop表名是否存在
|
|
* 查询动态sop表名是否存在
|
|
@@ -272,8 +278,9 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
sopPublishParam.getCrmDetailId(), sopPublishParam.getCrmNo());
|
|
sopPublishParam.getCrmDetailId(), sopPublishParam.getCrmNo());
|
|
Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
|
|
|
|
|
|
+ Objects.requireNonNull(crmProjectResult.getRegionManagerId(), "未设置大区经理");
|
|
if (CollectionUtils.isEmpty(crmProjectResult.getProjectManagerList())) {
|
|
if (CollectionUtils.isEmpty(crmProjectResult.getProjectManagerList())) {
|
|
- throw ExceptionResultEnum.ERROR.exception("未设置大区经理");
|
|
+ throw ExceptionResultEnum.ERROR.exception("未设置项目经理");
|
|
}
|
|
}
|
|
if (CollectionUtils.isEmpty(crmProjectResult.getEngineerList())) {
|
|
if (CollectionUtils.isEmpty(crmProjectResult.getEngineerList())) {
|
|
throw ExceptionResultEnum.ERROR.exception("未设置工程师");
|
|
throw ExceptionResultEnum.ERROR.exception("未设置工程师");
|
|
@@ -466,14 +473,14 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
new QueryWrapper<TBSopInfo>().lambda().eq(TBSopInfo::getSopNo, tfCustomFlowEntity.getCode()));
|
|
new QueryWrapper<TBSopInfo>().lambda().eq(TBSopInfo::getSopNo, tfCustomFlowEntity.getCode()));
|
|
Optional.ofNullable(tbSopInfo).orElseThrow(() -> ExceptionResultEnum.SOP_INFO_NO_DATA.exception());
|
|
Optional.ofNullable(tbSopInfo).orElseThrow(() -> ExceptionResultEnum.SOP_INFO_NO_DATA.exception());
|
|
|
|
|
|
- TBSopInfoDetail tbSopInfoDetail = tbSopInfoDetailService.getOne(
|
|
+
|
|
- new QueryWrapper<TBSopInfoDetail>().lambda().eq(TBSopInfoDetail::getSopInfoId, tbSopInfo.getId()));
|
|
+
|
|
- Optional.ofNullable(tbSopInfoDetail).orElseThrow(() -> ExceptionResultEnum.SOP_DETAIL_INFO_NO_DATA.exception());
|
|
+
|
|
|
|
|
|
|
|
|
|
- FlowTaskResult flowTaskResult = JSONObject.parseObject(flowApproveParam.getFormProperties(),
|
|
+
|
|
- FlowTaskResult.class);
|
|
+
|
|
- Long engineerUserId = null;
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -487,32 +494,41 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ TBCrmDetail tbCrmDetail = tbCrmDetailService.findBySopNo(tfCustomFlowEntity.getCode());
|
|
|
|
+ Objects.requireNonNull(tbCrmDetail, "未找到派单sop信息");
|
|
|
|
+ CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectInfo(tfCustomFlowEntity.getCode(),
|
|
|
|
+ tbCrmDetail.getId(), tfCustomFlowEntity.getCrmNo());
|
|
|
|
+ Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
|
|
+
|
|
if (flowApproveParam.getApprove() == FlowApprovePassEnum.PASS
|
|
if (flowApproveParam.getApprove() == FlowApprovePassEnum.PASS
|
|
|| flowApproveParam.getApprove() == FlowApprovePassEnum.START) {
|
|
|| flowApproveParam.getApprove() == FlowApprovePassEnum.START) {
|
|
- List<String> approveUserIds = this.getNextApproveUserIds(tfCustomFlow.getType(), flowTaskResult,
|
|
+
|
|
- tbSopInfoDetail, Long.parseLong(task.getProcessInstanceId()));
|
|
+
|
|
|
|
+
|
|
|
|
+ FlowTaskResult flowTaskResultOne = this.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
|
+ FlowTaskResult currFlowTaskResult = JSONObject.parseObject(flowApproveParam.getFormProperties(),
|
|
|
|
+ FlowTaskResult.class);
|
|
|
|
+ List<String> approveUserIds = this.getNextApproveUserIds(tfCustomFlow.getType(), flowTaskResultOne,
|
|
|
|
+ currFlowTaskResult, crmProjectResult);
|
|
flowApproveParam.setApproveUserIds(approveUserIds);
|
|
flowApproveParam.setApproveUserIds(approveUserIds);
|
|
}
|
|
}
|
|
|
|
|
|
- if (flowTaskResult.getSetup().intValue() == 3) {
|
|
+
|
|
- FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
+
|
|
- FlowTaskResult currFlowTaskResult = GsonUtil.fromJson(
|
|
+
|
|
- GsonUtil.toJson(flowResult.getSetupMap().get(flowTaskResult.getTaskKey())), FlowTaskResult.class);
|
|
+
|
|
- List<FlowFormWidgetResult> flowFormWidgetResultList = currFlowTaskResult.getFormProperty();
|
|
+
|
|
- Map<String, FlowFormWidgetResult> flowTaskResultMap = flowTaskResult.getFormProperty().stream().collect(
|
|
+
|
|
- Collectors.toMap(FlowFormWidgetResult::getFormId, Function.identity(), (dto1, dto2) -> dto1));
|
|
+
|
|
- for (FlowFormWidgetResult f : flowFormWidgetResultList) {
|
|
+
|
|
- if (flowTaskResultMap.containsKey(f.getFormId())) {
|
|
+
|
|
- f.setValue(flowTaskResultMap.get(f.getFormId()).getValue());
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- flowTaskResult.setFormProperty(flowFormWidgetResultList);
|
|
+
|
|
- flowApproveParam.setFormProperties(JacksonUtil.parseJson(flowTaskResult));
|
|
+
|
|
- }
|
|
+
|
|
-
|
|
+
|
|
- CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectInfo(tfCustomFlowEntity.getCode(), null,
|
|
|
|
- tfCustomFlowEntity.getCrmNo());
|
|
|
|
- Optional.ofNullable(crmProjectResult).orElseThrow(() -> ExceptionResultEnum.CRM_NO_NO_DATA.exception());
|
|
|
|
|
|
|
|
String oldFlowProcessVar = tfCustomFlowEntity.getFlowProcessVar();
|
|
String oldFlowProcessVar = tfCustomFlowEntity.getFlowProcessVar();
|
|
Map<String, Object> map = activitiService.taskApprove(flowApproveParam);
|
|
Map<String, Object> map = activitiService.taskApprove(flowApproveParam);
|
|
@@ -539,9 +555,11 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
tbSopInfo.updateInfo(sysUser.getId());
|
|
tbSopInfo.updateInfo(sysUser.getId());
|
|
tbSopInfoService.updateById(tbSopInfo);
|
|
tbSopInfoService.updateById(tbSopInfo);
|
|
|
|
|
|
-
|
|
+
|
|
- tbSopInfoService.sopSystemApprove(tfCustomFlow, tfCustomFlowEntity, tfFlowApprove, tbSopInfoDetail,
|
|
+
|
|
- flowApproveParam.getCrmNo());
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -821,21 +839,21 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
* @param tfCustomFlow
|
|
* @param tfCustomFlow
|
|
* @param tfCustomFlowEntity
|
|
* @param tfCustomFlowEntity
|
|
* @param tfFlowApprove
|
|
* @param tfFlowApprove
|
|
- * @param tbSopInfoDetail
|
|
|
|
* @param crmNo
|
|
* @param crmNo
|
|
* @throws InterruptedException
|
|
* @throws InterruptedException
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
public void sopSystemApprove(TFCustomFlow tfCustomFlow, TFCustomFlowEntity tfCustomFlowEntity,
|
|
public void sopSystemApprove(TFCustomFlow tfCustomFlow, TFCustomFlowEntity tfCustomFlowEntity,
|
|
- TFFlowApprove tfFlowApprove, TBSopInfoDetail tbSopInfoDetail, String crmNo) throws InterruptedException {
|
|
+ TFFlowApprove tfFlowApprove, String crmNo) throws InterruptedException {
|
|
|
|
|
|
if (tfFlowApprove.getStatus() != FlowStatusEnum.FINISH && tfFlowApprove.getStatus() != FlowStatusEnum.END
|
|
if (tfFlowApprove.getStatus() != FlowStatusEnum.FINISH && tfFlowApprove.getStatus() != FlowStatusEnum.END
|
|
- && tfFlowApprove.getStatus() == FlowStatusEnum.AUDITING && tfFlowApprove.getSetup().intValue() == 3
|
|
+ && tfFlowApprove.getStatus() == FlowStatusEnum.AUDITING && tfFlowApprove.getSetup().intValue() == 3) {
|
|
- && tbSopInfoDetail.getLeadId().longValue() == tbSopInfoDetail.getRegionUserId().longValue()) {
|
|
+
|
|
- Task taskNew = taskService.createTaskQuery().processInstanceId(String.valueOf(tfFlowApprove.getFlowId()))
|
|
+
|
|
- .taskAssignee(String.valueOf(tbSopInfoDetail.getLeadId())).singleResult();
|
|
+
|
|
- Optional.ofNullable(taskNew).orElseThrow(() -> ExceptionResultEnum.FLOW_TASK_NO_DATA.exception());
|
|
+
|
|
|
|
+
|
|
|
|
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
@@ -865,10 +883,11 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- activitiService.taskApprove(new FlowApproveParam(Long.parseLong(taskNew.getId()), FlowApprovePassEnum.PASS,
|
|
+
|
|
- this.getNextApproveUserIds(tfCustomFlow.getType(), nextFlowTaskResult, tbSopInfoDetail,
|
|
+
|
|
- tfCustomFlowEntity.getFlowId()), crmNo, SystemConstant.SYSTEM_AUTO_APPROVE,
|
|
+
|
|
- JacksonUtil.parseJson(nextFlowTaskResult)));
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -877,110 +896,145 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
*
|
|
*
|
|
* @param type
|
|
* @param type
|
|
* @param flowTaskResult
|
|
* @param flowTaskResult
|
|
- * @param tbSopInfoDetail
|
|
+ * @param crmProjectResult
|
|
- * @param flowId
|
|
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<String> getNextApproveUserIds(TFCustomTypeEnum type, FlowTaskResult flowTaskResult,
|
|
public List<String> getNextApproveUserIds(TFCustomTypeEnum type, FlowTaskResult flowTaskResult,
|
|
- TBSopInfoDetail tbSopInfoDetail, Long flowId) {
|
|
+ FlowTaskResult currFlowTaskResult, CrmProjectResult crmProjectResult) {
|
|
- List<String> approveUserIds = null;
|
|
+ List<String> approveUserIds = new ArrayList<>();
|
|
if (type == TFCustomTypeEnum.OFFICE_SOP_FLOW) {
|
|
if (type == TFCustomTypeEnum.OFFICE_SOP_FLOW) {
|
|
- if (flowTaskResult.getSetup().intValue() == 1) {
|
|
+ List<FlowFormWidgetResult> flowFormWidgetResultList = flowTaskResult.getFormProperty();
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
+ ServiceScopeEnum scopeEnum = null;
|
|
- } else if (flowTaskResult.getSetup().intValue() == 2) {
|
|
+ for (FlowFormWidgetResult f : flowFormWidgetResultList) {
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()),
|
|
+ if (f.getFormId().contains(ProcessLimitedEnum.SERVICE_SCOPE_RADIO.getKey())) {
|
|
- String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
+ JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
- } else if (flowTaskResult.getSetup().intValue() == 3) {
|
|
+ String value = jsonObject.getString(SystemConstant.VALUE);
|
|
- List<Task> taskList = taskService.createTaskQuery().processInstanceId(String.valueOf(flowId)).list();
|
|
+ scopeEnum = ServiceScopeEnum.valueOf(value);
|
|
- if (!CollectionUtils.isEmpty(taskList) && taskList.size() == 1) {
|
|
+ break;
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()));
|
|
|
|
- } else {
|
|
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()),
|
|
|
|
- String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (flowTaskResult.getSetup().intValue() >= 8 && tbSopInfoDetail.getAfterRegionToEnginess()) {
|
|
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
|
|
- } else {
|
|
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else if (type == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
+ if (Objects.nonNull(scopeEnum) && scopeEnum == ServiceScopeEnum.SCAN_MARK) {
|
|
- if (flowTaskResult.getSetup().intValue() == 1) {
|
|
+ for (UserArchivesDto u : crmProjectResult.getProjectManagerList()) {
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getRegionUserId()));
|
|
+ approveUserIds.add(u.getUserId().toString());
|
|
- } else if (flowTaskResult.getSetup().intValue() == 2) {
|
|
+ }
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()),
|
|
+ } else if (Objects.nonNull(scopeEnum) && scopeEnum == ServiceScopeEnum.SCAN) {
|
|
- String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
+ if (currFlowTaskResult.getSetup().intValue() < 3) {
|
|
- } else if (flowTaskResult.getSetup().intValue() == 3) {
|
|
+ for (UserArchivesDto u : crmProjectResult.getProjectManagerList()) {
|
|
- List<Task> taskList = taskService.createTaskQuery().processInstanceId(String.valueOf(flowId)).list();
|
|
+ approveUserIds.add(u.getUserId().toString());
|
|
- if (!CollectionUtils.isEmpty(taskList) && taskList.size() == 1) {
|
|
+ }
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()));
|
|
|
|
} else {
|
|
} else {
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getLeadId()),
|
|
+
|
|
- String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
+ Objects.requireNonNull(crmProjectResult.getRegionManagerId(), "未设置大区经理");
|
|
|
|
+ try {
|
|
|
|
+ tbUserArchivesService.findByUserId(crmProjectResult.getRegionManagerId());
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
|
+ if (e instanceof ApiException) {
|
|
|
|
+ ResultUtil.error((ApiException) e, ((ApiException) e).getCode(),
|
|
|
|
+ "人员档案里未找到派单号[" + crmProjectResult.getCrmNo() + "]大区经理角色");
|
|
|
|
+ } else {
|
|
|
|
+ ResultUtil.error("人员档案里未找到派单号[" + crmProjectResult.getCrmNo() + "]大区经理角色");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ approveUserIds.add(crmProjectResult.getRegionManagerId().toString());
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- approveUserIds = Arrays.asList(String.valueOf(tbSopInfoDetail.getEngineerUserId()));
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } else if (type == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
return approveUserIds;
|
|
return approveUserIds;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1294,13 +1348,14 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
tsJobRemindService.saveJobRemind(tsJobRemindList);
|
|
tsJobRemindService.saveJobRemind(tsJobRemindList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else if (tfFlowApprove.getStatus() == FlowStatusEnum.FINISH) {
|
|
|
|
- if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW) {
|
|
|
|
- tbSopInfoService.sopDeviceInOutSave(map, 10);
|
|
|
|
- } else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
|
|
- tbSopInfoService.sopDeviceInOutSave(map, 11);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|