|
@@ -10,20 +10,22 @@ import java.math.BigDecimal;
|
|
|
public class SaveAppointmentRequest {
|
|
|
@Setter
|
|
|
private MzyReqrec mzyReqrec;
|
|
|
- private Integer mzyRequestId;
|
|
|
- private BigDecimal totalFee;
|
|
|
- private BigDecimal fundpayAmt;
|
|
|
- private BigDecimal acctpayAmt;
|
|
|
- private BigDecimal couponAmt;
|
|
|
- private BigDecimal cashpayAmt;
|
|
|
-
|
|
|
- public SaveAppointmentRequest(Integer mzyRequestId, BigDecimal totalFee, BigDecimal fundpayAmt, BigDecimal acctpayAmt, BigDecimal couponAmt, BigDecimal cashpayAmt) {
|
|
|
+ private final Integer mzyRequestId;
|
|
|
+ private final BigDecimal totalFee;
|
|
|
+ private final BigDecimal fundpayAmt;
|
|
|
+ private final BigDecimal acctpayAmt;
|
|
|
+ private final BigDecimal couponAmt;
|
|
|
+ private final BigDecimal cashpayAmt;
|
|
|
+ private final String recStaff;
|
|
|
+
|
|
|
+ public SaveAppointmentRequest(Integer mzyRequestId, BigDecimal totalFee, BigDecimal fundpayAmt, BigDecimal acctpayAmt, BigDecimal couponAmt, BigDecimal cashpayAmt, String recStaff) {
|
|
|
this.mzyRequestId = mzyRequestId;
|
|
|
this.totalFee = totalFee;
|
|
|
this.fundpayAmt = fundpayAmt;
|
|
|
this.acctpayAmt = acctpayAmt;
|
|
|
this.couponAmt = couponAmt;
|
|
|
this.cashpayAmt = cashpayAmt;
|
|
|
+ this.recStaff = recStaff;
|
|
|
}
|
|
|
|
|
|
public static class Builder {
|
|
@@ -37,6 +39,7 @@ public class SaveAppointmentRequest {
|
|
|
private String psordnum;
|
|
|
private String agtordnum;
|
|
|
private String apTime;
|
|
|
+ private String recStaff;
|
|
|
|
|
|
|
|
|
public Builder mzyRequestId(Integer mzyRequestId) {
|
|
@@ -89,14 +92,21 @@ public class SaveAppointmentRequest {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ public Builder recStaff(String recStaff) {
|
|
|
+ this.recStaff = recStaff;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
public SaveAppointmentRequest build() {
|
|
|
- SaveAppointmentRequest request = new SaveAppointmentRequest(mzyRequestId, totalFee, fundpayAmt, acctpayAmt, couponAmt, cashpayAmt);
|
|
|
+ SaveAppointmentRequest request = new SaveAppointmentRequest(mzyRequestId, totalFee, fundpayAmt,
|
|
|
+ acctpayAmt, couponAmt, cashpayAmt, recStaff);
|
|
|
MzyReqrec mzyReqrec = new MzyReqrec();
|
|
|
mzyReqrec.setPaymode("WX");
|
|
|
mzyReqrec.setPatientId(this.patientId);
|
|
|
mzyReqrec.setPsordnum(this.psordnum);
|
|
|
mzyReqrec.setAgtordnum(this.agtordnum);
|
|
|
mzyReqrec.setApTime(this.apTime);
|
|
|
+ mzyReqrec.setRecStaff(this.recStaff);
|
|
|
request.setMzyReqrec(mzyReqrec);
|
|
|
return request;
|
|
|
}
|