feat(customer):新增管理端查询服务人员/机构银行账户信息的相关功能

This commit is contained in:
JIAN
2024-08-30 16:51:41 +08:00
parent b005d1771d
commit 83451f4b12

View File

@@ -2,7 +2,7 @@ package com.jzo2o.customer.controller.operation;
import cn.hutool.core.bean.BeanUtil;
import com.jzo2o.customer.model.dto.response.BankAccountResDTO;
//import com.jzo2o.customer.service.IBankAccountService;
import com.jzo2o.customer.service.IBankAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
@@ -19,14 +19,12 @@ import javax.annotation.Resource;
@RequestMapping("/operation/bank-account")
@Api(tags = "运营端 - 银行账户信息相关接口")
public class BankAccountController {
// @Resource
// private IBankAccountService bankAccountService;
@Resource
private IBankAccountService bankAccountService;
@GetMapping("/{id}")
@ApiOperation("根据服务人员/机构id查询银行账户信息")
public BankAccountResDTO queryByServeProviderId(@PathVariable("id") Long id) {
// return BeanUtil.toBean(bankAccountService.getById(id), BankAccountResDTO.class);
return new BankAccountResDTO();
return BeanUtil.toBean(bankAccountService.getById(id), BankAccountResDTO.class);
}
}
}