Commit 23371d4f9dfac4da21af91b58b1e137228eb2bb7
1 parent
5b86d3425a
Exists in
dev
#fix:优化医心照护订单查询
Showing 1 changed file with 8 additions and 2 deletions
talkonlineweb/src/main/resources/mapper/LymsOrderMapper.xml
View file @
23371d4
| ... | ... | @@ -43,15 +43,21 @@ |
| 43 | 43 | goods.name as goodName, |
| 44 | 44 | o.refund_status as refundStatus, |
| 45 | 45 | o.cnt, |
| 46 | + <if test="orderRequest.type != null and orderRequest.type == 1 "> | |
| 46 | 47 | h.doctor, |
| 48 | + </if> | |
| 47 | 49 | o.pcid |
| 48 | 50 | from lyms_patient p, |
| 49 | 51 | lyms_order o , |
| 50 | - lyms_his_info h, | |
| 52 | + <if test="orderRequest.type != null and orderRequest.type == 1 "> | |
| 53 | + lyms_his_info h, | |
| 54 | + </if> | |
| 51 | 55 | lyms_goods goods |
| 52 | 56 | where p.id = o.pid |
| 53 | 57 | and o.gid = goods.id |
| 54 | - and p.idno = h.idCard | |
| 58 | + <if test="orderRequest.type != null and orderRequest.type == 1 "> | |
| 59 | + and p.idno = h.idCard | |
| 60 | + </if> | |
| 55 | 61 | and o.status = 1 |
| 56 | 62 | <if test="orderRequest.key != null and orderRequest.key != '' "> |
| 57 | 63 | and (p.pname = #{orderRequest.key} or p.enrolment_phone = #{orderRequest.key} or p.idno= #{orderRequest.key}) |