|
@@ -67,6 +67,7 @@
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="diagnoseChinese" column="diagnose_chinese" />
|
|
<result property="diagnoseChinese" column="diagnose_chinese" />
|
|
|
<result property="remarkChinese" column="remark_chinese" />
|
|
<result property="remarkChinese" column="remark_chinese" />
|
|
|
|
|
+ <result property="notPrescribeReason" column="not_prescribe_reason" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsPrescribeDataScrmVo">
|
|
<sql id="selectFsPrescribeDataScrmVo">
|
|
@@ -81,7 +82,7 @@
|
|
|
end_operate_time, operate_second, third_party_user_id, is_send_to_third_party,
|
|
end_operate_time, operate_second, third_party_user_id, is_send_to_third_party,
|
|
|
handwrite_collection_id, company_customer_id,
|
|
handwrite_collection_id, company_customer_id,
|
|
|
food_and_exercise_guidance, healing_area_json, note_taboos, facial_diagnosis,is_document,
|
|
food_and_exercise_guidance, healing_area_json, note_taboos, facial_diagnosis,is_document,
|
|
|
- diagnose_chinese,remark_chinese
|
|
|
|
|
|
|
+ diagnose_chinese,remark_chinese,not_prescribe_reason
|
|
|
from fs_prescribe_data_scrm
|
|
from fs_prescribe_data_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -127,11 +128,11 @@
|
|
|
and facial_diagnosis like concat('%', #{facialDiagnosis}, '%')
|
|
and facial_diagnosis like concat('%', #{facialDiagnosis}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<!-- 按时间范围查询 -->
|
|
<!-- 按时间范围查询 -->
|
|
|
- <if test="params != null and beginTime != null and beginTime != ''">
|
|
|
|
|
- and create_time >= #{params.beginCreateTime}
|
|
|
|
|
|
|
+ <if test="beginTime != null and beginTime != ''">
|
|
|
|
|
+ and create_time >= #{beginTime}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="params != null and endTime != null and endTime != ''">
|
|
|
|
|
- and create_time <= #{params.endCreateTime}
|
|
|
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
|
+ and create_time <= #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
@@ -254,6 +255,7 @@
|
|
|
<if test="isDocument != null">is_document,</if>
|
|
<if test="isDocument != null">is_document,</if>
|
|
|
<if test="diagnoseChinese != null">diagnose_chinese,</if>
|
|
<if test="diagnoseChinese != null">diagnose_chinese,</if>
|
|
|
<if test="remarkChinese != null">remark_chinese,</if>
|
|
<if test="remarkChinese != null">remark_chinese,</if>
|
|
|
|
|
+ <if test="notPrescribeReason != null">not_prescribe_reason,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prescribeType != null">#{prescribeType},</if>
|
|
<if test="prescribeType != null">#{prescribeType},</if>
|
|
@@ -314,6 +316,7 @@
|
|
|
<if test="isDocument != null">#{isDocument},</if>
|
|
<if test="isDocument != null">#{isDocument},</if>
|
|
|
<if test="diagnoseChinese != null">#{diagnoseChinese},</if>
|
|
<if test="diagnoseChinese != null">#{diagnoseChinese},</if>
|
|
|
<if test="remarkChinese != null">#{remarkChinese},</if>
|
|
<if test="remarkChinese != null">#{remarkChinese},</if>
|
|
|
|
|
+ <if test="notPrescribeReason != null">#{notPrescribeReason},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -378,6 +381,7 @@
|
|
|
<if test="isDocument != null">is_document = #{isDocument},</if>
|
|
<if test="isDocument != null">is_document = #{isDocument},</if>
|
|
|
<if test="diagnoseChinese != null">diagnose_chinese = #{diagnoseChinese},</if>
|
|
<if test="diagnoseChinese != null">diagnose_chinese = #{diagnoseChinese},</if>
|
|
|
<if test="remarkChinese != null">remark_chinese = #{remarkChinese},</if>
|
|
<if test="remarkChinese != null">remark_chinese = #{remarkChinese},</if>
|
|
|
|
|
+ <if test="notPrescribeReason != null">not_prescribe_reason = #{notPrescribeReason},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where prescribe_id = #{prescribeId}
|
|
where prescribe_id = #{prescribeId}
|
|
|
</update>
|
|
</update>
|