mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-17 05:39:50 +08:00
update 会员发票抬头功能代码
This commit is contained in:
@@ -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 根据经纬度查询充电站列表(分页排序)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user