| | |
| | | import cn.iocoder.yudao.module.crm.service.contact.CrmContactService; |
| | | import cn.iocoder.yudao.module.crm.service.followup.CrmFollowUpRecordService; |
| | | import cn.iocoder.yudao.module.crm.service.permission.CrmPermissionService; |
| | | import cn.iocoder.yudao.module.system.api.storage.StorageAttachmentApi; |
| | | import cn.iocoder.yudao.module.system.api.user.AdminUserApi; |
| | | import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | |
| | | @Resource |
| | | private AdminUserApi adminUserApi; |
| | | @Resource |
| | | private StorageAttachmentApi storageAttachmentApi; |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建跟进记录") |
| | |
| | | getLoginUserId(), CrmPermissionLevelEnum.READ)) { |
| | | throw exception(CRM_PERMISSION_DENIED, CrmBizTypeEnum.getNameByType(followUpRecord.getBizType())); |
| | | } |
| | | return success(BeanUtils.toBean(followUpRecord, CrmFollowUpRecordRespVO.class)); |
| | | CrmFollowUpRecordRespVO respVO = BeanUtils.toBean(followUpRecord, CrmFollowUpRecordRespVO.class); |
| | | respVO.setAttachmentList(storageAttachmentApi.listAttachments("crm_follow_up_record", id)); |
| | | return success(respVO); |
| | | } |
| | | |
| | | @GetMapping("/page") |