|
@@ -65,7 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
</where>
|
|
|
<choose>
|
|
|
- <when test="...无查询条件...">
|
|
|
+ <when test="title == null and title == '' and businessType == null
|
|
|
+ and (userId == null or userId == '')
|
|
|
+ and (startTime == null or startTime == '')
|
|
|
+ and (endTime == null or endTime == '')">
|
|
|
<!-- 默认只查最近3个月数据 + LIMIT -->
|
|
|
WHERE oper_time >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
|
|
|
ORDER BY oper_time DESC
|