修改 sdk biz_query 方法的bug
authorTang Cheng <cheng.tang@supwisdom.com>
Thu, 7 Nov 2019 09:12:30 +0000 (17:12 +0800)
committerTang Cheng <cheng.tang@supwisdom.com>
Wed, 4 Dec 2019 01:33:30 +0000 (09:33 +0800)
payapi-sdk/src/main/java/com/supwisdom/dlpay/paysdk/proxy/UserProxy.java
payapi/src/main/java/com/supwisdom/dlpay/api/domain/TTransactionMain.java

index e761f70..f288a14 100644 (file)
@@ -2,6 +2,7 @@ package com.supwisdom.dlpay.paysdk.proxy;
 
 import com.supwisdom.dlpay.api.bean.*;
 import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
@@ -37,6 +38,6 @@ public interface UserProxy {
   @PostMapping("/api/user/biz_refund")
   CardBizResponse bizRefund(String refno);
 
-  @PostMapping("/api/user/biz_query")
+  @GetMapping("/api/user/biz_query")
   CardBizResponse bizQuery(String refno);
 }
index 5987d59..f81af48 100644 (file)
@@ -17,7 +17,7 @@ import static javax.persistence.FetchType.LAZY;
     indexes = {@Index(name = "transmain_accdate", columnList = "accdate"),
         @Index(name = "transmain_status", columnList = "status"),
         @Index(name = "transmain_tenantid_idx", columnList = "tenantid"),
-        @Index(name = "transmain_outtrade", unique = true, columnList = "outid, outtradeno")})
+        @Index(name = "transmain_outtrade", unique = true, columnList = "outid, outtradeno, tenantid")})
 @SequenceGenerator(name = "seq_refno", allocationSize = 100)
 public class TTransactionMain {
   @Id