| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.google.common.collect.Lists; |
| | | import com.ruoyi.basic.mapper.CustomerFollowUpFileMapper; |
| | | import com.ruoyi.basic.pojo.CustomerFollowUp; |
| | | import com.ruoyi.basic.pojo.CustomerFollowUpFile; |
| | | import com.ruoyi.basic.service.CustomerFollowUpFileService; |
| | | import com.ruoyi.basic.service.CustomerFollowUpService; |
| | |
| | | * @since 2026/03/04 14:53 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class CustomerFollowUpFileServiceImpl extends ServiceImpl<CustomerFollowUpFileMapper, CustomerFollowUpFile> implements CustomerFollowUpFileService { |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public SimpleFileVo getSimpleFileVoById(Long id) { |
| | | if(id == null){ |
| | | return null; |
| | | } |
| | | List<CustomerFollowUpFile> followUpFilesByIds = customerFollowUpService.getFollowUpFilesByIds(Lists.newArrayList(id)); |
| | | if(CollUtil.isEmpty(followUpFilesByIds)){ |
| | | return null; |
| | | } |
| | | return SimpleFileVo.convert(followUpFilesByIds.get(0)); |
| | | } |
| | | } |