Commit 2038210fdaeefc3c741e8130256d298b716a4a14

Authored by jiangjiazhi
1 parent 1f58f4c756

commit

Showing 2 changed files with 2 additions and 2 deletions

platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java View file @ 2038210
... ... @@ -1192,7 +1192,7 @@
1192 1192 }else {
1193 1193 c1 = c.andCondition(MongoCondition.newInstance("riskFactorId", null, MongoOper.NE)).getCriteria();
1194 1194 }
1195   - }else if(null!=rFactorList){
  1195 + }else if(null!=rFactorList &&!rFactorList.isEmpty()){
1196 1196 condition = condition.and("riskFactorId", rFactorList, MongoOper.IN);
1197 1197 }
1198 1198 if (-1 != yn) {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java View file @ 2038210
... ... @@ -245,7 +245,7 @@
245 245 patientsQuery.setLikeName(riskPatientsQueryRequest.getName());
246 246 patientsQuery.sethScoreStart(riskPatientsQueryRequest.getStrtHScore());
247 247 patientsQuery.sethScoreEnd(riskPatientsQueryRequest.getEndHScore());
248   - patientsQuery.setrFactor(riskPatientsQueryRequest.getrFacotr());
  248 + patientsQuery.setrFactorList(com.lyms.platform.common.utils.StringUtils.covertToList(riskPatientsQueryRequest.getrFacotr(),String.class));
249 249 Date currentDate = DateUtil.formatDate(new Date());
250 250  
251 251 patientsQuery.setPostViewTimes(riskPatientsQueryRequest.getPostViewTimes());