Ver Fonte

费用接收重算后刷新患者信息

lighter há 2 anos atrás
pai
commit
f6bca617ca

+ 1 - 1
src/main/java/thyyxxk/webserver/controller/inpatient/PatientController.java

@@ -97,7 +97,7 @@ public class PatientController {
     }
 
     @PostMapping("/receiveAndRecalculateCost")
-    public ResultVo<String> receiveAndRecalculateCost(@RequestBody Patient p) {
+    public ResultVo<Patient> receiveAndRecalculateCost(@RequestBody Patient p) {
         return service.receiveAndRecalculateCost(p);
     }
 }

+ 2 - 2
src/main/java/thyyxxk/webserver/service/inpatient/PatientService.java

@@ -468,7 +468,7 @@ public class PatientService {
         return ResultVoUtil.success(String.valueOf(orderNo));
     }
 
-    public ResultVo<String> receiveAndRecalculateCost(Patient p) {
+    public ResultVo<Patient> receiveAndRecalculateCost(Patient p) {
         String zyh = p.getInpatientNo();
         int times = p.getAdmissTimes();
         int infant = zyh.startsWith("$") ? 1 : 0;
@@ -485,6 +485,6 @@ public class PatientService {
         dao.zyCnglFyjsListYz(zyh, times);
         dao.updateZyDetailCharge(zyh, times, ledger);
         dao.zyCalcDetailAgainNew(zyh, times, ledger);
-        return ResultVoUtil.success("费用接收重算成功。");
+        return getPatientInfo(zyh);
     }
 }