|
|
@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="userPhoneFour" column="user_phone_four" />
|
|
|
<result property="allergy" column="allergy" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="age" column="age" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserInformationCollectionVo">
|
|
|
@@ -37,7 +38,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 from fs_user_information_collection
|
|
|
+ ,allergy,remark,age from fs_user_information_collection
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserInformationCollectionList" parameterType="FsUserInformationCollection" resultMap="FsUserInformationCollectionResult">
|
|
|
@@ -71,7 +72,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectFsUserInformationCollectionVo"/>
|
|
|
where package_order_code = #{orderCode}
|
|
|
</select>
|
|
|
-
|
|
|
+ <!-- 根据用户ID列表查询信息收集记录 -->
|
|
|
+ <select id="selectFsUserInformationCollectionListByUserIds"
|
|
|
+ parameterType="java.util.List"
|
|
|
+ resultMap="FsUserInformationCollectionResult">
|
|
|
+ <include refid="selectFsUserInformationCollectionVo"/>
|
|
|
+ WHERE user_id IN
|
|
|
+ <foreach collection="list" item="userId" open="(" separator="," close=")">
|
|
|
+ #{userId}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertFsUserInformationCollection" parameterType="FsUserInformationCollection" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into fs_user_information_collection
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -99,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sex != null">sex,</if>
|
|
|
<if test="allergy != null">allergy,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="age != null">age,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="questionId != null">#{questionId},</if>
|
|
|
@@ -125,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userPhoneFour != null">#{userPhoneFour},</if>
|
|
|
<if test="allergy != null">#{allergy},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="age != null">#{age},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -155,6 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userPhoneFour != null">user_phone_four = #{userPhoneFour},</if>
|
|
|
<if test="allergy != null">allergy = #{allergy},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="age != null">age = #{age},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|