Browse Source

预交金额去住院证押金

lihong 2 months ago
parent
commit
60e4c67b13

+ 9 - 2
src/main/java/thyyxxk/webserver/controller/zygl/AdvancePaymentDealController.java

@@ -11,13 +11,14 @@ import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.constants.Constants;
 import thyyxxk.webserver.constants.YesOrNo;
 import thyyxxk.webserver.constants.ZyDepositFileStatusEnum;
+import thyyxxk.webserver.dao.his.zygl.MzZyReqDao;
 import thyyxxk.webserver.entity.ResultVo;
 import thyyxxk.webserver.entity.inpatient.ZyActpatient;
 import thyyxxk.webserver.entity.inpatient.charge.MisPosVo;
 import thyyxxk.webserver.entity.inpatient.charge.PatientParam;
 import thyyxxk.webserver.entity.inpatient.charge.ZyDepositFile;
+import thyyxxk.webserver.entity.medicaladvice.medicamanage.MzZyReq;
 import thyyxxk.webserver.service.inpatient.charge.TransactionService;
-import thyyxxk.webserver.service.zygl.AdmissionRegistrationService;
 import thyyxxk.webserver.service.zygl.ZyActpatientService;
 import thyyxxk.webserver.service.zygl.ZyDepositFileService;
 import thyyxxk.webserver.utils.AssertUtil;
@@ -46,7 +47,7 @@ public class AdvancePaymentDealController {
     @Resource
     private ZyDepositFileService zyDepositFileService;
     @Resource
-    private AdmissionRegistrationService admissionRegistrationService;
+    private MzZyReqDao mzZyReqDao;
     @Resource
     private TransactionService transactionService;
 
@@ -56,6 +57,12 @@ public class AdvancePaymentDealController {
       return ResultVoUtil.success(zyActpatient);
     }
 
+    @PostMapping("/queryLastMzZyReq")
+    public ResultVo<MzZyReq> queryLastMzZyReq(@RequestBody PatientParam param){
+        MzZyReq zyReq = mzZyReqDao.selectLastMzZyReq(param.getInpatientNo());
+        return ResultVoUtil.success(zyReq);
+    }
+
     @PostMapping("/queryAdvancePaymentPatientList")
     public ResultVo<List<ZyActpatient>> queryAdvancePaymentPatientList(@RequestBody PatientParam param){
         List<ZyActpatient> zyActpatientList = zyActpatientService.queryAdvancePaymentPatientList(param);

+ 5 - 0
src/main/java/thyyxxk/webserver/entity/medicaladvice/medicamanage/MzZyReq.java

@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.Data;
 
 import java.io.Serializable;
+import java.math.BigDecimal;
 import java.util.Date;
 
 /**
@@ -116,5 +117,9 @@ public class MzZyReq implements Serializable {
 	 * $column.comments
 	 */
 	private String bedNo;
+	/**
+	 * 押金
+	 */
+	private BigDecimal deposit;
 
 }