|
|
|
@ -1,11 +1,12 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcHjAddressMapper">
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcHjAddressMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcHjAddress" id="SzxcHjAddressResult">
|
|
|
|
<resultMap type="SzxcHjAddress" id="SzxcHjAddressResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
|
|
|
<result property="jmId" column="jm_id" />
|
|
|
|
<result property="name" column="name" />
|
|
|
|
<result property="name" column="name" />
|
|
|
|
<result property="idCard" column="id_card" />
|
|
|
|
<result property="idCard" column="id_card" />
|
|
|
|
<result property="acountNo" column="acount_no" />
|
|
|
|
<result property="acountNo" column="acount_no" />
|
|
|
|
@ -20,12 +21,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcHjAddressVo">
|
|
|
|
<sql id="selectSzxcHjAddressVo">
|
|
|
|
select id, name, id_card, acount_no, hj_address, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_hj_address
|
|
|
|
select id, jm_id, name, id_card, acount_no, hj_address, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_hj_address
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcHjAddressList" parameterType="SzxcHjAddress" resultMap="SzxcHjAddressResult">
|
|
|
|
<select id="selectSzxcHjAddressList" parameterType="SzxcHjAddress" resultMap="SzxcHjAddressResult">
|
|
|
|
<include refid="selectSzxcHjAddressVo"/>
|
|
|
|
<include refid="selectSzxcHjAddressVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="jmId != null "> and jm_id = #{jmId}</if>
|
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
|
|
|
|
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
|
|
|
|
<if test="acountNo != null "> and acount_no = #{acountNo}</if>
|
|
|
|
<if test="acountNo != null "> and acount_no = #{acountNo}</if>
|
|
|
|
@ -35,15 +37,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcHjAddressById" parameterType="Long" resultMap="SzxcHjAddressResult">
|
|
|
|
<select id="selectSzxcHjAddressById" parameterType="Long" resultMap="SzxcHjAddressResult">
|
|
|
|
<include refid="selectSzxcHjAddressVo"/>
|
|
|
|
<include refid="selectSzxcHjAddressVo"/>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertSzxcHjAddress" parameterType="SzxcHjAddress" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertSzxcHjAddress" parameterType="SzxcHjAddress" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into szxc_hj_address
|
|
|
|
insert into szxc_hj_address
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="jmId != null">jm_id,</if>
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
<if test="idCard != null">id_card,</if>
|
|
|
|
<if test="idCard != null">id_card,</if>
|
|
|
|
<if test="acountNo != null">acount_no,</if>
|
|
|
|
<if test="acountNo != null">acount_no,</if>
|
|
|
|
@ -55,8 +58,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="jmId != null">#{jmId},</if>
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
<if test="idCard != null">#{idCard},</if>
|
|
|
|
<if test="idCard != null">#{idCard},</if>
|
|
|
|
<if test="acountNo != null">#{acountNo},</if>
|
|
|
|
<if test="acountNo != null">#{acountNo},</if>
|
|
|
|
@ -68,12 +72,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateSzxcHjAddress" parameterType="SzxcHjAddress">
|
|
|
|
<update id="updateSzxcHjAddress" parameterType="SzxcHjAddress">
|
|
|
|
update szxc_hj_address
|
|
|
|
update szxc_hj_address
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="jmId != null">jm_id = #{jmId},</if>
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
<if test="idCard != null">id_card = #{idCard},</if>
|
|
|
|
<if test="idCard != null">id_card = #{idCard},</if>
|
|
|
|
<if test="acountNo != null">acount_no = #{acountNo},</if>
|
|
|
|
<if test="acountNo != null">acount_no = #{acountNo},</if>
|
|
|
|
@ -94,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSzxcHjAddressByIds" parameterType="String">
|
|
|
|
<delete id="deleteSzxcHjAddressByIds" parameterType="String">
|
|
|
|
delete from szxc_hj_address where id in
|
|
|
|
delete from szxc_hj_address where id in
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
#{id}
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
|