Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import cn.cordys.common.utils.ConditionFilterUtils;
import cn.cordys.context.OrganizationContext;
import cn.cordys.crm.follow.domain.FollowUpPlan;
import cn.cordys.crm.follow.dto.request.FollowUpPlanAddRequest;
import cn.cordys.crm.follow.dto.request.FollowUpPlanStatusRequest;
import cn.cordys.crm.follow.dto.request.FollowUpPlanUpdateRequest;
import cn.cordys.crm.follow.dto.request.PlanHomePageRequest;
Expand Down Expand Up @@ -88,9 +89,15 @@ public FollowUpPlanDetailResponse get(@PathVariable String id) {
}

@PostMapping("/update")
@Operation(summary = "更新线索跟进计划")
@Operation(summary = "更新跟进计划")
public FollowUpPlan update(@Validated @RequestBody FollowUpPlanUpdateRequest request) {
followUpPlanService.checkPlanPermission(request.getId(), OrganizationContext.getOrganizationId());
return followUpPlanService.update(request, SessionUtils.getUserId(), OrganizationContext.getOrganizationId());
}

@PostMapping("/add")
@Operation(summary = "添加跟进计划")
public FollowUpPlan add(@Validated @RequestBody FollowUpPlanAddRequest request) {
return followUpPlanService.add(request, SessionUtils.getUserId(), OrganizationContext.getOrganizationId());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import cn.cordys.common.utils.ConditionFilterUtils;
import cn.cordys.context.OrganizationContext;
import cn.cordys.crm.follow.domain.FollowUpRecord;
import cn.cordys.crm.follow.dto.request.FollowUpRecordAddRequest;
import cn.cordys.crm.follow.dto.request.FollowUpRecordUpdateRequest;
import cn.cordys.crm.follow.dto.request.RecordHomePageRequest;
import cn.cordys.crm.follow.dto.response.FollowUpRecordDetailResponse;
Expand Down Expand Up @@ -79,8 +80,14 @@ public FollowUpRecordDetailResponse get(@PathVariable String id) {
return followUpRecordService.get(id, OrganizationContext.getOrganizationId());
}

@PostMapping("/add")
@Operation(summary = "添加跟进记录")
public FollowUpRecord add(@Validated @RequestBody FollowUpRecordAddRequest request) {
return followUpRecordService.add(request, SessionUtils.getUserId(), OrganizationContext.getOrganizationId());
}

@PostMapping("/update")
@Operation(summary = "更新线索跟进记录")
@Operation(summary = "更新跟进记录")
public FollowUpRecord update(@Validated @RequestBody FollowUpRecordUpdateRequest request) {
followUpRecordService.checkRecordPermission(request.getId(), OrganizationContext.getOrganizationId());
return followUpRecordService.update(request, SessionUtils.getUserId(), OrganizationContext.getOrganizationId());
Expand Down
Loading