| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
- <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" id="SealManageResult">
- <id property="id" column="id" />
- <result property="identifyId" column="identify_id" />
- <result property="sealName" column="seal_name" />
- <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="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" resultMap="SealManageResult">
- SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
- FROM ms_seal_manage
- <where>
- <if test="identifyId != null">
- AND identify_id = #{identifyId}
- </if>
- <if test="sealStatus != null">
- AND seal_status = #{sealStatus}
- </if>
- <if test="sealId != null and sealId != ''">
- AND seal_id = #{sealId}
- </if>
- </where>
- </select>
-
-
- <insert id="insertSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" useGeneratedKeys="true" keyProperty="id">
- insert into ms_seal_manage(
- <if test="identifyId != null">identify_id,</if>
- <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="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="isUse != null">#{isUse}</if>
- )
- </insert>
-
- <update id="updateSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage">
- update ms_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="isUse != null ">is_use = #{isUse}</if>
- </set>
- <where>
- <if test="id != null">
- AND id = #{id}
- </if>
-
- </where>
- </update>
- </mapper>
|