|
|
|
@ -6,15 +6,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcHkbgRecard" id="SzxcHkbgRecardResult">
|
|
|
|
<resultMap type="SzxcHkbgRecard" id="SzxcHkbgRecardResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
|
|
|
<result property="acountNo" column="acount_no" />
|
|
|
|
<result property="jmId" column="jm_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="yJmId" column="y_jm_id" />
|
|
|
|
|
|
|
|
<result property="yName" column="y_name" />
|
|
|
|
|
|
|
|
<result property="yIdCard" column="y_id_card" />
|
|
|
|
|
|
|
|
<result property="bgReason" column="bg_reason" />
|
|
|
|
|
|
|
|
<result property="xJmId" column="x_jm_id" />
|
|
|
|
|
|
|
|
<result property="xName" column="x_name" />
|
|
|
|
|
|
|
|
<result property="xIdCard" column="x_id_card" />
|
|
|
|
<result property="relation" column="relation" />
|
|
|
|
<result property="relation" column="relation" />
|
|
|
|
<result property="bgType" column="bg_type" />
|
|
|
|
|
|
|
|
<result property="number" column="number" />
|
|
|
|
<result property="number" column="number" />
|
|
|
|
<result property="bgTime" column="bg_time" />
|
|
|
|
<result property="bgTime" column="bg_time" />
|
|
|
|
<result property="bgReason" column="bg_reason" />
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
@ -24,21 +30,26 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcHkbgRecardVo">
|
|
|
|
<sql id="selectSzxcHkbgRecardVo">
|
|
|
|
select id, jm_id, name, id_card, acount_no, relation, bg_type, number, bg_time, bg_reason, create_by, create_time, update_by, update_time, dept_id, user_id from szxc_hkbg_recard
|
|
|
|
select id, acount_no, jm_id, name, id_card, y_jm_id, y_name, y_id_card, bg_reason, x_jm_id, x_name, x_id_card, relation, number, bg_time, remark, create_by, create_time, update_by, update_time, dept_id, user_id from szxc_hkbg_recard
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcHkbgRecardList" parameterType="SzxcHkbgRecard" resultMap="SzxcHkbgRecardResult">
|
|
|
|
<select id="selectSzxcHkbgRecardList" parameterType="SzxcHkbgRecard" resultMap="SzxcHkbgRecardResult">
|
|
|
|
<include refid="selectSzxcHkbgRecardVo"/>
|
|
|
|
<include refid="selectSzxcHkbgRecardVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="acountNo != null "> and acount_no = #{acountNo}</if>
|
|
|
|
<if test="jmId != null "> and jm_id = #{jmId}</if>
|
|
|
|
<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="yJmId != null "> and y_jm_id = #{yJmId}</if>
|
|
|
|
|
|
|
|
<if test="yName != null and yName != ''"> and y_name like concat('%', #{yName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="yIdCard != null and yIdCard != ''"> and y_id_card = #{yIdCard}</if>
|
|
|
|
|
|
|
|
<if test="bgReason != null and bgReason != ''"> and bg_reason = #{bgReason}</if>
|
|
|
|
|
|
|
|
<if test="xJmId != null "> and x_jm_id = #{xJmId}</if>
|
|
|
|
|
|
|
|
<if test="xName != null and xName != ''"> and x_name like concat('%', #{xName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="xIdCard != null and xIdCard != ''"> and x_id_card = #{xIdCard}</if>
|
|
|
|
<if test="relation != null and relation != ''"> and relation = #{relation}</if>
|
|
|
|
<if test="relation != null and relation != ''"> and relation = #{relation}</if>
|
|
|
|
<if test="bgType != null and bgType != ''"> and bg_type = #{bgType}</if>
|
|
|
|
|
|
|
|
<if test="number != null and number != ''"> and number = #{number}</if>
|
|
|
|
<if test="number != null and number != ''"> and number = #{number}</if>
|
|
|
|
<if test="bgTime != null "> and bg_time = #{bgTime}</if>
|
|
|
|
<if test="bgTime != null "> and bg_time = #{bgTime}</if>
|
|
|
|
<if test="bgReason != null and bgReason != ''"> and bg_reason = #{bgReason}</if>
|
|
|
|
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
@ -52,15 +63,21 @@
|
|
|
|
<insert id="insertSzxcHkbgRecard" parameterType="SzxcHkbgRecard" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertSzxcHkbgRecard" parameterType="SzxcHkbgRecard" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into szxc_hkbg_recard
|
|
|
|
insert into szxc_hkbg_recard
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="acountNo != null">acount_no,</if>
|
|
|
|
<if test="jmId != null">jm_id,</if>
|
|
|
|
<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="yJmId != null">y_jm_id,</if>
|
|
|
|
|
|
|
|
<if test="yName != null">y_name,</if>
|
|
|
|
|
|
|
|
<if test="yIdCard != null">y_id_card,</if>
|
|
|
|
|
|
|
|
<if test="bgReason != null">bg_reason,</if>
|
|
|
|
|
|
|
|
<if test="xJmId != null">x_jm_id,</if>
|
|
|
|
|
|
|
|
<if test="xName != null">x_name,</if>
|
|
|
|
|
|
|
|
<if test="xIdCard != null">x_id_card,</if>
|
|
|
|
<if test="relation != null">relation,</if>
|
|
|
|
<if test="relation != null">relation,</if>
|
|
|
|
<if test="bgType != null">bg_type,</if>
|
|
|
|
|
|
|
|
<if test="number != null">number,</if>
|
|
|
|
<if test="number != null">number,</if>
|
|
|
|
<if test="bgTime != null">bg_time,</if>
|
|
|
|
<if test="bgTime != null">bg_time,</if>
|
|
|
|
<if test="bgReason != null">bg_reason,</if>
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
@ -69,15 +86,21 @@
|
|
|
|
<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="acountNo != null">#{acountNo},</if>
|
|
|
|
<if test="jmId != null">#{jmId},</if>
|
|
|
|
<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="yJmId != null">#{yJmId},</if>
|
|
|
|
|
|
|
|
<if test="yName != null">#{yName},</if>
|
|
|
|
|
|
|
|
<if test="yIdCard != null">#{yIdCard},</if>
|
|
|
|
|
|
|
|
<if test="bgReason != null">#{bgReason},</if>
|
|
|
|
|
|
|
|
<if test="xJmId != null">#{xJmId},</if>
|
|
|
|
|
|
|
|
<if test="xName != null">#{xName},</if>
|
|
|
|
|
|
|
|
<if test="xIdCard != null">#{xIdCard},</if>
|
|
|
|
<if test="relation != null">#{relation},</if>
|
|
|
|
<if test="relation != null">#{relation},</if>
|
|
|
|
<if test="bgType != null">#{bgType},</if>
|
|
|
|
|
|
|
|
<if test="number != null">#{number},</if>
|
|
|
|
<if test="number != null">#{number},</if>
|
|
|
|
<if test="bgTime != null">#{bgTime},</if>
|
|
|
|
<if test="bgTime != null">#{bgTime},</if>
|
|
|
|
<if test="bgReason != null">#{bgReason},</if>
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
@ -90,15 +113,21 @@
|
|
|
|
<update id="updateSzxcHkbgRecard" parameterType="SzxcHkbgRecard">
|
|
|
|
<update id="updateSzxcHkbgRecard" parameterType="SzxcHkbgRecard">
|
|
|
|
update szxc_hkbg_recard
|
|
|
|
update szxc_hkbg_recard
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="acountNo != null">acount_no = #{acountNo},</if>
|
|
|
|
<if test="jmId != null">jm_id = #{jmId},</if>
|
|
|
|
<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="yJmId != null">y_jm_id = #{yJmId},</if>
|
|
|
|
|
|
|
|
<if test="yName != null">y_name = #{yName},</if>
|
|
|
|
|
|
|
|
<if test="yIdCard != null">y_id_card = #{yIdCard},</if>
|
|
|
|
|
|
|
|
<if test="bgReason != null">bg_reason = #{bgReason},</if>
|
|
|
|
|
|
|
|
<if test="xJmId != null">x_jm_id = #{xJmId},</if>
|
|
|
|
|
|
|
|
<if test="xName != null">x_name = #{xName},</if>
|
|
|
|
|
|
|
|
<if test="xIdCard != null">x_id_card = #{xIdCard},</if>
|
|
|
|
<if test="relation != null">relation = #{relation},</if>
|
|
|
|
<if test="relation != null">relation = #{relation},</if>
|
|
|
|
<if test="bgType != null">bg_type = #{bgType},</if>
|
|
|
|
|
|
|
|
<if test="number != null">number = #{number},</if>
|
|
|
|
<if test="number != null">number = #{number},</if>
|
|
|
|
<if test="bgTime != null">bg_time = #{bgTime},</if>
|
|
|
|
<if test="bgTime != null">bg_time = #{bgTime},</if>
|
|
|
|
<if test="bgReason != null">bg_reason = #{bgReason},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|