Commit b676773eb6e55b24d323b723b45bd36781919330

Authored by changpengfei
1 parent b73b18ea36
Exists in master

bug

Showing 1 changed file with 6 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/TkRecordController.java View file @ b676773
... ... @@ -57,7 +57,12 @@
57 57 List<LymsTcard> xLst=lymsTcardService.list(Wrappers.query(tcard).notInSql("id","SELECT r.cid FROM lyms_tkrecord r").orderByDesc("fid"));
58 58  
59 59 if(rLst.size()>0 || xLst.size()>0){
60   - tkrecord.setCid(rLst.get(0).getId());
  60 + if(rLst.size()>0){
  61 + tkrecord.setCid(rLst.get(0).getId());
  62 + }else{
  63 + tkrecord.setCid(xLst.get(0).getId());
  64 + }
  65 +
61 66 }else{
62 67 baseResponse.setErrorcode(1);
63 68 baseResponse.setErrormsg("已经没有了问诊卡");