refactor(erp/AfterSales): 移除售后流程中预设抄送用户变量的相关代码

dev
Yangk 4 days ago
parent 15f00340a9
commit df273b38a0

@ -36,6 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.dromara.common.tenant.helper.TenantHelper;
import cn.hutool.core.convert.Convert;
/**
* Service
*

@ -323,16 +323,6 @@ public class ErpAfterSalesServiceImpl implements IErpAfterSalesService {
}
bo.getVariables().put("ignore", true);
// 预设抄送用户变量:查询"项目管理"角色下的用户ID
Long projectMgrRoleId = 1985260184236380162L;
List<RemoteUserVo> copyUsers = remoteUserService.selectUsersByRoleIds(
Collections.singletonList(projectMgrRoleId));
if (CollUtil.isNotEmpty(copyUsers)) {
String copyUserIds = StreamUtils.join(copyUsers, user -> String.valueOf(user.getUserId()));
bo.getVariables().put("afterSalesCopyUsers", copyUserIds);
log.info("【售后抄送】预设抄送用户变量: {}", copyUserIds);
}
RemoteStartProcess startProcess = new RemoteStartProcess();
startProcess.setBusinessId(bo.getAfterSalesId().toString());
startProcess.setFlowCode(bo.getFlowCode());

Loading…
Cancel
Save