Browse Source

优化代码

wangfeng 3 năm trước cách đây
mục cha
commit
05431330e8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/main/resources/mapper/TranLogMapper.xml

+ 2 - 2
src/main/resources/mapper/TranLogMapper.xml

@@ -69,7 +69,7 @@
         <if test="hospitalId != null">
             AND hospital_id = #{hospitalId}
         </if>
-        <if test="deptName != null adn deptName !=''">
+        <if test="deptName != null and deptName !=''">
             AND dept_name = #{deptName}
         </if>
         <if test="startGmtReq != null and endGmtReq != null">
@@ -77,7 +77,7 @@
             )
             AND DATE_FORMAT(#{endGmtReq}, '%Y-%m-%d %T' )
         </if>
-        AND GROUP BY dept_name order by sums desc
+        GROUP BY dept_name order by sums desc
 
     </select>
 </mapper>