Explorar el Código

最近七天统计修复

魏熙美 hace 5 años
padre
commit
58151bbdb9
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      src/main/resources/mapper/TaPersonMapper.xml

+ 3
- 0
src/main/resources/mapper/TaPersonMapper.xml Ver fichero

@@ -154,6 +154,9 @@ FROM
154 154
                   <if test="startDate != null or endDate != null">
155 155
                       a.rownum <![CDATA[ <= ]]> datediff(#{endDate}, #{startDate})
156 156
                   </if>
157
+                  <if test="startDate == null or endDate == null">
158
+                      a.rownum <![CDATA[ <= ]]>  7
159
+                  </if>
157 160
               </trim>
158 161
 
159 162
         ) AS temp_date