| | |
| | | resultMap="HeLibraryAssortResult"> |
| | | <include refid="selectHeLibraryAssortVo"/> |
| | | <where> |
| | | del_flag != 1 |
| | | <if test="assortname != null and assortname != ''">and assortname like concat('%', #{assortname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="seqno != null ">and seqno = #{seqno}</if> |
| | | and del_flag != 1 |
| | | |
| | | </where> |
| | | order by seqno asc |
| | | </select> |
| | |
| | | <update id="deleteHeLibraryAssortById" parameterType="Long"> |
| | | update he_library_assort |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |