| | |
| | | <if test="params.obj != null and params.obj != ''"> |
| | | and t.obj = #{params.obj} |
| | | </if> |
| | | <if test="params.type != null and params.type != ''"> |
| | | and t.type = #{params.type} |
| | | </if> |
| | | <if test="params.startTime != null"> |
| | | and t.time >= #{params.startTime} |
| | | </if> |
| | | <if test="params.endTime != null"> |
| | | and t.time <= #{params.endTime} |
| | | </if> |
| | | <if test="params.objList != null"> |
| | | and t.obj in |
| | | <foreach collection="params.objList" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by t.time desc |
| | | |