商机管理
This commit is contained in:
@@ -117,17 +117,39 @@ public class OaBusinessController extends BaseController {
|
||||
public TableDataInfo<OaProductVo> getBusinessProducts(OaBusinessBo bo) {
|
||||
return iOaBusinessService.getBusinessProducts(bo);
|
||||
}
|
||||
/**
|
||||
* 根据客户ID获取商机信息
|
||||
* 该接口通过客户ID分页查询相关的商机信息,并返回包含商机信息的TableDataInfo对象
|
||||
*
|
||||
* @param customerId 客户ID,用于查询相关的商机信息
|
||||
* @param pageQuery 分页查询参数,包含分页信息和排序信息
|
||||
* @return 返回包含商机信息的TableDataInfo对象
|
||||
*/
|
||||
@GetMapping("/customer/{customerId}")
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.EXPORT)
|
||||
public TableDataInfo<OaBusiness> getBusinessByCustomerId(@PathVariable Long customerId, PageQuery pageQuery){
|
||||
return iOaBusinessService.getBusinessByCustomerId(customerId,pageQuery);
|
||||
}
|
||||
/**
|
||||
* 删除CRM商机
|
||||
* 根据传入的商机ID删除对应的商机记录
|
||||
*
|
||||
* @param businessId 商机ID
|
||||
* @return 操作成功返回R.ok()
|
||||
*/
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public R<Void> deleteBusiness(@RequestParam Long businessId){
|
||||
iOaBusinessService.deleteBusiness(businessId);
|
||||
return R.ok();
|
||||
}
|
||||
/**
|
||||
* 设置跟进业务接口
|
||||
* 通过商机ID设置关注该商机
|
||||
*
|
||||
* @param businessId 商机ID
|
||||
* @return 返回操作结果,成功则返回R.ok()
|
||||
*/
|
||||
@GetMapping("/follow/{businessId}")
|
||||
public R<Void> setFollow(@PathVariable Long businessId){
|
||||
iOaBusinessService.setFollow(businessId);
|
||||
|
||||
Reference in New Issue
Block a user