Commit 6296398b093f6285f0dfef1445e69259cf3606c4
1 parent
5752fbcf
fix bug
Showing
4 changed files
with
28 additions
and
46 deletions
fw-valhalla-rpc/src/main/java/cn/fw/valhalla/rpc/cas/CasRpcService.java
1 | 1 | package cn.fw.valhalla.rpc.cas; |
2 | 2 | |
3 | 3 | import cn.fw.cas.sdk.api.CasApiService; |
4 | -import cn.fw.cas.sdk.result.DutySubstituteDto; | |
5 | 4 | import cn.fw.data.base.domain.common.Message; |
6 | -import cn.fw.valhalla.rpc.cas.dto.SubstituteDTO; | |
7 | 5 | import lombok.extern.slf4j.Slf4j; |
8 | -import org.springframework.beans.BeanUtils; | |
9 | 6 | import org.springframework.stereotype.Service; |
10 | 7 | |
11 | 8 | import java.util.Objects; |
... | ... | @@ -25,33 +22,6 @@ public class CasRpcService { |
25 | 22 | this.casApiService = casApiService; |
26 | 23 | } |
27 | 24 | |
28 | - /** | |
29 | - * 查询服务顾问代班人 | |
30 | - * | |
31 | - * @param shopId | |
32 | - * @param userId | |
33 | - * @return | |
34 | - */ | |
35 | - public SubstituteDTO getSubstitute(Long shopId, Long userId) { | |
36 | - try { | |
37 | - Message<DutySubstituteDto> msg = casApiService.getAdvisorSubstitute(shopId, userId); | |
38 | - log.info("调用售后查询服务顾问代班人接口状态: {}", msg.isSuccess()); | |
39 | - if (!msg.isSuccess()) { | |
40 | - return null; | |
41 | - } | |
42 | - DutySubstituteDto data = msg.getData(); | |
43 | - log.info("查询服务顾问代班人 data[{}]", data); | |
44 | - if (Objects.isNull(data)) { | |
45 | - return null; | |
46 | - } | |
47 | - SubstituteDTO dto = new SubstituteDTO(); | |
48 | - BeanUtils.copyProperties(data, dto); | |
49 | - return dto; | |
50 | - } catch (Exception e) { | |
51 | - log.error("查询服务顾问代班人失败", e); | |
52 | - return null; | |
53 | - } | |
54 | - } | |
55 | 25 | |
56 | 26 | public int getPullinTimes(final Long groupId, final Long customerId) { |
57 | 27 | try { | ... | ... |
fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/result/CustomerInfoDto.java
... | ... | @@ -158,4 +158,31 @@ public class CustomerInfoDto { |
158 | 158 | * 贷款到期时间 |
159 | 159 | */ |
160 | 160 | private Date expires; |
161 | + /** | |
162 | + * 车主工作单位 | |
163 | + */ | |
164 | + private String contactCompanyName; | |
165 | + /** | |
166 | + * 车主联系地址-地区-编码 | |
167 | + */ | |
168 | + private String contactAreaCode; | |
169 | + /** | |
170 | + * 车主联系地址-地区-名称 | |
171 | + */ | |
172 | + private String contactAreaName; | |
173 | + /** | |
174 | + * 车主联系地址-详情 | |
175 | + */ | |
176 | + private String contactAddress; | |
177 | + /** | |
178 | + * 车主联系地址-详情-经度 | |
179 | + */ | |
180 | + private String contactAddressLng; | |
181 | + /** | |
182 | + * 车主联系地址-详情-纬度 | |
183 | + */ | |
184 | + private String contactAddressLat; | |
185 | + | |
186 | + | |
187 | + | |
161 | 188 | } |
162 | 189 | \ No newline at end of file | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerBizService.java
... | ... | @@ -338,16 +338,7 @@ public class CustomerBizService extends AbstractCustomerService { |
338 | 338 | if (Objects.isNull(shop)) { |
339 | 339 | return new ReceptionResultDto(false, "服务顾问服务站信息不正确"); |
340 | 340 | } |
341 | - if (Objects.nonNull(customer.getAdviserId())) { | |
342 | - if (customer.getShopId().equals(shop.getId())) { | |
343 | - boolean canReception = userId.equals(customer.getAdviserId()); | |
344 | - SubstituteDTO substitute = casRpcService.getSubstitute(customer.getShopId(), customer.getAdviserId()); | |
345 | - if (Objects.nonNull(substitute)) { | |
346 | - canReception = canReception || userId.equals(substitute.getSubstituteId()); | |
347 | - } | |
348 | - return new ReceptionResultDto(canReception, canReception ? "" : "无法接待其他人的客户"); | |
349 | - } | |
350 | - } | |
341 | + | |
351 | 342 | boolean bool = affiliationRecordService.count(Wrappers.<AffiliationRecord>lambdaQuery() |
352 | 343 | .eq(AffiliationRecord::getType, CustomerChangeTypeEnum.DEFEAT) |
353 | 344 | .eq(AffiliationRecord::getOriginUserId, userId) | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/PickUpCustomerService.java
... | ... | @@ -135,12 +135,6 @@ public class PickUpCustomerService extends AbstractCustomerService { |
135 | 135 | UserInfoDTO user = userService.user(customer.getAdviserId()); |
136 | 136 | String userName = Optional.ofNullable(user).map(UserInfoDTO::getUserName).orElse(""); |
137 | 137 | detailVO.setAdviserName(userName); |
138 | - SubstituteDTO substitute = casRpcService.getSubstitute(customer.getShopId(), customer.getAdviserId()); | |
139 | - if (Objects.nonNull(substitute)) { | |
140 | - detailVO.setSubstituteId(substitute.getSubstituteId()); | |
141 | - detailVO.setSubstitute(substitute.getSubstitute()); | |
142 | - canReception = userId.equals(customer.getAdviserId()) || userId.equals(substitute.getSubstituteId()); | |
143 | - } | |
144 | 138 | } |
145 | 139 | detailVO.setCanReception(canReception); |
146 | 140 | return detailVO; | ... | ... |