| | |
| | | <result column="original_name" property="originalName"/> |
| | | <result column="extension" property="extension"/> |
| | | <result column="attach_size" property="attachSize"/> |
| | | <result column="deptid" property="deptid"/> |
| | | <result column="type" property="type"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectAttachPage" resultMap="attachResultMap"> |
| | | select * from blade_attach where is_deleted = 0 |
| | | select * from blade_attach where is_deleted = 0 and cardid=#{cardid} and type=#{type} |
| | | <if test="attach.originalName!='' and attach.originalName!=null"> |
| | | and original_name like concat('%', #{attach.originalName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <update id="updat"> |
| | | update blade_attach set deptid=#{deptid} where cardid=#{cardid} |
| | | </update> |
| | | </mapper> |