|
@@ -37,6 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="gridId" column="grid_id" />
|
|
|
<result property="status" column="status" />
|
|
|
+ <result property="isConfirm" column="is_confirm" />
|
|
|
+ <result property="confirmInfoUser" column="confirm_info_user" />
|
|
|
+ <result property="confirmInfoUserTime" column="confirm_info_user_time" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -80,16 +83,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.boman.web.core.domain.ConfirmInfoUser" id="ConfrimInforUserResult">
|
|
|
+ <result property="confirmInfoUser" column="confirm_info_user" />
|
|
|
+ <result property="czrkId" column="czrk_id" />
|
|
|
+ </resultMap>
|
|
|
<sql id="selectCzrkVo">
|
|
|
select id, user_name, gender, age, birthday,dept_id, id_card, phone_num, code, house_type, rlr, rl_time, yhzgx
|
|
|
, work_unit, province_id, province, city_id, city, region_id, region, village_towns_id, village_towns
|
|
|
- , village_id, village, villager_group_id, villager_group, now_in, remark,grid_id, status, create_by, create_time
|
|
|
+ , village_id, village, villager_group_id, villager_group, now_in, remark,grid_id, status,is_confirm,confirm_info_user,confirm_info_user_time, create_by, create_time
|
|
|
, update_by, update_time, is_del, delete_reason, dept_id, is_rl, key_industries from czrk
|
|
|
</sql>
|
|
|
|
|
|
<select id="listByRlry" resultMap="CzrkResult">
|
|
|
select id, user_name, phone_num,dept_id, id_card, gender, province, city, region, village_towns, village, villager_group, grid_id
|
|
|
- , house_type, update_by, code, rlr, update_time, delete_reason, now_in
|
|
|
+ , house_type, update_by, code, rlr, update_time, delete_reason, now_in,is_confirm,confirm_info_user,confirm_info_user_time
|
|
|
from czrk
|
|
|
<where>
|
|
|
<!-- 已认领 -->
|
|
@@ -125,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="villagerGroup != null and villagerGroup != ''"> and villager_group = #{villagerGroup}</if>-->
|
|
|
<if test="nowIn != null and nowIn != ''"> and now_in = #{nowIn}</if>
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ <if test="isConfirm != null and isConfirm != ''"> and is_confirm = #{isConfirm}</if>
|
|
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
|
<if test="deleteReason != null and deleteReason != ''"> and delete_reason = #{deleteReason}</if>
|
|
|
<if test="gridId != null and gridId != ''"> and grid_id = #{gridId}</if>
|
|
@@ -607,6 +615,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="gridId != null">grid_id,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
+ <if test="isConfirm != null">is_confirm,</if>
|
|
|
+ <if test="confirmInfoUser != null and confirmInfoUser != ''">confirm_info_user,</if>
|
|
|
+ <if test="confirmInfoUserTime != null ">confirm_info_user_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="isDel != null and isDel != ''">is_del,</if>
|
|
@@ -645,6 +656,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="gridId != null">#{gridId},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
+ <if test="isConfirm != null">#{isConfirm},</if>
|
|
|
+ <if test="confirmInfoUser != null and confirmInfoUser != ''">#{confirmInfoUser},</if>
|
|
|
+ <if test="confirmInfoUserTime != null ">#{confirmInfoUserTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="isDel != null and isDel != ''">#{isDel},</if>
|
|
@@ -686,6 +700,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="gridId != null">grid_id = #{gridId},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
+ <if test="isConfirm != null and isConfirm != ''">is_confirm = #{isConfirm},</if>
|
|
|
+ <if test="confirmInfoUser != null and confirmInfoUser != ''">confirm_info_user = #{confirmInfoUser},</if>
|
|
|
+ <if test="confirmInfoUserTime != null ">confirm_info_user_time = #{confirmInfoUserTime},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
@@ -884,4 +901,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectDeptNameById" parameterType="Long" resultMap="SysDeptResult">
|
|
|
select * from sys_dept where id = #{id} limit 1;
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="confirmInfoByIds">
|
|
|
+ update czrk
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ is_confirm = 'Y',
|
|
|
+ <if test="userName != null and userName !=''"> confirm_info_user = #{userName},</if>
|
|
|
+ confirm_info_user_time = sysdate()
|
|
|
+ </trim>
|
|
|
+ where id in
|
|
|
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <insert id="insertConfirmInfoUser" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into confim_info_user
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="confirmInfoUser != null">confirm_info_user,</if>
|
|
|
+ <if test="czrkId != null">czrk_id,</if>
|
|
|
+ create_time
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="confirmInfoUser != null">#{confirmInfoUser},</if>
|
|
|
+ <if test="czrkId != null">#{czrkId},</if>
|
|
|
+ sysdate()
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
</mapper>
|