Commit 2967bf24b7e307f1df0e1f4df5bcafd88a5ac865
1 parent
68a839583b
Exists in
master
and in
6 other branches
报表数据完善
Showing 1 changed file with 2 additions and 2 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
2967bf2
... | ... | @@ -320,7 +320,7 @@ |
320 | 320 | <if test="endDate != null"> |
321 | 321 | and a.use_date <![CDATA[ < ]]> #{endDate} |
322 | 322 | </if> |
323 | - <if test="currentPage != null and pageSize != null"> | |
323 | + <if test="currentPage != null and currentPage != 0 and pageSize != null and pageSize != 0"> | |
324 | 324 | limit #{currentPage},#{pageSize} |
325 | 325 | </if> |
326 | 326 | </select> |
... | ... | @@ -445,7 +445,7 @@ |
445 | 445 | <if test="endDate != null"> |
446 | 446 | and a.create_date <![CDATA[ < ]]> #{endDate} |
447 | 447 | </if> |
448 | - <if test="currentPage != null and pageSize != null"> | |
448 | + <if test="currentPage != null and currentPage != 0 and pageSize != null and pageSize != 0"> | |
449 | 449 | limit #{currentPage},#{pageSize} |
450 | 450 | </if> |
451 | 451 | </select> |