Sfoglia il codice sorgente

最近七天统计修复

魏熙美 5 anni fa
parent
commit
58151bbdb9
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      src/main/resources/mapper/TaPersonMapper.xml

+ 3
- 0
src/main/resources/mapper/TaPersonMapper.xml Vedi File

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