查询修改

This commit is contained in:
jiangs 2026-03-18 18:03:08 +08:00
parent 93d1be694d
commit ec10a19cd2
2 changed files with 6 additions and 3 deletions

View File

@ -6,8 +6,8 @@
<select id="getRegItemList" resultType="com.transitPlatForm.common.core.domain.entity.reg.RegItem">
select * from reg_item
<where>
<if test="itemcode != null and itemcode != ''">and itemcode = #{itemcode}</if>
<if test="itemname != null and itemname != ''">and itemname = #{itemname}</if>
<if test="itemcode != null and itemcode != ''">and itemcode like '%'+#{itemcode}+'%' </if>
<if test="itemname != null and itemname != ''">and itemname like '%'+#{itemname}+'%' </if>
<if test="status != null and status != ''">and Status = #{status}</if>
<if test="itemclass != null and itemclass != ''">and itemclass = #{itemclass}</if>
</where>

View File

@ -89,6 +89,7 @@
<if test="PackSerial != null and PackSerial != ''">PackSerial,</if>
<if test="ExpressNum != null and ExpressNum != ''">ExpressNum,</if>
<if test="slzq != null and slzq != ''">slzq,</if>
<if test="checkPUR != null and checkPUR != ''">checkPUR,</if>
create_by,create_time,update_by,update_time
)values(
<if test="PatId != null and PatId != ''">#{PatId},</if>
@ -146,6 +147,7 @@
<if test="PackSerial != null and PackSerial != ''">#{PackSerial},</if>
<if test="ExpressNum != null and ExpressNum != ''">#{ExpressNum},</if>
<if test="slzq != null and slzq != ''">#{slzq},</if>
<if test="checkPUR != null and checkPUR != ''">#{checkPUR},</if>
#{create_by},#{create_time},#{update_by},#{update_time}
)
</insert>
@ -253,7 +255,8 @@
<if test="BackUserCode != null and BackUserCode != ''">BackUserCode = #{BackUserCode},</if>
<if test="BackUserName != null and BackUserName != ''">BackUserName = #{BackUserName},</if>
<if test="BackTime != null">BackTime = #{BackTime},</if>
<if test="slzq != null and slzq != ''">slzq,</if>
<if test="slzq != null and slzq != ''">slzq = #{slzq},</if>
<if test="checkPUR != null and checkPUR != ''">checkPUR = #{checkPUR},</if>
update_by = #{update_by},update_time = #{update_time}
</set>
where barcode = #{barcode}