|
@@ -49,10 +49,21 @@
|
|
|
<result property="source" column="source" />
|
|
<result property="source" column="source" />
|
|
|
<result property="prescribeImgStoreUrl" column="prescribe_img_store_url" />
|
|
<result property="prescribeImgStoreUrl" column="prescribe_img_store_url" />
|
|
|
<result property="doctorConfirm" column="doctor_confirm" />
|
|
<result property="doctorConfirm" column="doctor_confirm" />
|
|
|
|
|
+ <result property="startOperateTime" column="start_operate_time" />
|
|
|
|
|
+ <result property="endOperateTime" column="end_operate_time" />
|
|
|
|
|
+ <result property="operateSecond" column="operate_second" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsPrescribeVo">
|
|
<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,doctor_confirm 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, start_operate_time,end_operate_time,operate_second from fs_prescribe
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsPrescribeList" parameterType="FsPrescribe" resultMap="FsPrescribeResult">
|
|
<select id="selectFsPrescribeList" parameterType="FsPrescribe" resultMap="FsPrescribeResult">
|
|
@@ -234,6 +245,9 @@
|
|
|
<if test="source != null">source = #{source},</if>
|
|
<if test="source != null">source = #{source},</if>
|
|
|
<if test="prescribeImgStoreUrl != null">prescribe_img_store_url = #{prescribeImgStoreUrl},</if>
|
|
<if test="prescribeImgStoreUrl != null">prescribe_img_store_url = #{prescribeImgStoreUrl},</if>
|
|
|
<if test="doctorConfirm != null">doctor_confirm = #{doctorConfirm},</if>
|
|
<if test="doctorConfirm != null">doctor_confirm = #{doctorConfirm},</if>
|
|
|
|
|
+ <if test="startOperateTime != null">start_operate_time = #{startOperateTime},</if>
|
|
|
|
|
+ <if test="endOperateTime != null">end_operate_time = #{endOperateTime},</if>
|
|
|
|
|
+ <if test="operateSecond != null">operate_second = #{operateSecond},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where prescribe_id = #{prescribeId}
|
|
where prescribe_id = #{prescribeId}
|
|
|
</update>
|
|
</update>
|
|
@@ -276,7 +290,7 @@
|
|
|
<if test="storeId != null "> and so.store_id = #{storeId}</if>
|
|
<if test="storeId != null "> and so.store_id = #{storeId}</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectFsPrescribeListVOWithConfirm" resultType="com.fs.his.vo.FsPrescribeListVO">
|
|
<select id="selectFsPrescribeListVOWithConfirm" resultType="com.fs.his.vo.FsPrescribeListVO">
|
|
|
- select so.*,us.nick_name,dc.doctor_name,
|
|
|
|
|
|
|
+ select so.*,CAST(operate_second AS CHAR) operateTime,us.nick_name,dc.doctor_name,
|
|
|
dp.doctor_name doctor_drug_name,
|
|
dp.doctor_name doctor_drug_name,
|
|
|
fso.order_code,fso.`status` order_status,
|
|
fso.order_code,fso.`status` order_status,
|
|
|
fse.store_name FROM fs_prescribe so
|
|
fse.store_name FROM fs_prescribe so
|