| | |
| | | where |
| | | 1=1 |
| | | <if test="directive.type!=null and directive.type!=''"> |
| | | and sll.type = #{directive.type} |
| | | and sd.type = #{directive.type} |
| | | </if> |
| | | <if test="directive.startTime!=null and directive.startTime!=''"> |
| | | and sl.send_time >= #{directive.startTime} |
| | | and sd.send_time >= #{directive.startTime} |
| | | </if> |
| | | <if test="directive.endTime!=null and directive.endTime!=''"> |
| | | and sl.send_time <= #{directive.endTime} |
| | | and sd.send_time <= #{directive.endTime} |
| | | </if> |
| | | <if test="directive.content!=null and directive.content!=''"> |
| | | and sd.content like concat('%', #{directive.content},'%') |
| | | </if> |
| | | <if test="directive.sendName!=null and directive.sendName!=''"> |
| | | and bu.real_name like concat('%', #{directive.sendName},'%') |
| | | </if> |
| | | <if test="directive.sendDirectiveId!=null and directive.sendDirectiveId!=''"> |
| | | and sd.send_directive_id like concat('%', #{directive.sendDirectiveId},'%') |
| | | </if> |
| | | <if test="directive.receiveDirectiveIds!=null and directive.receiveDirectiveIds!=''"> |
| | | and sd.receive_directive_ids like concat('%', #{directive.receiveDirectiveIds},'%') |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | delete from sys_directive_file where directive_id = #{id} |
| | | </delete> |
| | | |
| | | <!--自定义分页-接收到的指令--> |
| | | <select id="selectDirectiveReplyPage" resultType="org.springblade.modules.directive.vo.DirectiveVo"> |
| | | SELECT |
| | | sd.*, |
| | | bu.real_name sendName |
| | | FROM |
| | | sys_directive sd |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = sd.send_directive_id |
| | | where |
| | | 1=1 |
| | | <if test="directive.type!=null and directive.type!=''"> |
| | | and sd.type = #{directive.type} |
| | | </if> |
| | | <if test="directive.startTime!=null and directive.startTime!=''"> |
| | | and sd.send_time >= #{directive.startTime} |
| | | </if> |
| | | <if test="directive.endTime!=null and directive.endTime!=''"> |
| | | and sd.send_time <= #{directive.endTime} |
| | | </if> |
| | | <if test="directive.receiveDirectiveIds!=null and directive.receiveDirectiveIds!=''"> |
| | | and sd.receive_directive_ids like concat('%', #{directive.receiveDirectiveIds},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |