fix: 80457 企标制修订-部门联络人汇总:这个选人是从联络人管理中选择并且自动带出,现在是从全部人员里选择

This commit is contained in:
2024-01-29 14:18:52 +08:00
parent 7794f0f1dd
commit 20223f8316
@@ -40,6 +40,8 @@ import com.jero.modules.activiti.service.ProcessNodeLinkService;
import com.jero.modules.laws.common.constant.MessageTemplateCodeCommon;
import com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan;
import com.jero.modules.laws.enterprise.service.EnterpriseStandardPlanService;
import com.jero.modules.laws.system.entity.LawsContactManage;
import com.jero.modules.laws.system.service.ILawsContactManageService;
import com.jero.modules.sys.utils.UserUtils;
import com.jero.modules.system.entity.SysUser;
import com.jero.modules.system.service.ISysUserDepartService;
@@ -101,6 +103,8 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
@Resource
private SendMessageAPI sendMessageAPI;
@Resource
private ILawsContactManageService contactManageService;
@Override
public void startProcess(ESRevisionDataVO revisionData) {
@@ -337,8 +341,13 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
data.setReviewUser(null);
}
case CONTACT_USER_COLLECT:
String contactUserLeader = (String) runtimeService.getVariable(executionId, executionId + "-ContactUserLeader");
data.setContactUserLeader(contactUserLeader);
// 根据联络人找到部门联络人主管级领导
LambdaQueryWrapper<LawsContactManage> contactWrapper = new LambdaQueryWrapper<>();
contactWrapper.eq(LawsContactManage::getContactId, userId);
List<LawsContactManage> list = contactManageService.list(contactWrapper);
if (list != null && !list.isEmpty()) {
data.setContactUserLeader(list.get(0).getLeaderId());
}
case CONTACT_USER_LEADER_APPROVAL:
advicesWrapper.eq(EsRevisionAdvice::getExecutionId, executionId);
adviceList = adviceService.list(advicesWrapper);