| | |
| | | oper_ip operIp, |
| | | oper_content operContent |
| | | FROM sys_oper_log |
| | | WHERE operator_type = 1 |
| | | WHERE operator_type = 1 AND del_flag = 0 |
| | | <if test="param.operContent != null and param.operContent !=''"> |
| | | oper_content LIKE concat('%', #{param.operContent}, '%') |
| | | </if> |
| | | <if test="param.operTitle != null and param.operTitle !=''"> |
| | | title = #{param.operTitle} |
| | | </if> |
| | | <if test="param.operStartTime!=null and param.operStartTime!=''"> |
| | | AND Date(oper_time) >= #{param.operStartTime} |
| | | </if> |
| | | <if test="param.operEndTime!=null and param.operEndTime!=''"> |
| | | AND Date(oper_time) <= #{param.operEndTime} |
| | | </if> |
| | | ORDER BY oper_time DESC |
| | | </select> |
| | | |
| | | <update id="deleteOperlog"> |
| | | UPDATE sys_oper_log SET del_flag = 1 WHERE del_flag = 0 |
| | | </update> |
| | | |
| | | <select id="listOperTitle" resultType="java.lang.String"> |
| | | SELECT DISTINCT title FROM sys_oper_log |
| | | WHERE operator_type = 1 |