Commit 104c6634648c9698320a979922f0f23f9f89b767
1 parent
6372587ceb
Exists in
master
and in
1 other branch
医院购买卡数量
Showing 1 changed file with 12 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
104c663
| ... | ... | @@ -131,6 +131,18 @@ |
| 131 | 131 | tcard.setPid(patient.getId()); |
| 132 | 132 | tcard.setFid(2); |
| 133 | 133 | |
| 134 | + param.clear(); | |
| 135 | + param.put("pcid",pcase.getPcid()); | |
| 136 | + List<LymsTcard> tLst=lymsTcardService.listByMap(param); | |
| 137 | + if(tLst.size()>0){ | |
| 138 | + tcard.setId(tLst.get(0).getId()); | |
| 139 | + tcard.setUpdatedby(pcase.getUpdatedby()); | |
| 140 | + tcard.setUpdatedTime(new Date()); | |
| 141 | + }else{ | |
| 142 | + tcard.setCreatedby(patient.getCreatedby()); | |
| 143 | + tcard.setCreatedtime(new Date()); | |
| 144 | + } | |
| 145 | + | |
| 134 | 146 | lymsTcardService.saveOrUpdate(tcard); |
| 135 | 147 | |
| 136 | 148 | baseResponse.setErrorcode(f==true?0:1); |