商机管理
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user