diff --git a/talkonlineweb/src/main/resources/mapper/LymsOrderMapper.xml b/talkonlineweb/src/main/resources/mapper/LymsOrderMapper.xml index 84ca5f8..b4d036a 100644 --- a/talkonlineweb/src/main/resources/mapper/LymsOrderMapper.xml +++ b/talkonlineweb/src/main/resources/mapper/LymsOrderMapper.xml @@ -43,15 +43,21 @@ goods.name as goodName, o.refund_status as refundStatus, o.cnt, + h.doctor, + o.pcid from lyms_patient p, lyms_order o , - lyms_his_info h, + + lyms_his_info h, + lyms_goods goods where p.id = o.pid and o.gid = goods.id - and p.idno = h.idCard + + and p.idno = h.idCard + and o.status = 1 and (p.pname = #{orderRequest.key} or p.enrolment_phone = #{orderRequest.key} or p.idno= #{orderRequest.key})