|
|
@@ -37,6 +37,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="doctorType2Advice" column="doctor_type2_advice" />
|
|
|
<result property="storeOrderId" column="store_order_id" />
|
|
|
<result property="isTemplate" column="is_template" />
|
|
|
<result property="userCommitment" column="user_commitment" />
|
|
|
@@ -47,7 +48,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,store_order_id,is_template,
|
|
|
+ ,allergy,remark,patient_id,doctor_type2_id,doctor_type2_confirm,doctor_type2_sign,doctor_type2_advice,store_order_id,is_template,
|
|
|
user_commitment from fs_user_information_collection
|
|
|
</sql>
|
|
|
|
|
|
@@ -155,6 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
fuic.doctor_type2_id,
|
|
|
fuic.doctor_type2_confirm,
|
|
|
fuic.doctor_type2_sign,
|
|
|
+ fuic.doctor_type2_advice,
|
|
|
fuic.store_order_id
|
|
|
FROM fs_user_information_collection fuic
|
|
|
LEFT JOIN fs_store_order fso ON fuic.store_order_id = fso.order_id
|
|
|
@@ -198,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
fuic.doctor_type2_id,
|
|
|
fuic.doctor_type2_confirm,
|
|
|
fuic.doctor_type2_sign,
|
|
|
+ fuic.doctor_type2_advice,
|
|
|
fuic.store_order_id
|
|
|
FROM fs_user_information_collection fuic
|
|
|
WHERE fuic.user_confirm = 1 AND fuic.doctor_confirm = 0 AND fuic.user_confirm_time <= NOW() - INTERVAL 5 MINUTE AND fuic.is_template != -1
|
|
|
@@ -210,6 +213,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
,uic.package_id,uic.pay_type,uic.amount,uic.is_package,uic.user_confirm2,uic.package_order_code,uic.package_order_id
|
|
|
,uic.status,uic.user_advice,uic.doctor_advice,uic.doctor_sign,uic.doctor_confirm_time,uic.sex,uic.user_name,uic.user_phone_four
|
|
|
,uic.allergy,uic.remark,uic.patient_id,uic.doctor_type2_id,uic.doctor_type2_confirm,uic.doctor_type2_sign,
|
|
|
+ uic.doctor_type2_advice,
|
|
|
uic.store_order_id,uic.is_template,uic.user_commitment,
|
|
|
d1.doctor_name AS doctor_name ,d2.doctor_name AS doctor_type2_name,
|
|
|
cu.nick_name AS company_user_name,fp.package_name as package_name,fpa.patient_name AS patient_name,fpa.id_card AS patient_id_card
|
|
|
@@ -256,6 +260,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="doctorType2Advice != null">doctor_type2_advice,</if>
|
|
|
<if test="storeOrderId != null">store_order_id,</if>
|
|
|
<if test="isTemplate != null">is_template,</if>
|
|
|
<if test="userCommitment != null">user_commitment,</if>
|
|
|
@@ -292,6 +297,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="doctorType2Advice != null">#{doctorType2Advice},</if>
|
|
|
<if test="storeOrderId != null">#{storeOrderId},</if>
|
|
|
<if test="isTemplate != null">#{isTemplate},</if>
|
|
|
<if test="userCommitment != null">#{userCommitment},</if>
|
|
|
@@ -332,6 +338,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="doctorType2Advice != null">doctor_type2_advice = #{doctorType2Advice},</if>
|
|
|
<if test="storeOrderId != null">store_order_id = #{storeOrderId},</if>
|
|
|
<if test="isTemplate != null">is_template = #{isTemplate},</if>
|
|
|
<if test="userCommitment != null and userCommitment != ''">user_commitment = #{userCommitment},</if>
|