文件名从 assess-system/src/main/resources/mapper/system/SysAttachMapper.xml 修改 |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.gkhy.assess.system.mapper.SysAttachMapper"> |
| | | |
| | | <delete id="deleteAttachsByUserId"> |
| | | delete from sys_attach |
| | | <where> |
| | |
| | | </where> |
| | | </delete> |
| | | |
| | | <delete id="deleteAttachsByIds"> |
| | | delete from sys_attach where id in |
| | | <foreach collection="ids" item="id" separator="," open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getAttachsByUserId" resultType="com.gkhy.assess.system.domain.SysAttach"> |
| | | select * from sys_attach |
| | | <where> |
| | | and user_id=#{userId} |
| | | <if test="type!=null and type!=''"> |
| | | and type=#{type} |
| | | </if> |
| | | </where> |
| | | select * from sys_attach where user_id=#{userId} |
| | | <if test="type!=null and type!=''"> |
| | | and type=#{type} |
| | | </if> |
| | | </select> |
| | | </mapper> |