|
|
@@ -36,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="doctorType2Id" column="doctor_type2_id" />
|
|
|
<result property="doctorType2Confirm" column="doctor_type2_confirm" />
|
|
|
<result property="doctorType2Sign" column="doctor_type2_sign" />
|
|
|
+ <result property="storeOrderId" column="store_order_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserInformationCollectionVo">
|
|
|
@@ -43,7 +44,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,package_order_id
|
|
|
,status,user_advice,doctor_advice,doctor_sign,doctor_confirm_time,sex,user_name,user_phone_four
|
|
|
- ,allergy,remark,patient_id,doctor_type2_id,doctor_type2_confirm,doctor_type2_sign from fs_user_information_collection
|
|
|
+ ,allergy,remark,patient_id,doctor_type2_id,doctor_type2_confirm,doctor_type2_sign,store_order_id from fs_user_information_collection
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserInformationCollectionList" parameterType="FsUserInformationCollection" resultMap="FsUserInformationCollectionResult">
|
|
|
@@ -55,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userConfirm != null "> and user_confirm = #{userConfirm}</if>
|
|
|
<if test="doctorConfirm != null "> and doctor_confirm = #{doctorConfirm}</if>
|
|
|
<if test="packageOrderId != null "> and package_order_id = #{packageOrderId}</if>
|
|
|
+ <if test="storeOrderId != null "> and store_order_id = #{storeOrderId}</if>
|
|
|
<if test="packageOrderCode != null and packageOrderCode !=''"> and package_order_code = #{packageOrderCode}</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
@@ -152,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="doctorType2Id != null">doctor_type2_id,</if>
|
|
|
<if test="doctorType2Confirm != null">doctor_type2_confirm,</if>
|
|
|
<if test="doctorType2Sign != null">doctor_type2_sign,</if>
|
|
|
+ <if test="storeOrderId != null">store_order_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="questionId != null">#{questionId},</if>
|
|
|
@@ -184,6 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="doctorType2Id != null">#{doctorType2Id},</if>
|
|
|
<if test="doctorType2Confirm != null">#{doctorType2Confirm},</if>
|
|
|
<if test="doctorType2Sign != null">#{doctorType2Sign},</if>
|
|
|
+ <if test="storeOrderId != null">#{storeOrderId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -220,6 +224,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="doctorType2Id != null">doctor_type2_id = #{doctorType2Id},</if>
|
|
|
<if test="doctorType2Confirm != null">doctor_type2_confirm = #{doctorType2Confirm},</if>
|
|
|
<if test="doctorType2Sign != null">doctor_type2_sign = #{doctorType2Sign},</if>
|
|
|
+ <if test="storeOrderId != null">store_order_id = #{storeOrderId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|