|
@@ -204,12 +204,12 @@ public class SiZyService {
|
|
|
}
|
|
|
int index = 0;
|
|
|
int feeSize = allPositiveFees.size() + allNegativeFees.size();
|
|
|
- prepareUploadFees(allPositiveFees, index, feeSize, p, o.getSid());
|
|
|
+ index = prepareUploadFees(allPositiveFees, index, feeSize, p, o.getSid());
|
|
|
prepareUploadFees(allNegativeFees, index, feeSize, p, o.getSid());
|
|
|
return hospitalizationPreSettlement(p);
|
|
|
}
|
|
|
|
|
|
- private void prepareUploadFees(Queue<FeeDtle> feeQueue, int index, int feeSize, ZyPatientInfo p, String sid) {
|
|
|
+ private int prepareUploadFees(Queue<FeeDtle> feeQueue, int index, int feeSize, ZyPatientInfo p, String sid) {
|
|
|
JSONObject input = exec.makeTradeHeader(SiFunction.UPLOAD_HOSPITALIZATION_FEE_DETAILS);
|
|
|
JSONObject socketMessage = new JSONObject();
|
|
|
socketMessage.put("name", "updateProgress");
|
|
@@ -234,6 +234,7 @@ public class SiZyService {
|
|
|
socketMessage.replace("percentage", makePercentage(index, feeSize));
|
|
|
WebSocketServer.sendMessage(sid, socketMessage.toJSONString());
|
|
|
}
|
|
|
+ return index;
|
|
|
}
|
|
|
|
|
|
private int makePercentage(int index, int size) {
|