发起申请工单里面没有工程名称

This commit is contained in:
hongchao 2025-08-14 15:39:38 +08:00
parent 57d962f817
commit db1af62b49
3 changed files with 8 additions and 0 deletions

View File

@ -207,4 +207,6 @@ public interface LeaseTaskMapper {
BmProject selectById(LeaseApplyInfo leaseApplyInfo); BmProject selectById(LeaseApplyInfo leaseApplyInfo);
String getAncestors(Long userId); String getAncestors(Long userId);
String getProjectNameById(Long projectId);
} }

View File

@ -279,6 +279,9 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
} }
private void createWorkOrderAndPeople(SysUser sysUser, LeaseApplyInfo leaseApplyInfo, TmTask tmTask, int newId) { private void createWorkOrderAndPeople(SysUser sysUser, LeaseApplyInfo leaseApplyInfo, TmTask tmTask, int newId) {
//获取工程名称
String projectName = mapper.getProjectNameById(leaseApplyInfo.getProjectId());
leaseApplyInfo.setProjectName(projectName);
String id = UUID.randomUUID().toString().replace("-", ""); String id = UUID.randomUUID().toString().replace("-", "");
String webUrlBase = "/mea-h5/#/pages/picking/review/details"; String webUrlBase = "/mea-h5/#/pages/picking/review/details";
String queryParams = UriComponentsBuilder.newInstance() String queryParams = UriComponentsBuilder.newInstance()

View File

@ -1060,4 +1060,7 @@
<select id="getAncestors" resultType="java.lang.String"> <select id="getAncestors" resultType="java.lang.String">
select ancestors from sys_dept where dept_id = #{deptId} select ancestors from sys_dept where dept_id = #{deptId}
</select> </select>
<select id="getProjectNameById" resultType="java.lang.String">
select pro_name as projectName from bm_project where pro_id = #{projectId}
</select>
</mapper> </mapper>