update 会员发票抬头功能代码

This commit is contained in:
2023-04-13 15:41:06 +08:00
parent f7191823b6
commit 6d4af104d6
2 changed files with 46 additions and 2 deletions

View File

@@ -103,6 +103,49 @@ null在Header中需传Authorization
## 1003 修改会员信息
## 1004 新增会员发票抬头
> 接口地址http://localhost:8080/uniapp/member/createMemberInvoiceTitle
>
> 请求方式POST
>
### 入参
| 字段名 | 类型 | 是否必传 | 备注 |
| ----------- | ------ | -------- | ---------------- |
| titleType | String | Y | 抬头类型1-单位2-个人)|
| name | Number | Y | 单位名称 |
| taxId | Number | Y | 税号 |
| unitAddress | String | N | 单位地址 |
| phoneNumber | String | N | 电话号码 |
| bankName | String | N | 开户银行 |
| bankAccountNumber | String | N | 银行账户 |
### 反参
| 字段名 | 类型 | 是否必传 | 备注 |
| --------- | ------ | -------- | ------ |
| titleId | String | Y | 发票抬头id |
## 1005 查询会员发票抬头列表
> 接口地址http://localhost:8080/uniapp/member/queryMemberInvoiceTitles
>
> 请求方式GET
>
### 入参
null在Header中需传Authorization
### 反参
取obj中的list, 下面是list中对象字段信息
| 字段名 | 类型 | 是否必传 | 备注 |
| --------- | ------ | -------- | ------ |
| titleId | String | Y | 发票抬头id |
| titleName | String | Y | 抬头名称 |
| titleType | String | Y | 抬头类型 (单位或个人) |
## 2001 根据经纬度查询充电站列表(分页排序)

View File

@@ -370,11 +370,12 @@ public class MemberController extends BaseController {
* http://localhost:8080/uniapp/member/createMemberInvoiceTitle
*/
@PostMapping("/createMemberInvoiceTitle")
public RestApiResponse<?> createMemberInvoiceTitle(HttpServletRequest request, CreateInvoiceTitleDTO title) {
public RestApiResponse<?> createMemberInvoiceTitle(HttpServletRequest request, CreateInvoiceTitleDTO dto) {
RestApiResponse<?> response = null;
try {
String memberId = getMemberIdByAuthorization(request);
memberService.createMemberInvoiceTitle(title);
dto.setMemberId(memberId);
memberService.createMemberInvoiceTitle(dto);
response = new RestApiResponse<>();
} catch (BusinessException e) {
logger.error("新增会员发票抬头 error", e);