|
|
@@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="age" column="age" />
|
|
|
<result property="infoSource" column="info_source" />
|
|
|
<result property="thirdPartyUserId" column="third_party_user_id" />
|
|
|
+ <result property="fillFlag" column="fill_flag" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 用户信息采集视图对象类的ResultMap -->
|
|
|
@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
, doctor_confirm, create_time, update_time,doctor_id,company_user_id
|
|
|
,package_id,pay_type,amount,is_package,user_confirm2,package_order_code
|
|
|
,status,user_advice,doctor_advice,doctor_confirm_time,sex,user_name,user_phone_four
|
|
|
- ,allergy,remark,age,info_source,third_party_user_id from fs_user_information_collection
|
|
|
+ ,allergy,remark,age,info_source,third_party_user_id,fill_flag from fs_user_information_collection
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserInformationCollectionList" parameterType="FsUserInformationCollection" resultMap="FsUserInformationCollectionResult">
|
|
|
@@ -72,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="packageOrderCode != null "> and package_order_code = #{packageOrderCode}</if>
|
|
|
<if test="infoSource != null "> and info_source = #{infoSource}</if>
|
|
|
<if test="thirdPartyUserId != null "> and third_party_user_id = #{thirdPartyUserId}</if>
|
|
|
+ <if test="fillFlag != null "> and fill_flag = #{fillFlag}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -100,7 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
resultMap="FsUserInformationCollectionResult">
|
|
|
<include refid="selectFsUserInformationCollectionVo"/>
|
|
|
WHERE user_id IN
|
|
|
- <foreach collection="list" item="userId" open="(" separator="," close=")">
|
|
|
+ <foreach collection="fsUserIds" item="userId" open="(" separator="," close=")">
|
|
|
#{userId}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
@@ -177,6 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="age != null">age,</if>
|
|
|
<if test="infoSource != null">info_source,</if>
|
|
|
<if test="thirdPartyUserId != null">third_party_user_id,</if>
|
|
|
+ <if test="fillFlag != null">fill_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="questionId != null">#{questionId},</if>
|
|
|
@@ -206,6 +209,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="age != null">#{age},</if>
|
|
|
<if test="infoSource != null">#{infoSource},</if>
|
|
|
<if test="thirdPartyUserId != null">#{thirdPartyUserId},</if>
|
|
|
+ <if test="fillFlag != null">#{fillFlag},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -239,6 +243,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="age != null">age = #{age},</if>
|
|
|
<if test="infoSource != null">info_source = #{infoSource},</if>
|
|
|
<if test="thirdPartyUserId != null">third_party_user_id = #{thirdPartyUserId},</if>
|
|
|
+ <if test="fillFlag != null">fill_flag = #{fillFlag},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|