顾客支付信息管理bug修改

zhc4dev
wangjiadong 2 years ago
parent 5f07dc2b9d
commit 77a436836e
  1. 12
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java

@ -108,9 +108,21 @@ 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) {
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); customerPaymentService.updateById(customerPayment);
return Result.OK("编辑成功!"); return Result.OK("编辑成功!");
} }
}
/** /**
* 通过id删除 * 通过id删除

Loading…
Cancel
Save