修复公章管理

This commit is contained in:
hejinbo
2023-11-16 19:23:01 +08:00
parent e18e47f31f
commit c644fb3142
11 changed files with 198 additions and 109 deletions
@@ -10,10 +10,11 @@
<result property="sealId" column="seal_id" />
<result property="annexId" column="annex_id" />
<result property="sealStatus" column="seal_status" />
<result property="isUse" column="is_use" />
</resultMap>
<select id="selectSealList" parameterType="SealManage" resultMap="SealManageResult">
SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status
SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
FROM seal_manage
<where>
<if test="identifyId != null">
@@ -32,24 +33,27 @@
<if test="sealName != null and sealName != ''">seal_name,</if>
<if test="sealId != null and sealId != ''">seal_id,</if>
<if test="annexId != null">annex_id,</if>
<if test="sealStatus != null">seal_status</if>
<if test="sealStatus != null">seal_status,</if>
<if test="isUse != null">is_use</if>
)values(
<if test="identifyId != null">#{identifyId},</if>
<if test="sealName != null and sealName != ''">#{sealName},</if>
<if test="sealId != null and sealId != ''">#{sealId},</if>
<if test="annexId != null">#{annexId},</if>
<if test="sealStatus != null">#{sealStatus}</if>
<if test="sealStatus != null">#{sealStatus},</if>
<if test="isUse != null">#{isUse}</if>
)
</insert>
<update id="updateSealManage" parameterType="SealManage">
update dept_identify
update seal_manage
<set>
<if test="identifyId != null">identify_id = #{identifyId},</if>
<if test="sealName != null">seal_name = #{sealName},</if>
<if test="sealId != null ">seal_id = #{sealId},</if>
<if test="annexId != null ">annex_id = #{annexId},</if>
<if test="sealStatus != null ">seal_status = #{sealStatus}</if>
<if test="sealStatus != null ">seal_status = #{sealStatus},</if>
<if test="isUse != null ">is_use = #{isUse}</if>
</set>
<where>
<if test="id != null">