|
|
@@ -48,10 +48,11 @@
|
|
|
<result property="icdCode" column="icd_code" />
|
|
|
<result property="source" column="source" />
|
|
|
<result property="prescribeImgStoreUrl" column="prescribe_img_store_url" />
|
|
|
+ <result property="doctorConfirm" column="doctor_confirm" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsPrescribeVo">
|
|
|
- select prescribe_id,prescribe_code_url,prescribe_img_store_url,source,cycle,icd_code,prescribe_type,recipe_type,patient_birthday,drug_doctor_sign_url,prescribe_doctor_id,doctor_sign_url,prescribe_doctor_sign_url, inquiry_order_id, store_order_id, user_id, patient_id, prescribe_code, patient_descs, now_illness, history_illness, patient_age, patient_name, weight, is_history_allergic, history_allergic, liver_unusual, renal_unusual, is_lactation, patient_tel, patient_gender, record_pic, prescribe_img_url, audit_reason, diagnose, doctor_id,drug_doctor_id, create_time, status, audit_time,remark,usage_json,store_id from fs_prescribe
|
|
|
+ select prescribe_id,prescribe_code_url,prescribe_img_store_url,source,cycle,icd_code,prescribe_type,recipe_type,patient_birthday,drug_doctor_sign_url,prescribe_doctor_id,doctor_sign_url,prescribe_doctor_sign_url, inquiry_order_id, store_order_id, user_id, patient_id, prescribe_code, patient_descs, now_illness, history_illness, patient_age, patient_name, weight, is_history_allergic, history_allergic, liver_unusual, renal_unusual, is_lactation, patient_tel, patient_gender, record_pic, prescribe_img_url, audit_reason, diagnose, doctor_id,drug_doctor_id, create_time, status, audit_time,remark,usage_json,store_id,doctor_confirm from fs_prescribe
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsPrescribeList" parameterType="FsPrescribe" resultMap="FsPrescribeResult">
|
|
|
@@ -83,6 +84,7 @@
|
|
|
<if test="doctorId != null and doctorId != ''"> and doctor_id = #{doctorId}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
<if test="auditTime != null "> and audit_time = #{auditTime}</if>
|
|
|
+ <if test="doctorConfirm != null "> and doctor_confirm = #{doctorConfirm}</if>
|
|
|
</where>
|
|
|
order by prescribe_id desc
|
|
|
</select>
|
|
|
@@ -137,6 +139,7 @@
|
|
|
<if test="icdCode != null">icd_code,</if>
|
|
|
<if test="source != null">source,</if>
|
|
|
<if test="prescribeImgStoreUrl != null">prescribe_img_store_url,</if>
|
|
|
+ <if test="doctorConfirm != null">doctor_confirm,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prescribeType != null">#{prescribeType},</if>
|
|
|
@@ -181,6 +184,7 @@
|
|
|
<if test="icdCode != null">#{icdCode},</if>
|
|
|
<if test="source != null">#{source},</if>
|
|
|
<if test="prescribeImgStoreUrl != null">#{prescribeImgStoreUrl},</if>
|
|
|
+ <if test="doctorConfirm != null">#{doctorConfirm},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -229,6 +233,7 @@
|
|
|
<if test="icdCode != null">icd_code = #{icdCode},</if>
|
|
|
<if test="source != null">source = #{source},</if>
|
|
|
<if test="prescribeImgStoreUrl != null">prescribe_img_store_url = #{prescribeImgStoreUrl},</if>
|
|
|
+ <if test="doctorConfirm != null">doctor_confirm = #{doctorConfirm},</if>
|
|
|
</trim>
|
|
|
where prescribe_id = #{prescribeId}
|
|
|
</update>
|