商机管理

This commit is contained in:
Alright-del
2025-03-15 18:40:54 +08:00
parent d617c6a8a8
commit 6151da6057
7 changed files with 88 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ package com.ruoyi.oa.controller;
import java.util.List;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import com.ruoyi.oa.domain.OaBusiness;
import com.ruoyi.oa.domain.vo.OaProductVo;
import lombok.RequiredArgsConstructor;
import javax.servlet.http.HttpServletResponse;
@@ -117,4 +117,21 @@ public class OaBusinessController extends BaseController {
public TableDataInfo<OaProductVo> getBusinessProducts(OaBusinessBo bo) {
return iOaBusinessService.getBusinessProducts(bo);
}
@GetMapping("/customer/{customerId}")
@Log(title = "CRM 商机", businessType = BusinessType.EXPORT)
public TableDataInfo<OaBusiness> getBusinessByCustomerId(@PathVariable Long customerId, PageQuery pageQuery){
return iOaBusinessService.getBusinessByCustomerId(customerId,pageQuery);
}
@Log(title = "CRM 商机", businessType = BusinessType.DELETE)
@DeleteMapping
public R<Void> deleteBusiness(@RequestParam Long businessId){
iOaBusinessService.deleteBusiness(businessId);
return R.ok();
}
@GetMapping("/follow/{businessId}")
public R<Void> setFollow(@PathVariable Long businessId){
iOaBusinessService.setFollow(businessId);
return R.ok();
}
}