|
|
@ -108,8 +108,20 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
@ApiOperation(value="顾客支付信息管理-编辑", notes="顾客支付信息管理-编辑") |
|
|
|
@ApiOperation(value="顾客支付信息管理-编辑", notes="顾客支付信息管理-编辑") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
@PutMapping(value = "/edit") |
|
|
|
public Result<?> edit(@RequestBody CustomerPayment customerPayment) { |
|
|
|
public Result<?> edit(@RequestBody CustomerPayment customerPayment) { |
|
|
|
customerPaymentService.updateById(customerPayment); |
|
|
|
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
if(customerPayment.getPaymentType().equals("2")){ |
|
|
|
|
|
|
|
BankUtil bankUtil = new BankUtil(); |
|
|
|
|
|
|
|
if (bankUtil.checkBankCard(customerPayment.getAccountNo())){ |
|
|
|
|
|
|
|
customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo())); |
|
|
|
|
|
|
|
customerPaymentService.updateById(customerPayment); |
|
|
|
|
|
|
|
return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo())); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
return Result.error("请检查银行卡号"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
customerPaymentService.updateById(customerPayment); |
|
|
|
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|