瀏覽代碼

no message

FengChaoYu 1 天之前
父節點
當前提交
eb5df21d19

+ 2 - 2
mall-server-api/src/main/java/com/gree/mall/manager/controller/member/UserCompanyCreditController.java

@@ -90,8 +90,8 @@ public class UserCompanyCreditController {
     @PostMapping("/repay")
     @ApiOperation(value = "恢复商户授信额度")
     public ResponseHelper repay(
-            @ApiParam(value = "账单id(不传就记当期还款)") @RequestParam(required = false) String billId,
-            @ApiParam(value = "授信记录id(账单id不传,此必传)") @RequestParam(required = false) String userCompanyCreditId,
+            @ApiParam(value = "账单id") @RequestParam String billId,
+            @ApiParam(value = "授信记录id(作废)") @RequestParam(required = false) String userCompanyCreditId,
             @ApiParam(value = "还款金额", required = true) @RequestParam BigDecimal amount) throws Exception {
         Lock obtain = redisLockRegistry.obtain(Constant.RedisPrefix.LOCK_COMMON + billId);
         if(!obtain.tryLock(10, TimeUnit.SECONDS)){

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserCompanyCreditLogic.java

@@ -79,7 +79,7 @@ public class UserCompanyCreditLogic {
             throw new RemoteServiceException("请使用商户账号");
         }
 
-        if (StringUtils.isBlank(billId) && StringUtils.isBlank(userCompanyCreditId)) {
+        if (StringUtils.isBlank(billId)) {
             throw new RemoteServiceException("传参异常");
         }