|
|
|
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="DaCzrkdj" id="DaCzrkdjResult">
|
|
|
|
<resultMap type="DaCzrkdj" id="DaCzrkdjResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
|
|
|
<result property="ywType" column="yw_type" />
|
|
|
|
<result property="muId" column="mu_id" />
|
|
|
|
<result property="muId" column="mu_id" />
|
|
|
|
<result property="name" column="name" />
|
|
|
|
<result property="name" column="name" />
|
|
|
|
<result property="hzName" column="hz_name" />
|
|
|
|
<result property="hzName" column="hz_name" />
|
|
|
|
@ -23,12 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectDaCzrkdjVo">
|
|
|
|
<sql id="selectDaCzrkdjVo">
|
|
|
|
select id, mu_id, name, hz_name, relation, birthday, address, jiguan, card_id, pictures, remark, create_by, create_time, update_by, update_time from da_czrkdj
|
|
|
|
select id,yw_type, mu_id, name, hz_name, relation, birthday, address, jiguan, card_id, pictures, remark, create_by, create_time, update_by, update_time from da_czrkdj
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<include refid="selectDaCzrkdjVo"/>
|
|
|
|
<include refid="selectDaCzrkdjVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
|
|
|
|
<if test="muId != null "> and mu_id = #{muId}</if>
|
|
|
|
<if test="muId != null "> and mu_id = #{muId}</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="hzName != null and hzName != ''"> and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
<if test="hzName != null and hzName != ''"> and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectDaCzrkdjList1" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="selectDaCzrkdjList1" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<include refid="selectDaCzrkdjVo"/>
|
|
|
|
<include refid="selectDaCzrkdjVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
|
|
|
|
<if test="muId != null "> and mu_id = #{muId}</if>
|
|
|
|
<if test="muId != null "> and mu_id = #{muId}</if>
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
and (name like concat('%', #{name}, '%')
|
|
|
|
and (name like concat('%', #{name}, '%')
|
|
|
|
@ -66,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<insert id="insertDaCzrkdj" parameterType="DaCzrkdj" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertDaCzrkdj" parameterType="DaCzrkdj" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into da_czrkdj
|
|
|
|
insert into da_czrkdj
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="ywType != null">yw_type,</if>
|
|
|
|
<if test="muId != null">mu_id,</if>
|
|
|
|
<if test="muId != null">mu_id,</if>
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
<if test="hzName != null">hz_name,</if>
|
|
|
|
<if test="hzName != null">hz_name,</if>
|
|
|
|
@ -82,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="ywType != null">#{ywType},</if>
|
|
|
|
<if test="muId != null">#{muId},</if>
|
|
|
|
<if test="muId != null">#{muId},</if>
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
<if test="hzName != null">#{hzName},</if>
|
|
|
|
<if test="hzName != null">#{hzName},</if>
|
|
|
|
@ -102,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<update id="updateDaCzrkdj" parameterType="DaCzrkdj">
|
|
|
|
<update id="updateDaCzrkdj" parameterType="DaCzrkdj">
|
|
|
|
update da_czrkdj
|
|
|
|
update da_czrkdj
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="ywType != null">yw_type = #{ywType},</if>
|
|
|
|
<if test="muId != null">mu_id = #{muId},</if>
|
|
|
|
<if test="muId != null">mu_id = #{muId},</if>
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
<if test="hzName != null">hz_name = #{hzName},</if>
|
|
|
|
<if test="hzName != null">hz_name = #{hzName},</if>
|
|
|
|
|