소스 검색

最近七天统计修复

魏熙美 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