Commit 1b0fd0a5582abdc29c2e7ec24f752aa0d548cd10
1 parent
7f025aaac3
Exists in
master
提交接种计划接口
Showing 1 changed file with 3 additions and 3 deletions
webApi/src/main/java/com/lyms/yimiao/web/controller/v1/KidsController.java
View file @
1b0fd0a
| ... | ... | @@ -350,8 +350,8 @@ | 
| 350 | 350 | //接种ID | 
| 351 | 351 | if (CollectionUtils.isNotEmpty(recordsList)){ | 
| 352 | 352 | for (KidInoculationRecords temp : recordsList){ | 
| 353 | - if (temp.getJiCi()==current && temp.getVaccineNameTitle() == data.getVnName() | |
| 354 | - && temp.getCnt() == sum && temp.getVaccineType().equals("1")){ | |
| 353 | + if (temp.getJiCi()==current && temp.getVaccineNameTitle().equals(data.getVnName()) | |
| 354 | + && temp.getVaccineType().equals("1")){ | |
| 355 | 355 | freeMap.put("inoculateId", temp.getRecordId()); | 
| 356 | 356 | break; | 
| 357 | 357 | }else { | 
| ... | ... | @@ -379,7 +379,7 @@ | 
| 379 | 379 | //接种ID | 
| 380 | 380 | if (CollectionUtils.isNotEmpty(recordsList)){ | 
| 381 | 381 | for (KidInoculationRecords temp : recordsList){ | 
| 382 | - if (temp.getJiCi()==current && temp.getVaccineNameTitle()==data.getVnName() | |
| 382 | + if (temp.getJiCi()==current && temp.getVaccineNameTitle().equals(data.getVnName()) | |
| 383 | 383 | && temp.getCnt() == sum&& temp.getVaccineType().equals("2")){ | 
| 384 | 384 | chargeMap.put("inoculateId", temp.getRecordId()); | 
| 385 | 385 | break; |