Commit b0dd403ecaf68c46aee576166fc6a8a93440dfc9
1 parent
00809b0aa9
Exists in
master
and in
6 other branches
修改第次bug
Showing 1 changed file with 10 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/AntExRecordWorker.java
View file @
b0dd403
| ... | ... | @@ -128,18 +128,21 @@ |
| 128 | 128 | |
| 129 | 129 | antExRecordQuery1.setType(1); |
| 130 | 130 | //初诊的次数 |
| 131 | - int cdichi =0; | |
| 131 | + int cdichi = 0; | |
| 132 | 132 | //等于初诊的时候才减 |
| 133 | - if(e.getType()==1){ | |
| 134 | - cdichi=recordService.count(antExRecordQuery1); | |
| 133 | + if (e.getType() == 1) { | |
| 134 | + cdichi = recordService.count(antExRecordQuery1); | |
| 135 | 135 | } |
| 136 | 136 | antExRecordQuery1.setType(null); |
| 137 | 137 | antExRecordQuery1.setHospitalId(null); |
| 138 | - int tcount=recordService.count(antExRecordQuery1); | |
| 138 | + int tcount = recordService.count(antExRecordQuery1); | |
| 139 | 139 | antExRecordQuery1.setType(1); |
| 140 | - int tallcount=recordService.count(antExRecordQuery1); | |
| 141 | - antExManagerResult.settTimes(tcount-tallcount); | |
| 142 | - antExManagerResult.setChTimes(dichi-cdichi); | |
| 140 | + int tallcount = 0; | |
| 141 | + if (e.getType() == 1) { | |
| 142 | + tallcount = recordService.count(antExRecordQuery1); | |
| 143 | + } | |
| 144 | + antExManagerResult.settTimes(tcount - tallcount); | |
| 145 | + antExManagerResult.setChTimes(dichi - cdichi); | |
| 143 | 146 | handleRisk(e, antExManagerResult); |
| 144 | 147 | |
| 145 | 148 | data.add(antExManagerResult); |