Commit a1ab2b6a4b169919d0eba2a80b6acf68de4cddff
1 parent
3d2af746
新增sdk接口
Showing
3 changed files
with
56 additions
and
13 deletions
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/db/MemberVehicle.java
0 → 100644
1 | +package cn.fw.valhalla.domain.db; | |
2 | + | |
3 | +import cn.fw.common.data.entity.BaseAuditableTimeEntity; | |
4 | +import cn.fw.valhalla.sdk.enums.CusTypeEnum; | |
5 | +import lombok.Data; | |
6 | + | |
7 | +/** | |
8 | + * 会员车辆 | |
9 | + * <p> | |
10 | + * create at 2022-06-01 | |
11 | + * | |
12 | + * @author xiatian | |
13 | + */ | |
14 | +@Data | |
15 | +public class MemberVehicle extends BaseAuditableTimeEntity<MemberVehicle, Long> { | |
16 | + /** | |
17 | + * 会员id | |
18 | + */ | |
19 | + private Long memberId; | |
20 | + /** | |
21 | + * 车架号 | |
22 | + */ | |
23 | + private String vin; | |
24 | + /** | |
25 | + * 车辆类型 | |
26 | + */ | |
27 | + private CusTypeEnum cusType; | |
28 | + /** | |
29 | + * 是否有效 | |
30 | + */ | |
31 | + private Boolean yn; | |
32 | +} | ... | ... |
fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/api/CustomerApiService.java
... | ... | @@ -60,12 +60,23 @@ public interface CustomerApiService { |
60 | 60 | /** |
61 | 61 | * 通过车架号查询档案 |
62 | 62 | * |
63 | - * @param plateNo | |
63 | + * @param frameNo | |
64 | 64 | * @param groupId |
65 | 65 | * @return |
66 | 66 | */ |
67 | 67 | @GetMapping("/query/by/frameNo") |
68 | - Message<CustomerInfoDto> queryByFrameNo(@RequestParam("frameNo") String plateNo, @RequestParam("groupId") Long groupId); | |
68 | + Message<CustomerInfoDto> queryByFrameNo(@RequestParam("frameNo") String frameNo, @RequestParam("groupId") Long groupId); | |
69 | + | |
70 | + /** | |
71 | + * 查询车辆在门店的专属顾问 | |
72 | + * | |
73 | + * @param frameNo 车架号 | |
74 | + * @param shopId 门店id | |
75 | + * @return 专属顾问 | |
76 | + */ | |
77 | + @GetMapping("/query/adviser") | |
78 | + Message<Long> queryAdviser(@RequestParam("frameNo") String frameNo, @RequestParam("shopId") Long shopId); | |
79 | + | |
69 | 80 | |
70 | 81 | /** |
71 | 82 | * 批量查询客户档案 | ... | ... |
fw-valhalla-server/src/main/java/cn/fw/valhalla/controller/api/CustomerApiServiceImpl.java
... | ... | @@ -5,15 +5,9 @@ import cn.fw.data.base.domain.common.Message; |
5 | 5 | import cn.fw.valhalla.domain.dto.CustomerDetailDto; |
6 | 6 | import cn.fw.valhalla.domain.vo.customer.CarArchiveVO; |
7 | 7 | import cn.fw.valhalla.sdk.api.CustomerApiService; |
8 | -import cn.fw.valhalla.sdk.param.ChangeAdviserReq; | |
9 | -import cn.fw.valhalla.sdk.param.ChangePlateNoReq; | |
10 | -import cn.fw.valhalla.sdk.param.ChangeSpecCodeReq; | |
11 | -import cn.fw.valhalla.sdk.param.CustomerParams; | |
8 | +import cn.fw.valhalla.sdk.param.*; | |
12 | 9 | import cn.fw.valhalla.sdk.result.*; |
13 | -import cn.fw.valhalla.service.bus.cust.ContactBizService; | |
14 | -import cn.fw.valhalla.service.bus.cust.CustomerBizService; | |
15 | -import cn.fw.valhalla.service.bus.cust.CustomerChangeBizService; | |
16 | -import cn.fw.valhalla.service.bus.cust.PickUpCustomerService; | |
10 | +import cn.fw.valhalla.service.bus.cust.*; | |
17 | 11 | import lombok.extern.slf4j.Slf4j; |
18 | 12 | import org.apache.commons.lang.StringUtils; |
19 | 13 | import org.springframework.beans.BeanUtils; |
... | ... | @@ -21,9 +15,8 @@ import org.springframework.beans.factory.annotation.Autowired; |
21 | 15 | import org.springframework.web.bind.annotation.*; |
22 | 16 | |
23 | 17 | import javax.validation.Valid; |
24 | -import java.util.ArrayList; | |
25 | -import java.util.List; | |
26 | -import java.util.Objects; | |
18 | + | |
19 | +import java.util.*; | |
27 | 20 | |
28 | 21 | import static cn.fw.common.businessvalidator.Validator.BV; |
29 | 22 | import static cn.fw.common.web.util.ResultBuilder.success; |
... | ... | @@ -129,6 +122,13 @@ public class CustomerApiServiceImpl implements CustomerApiService { |
129 | 122 | return success(dto); |
130 | 123 | } |
131 | 124 | |
125 | + @Override | |
126 | + @GetMapping("/query/adviser") | |
127 | + @ControllerMethod("查询车辆在门店的专属顾问") | |
128 | + public Message<Long> queryAdviser(@RequestParam("frameNo") final String frameNo, @RequestParam("shopId") final Long shopId) { | |
129 | + return success(null); | |
130 | + } | |
131 | + | |
132 | 132 | @GetMapping("/query/batch") |
133 | 133 | @Override |
134 | 134 | @ControllerMethod("批量查询客户档案") | ... | ... |