Ver código fonte

最近七天统计修复

魏熙美 5 anos atrás
pai
commit
58151bbdb9
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      src/main/resources/mapper/TaPersonMapper.xml

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

@@ -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