| | |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = sd.user_id |
| | | bu.id = sd.send_directive_id |
| | | where |
| | | 1=1 |
| | | <if test="directive.type!=null and directive.type!=''"> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询指令图片信息集合--> |
| | | <select id="getDirectiveFileList" resultType="org.springblade.modules.directive.entity.DirectiveFile"> |
| | | select * from sys_directive_file |
| | | where 1=1 |
| | | <if test="id!=null and id!=''"> |
| | | and directive_id = #{id} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--插入图片--> |
| | | <insert id="saveDirectiveFile"> |
| | | insert into |
| | | sys_directive_file |
| | | (type,directive_id,url) |
| | | value |
| | | (#{directiveFile.type},#{directiveFile.directiveId},#{directiveFile.url}) |
| | | </insert> |
| | | |
| | | <!--删除图片--> |
| | | <delete id="deleteByDirectiveId"> |
| | | delete from sys_directive_file where directive_id = #{id} |
| | | </delete> |
| | | |
| | | </mapper> |