瀏覽代碼

最近七天统计修复

魏熙美 5 年之前
父節點
當前提交
58151bbdb9
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/main/resources/mapper/TaPersonMapper.xml

+ 3
- 0
src/main/resources/mapper/TaPersonMapper.xml 查看文件

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