|
|
|
|
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcHjAddress" id="SzxcHjAddressResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="jmId" column="jm_id" />
|
|
|
|
|
<result property="name" column="name" />
|
|
|
|
|
<result property="idCard" column="id_card" />
|
|
|
|
|
<result property="acountNo" column="acount_no" />
|
|
|
|
|
@ -20,12 +21,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcHjAddressList" parameterType="SzxcHjAddress" resultMap="SzxcHjAddressResult">
|
|
|
|
|
<include refid="selectSzxcHjAddressVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="jmId != null "> and jm_id = #{jmId}</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="acountNo != null "> and acount_no = #{acountNo}</if>
|
|
|
|
|
@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<insert id="insertSzxcHjAddress" parameterType="SzxcHjAddress" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into szxc_hj_address
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="jmId != null">jm_id,</if>
|
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
|
<if test="idCard != null">id_card,</if>
|
|
|
|
|
<if test="acountNo != null">acount_no,</if>
|
|
|
|
|
@ -57,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="jmId != null">#{jmId},</if>
|
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
|
<if test="idCard != null">#{idCard},</if>
|
|
|
|
|
<if test="acountNo != null">#{acountNo},</if>
|
|
|
|
|
@ -74,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<update id="updateSzxcHjAddress" parameterType="SzxcHjAddress">
|
|
|
|
|
update szxc_hj_address
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="jmId != null">jm_id = #{jmId},</if>
|
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
|
<if test="idCard != null">id_card = #{idCard},</if>
|
|
|
|
|
<if test="acountNo != null">acount_no = #{acountNo},</if>
|
|
|
|
|
|