瀏覽代碼

增加抢维修工单表上报人详情返回查询

linzhiwei 2 年之前
父節點
當前提交
320ba7dc3b

+ 3 - 0
ghrq-gis/src/main/java/com/tofly/ghrq/custom/service/impl/CustomRushRepairServiceImpl.java

@@ -651,6 +651,9 @@ public class CustomRushRepairServiceImpl implements CustomRushRepairService {
             if (r.get("rushRepairResponsible") != null) {
                 r.put("responsibleName", userMap.get(r.get("rushRepairResponsible")));
             }
+            if (r.get("creatUser") != null) {
+                r.put("creatUserName", userMap.get(r.get("creatUser")));
+            }
             if (r.get("rushRepairPersons") != null) {
                 String[] rushRepairPersons = r.get("rushRepairPersons").toString().split(",");
                 StringBuilder stringBuilder = new StringBuilder();

+ 1 - 0
ghrq-gis/src/main/resources/customMapper/CustomRushRepairMapper.xml

@@ -64,6 +64,7 @@
         <association property="responsibleName" column="RUSH_REPAIR_RESPONSIBLE"
                      select="com.tofly.common.mapper.ToflyCodeCommonMapper.getUserName"></association>
         <association property="departmentName" column="DEPARTMENT" select="getdeptName"></association>
+        <association property="creatUserName" column="CREAT_USER" select="com.tofly.common.mapper.ToflyCodeCommonMapper.getUserName"/>
         <collection property="files" ofType="java.util.List" select="getFilesName" column="ID"/>
         <collection property="voice" ofType="java.util.List" select="getVoice" column="ID"/>
         <collection property="processManages" ofType="java.util.List" select="getProcess" column="ID"/>