Explorar el Código

fix:历史委托工作月查询sql修改

ly hace 9 meses
padre
commit
fb3d9c71b3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/resources/mybatis/business/BizWorkOrderMapper.xml

+ 1 - 1
src/main/resources/mybatis/business/BizWorkOrderMapper.xml

@@ -156,7 +156,7 @@
             </if>
             <if test="date == null">
                 and t5.start_month &lt; DATE_FORMAT(CURRENT_DATE (), '%Y-%m-01')
-                AND MONTH ( t1.work_month ) &lt;MONTH(CURRENT_DATE ())
+                AND t1.work_month &lt; DATE_FORMAT(CURRENT_DATE(), '%Y-%m-01')
             </if>
             <if test="date != null">
                 AND t1.work_month = #{date}