浏览代码

【BUG】调整安全计划显示不全

ZhaoMn 3 年之前
父节点
当前提交
0b77f1ed6a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      railway-business/src/main/resources/mapper/safetool/SecScheduledMapper.xml

+ 3 - 2
railway-business/src/main/resources/mapper/safetool/SecScheduledMapper.xml

@@ -119,8 +119,8 @@
   </resultMap>
   </resultMap>
 
 
   <select id="getList" resultMap="BaseResultMap2">
   <select id="getList" resultMap="BaseResultMap2">
-    select s.id,s.dept_id,s.lab_id,s.scheduled_time ,d1.dept_name deptName,d2.dept_name
-    labName,concat(count(1),'件') c
+    select s.id,s.dept_id,s.lab_id,s.scheduled_time ,d1.dept_name deptName,d2.dept_name labName
+    ,concat(count(1),'件') c
     from
     from
     sec_scheduled s
     sec_scheduled s
     left join sec_scheduled_tool r
     left join sec_scheduled_tool r
@@ -134,6 +134,7 @@
     <if test="labId!=null and labId!=''">
     <if test="labId!=null and labId!=''">
       and s.lab_id=#{labId}
       and s.lab_id=#{labId}
     </if>
     </if>
+    group by s.id
     <if test="orderby!=null and orderby!=''">
     <if test="orderby!=null and orderby!=''">
       order by scheduled_time ${orderby}
       order by scheduled_time ${orderby}
     </if>
     </if>