| | |
| | | sol.oper_time AS operTime, sol.cost_time AS costTime,sol.companyName AS companyName,sol.roleName AS roleName,sol.phonenumber AS phonenumber, |
| | | sol.userId AS userId,sol.nickName AS nickName |
| | | from sys_oper_log sol |
| | | where 1=1 |
| | | <if test="query.title != null and query.title != ''"> |
| | | AND sol.title like concat('%', #{query.title}, '%') |
| | | </if> |
| | | <if test="query.businessType != null"> |
| | | AND sol.business_type = #{query.businessType} |
| | | </if> |
| | | <if test="query.operName != null and query.operName != ''"> |
| | | AND sol.oper_name like concat('%', #{query.operName}, '%') |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | and sol.oper_time between #{query.startTime} and #{query.endTime} |
| | | </if> |
| | | ORDER BY sol.oper_time DESC |
| | | </select> |
| | | |