Commit b73b18ea36a13dc946926eea74656efd6118eb94

Authored by changpengfei
1 parent b3e25cd95f
Exists in master and in 1 other branch dev

bug

Showing 1 changed file with 6 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/TkRecordController.java View file @ b73b18e
... ... @@ -51,7 +51,12 @@
51 51 // 获取问诊卡按照先从医院购买的问诊卡消费
52 52 List<LymsTcard> rLst=lymsTcardService.list(Wrappers.query(tcard).notInSql("id","SELECT r.cid FROM lyms_tkrecord r").orderByDesc("fid"));
53 53  
54   - if(rLst.size()>0){
  54 +// 小程序购买的问诊卡
  55 + tcard.setPcid(null);
  56 + tcard.setFid(1);
  57 + List<LymsTcard> xLst=lymsTcardService.list(Wrappers.query(tcard).notInSql("id","SELECT r.cid FROM lyms_tkrecord r").orderByDesc("fid"));
  58 +
  59 + if(rLst.size()>0 || xLst.size()>0){
55 60 tkrecord.setCid(rLst.get(0).getId());
56 61 }else{
57 62 baseResponse.setErrorcode(1);