| | |
| | | <select id="selectHeLibraryAssortList" parameterType="com.smartor.domain.HeLibraryAssort" |
| | | resultMap="HeLibraryAssortResult"> |
| | | <include refid="selectHeLibraryAssortVo"/> |
| | | where 1=1 |
| | | and 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="uploadTime != null ">and upload_time = #{uploadTime}</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> |
| | | <if test="hetype != null ">and hetype = #{hetype}</if> |
| | | |
| | | 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="uploadTime != null ">and upload_time = #{uploadTime}</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> |
| | | <if test="hetype != null ">and hetype = #{hetype}</if> |
| | | order by seqno asc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectSeqMax" resultType="integer"> |
| | |
| | | <update id="deleteHeLibraryAssortById" parameterType="Long"> |
| | | update he_library_assort |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |