|
@@ -229,6 +229,7 @@
|
|
<if test="icdCode != null">icd_code = #{icdCode},</if>
|
|
<if test="icdCode != null">icd_code = #{icdCode},</if>
|
|
<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="userConfirm != null">user_confirm = #{userConfirm},</if>
|
|
</trim>
|
|
</trim>
|
|
where prescribe_id = #{prescribeId}
|
|
where prescribe_id = #{prescribeId}
|
|
</update>
|
|
</update>
|
|
@@ -273,7 +274,7 @@
|
|
<select id="selectFsPrescribeListUVOWithOrder" resultType="com.fs.his.vo.FsPrescribeListUVO">
|
|
<select id="selectFsPrescribeListUVOWithOrder" resultType="com.fs.his.vo.FsPrescribeListUVO">
|
|
select p.*,o.is_pay from fs_prescribe p
|
|
select p.*,o.is_pay from fs_prescribe p
|
|
left join fs_store_order o
|
|
left join fs_store_order o
|
|
- on o.order_id=p.order_id
|
|
|
|
|
|
+ on o.order_id=p.store_order_id
|
|
<where>
|
|
<where>
|
|
<if test = "maps.userId != null">
|
|
<if test = "maps.userId != null">
|
|
and p.user_id = #{maps.userId}
|
|
and p.user_id = #{maps.userId}
|
|
@@ -282,7 +283,7 @@
|
|
and p.status = #{maps.status}
|
|
and p.status = #{maps.status}
|
|
</if>
|
|
</if>
|
|
<if test="maps.patientName != null">
|
|
<if test="maps.patientName != null">
|
|
- and p.patient_name like count(#{patientName},'%')
|
|
|
|
|
|
+ and p.patient_name like concat(#{maps.patientName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="maps.userIds != null and maps.userIds.size() > 0">
|
|
<if test="maps.userIds != null and maps.userIds.size() > 0">
|
|
and p.user_id in
|
|
and p.user_id in
|
|
@@ -290,6 +291,14 @@
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
|
|
+ -- 待确认
|
|
|
|
+ <if test="maps.prescribeType == 0">
|
|
|
|
+ AND p.user_confirm=0
|
|
|
|
+ </if>
|
|
|
|
+ -- 待付款
|
|
|
|
+ <if test="maps.prescribeType == 1">
|
|
|
|
+ AND o.is_pay=0
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
order by
|
|
order by
|
|
case when o.is_pay = 0 or o.is_pay is null then 0 else 1 end,
|
|
case when o.is_pay = 0 or o.is_pay is null then 0 else 1 end,
|