Browse Source

删除:

1.oper_crm中多余的list_by_customer接口
dev_shibei_match
wxz 4 years ago
parent
commit
f7cc19944d
  1. 1
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/ProjectDetailResultDTO.java
  2. 9
      epmet-module/oper-crm/oper-crm-client/src/main/java/com/epmet/feign/OperCrmOpenFeignClient.java
  3. 5
      epmet-module/oper-crm/oper-crm-client/src/main/java/com/epmet/feign/fallback/OperCrmOpenFeignClientFallback.java
  4. 13
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/controller/CustomerController.java
  5. 7
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/CustomerThirdplatApiServiceService.java
  6. 16
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerThirdplatApiServiceServiceImpl.java

1
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/ProjectDetailResultDTO.java

@ -11,7 +11,6 @@ import java.util.List;
* @dscription * @dscription
* @date 2020/5/11 15:33 * @date 2020/5/11 15:33
*/ */
@NoArgsConstructor
@Data @Data
public class ProjectDetailResultDTO implements Serializable { public class ProjectDetailResultDTO implements Serializable {

9
epmet-module/oper-crm/oper-crm-client/src/main/java/com/epmet/feign/OperCrmOpenFeignClient.java

@ -122,13 +122,4 @@ public interface OperCrmOpenFeignClient {
**/ **/
@GetMapping("/oper/crm/customer/getallsubcustomerids/{customerId}") @GetMapping("/oper/crm/customer/getallsubcustomerids/{customerId}")
Result<List<String>> getAllSubCustomerIds(@PathVariable("customerId") String customerId); Result<List<String>> getAllSubCustomerIds(@PathVariable("customerId") String customerId);
/**
* @Description 根据客户id列出该客户所有的apiService
* @return
* @author wxz
* @date 2021.03.15 15:13
*/
@PostMapping("list-apiservice-by-customerid")
Result<List<ThirdplatApiserviceResultDTO>> listApiServiceByCustomerId(@RequestBody ApiServiceFormDTO form);
} }

5
epmet-module/oper-crm/oper-crm-client/src/main/java/com/epmet/feign/fallback/OperCrmOpenFeignClientFallback.java

@ -95,9 +95,4 @@ public class OperCrmOpenFeignClientFallback implements OperCrmOpenFeignClient {
public Result<List<String>> getAllSubCustomerIds(String customerId) { public Result<List<String>> getAllSubCustomerIds(String customerId) {
return ModuleUtils.feignConError(ServiceConstant.OPER_CRM_SERVER, "getAllSubCustomerIds", customerId); return ModuleUtils.feignConError(ServiceConstant.OPER_CRM_SERVER, "getAllSubCustomerIds", customerId);
} }
@Override
public Result<List<ThirdplatApiserviceResultDTO>> listApiServiceByCustomerId(ApiServiceFormDTO form) {
return ModuleUtils.feignConError(ServiceConstant.OPER_CRM_SERVER, "listApiServiceByCustomerId", form);
}
} }

13
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/controller/CustomerController.java

@ -376,17 +376,4 @@ public class CustomerController {
} }
return new Result<>(); return new Result<>();
} }
/**
* @Description 根据客户id列出该客户所有的apiService
* @return
* @author wxz
* @date 2021.03.15 15:13
*/
@PostMapping("list-apiservice-by-customerid")
public Result<List<ThirdplatApiserviceResultDTO>> listApiServiceByCustomerId(@RequestBody ApiServiceFormDTO form) {
ValidatorUtils.validateEntity(form, ApiServiceFormDTO.GetByCustomerId.class);
String customerId = form.getCustomerId();
return new Result<List<ThirdplatApiserviceResultDTO>>().ok(customerThirdplatApiServiceService.listByCustomerId(customerId));
}
} }

7
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/CustomerThirdplatApiServiceService.java

@ -15,11 +15,4 @@ public interface CustomerThirdplatApiServiceService {
*/ */
ThirdplatApiserviceResultDTO getByCustomerId(String customerId); ThirdplatApiserviceResultDTO getByCustomerId(String customerId);
/**
* 根据客户id列出第三方平台列表
* @param customerId
* @return
*/
List<ThirdplatApiserviceResultDTO> listByCustomerId(String customerId);
} }

16
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerThirdplatApiServiceServiceImpl.java

@ -25,10 +25,6 @@ public class CustomerThirdplatApiServiceServiceImpl implements CustomerThirdplat
@Autowired @Autowired
private CustomerThirdplatApiserviceDao thirdplatApiserviceDao; private CustomerThirdplatApiserviceDao thirdplatApiserviceDao;
@Autowired
private RedisTemplate<String, ThirdplatApiserviceResultDTO> tpasRedisTemplate;
@Override @Override
public ThirdplatApiserviceResultDTO getByCustomerId(String customerId) { public ThirdplatApiserviceResultDTO getByCustomerId(String customerId) {
ThirdplatApiserviceResultDTO apiService = null; ThirdplatApiserviceResultDTO apiService = null;
@ -46,16 +42,4 @@ public class CustomerThirdplatApiServiceServiceImpl implements CustomerThirdplat
return apiService; return apiService;
} }
@Override
public List<ThirdplatApiserviceResultDTO> listByCustomerId(String customerId) {
List<ThirdplatApiserviceResultDTO> apiServices = tpasRedisTemplate.opsForList().range(RedisKeys.listCustomerApiServiceListKey(customerId), 0, -1);
if (!CollectionUtils.isEmpty(apiServices)) {
return apiServices;
}
apiServices = thirdplatApiserviceDao.listByCustomerId(customerId);
tpasRedisTemplate.opsForList().rightPushAll(RedisKeys.listCustomerApiServiceListKey(customerId), apiServices);
return apiServices;
}
} }

Loading…
Cancel
Save