| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="seqno" column="seqno"/> |
| | | <result property="hetype" column="hetype"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHeLibraryAssortVo"> |
| | | select id, |
| | | assortname, |
| | | hetype, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | |
| | | <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> |
| | | order by seqno asc |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="seqno != null">seqno,</if> |
| | | <if test="hetype != null">hetype,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="assortname != null">#{assortname},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="seqno != null">#{seqno},</if> |
| | | <if test="hetype != null">#{hetype},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="hetype != null">hetype = #{hetype},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |