|
|
|
@ -18,8 +18,10 @@
|
|
|
|
<result property="xName" column="x_name" />
|
|
|
|
<result property="xName" column="x_name" />
|
|
|
|
<result property="xIdCard" column="x_id_card" />
|
|
|
|
<result property="xIdCard" column="x_id_card" />
|
|
|
|
<result property="relation" column="relation" />
|
|
|
|
<result property="relation" column="relation" />
|
|
|
|
<result property="number" column="number" />
|
|
|
|
|
|
|
|
<result property="bgTime" column="bg_time" />
|
|
|
|
<result property="bgTime" column="bg_time" />
|
|
|
|
|
|
|
|
<result property="hjAddress" column="hj_address" />
|
|
|
|
|
|
|
|
<result property="jgNature" column="jg_nature" />
|
|
|
|
|
|
|
|
<result property="longLive" column="long_live" />
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<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" />
|
|
|
|
@ -27,10 +29,11 @@
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
<result property="userId" column="user_id" />
|
|
|
|
<result property="userId" column="user_id" />
|
|
|
|
|
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcHkbgRecardVo">
|
|
|
|
<sql id="selectSzxcHkbgRecardVo">
|
|
|
|
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
|
|
|
|
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, bg_time, hj_address, jg_nature, long_live, remark, create_by, create_time, update_by, update_time, dept_id, user_id, dept_name from szxc_hkbg_recard
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcHkbgRecardList" parameterType="SzxcHkbgRecard" resultMap="SzxcHkbgRecardResult">
|
|
|
|
<select id="selectSzxcHkbgRecardList" parameterType="SzxcHkbgRecard" resultMap="SzxcHkbgRecardResult">
|
|
|
|
@ -48,10 +51,13 @@
|
|
|
|
<if test="xName != null and xName != ''"> and x_name like concat('%', #{xName}, '%')</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="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="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="hjAddress != null and hjAddress != ''"> and hj_address = #{hjAddress}</if>
|
|
|
|
|
|
|
|
<if test="jgNature != null and jgNature != ''"> and jg_nature = #{jgNature}</if>
|
|
|
|
|
|
|
|
<if test="longLive != null and longLive != ''"> and long_live = #{longLive}</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>
|
|
|
|
|
|
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@ -75,8 +81,10 @@
|
|
|
|
<if test="xName != null">x_name,</if>
|
|
|
|
<if test="xName != null">x_name,</if>
|
|
|
|
<if test="xIdCard != null">x_id_card,</if>
|
|
|
|
<if test="xIdCard != null">x_id_card,</if>
|
|
|
|
<if test="relation != null">relation,</if>
|
|
|
|
<if test="relation != null">relation,</if>
|
|
|
|
<if test="number != null">number,</if>
|
|
|
|
|
|
|
|
<if test="bgTime != null">bg_time,</if>
|
|
|
|
<if test="bgTime != null">bg_time,</if>
|
|
|
|
|
|
|
|
<if test="hjAddress != null">hj_address,</if>
|
|
|
|
|
|
|
|
<if test="jgNature != null">jg_nature,</if>
|
|
|
|
|
|
|
|
<if test="longLive != null">long_live,</if>
|
|
|
|
<if test="remark != null">remark,</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>
|
|
|
|
@ -84,6 +92,7 @@
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="acountNo != null">#{acountNo},</if>
|
|
|
|
<if test="acountNo != null">#{acountNo},</if>
|
|
|
|
@ -98,8 +107,10 @@
|
|
|
|
<if test="xName != null">#{xName},</if>
|
|
|
|
<if test="xName != null">#{xName},</if>
|
|
|
|
<if test="xIdCard != null">#{xIdCard},</if>
|
|
|
|
<if test="xIdCard != null">#{xIdCard},</if>
|
|
|
|
<if test="relation != null">#{relation},</if>
|
|
|
|
<if test="relation != null">#{relation},</if>
|
|
|
|
<if test="number != null">#{number},</if>
|
|
|
|
|
|
|
|
<if test="bgTime != null">#{bgTime},</if>
|
|
|
|
<if test="bgTime != null">#{bgTime},</if>
|
|
|
|
|
|
|
|
<if test="hjAddress != null">#{hjAddress},</if>
|
|
|
|
|
|
|
|
<if test="jgNature != null">#{jgNature},</if>
|
|
|
|
|
|
|
|
<if test="longLive != null">#{longLive},</if>
|
|
|
|
<if test="remark != null">#{remark},</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>
|
|
|
|
@ -107,6 +118,7 @@
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
@ -125,8 +137,10 @@
|
|
|
|
<if test="xName != null">x_name = #{xName},</if>
|
|
|
|
<if test="xName != null">x_name = #{xName},</if>
|
|
|
|
<if test="xIdCard != null">x_id_card = #{xIdCard},</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="number != null">number = #{number},</if>
|
|
|
|
|
|
|
|
<if test="bgTime != null">bg_time = #{bgTime},</if>
|
|
|
|
<if test="bgTime != null">bg_time = #{bgTime},</if>
|
|
|
|
|
|
|
|
<if test="hjAddress != null">hj_address = #{hjAddress},</if>
|
|
|
|
|
|
|
|
<if test="jgNature != null">jg_nature = #{jgNature},</if>
|
|
|
|
|
|
|
|
<if test="longLive != null">long_live = #{longLive},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</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>
|
|
|
|
@ -134,6 +148,7 @@
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
|
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|