Merge remote-tracking branch 'origin/feature/REQ-3300' into feature/REQ-3300

This commit is contained in:
chenwenjian 2025-02-17 13:44:23 +08:00
commit 8257e22bfb
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ public interface VisaConstant {
* 用于发送待办的变量名
*/
String WORKFLOW_PENDING_TOPIC = "topic";
String WORKFLOW_PENDING_INITIATOR_NAME = "initiatorName";
String MSG_CENTER_APP_CODE = "nanopart-visa";
/**
* IM 群的扩展信息变洽签 ID

View File

@ -155,6 +155,7 @@ import static cn.axzo.nanopart.visa.api.constant.VisaConstant.IM_GROUP_BIZ_INFO_
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.IM_GROUP_BIZ_INFO_VISA_ID;
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.IM_GROUP_BIZ_INFO_VISA_TYPE;
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.MSG_CENTER_APP_CODE;
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.WORKFLOW_PENDING_INITIATOR_NAME;
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.WORKFLOW_PENDING_TOPIC;
import static cn.axzo.nanopart.visa.api.constant.VisaConstant.WORKFLOW_VAR_VISA_TYPE_KEY;
import static cn.axzo.nanopart.visa.server.utils.Constants.DATE_FORMAT;
@ -764,6 +765,8 @@ public class ChangeRecordServiceImpl extends ServiceImpl<ChangeRecordDao, Change
processDto.setStartFormVariables(formVariables);
processDto.setProcessDefinitionKey(req.getType().getProcessDefinitionKey());
Map<String, Object> pendingVariables = new HashMap<>();
PersonProfileDto profile = visaProfileGateway.getProfile(req.getOperatorPersonId());
pendingVariables.put(WORKFLOW_PENDING_INITIATOR_NAME, profile.getRealName());
pendingVariables.put(WORKFLOW_PENDING_TOPIC, req.getTopic());
processDto.setPendingVariables(pendingVariables);
processDto.setCooperationOrg(new CooperationOrgDTO());