|
@@ -107,7 +107,7 @@ public class SavePayResultService {
|
|
|
while (TradeVectorUtil.tradeNoBeingRefund(tradeNo)) {
|
|
|
TimeUnit.SECONDS.sleep(3);
|
|
|
}
|
|
|
- if (dao.alreadyPayed(tradeNo) == 1) {
|
|
|
+ if (dao.alreadyPayed(tradeNo) > 0) {
|
|
|
log.info("订单号:{} 的门诊缴费信息已保存,无需再次保存。", tradeNo);
|
|
|
updateAppletHisChargeplStatus(hisOrdNum, tradeNo);
|
|
|
return ResultVoUtil.success("保存门诊缴费信息成功。");
|
|
@@ -139,7 +139,7 @@ public class SavePayResultService {
|
|
|
healthCardService.reportHisData(order.getPatientId(), "0101051", null, cardCostTypes);
|
|
|
return ResultVoUtil.success("保存门诊缴费信息成功。");
|
|
|
}
|
|
|
- if (dao.alreadyPayed(tradeNo) == 1) {
|
|
|
+ if (dao.alreadyPayed(tradeNo) > 0) {
|
|
|
updateAppletHisChargeplStatus(hisOrdNum, tradeNo);
|
|
|
return ResultVoUtil.success("保存门诊缴费信息成功。");
|
|
|
}
|