소스 검색

feature 解决合计没有的问题

xiahan 1 년 전
부모
커밋
212c6453ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cx-safe-check/cx-save-check-common/src/main/resources/mybatis/AccidentDao.xml

+ 1 - 1
cx-safe-check/cx-save-check-common/src/main/resources/mybatis/AccidentDao.xml

@@ -46,7 +46,7 @@
         AND aa.DECLAREJOBINJURED = '1'
         and aa.DELETED = 0
         <if test="year != null">AND YEAR(aa.HAPPENDATE) = #{year}</if>
-        <if test="month != null">AND MONTH(aa.HAPPENDATE) = #{month}</if>
+        <if test = 'month != -1'>AND MONTH(aa.HAPPENDATE) = #{month}</if>
         <if test="tenantId != null">AND aa.TENANTID= #{tenantId}</if>
         GROUP BY
         ouc.ID