Browse Source

准备做给体检的接口

lighter 1 year ago
parent
commit
ae74b9ee41

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/entity/wxapi/WxPyQrcdPrm.java

@@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull;
  */
 @Data
 public class WxPyQrcdPrm {
-    @Min(value = 0, message = "总金额需要大于零。")
+    @Min(value = 0, message = "总金额需要大于零(单位:分)。")
     private Integer totalAmt;
     @NotBlank(message = "门诊id号不能为空。")
     private String patientId;

+ 4 - 0
src/main/java/thyyxxk/wxservice_server/service/WxPayNotifyService.java

@@ -35,6 +35,10 @@ public class WxPayNotifyService {
         String tradeNo = transaction.getOutTradeNo();
         WxPayOrder order = dao.selectOrderByTradeNo(tradeNo);
         Transaction.TradeStateEnum tradeState = order.getTradeState();
+        if (order.getOrderType() == OrderType.INSPECTIONS.getCode()) {
+            // todo 通知体检
+        }
+
         if (tradeState == Transaction.TradeStateEnum.SUCCESS ||
                 tradeState == Transaction.TradeStateEnum.REFUND) {
             log.info("订单号【{}】已解密过,无需继续解密。", tradeNo);