|
|
@@ -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)){
|