refactor(bpm): 移除报销单中设置付款公司名称的代码

- 删除了 BpmProcessInstanceServiceImpl 中与付款公司名称相关的代码
- 优化了报销单数据的处理逻辑,提高了代码的可读性和维护性
This commit is contained in:
aikai 2025-07-11 16:44:07 +08:00
parent 3d6737bc57
commit dc1f7b19aa

View File

@ -29,7 +29,6 @@ import cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task.BpmTaskRespVO;
import cn.iocoder.yudao.module.bpm.convert.task.BpmProcessInstanceConvert;
import cn.iocoder.yudao.module.bpm.dal.dataobject.definition.BpmProcessCcDO;
import cn.iocoder.yudao.module.bpm.dal.dataobject.definition.BpmProcessDefinitionExtDO;
import cn.iocoder.yudao.module.bpm.dal.dataobject.definition.BpmTaskAssignRuleDO;
import cn.iocoder.yudao.module.bpm.dal.dataobject.definition.BpmUserGroupDO;
import cn.iocoder.yudao.module.bpm.dal.dataobject.oa.*;
import cn.iocoder.yudao.module.bpm.dal.dataobject.task.BpmProcessInstanceExtDO;
@ -899,8 +898,6 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
case "oa_reimbursement":
BpmOAReimbursementDO reimbursement = reimbursementService.getReimbursement(businessKey);
BpmOAReimbursementRespVO bpmOAReimbursementRespVO = reimbursementService.convert(reimbursement); //报销业务数据
//设置付款公司名称
bpmOAReimbursementRespVO.setPaymentCompanyName(deptApi.getDept(bpmOAReimbursementRespVO.getPaymentCompany()).getCheckedData().getName());
// 移除自己得审批节点
taskRespVOList.removeIf(data -> data.getAssigneeUser().getId().equals(reimbursement.getUserId()));