|
@@ -9,6 +9,7 @@ import com.deepoove.poi.data.style.BorderStyle;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.sunxung.factoring.component.datatransfer.WordWriter;
|
|
|
import com.sunxung.factoring.component.exception.BusinessException;
|
|
|
+import com.sunxung.factoring.component.exception.ServiceException;
|
|
|
import com.sunxung.factoring.component.exception.ValidatorException;
|
|
|
import com.sunxung.factoring.component.util.*;
|
|
|
import com.sunxung.factoring.component.util.excel.ExcelUtil;
|
|
@@ -88,9 +89,6 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
@Autowired
|
|
|
private SalesContractService salesContractService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private SerialNumberGenerator serialNumberGenerator;
|
|
|
-
|
|
|
@Autowired
|
|
|
private IPurchContractNeedUserRelService purchContractNeedUserRelService;
|
|
|
@Autowired
|
|
@@ -163,9 +161,6 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
@Autowired
|
|
|
private SettlementGoodsInfoService settlementGoodsInfoService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private IPurchContractSignConclusionService purchContractSignConclusionService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private IAcceptancePersonInfoService acceptancePersonInfoService;
|
|
|
|
|
@@ -181,21 +176,6 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
@Autowired
|
|
|
private IAcceptanceSignConfirmationElectronicInfoService acceptanceSignConfirmationElectronicInfoService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private SteelWaiterService steelWaiterService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private ISellBillService sellBillService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private ISellBillItemService sellBillItemService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private ISellBillFileRefService sellBillFileRefService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IAcceptanceSellBillRefService acceptanceSellBillRefService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private IAcceptanceSellBillRefHisService acceptanceSellBillRefHisService;
|
|
|
|
|
@@ -208,9 +188,7 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
@Autowired
|
|
|
private FileService fileService;
|
|
|
@Autowired
|
|
|
- private ISupplierInfoService supplierInfoService;
|
|
|
- @Autowired
|
|
|
- private IProjectCoreEnterpriseService projectCoreEnterpriseService;
|
|
|
+ private AcceptanceSheetBusinessReviewService acceptanceBusinessApprovalService;
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@@ -591,36 +569,79 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
@Transactional
|
|
|
public void updateDetailHandleProcess(AcceptanceBasicInfo acceptanceBasicInfo) {
|
|
|
|
|
|
- List<Long> legalSpecialists = userService.findUserIdByRole(ConstantUtil.LEGAL_SPECIALIST);
|
|
|
- String legalSpecias = legalSpecialists.stream().map(c -> c.toString()).collect(Collectors.joining(","));
|
|
|
-
|
|
|
if (acceptanceBasicInfo == null) {
|
|
|
throw new ValidatorException(CodeUtil.FAIL, "验收单信息不能为空!");
|
|
|
}
|
|
|
+ if(acceptanceBasicInfo.getBusinessApprovalStatus()!=null && acceptanceBasicInfo.getBusinessApprovalStatus()==1 && acceptanceBasicInfo.getApproval()==0){
|
|
|
+ throw new ServiceException(CodeUtil.FAIL,"业务审核通过后必须要申请融资");
|
|
|
+ }
|
|
|
+ List<Long> legalSpecialists = userService.findUserIdByRole(ConstantUtil.LEGAL_SPECIALIST);
|
|
|
+ List<Long> projectManage = userService.findUserIdByRole(ConstantUtil.PROJECT_MANAGER);
|
|
|
+ String legalSpecias = legalSpecialists.stream().map(c -> c.toString()).collect(Collectors.joining(","));
|
|
|
+ String projectManageStr = projectManage.stream().map(c -> c.toString()).collect(Collectors.joining(","));
|
|
|
//保存历史
|
|
|
Long historyId = addHistoryAcceptanceSheet(acceptanceBasicInfo);
|
|
|
User admin = userService.getByLoginName("admin");
|
|
|
Map<String, Object> procVariables = new HashMap<>();
|
|
|
Map<String, Object> msgVariables = new HashMap<>();
|
|
|
- if (acceptanceBasicInfo.getSignConfirm().equals(1)) {
|
|
|
- procVariables.put(ConstantUtil.ACCEPTANCE_SIGN_CONFIRM_ASSIGNEE, admin.getId());
|
|
|
- procVariables.put("result", "签署确认");
|
|
|
- flowableService.completeMyTask(acceptanceBasicInfo.getTaskId(), acceptanceBasicInfo, procVariables,
|
|
|
- null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
- } else if (acceptanceBasicInfo.getSignConfirm().equals(0)) {
|
|
|
- procVariables.put(ConstantUtil.ACCEPTANCE_SHEET_APPROVAL_CANDIDATE, legalSpecias);
|
|
|
- procVariables.put("result", "法务审核");
|
|
|
+ Task task = flowableService.getByTaskQuery(acceptanceBasicInfo.getTaskId());
|
|
|
+// if (acceptanceBasicInfo.getSignConfirm().equals(1)) {
|
|
|
+// procVariables.put(ConstantUtil.ACCEPTANCE_SIGN_CONFIRM_ASSIGNEE, admin.getId());
|
|
|
+// procVariables.put("result", "签署确认");
|
|
|
+// flowableService.completeMyTask(acceptanceBasicInfo.getTaskId(), acceptanceBasicInfo, procVariables,
|
|
|
+// null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
+// } else if (acceptanceBasicInfo.getSignConfirm().equals(0)) {
|
|
|
+// procVariables.put(ConstantUtil.ACCEPTANCE_SHEET_APPROVAL_CANDIDATE, legalSpecias);
|
|
|
+// procVariables.put("result", "法务审核");
|
|
|
+// msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+// msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+// "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+// + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—法务审核阶段,"
|
|
|
+// + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+// Task task = flowableService.getByTaskQuery(acceptanceBasicInfo.getTaskId());
|
|
|
+// User u = new User();
|
|
|
+// u.setId(Long.parseLong(task.getAssignee()));
|
|
|
+// ThreadLocalUtil.setUser(u);
|
|
|
+// flowableService.completeMyTask(acceptanceBasicInfo.getTaskId(), acceptanceBasicInfo, procVariables,
|
|
|
+// null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET, legalSpecialists);
|
|
|
+// }
|
|
|
+ if (acceptanceBasicInfo.getApproval().equals(1)) {
|
|
|
+ User user = new User();
|
|
|
+ user.setId(Long.parseLong(task.getAssignee()));
|
|
|
+ ThreadLocalUtil.setUser(user);
|
|
|
+ if(acceptanceBasicInfo.getSignConfirm().equals(1)){
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_SIGN_CONFIRM_ASSIGNEE, admin.getId());
|
|
|
+ procVariables.put("result", "签署确认");
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—签署确认阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
+ }else if(acceptanceBasicInfo.getSignConfirm().equals(0)){
|
|
|
+
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_SHEET_APPROVAL_CANDIDATE, legalSpecias);
|
|
|
+ procVariables.put("result", "法务审核");
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—法务审核阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET, legalSpecialists);
|
|
|
+ }
|
|
|
+ } else if (acceptanceBasicInfo.getApproval().equals(0)) {
|
|
|
+ //如果不申请审核 则由业务经理处理 下一步内容
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_BUSINESS_APPROVAL_CANDIDATE, projectManageStr);
|
|
|
+ procVariables.put("result", "否");
|
|
|
msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
- "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
- + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—法务审核阶段,"
|
|
|
- + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
- Task task = flowableService.getByTaskQuery(acceptanceBasicInfo.getTaskId());
|
|
|
- User u = new User();
|
|
|
- u.setId(Long.parseLong(task.getAssignee()));
|
|
|
- ThreadLocalUtil.setUser(u);
|
|
|
- flowableService.completeMyTask(acceptanceBasicInfo.getTaskId(), acceptanceBasicInfo, procVariables,
|
|
|
- null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET, legalSpecialists);
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—业务经理审核阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ User user = new User();
|
|
|
+ user.setId(Long.parseLong(task.getAssignee()));
|
|
|
+ ThreadLocalUtil.setUser(user);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET,projectManage);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -708,6 +729,11 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
public void legalReview(AcceptanceApproval acceptanceApproval) throws Exception {
|
|
|
//判断审核结果
|
|
|
AcceptanceBasicInfo acceptanceBasicInfo = this.baseMapper.getSpecialOneById(acceptanceApproval.getAcceptanceBasicInfoId());
|
|
|
+ //查询历史 把该次审批对应的 验收单基础历史信息表 绑定起来
|
|
|
+ AcceptanceHisInfo hisInfo = acceptanceHisInfoService.lambdaQuery()
|
|
|
+ .eq(AcceptanceHisInfo::getAcceptanceNumber, acceptanceBasicInfo.getAcceptanceNumber())
|
|
|
+ .orderByDesc(AcceptanceHisInfo::getGmtCreate).last("limit 1").one();
|
|
|
+ acceptanceApproval.setAcceptanceBasicHisId(hisInfo.getId());
|
|
|
String result;
|
|
|
switch (acceptanceApproval.getApprovalConclusion()) {
|
|
|
case ConstantConversionUtil.APPROVAL_RESULT_PASS:
|
|
@@ -797,6 +823,60 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
flowableService.completeMyTask(acceptanceApproval.getTaskId(), acceptanceBasicInfo, null, result, acceptanceApproval.getId(), msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 业务审核
|
|
|
+ * @param businessApproval
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public void businessReview(AcceptanceBusinessApproval businessApproval) {
|
|
|
+ //拾取task
|
|
|
+ flowableService.claimTask(businessApproval.getTaskId(), ThreadLocalUtil.getUserId(), ConstantUtil.PROJECT_MANAGER);
|
|
|
+ //判断审核结果
|
|
|
+ AcceptanceBasicInfo acceptanceBasicInfo = this.baseMapper.getSpecialOneById(businessApproval.getAcceptanceBasicInfoId());
|
|
|
+ //查询历史 把该次审批对应的 验收单基础历史信息表 绑定起来
|
|
|
+ AcceptanceHisInfo hisInfo = acceptanceHisInfoService.lambdaQuery()
|
|
|
+ .eq(AcceptanceHisInfo::getAcceptanceNumber, acceptanceBasicInfo.getAcceptanceNumber())
|
|
|
+ .orderByDesc(AcceptanceHisInfo::getGmtCreate).last("limit 1").one();
|
|
|
+ businessApproval.setAcceptanceBasicHisId(hisInfo.getId());
|
|
|
+
|
|
|
+ //无论业务审核 通过还是 退回 都会到 c端 录入验收单 节点, 但是会修改 业务审核状态字段
|
|
|
+ String result = "业务审核";
|
|
|
+ if(ConstantConversionUtil.APPROVAL_RESULT_PASS.equals(businessApproval.getApprovalConclusion())){
|
|
|
+ //审核通过
|
|
|
+ acceptanceBasicInfo.setBusinessApprovalStatus(1);
|
|
|
+ }else if(ConstantConversionUtil.APPROVAL_RESULT_BACK.equals(businessApproval.getApprovalConclusion())){
|
|
|
+ //审核退回
|
|
|
+ acceptanceBasicInfo.setBusinessApprovalStatus(0);
|
|
|
+ }else{
|
|
|
+ throw new ServiceException("500","审批结论参数错误");
|
|
|
+ }
|
|
|
+ //修改验收单信息
|
|
|
+ updateById(acceptanceBasicInfo);
|
|
|
+ //保存审核结果
|
|
|
+ businessApproval.setAuditorId(ThreadLocalUtil.getUserId());
|
|
|
+ acceptanceBusinessApprovalService.save(businessApproval);
|
|
|
+
|
|
|
+ //完成审核流程流转到下一流程或者完成流程
|
|
|
+ Map<String, Object> msgVariables = new HashMap<>();
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—验收单填写阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ if (result.equals(ConstantUtil.OVERRULE)) {
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已驳回,进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—退回修改”阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+
|
|
|
+ } else if (result.equals(ConstantUtil.APPROVAL) || result.equals(ConstantUtil.TERMINATE)) {
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已通过业务经理审核");
|
|
|
+ }
|
|
|
+ flowableService.completeMyTask(businessApproval.getTaskId(), acceptanceBasicInfo, null, result, businessApproval.getId(), msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public File inputData(AcceptanceBasicInfo acceptanceBasicInfo, XMlToDoc xmlDoc) {
|
|
|
//业务信息
|
|
@@ -905,10 +985,16 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
|
|
|
List<Long> legalSpecialists = userService.findUserIdByRole(ConstantUtil.LEGAL_SPECIALIST);
|
|
|
if (legalSpecialists == null || legalSpecialists.size() == 0) {
|
|
|
- throw new ValidatorException(CodeUtil.FAIL, ConstantUtil.OPERATION_SPECIALIST + "角色内无任何用户!");
|
|
|
+ throw new ValidatorException(CodeUtil.FAIL, ConstantUtil.LEGAL_SPECIALIST + "角色内无任何用户!");
|
|
|
+ }
|
|
|
+ List<Long> projectManage = userService.findUserIdByRole(ConstantUtil.PROJECT_MANAGER);
|
|
|
+ if(projectManage==null || projectManage.size()==0){
|
|
|
+ throw new ValidatorException(CodeUtil.FAIL, ConstantUtil.PROJECT_MANAGER + "角色内无任何用户!");
|
|
|
}
|
|
|
|
|
|
String legalSpecias = legalSpecialists.stream().map(c -> c.toString()).collect(Collectors.joining(","));
|
|
|
+ String projectManageStr = projectManage.stream().map(c -> c.toString()).collect(Collectors.joining(","));
|
|
|
+
|
|
|
User admin = userService.getByLoginName("admin");
|
|
|
//3.开启流程实例
|
|
|
Map<String, Object> procVariables = new HashMap<>();
|
|
@@ -937,31 +1023,43 @@ public class AcceptanceBasicInfoServiceImpl extends ServiceImpl<AcceptanceBasicI
|
|
|
String processInstId = processInst.getId();
|
|
|
Map<String, Object> msgVariables = new HashMap<>();
|
|
|
Task task = flowableService.findRuntimeTaskByProcessInstId(processInstId).get(0);
|
|
|
- if (acceptanceBasicInfo.getSignConfirm().equals(1)) {
|
|
|
- procVariables.put(ConstantUtil.ACCEPTANCE_SIGN_CONFIRM_ASSIGNEE, admin.getId());
|
|
|
- procVariables.put("result", "签署确认");
|
|
|
- msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
- msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
- "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
- + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—签署确认阶段,"
|
|
|
- + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ if (acceptanceBasicInfo.getApproval().equals(1)) {
|
|
|
User user = new User();
|
|
|
user.setId(Long.parseLong(task.getAssignee()));
|
|
|
ThreadLocalUtil.setUser(user);
|
|
|
- flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
-
|
|
|
- } else if (acceptanceBasicInfo.getSignConfirm().equals(0)) {
|
|
|
- procVariables.put(ConstantUtil.ACCEPTANCE_SHEET_APPROVAL_CANDIDATE, legalSpecias);
|
|
|
- procVariables.put("result", "法务审核");
|
|
|
+ if(acceptanceBasicInfo.getSignConfirm().equals(1)){
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_SIGN_CONFIRM_ASSIGNEE, admin.getId());
|
|
|
+ procVariables.put("result", "签署确认");
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—签署确认阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET);
|
|
|
+ }else if(acceptanceBasicInfo.getSignConfirm().equals(0)){
|
|
|
+
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_SHEET_APPROVAL_CANDIDATE, legalSpecias);
|
|
|
+ procVariables.put("result", "法务审核");
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
+ msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—法务审核阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET, legalSpecialists);
|
|
|
+ }
|
|
|
+ } else if (acceptanceBasicInfo.getApproval().equals(0)) {
|
|
|
+ //如果不申请审核 则由业务经理处理 下一步内容
|
|
|
+ procVariables.put(ConstantUtil.ACCEPTANCE_BUSINESS_APPROVAL_CANDIDATE, projectManageStr);
|
|
|
+ procVariables.put("result", "否");
|
|
|
msgVariables.put(ConstantUtil.FLOWABLE_MSG_TITLE, "验收单编号:" + acceptanceBasicInfo.getAcceptanceNumber());
|
|
|
msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
- "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
- + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—法务审核阶段,"
|
|
|
- + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
+ "验收单编号为“" + acceptanceBasicInfo.getAcceptanceNumber() + "”的验收单已进入“"
|
|
|
+ + ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.ACCEPTANCE_SHEET) + "—业务经理审核阶段,"
|
|
|
+ + ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
User user = new User();
|
|
|
user.setId(Long.parseLong(task.getAssignee()));
|
|
|
ThreadLocalUtil.setUser(user);
|
|
|
- flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET, legalSpecialists);
|
|
|
+ flowableService.completeMyTask(task.getId(), acceptanceBasicInfo, procVariables, null, historyId, msgVariables, ConstantUtil.ACCEPTANCE_SHEET,projectManage);
|
|
|
}
|
|
|
|
|
|
}
|