|
|
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="infoSource" column="info_source" />
|
|
|
<result property="thirdPartyUserId" column="third_party_user_id" />
|
|
|
<result property="fillFlag" column="fill_flag" />
|
|
|
+ <result property="completeStatus" column="complete_status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 用户信息采集视图对象类的ResultMap -->
|
|
|
@@ -59,7 +60,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,fill_flag from fs_user_information_collection
|
|
|
+ ,allergy,remark,age,info_source,third_party_user_id,fill_flag,complete_status from fs_user_information_collection
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserInformationCollectionList" parameterType="FsUserInformationCollection" resultMap="FsUserInformationCollectionResult">
|
|
|
@@ -74,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
|
+ <if test="completeStatus != null "> and complete_status = #{completeStatus}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -137,7 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND infocollect.user_name LIKE CONCAT('%', #{userName}, '%')
|
|
|
</if>
|
|
|
<if test="questionId != null and questionId != ''">
|
|
|
- AND infocollect.question_id LIKE CONCAT('%', #{questionId}, '%')
|
|
|
+ AND infocollect.question_id = #{questionId}
|
|
|
</if>
|
|
|
<if test="companyUserName != null and companyUserName != ''">
|
|
|
AND cu.nick_name LIKE CONCAT('%', #{companyUserName}, '%')
|
|
|
@@ -213,6 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="infoSource != null">info_source,</if>
|
|
|
<if test="thirdPartyUserId != null">third_party_user_id,</if>
|
|
|
<if test="fillFlag != null">fill_flag,</if>
|
|
|
+ <if test="completeStatus != null">complete_status,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="questionId != null">#{questionId},</if>
|
|
|
@@ -243,6 +246,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="infoSource != null">#{infoSource},</if>
|
|
|
<if test="thirdPartyUserId != null">#{thirdPartyUserId},</if>
|
|
|
<if test="fillFlag != null">#{fillFlag},</if>
|
|
|
+ <if test="completeStatus != null">#{completeStatus},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -277,6 +281,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
|
+ <if test="completeStatus != null">complete_status = #{completeStatus},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|