|
@@ -167,7 +167,7 @@ public class SiZyFeeService {
|
|
|
if (o.getMidSetl()) {
|
|
|
List<Integer> notAllowedSns = zyDao.selectNotAllowedSnForMidSetl(o.getInpatientNo(), o.getAdmissTimes(),
|
|
|
o.getLedgerSn(), o.getEndtime());
|
|
|
- if (null != notAllowedSns && notAllowedSns.size() > 0) {
|
|
|
+ if (!notAllowedSns.isEmpty()) {
|
|
|
List<Integer> tempSns = new ArrayList<>();
|
|
|
for (int sn : notAllowedSns) {
|
|
|
tempSns.add(sn);
|
|
@@ -177,7 +177,7 @@ public class SiZyFeeService {
|
|
|
tempSns.clear();
|
|
|
}
|
|
|
}
|
|
|
- if (tempSns.size() > 0) {
|
|
|
+ if (!tempSns.isEmpty()) {
|
|
|
zyPtnt.setDetailSns(tempSns);
|
|
|
revokeUploadFees(zyPtnt);
|
|
|
}
|
|
@@ -186,7 +186,7 @@ public class SiZyFeeService {
|
|
|
Map<String, Queue<FeeDtle>> allFees = getAllFeesNotUploaded(o);
|
|
|
Queue<FeeDtle> allPositiveFees = allFees.get("positive");
|
|
|
Queue<FeeDtle> allNegativeFees = allFees.get("negative");
|
|
|
- if (allPositiveFees.size() == 0 && allNegativeFees.size() == 0) {
|
|
|
+ if (allPositiveFees.isEmpty() && allNegativeFees.isEmpty()) {
|
|
|
return hospitalizationPreSettlement(zyPtnt, o);
|
|
|
}
|
|
|
int index = 0;
|
|
@@ -238,7 +238,7 @@ public class SiZyFeeService {
|
|
|
|
|
|
private int[] prepareUploadFees(Queue<FeeDtle> feeQueue, int index, int feeSize, ZyPatientInfo p, String sid) {
|
|
|
int[] result = new int[] {0,0};
|
|
|
- if (feeQueue.size() == 0) {
|
|
|
+ if (feeQueue.isEmpty()) {
|
|
|
return result;
|
|
|
}
|
|
|
JSONObject input = exec.makeTradeHeaderWithInsureArea(SiFunction.UPLOAD_HOSPITALIZATION_FEE_DETAILS,
|
|
@@ -248,7 +248,7 @@ public class SiZyFeeService {
|
|
|
socketMessage.put("percentage", 0);
|
|
|
List<FeeDtle> tempList = new ArrayList<>();
|
|
|
RestTemplate template = new RestTemplate();
|
|
|
- while (feeQueue.size() > 0) {
|
|
|
+ while (!feeQueue.isEmpty()) {
|
|
|
FeeDtle feeDtle = feeQueue.poll();
|
|
|
assert feeDtle != null;
|
|
|
if (StringUtil.isBlank(feeDtle.getBilgDrCodg())) {
|
|
@@ -298,7 +298,7 @@ public class SiZyFeeService {
|
|
|
new PureCodeName(sid, socketMessage.toJSONString()), String.class);
|
|
|
}
|
|
|
}
|
|
|
- if (tempList.size() > 0) {
|
|
|
+ if (!tempList.isEmpty()) {
|
|
|
int[] upldres = executeUploadFees(input, tempList, p);
|
|
|
index += upldres[0];
|
|
|
if (upldres[1] > 0) {
|