| | |
| | | */ |
| | | package me.zhengjie.modules.system.service.impl; |
| | | |
| | | import me.zhengjie.modules.business.service.BusinessPlanService; |
| | | import me.zhengjie.modules.business.service.dto.BusinessPlanDto; |
| | | import me.zhengjie.modules.constant.Constant; |
| | | import me.zhengjie.modules.quartz.service.impl.WeComServiceImpl; |
| | | import me.zhengjie.modules.system.domain.CustomerResources; |
| | |
| | | private final UserRepository userRepository; |
| | | private final WeComServiceImpl weComService; |
| | | private final CustomerResourcesUserRepository customerResourcesUserRepository; |
| | | private final BusinessPlanService businessPlanService; |
| | | |
| | | @Override |
| | | public Map<String, Object> queryAll(CustomerResourcesQueryCriteria criteria, Pageable pageable) { |
| | |
| | | public CustomerResourcesDto apply(CustomerResources t) { |
| | | // 将实体类转换成DTO |
| | | CustomerResourcesDto customerResourcesDto = customerResourcesMapper.toDto(t); |
| | | |
| | | // 获取营业计划 |
| | | BusinessPlanDto businessPlanDto = businessPlanService.findById(customerResourcesDto.getBusinessPlanId()); |
| | | customerResourcesDto.setBusinessPlanContent(businessPlanDto.getBusinessContent()); |
| | | |
| | | // 返回处理好的DTO |
| | | return customerResourcesDto; |