CRM后端六模块代码生成完毕
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessVo;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessBo;
|
||||
import com.ruoyi.oa.service.IOaBusinessService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 商机
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/business")
|
||||
public class OaBusinessController extends BaseController {
|
||||
|
||||
private final IOaBusinessService iOaBusinessService;
|
||||
|
||||
/**
|
||||
* 查询CRM 商机列表
|
||||
*/
|
||||
@SaCheckPermission("oa:business:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaBusinessVo> list(OaBusinessBo bo, PageQuery pageQuery) {
|
||||
return iOaBusinessService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 商机列表
|
||||
*/
|
||||
@SaCheckPermission("oa:business:export")
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaBusinessBo bo, HttpServletResponse response) {
|
||||
List<OaBusinessVo> list = iOaBusinessService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 商机", OaBusinessVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 商机详细信息
|
||||
*
|
||||
* @param businessId 主键
|
||||
*/
|
||||
@SaCheckPermission("oa:business:query")
|
||||
@GetMapping("/{businessId}")
|
||||
public R<OaBusinessVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long businessId) {
|
||||
return R.ok(iOaBusinessService.queryById(businessId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 商机
|
||||
*/
|
||||
@SaCheckPermission("oa:business:add")
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaBusinessBo bo) {
|
||||
return toAjax(iOaBusinessService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 商机
|
||||
*/
|
||||
@SaCheckPermission("oa:business:edit")
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaBusinessBo bo) {
|
||||
return toAjax(iOaBusinessService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 商机
|
||||
*
|
||||
* @param businessIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("oa:business:remove")
|
||||
@Log(title = "CRM 商机", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{businessIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] businessIds) {
|
||||
return toAjax(iOaBusinessService.deleteWithValidByIds(Arrays.asList(businessIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessProductVo;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessProductBo;
|
||||
import com.ruoyi.oa.service.IOaBusinessProductService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/businessProduct")
|
||||
public class OaBusinessProductController extends BaseController {
|
||||
|
||||
private final IOaBusinessProductService iOaBusinessProductService;
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联列表
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaBusinessProductVo> list(OaBusinessProductBo bo, PageQuery pageQuery) {
|
||||
return iOaBusinessProductService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 商机产品关联列表
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:export")
|
||||
@Log(title = "CRM 商机产品关联", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaBusinessProductBo bo, HttpServletResponse response) {
|
||||
List<OaBusinessProductVo> list = iOaBusinessProductService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 商机产品关联", OaBusinessProductVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 商机产品关联详细信息
|
||||
*
|
||||
* @param businessProductId 主键
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:query")
|
||||
@GetMapping("/{businessProductId}")
|
||||
public R<OaBusinessProductVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long businessProductId) {
|
||||
return R.ok(iOaBusinessProductService.queryById(businessProductId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 商机产品关联
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:add")
|
||||
@Log(title = "CRM 商机产品关联", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaBusinessProductBo bo) {
|
||||
return toAjax(iOaBusinessProductService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 商机产品关联
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:edit")
|
||||
@Log(title = "CRM 商机产品关联", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaBusinessProductBo bo) {
|
||||
return toAjax(iOaBusinessProductService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 商机产品关联
|
||||
*
|
||||
* @param businessProductIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("oa:businessProduct:remove")
|
||||
@Log(title = "CRM 商机产品关联", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{businessProductIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] businessProductIds) {
|
||||
return toAjax(iOaBusinessProductService.deleteWithValidByIds(Arrays.asList(businessProductIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaClueVo;
|
||||
import com.ruoyi.oa.domain.bo.OaClueBo;
|
||||
import com.ruoyi.oa.service.IOaClueService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 线索
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/clue")
|
||||
public class OaClueController extends BaseController {
|
||||
|
||||
private final IOaClueService iOaClueService;
|
||||
|
||||
/**
|
||||
* 查询CRM 线索列表
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaClueVo> list(OaClueBo bo, PageQuery pageQuery) {
|
||||
return iOaClueService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 线索列表
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:export")
|
||||
@Log(title = "CRM 线索", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaClueBo bo, HttpServletResponse response) {
|
||||
List<OaClueVo> list = iOaClueService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 线索", OaClueVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 线索详细信息
|
||||
*
|
||||
* @param clueId 主键
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:query")
|
||||
@GetMapping("/{clueId}")
|
||||
public R<OaClueVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long clueId) {
|
||||
return R.ok(iOaClueService.queryById(clueId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 线索
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:add")
|
||||
@Log(title = "CRM 线索", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaClueBo bo) {
|
||||
return toAjax(iOaClueService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 线索
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:edit")
|
||||
@Log(title = "CRM 线索", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaClueBo bo) {
|
||||
return toAjax(iOaClueService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 线索
|
||||
*
|
||||
* @param clueIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("oa:clue:remove")
|
||||
@Log(title = "CRM 线索", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{clueIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] clueIds) {
|
||||
return toAjax(iOaClueService.deleteWithValidByIds(Arrays.asList(clueIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaCustomerVo;
|
||||
import com.ruoyi.oa.domain.bo.OaCustomerBo;
|
||||
import com.ruoyi.oa.service.IOaCustomerService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 客户
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/customer")
|
||||
public class OaCustomerController extends BaseController {
|
||||
|
||||
private final IOaCustomerService iOaCustomerService;
|
||||
|
||||
/**
|
||||
* 查询CRM 客户列表
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaCustomerVo> list(OaCustomerBo bo, PageQuery pageQuery) {
|
||||
return iOaCustomerService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 客户列表
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:export")
|
||||
@Log(title = "CRM 客户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaCustomerBo bo, HttpServletResponse response) {
|
||||
List<OaCustomerVo> list = iOaCustomerService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 客户", OaCustomerVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 客户详细信息
|
||||
*
|
||||
* @param customerId 主键
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:query")
|
||||
@GetMapping("/{customerId}")
|
||||
public R<OaCustomerVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long customerId) {
|
||||
return R.ok(iOaCustomerService.queryById(customerId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 客户
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:add")
|
||||
@Log(title = "CRM 客户", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaCustomerBo bo) {
|
||||
return toAjax(iOaCustomerService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 客户
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:edit")
|
||||
@Log(title = "CRM 客户", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaCustomerBo bo) {
|
||||
return toAjax(iOaCustomerService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 客户
|
||||
*
|
||||
* @param customerIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("oa:customer:remove")
|
||||
@Log(title = "CRM 客户", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{customerIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] customerIds) {
|
||||
return toAjax(iOaCustomerService.deleteWithValidByIds(Arrays.asList(customerIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaFollowUpRecordVo;
|
||||
import com.ruoyi.oa.domain.bo.OaFollowUpRecordBo;
|
||||
import com.ruoyi.oa.service.IOaFollowUpRecordService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/system/followUpRecord")
|
||||
public class OaFollowUpRecordController extends BaseController {
|
||||
|
||||
private final IOaFollowUpRecordService iOaFollowUpRecordService;
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录列表
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaFollowUpRecordVo> list(OaFollowUpRecordBo bo, PageQuery pageQuery) {
|
||||
return iOaFollowUpRecordService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 跟进记录列表
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:export")
|
||||
@Log(title = "CRM 跟进记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaFollowUpRecordBo bo, HttpServletResponse response) {
|
||||
List<OaFollowUpRecordVo> list = iOaFollowUpRecordService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 跟进记录", OaFollowUpRecordVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 跟进记录详细信息
|
||||
*
|
||||
* @param followId 主键
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:query")
|
||||
@GetMapping("/{followId}")
|
||||
public R<OaFollowUpRecordVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long followId) {
|
||||
return R.ok(iOaFollowUpRecordService.queryById(followId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 跟进记录
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:add")
|
||||
@Log(title = "CRM 跟进记录", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaFollowUpRecordBo bo) {
|
||||
return toAjax(iOaFollowUpRecordService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 跟进记录
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:edit")
|
||||
@Log(title = "CRM 跟进记录", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaFollowUpRecordBo bo) {
|
||||
return toAjax(iOaFollowUpRecordService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 跟进记录
|
||||
*
|
||||
* @param followIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("system:followUpRecord:remove")
|
||||
@Log(title = "CRM 跟进记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{followIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] followIds) {
|
||||
return toAjax(iOaFollowUpRecordService.deleteWithValidByIds(Arrays.asList(followIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaProductVo;
|
||||
import com.ruoyi.oa.domain.bo.OaProductBo;
|
||||
import com.ruoyi.oa.service.IOaProductService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* CRM 产品
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/product")
|
||||
public class OaProductController extends BaseController {
|
||||
|
||||
private final IOaProductService iOaProductService;
|
||||
|
||||
/**
|
||||
* 查询CRM 产品列表
|
||||
*/
|
||||
@SaCheckPermission("oa:product:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaProductVo> list(OaProductBo bo, PageQuery pageQuery) {
|
||||
return iOaProductService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出CRM 产品列表
|
||||
*/
|
||||
@SaCheckPermission("oa:product:export")
|
||||
@Log(title = "CRM 产品", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaProductBo bo, HttpServletResponse response) {
|
||||
List<OaProductVo> list = iOaProductService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "CRM 产品", OaProductVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取CRM 产品详细信息
|
||||
*
|
||||
* @param productId 主键
|
||||
*/
|
||||
@SaCheckPermission("oa:product:query")
|
||||
@GetMapping("/{productId}")
|
||||
public R<OaProductVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long productId) {
|
||||
return R.ok(iOaProductService.queryById(productId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 产品
|
||||
*/
|
||||
@SaCheckPermission("oa:product:add")
|
||||
@Log(title = "CRM 产品", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaProductBo bo) {
|
||||
return toAjax(iOaProductService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 产品
|
||||
*/
|
||||
@SaCheckPermission("oa:product:edit")
|
||||
@Log(title = "CRM 产品", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaProductBo bo) {
|
||||
return toAjax(iOaProductService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除CRM 产品
|
||||
*
|
||||
* @param productIds 主键串
|
||||
*/
|
||||
@SaCheckPermission("oa:product:remove")
|
||||
@Log(title = "CRM 产品", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{productIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] productIds) {
|
||||
return toAjax(iOaProductService.deleteWithValidByIds(Arrays.asList(productIds), true));
|
||||
}
|
||||
}
|
||||
99
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaBusiness.java
Normal file
99
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaBusiness.java
Normal file
@@ -0,0 +1,99 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 商机对象 oa_business
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_business")
|
||||
public class OaBusiness extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(value = "business_id")
|
||||
private Long businessId;
|
||||
/**
|
||||
* 商机名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
private Long customerId;
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
private Integer followUpStatus;
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
private Date contactLastTime;
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
private Date contactNextTime;
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
/**
|
||||
* 商机状态类型编号
|
||||
*/
|
||||
private Long statusTypeId;
|
||||
/**
|
||||
* 商机状态编号
|
||||
*/
|
||||
private Long statusId;
|
||||
/**
|
||||
* 结束状态:1-赢单 2-输单3-无效
|
||||
*/
|
||||
private Long endStatus;
|
||||
/**
|
||||
* 预计成交日期
|
||||
*/
|
||||
private Date dealTime;
|
||||
/**
|
||||
* 产品总金额,单位:元
|
||||
*/
|
||||
private BigDecimal totalProductPrice;
|
||||
/**
|
||||
* 整单折扣,百分比
|
||||
*/
|
||||
private BigDecimal discountPercent;
|
||||
/**
|
||||
* 商机总金额,单位:元
|
||||
*/
|
||||
private BigDecimal totalPrice;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 结束时的备注
|
||||
*/
|
||||
private String endRemark;
|
||||
/**
|
||||
* 逻辑删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Long delFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联对象 oa_business_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_business_product")
|
||||
public class OaBusinessProduct extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "business_product_id")
|
||||
private Long businessProductId;
|
||||
/**
|
||||
* 商机编号
|
||||
*/
|
||||
private Long businessId;
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
private Long productId;
|
||||
/**
|
||||
* 产品单价
|
||||
*/
|
||||
private BigDecimal productPrice;
|
||||
/**
|
||||
* 商机价格
|
||||
*/
|
||||
private BigDecimal businessPrice;
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private BigDecimal count;
|
||||
/**
|
||||
* 总计价格
|
||||
*/
|
||||
private BigDecimal totalPrice;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Long delFlag;
|
||||
|
||||
}
|
||||
114
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaClue.java
Normal file
114
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaClue.java
Normal file
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 线索对象 oa_clue
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_clue")
|
||||
public class OaClue extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@TableId(value = "clue_id")
|
||||
private Long clueId;
|
||||
/**
|
||||
* 线索名称
|
||||
*/
|
||||
private String clueName;
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
private Integer followUpStatus;
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
private Date contactLastTime;
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
private String contactLastContent;
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
private Date contactNextTime;
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
/**
|
||||
* 转化状态
|
||||
*/
|
||||
private Integer transformStatus;
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
private Long customerId;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
private String telephone;
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
private String qq;
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
private String wechat;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
private Long areaId;
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String detailAddress;
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
private Long industryId;
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
private Long level;
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
private Long source;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Long delFlag;
|
||||
|
||||
}
|
||||
114
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaCustomer.java
Normal file
114
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaCustomer.java
Normal file
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 客户对象 oa_customer
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_customer")
|
||||
public class OaCustomer extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@TableId(value = "customer_id")
|
||||
private Long customerId;
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
private Integer followUpStatus;
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
private Date contactLastTime;
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
private String contactLastContent;
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
private Date contactNextTime;
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
/**
|
||||
* 成为负责人的时间
|
||||
*/
|
||||
private Date ownerTime;
|
||||
/**
|
||||
* 成交状态
|
||||
*/
|
||||
private Long dealStatus;
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
private String telephone;
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
private String qq;
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
private String wechat;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
private Long areaId;
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String detailAddress;
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
private Long industryId;
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
private Long level;
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
private Long source;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Long delFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录对象 oa_follow_up_record
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_follow_up_record")
|
||||
public class OaFollowUpRecord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(value = "follow_id")
|
||||
private Long followId;
|
||||
/**
|
||||
* 跟进类型
|
||||
*/
|
||||
private Long type;
|
||||
/**
|
||||
* 跟进内容
|
||||
*/
|
||||
private String content;
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
private Date nextTime;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String picUrls;
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
private String fileUrls;
|
||||
/**
|
||||
* 关联的商机编号数组
|
||||
*/
|
||||
private String businessIds;
|
||||
/**
|
||||
* 暂用此代替商机记录
|
||||
*/
|
||||
private Long businessId;
|
||||
/**
|
||||
* 关联的联系人编号数组
|
||||
*/
|
||||
private String contactIds;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Long delFlag;
|
||||
|
||||
}
|
||||
68
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaProduct.java
Normal file
68
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/OaProduct.java
Normal file
@@ -0,0 +1,68 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 产品对象 oa_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_product")
|
||||
public class OaProduct extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
@TableId(value = "product_id")
|
||||
private Long productId;
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
private String productName;
|
||||
/**
|
||||
* 产品编码
|
||||
*/
|
||||
private String productNumber;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private Long unit;
|
||||
/**
|
||||
* 价格,单位:元
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Long status;
|
||||
/**
|
||||
* 产品分类编号
|
||||
*/
|
||||
private Long categoryId;
|
||||
/**
|
||||
* 产品描述
|
||||
*/
|
||||
private String description;
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Long deleted;
|
||||
|
||||
}
|
||||
124
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaBusinessBo.java
Normal file
124
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaBusinessBo.java
Normal file
@@ -0,0 +1,124 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 商机业务对象 oa_business
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaBusinessBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@NotNull(message = "编号不能为空", groups = { EditGroup.class })
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 商机名称
|
||||
*/
|
||||
@NotBlank(message = "商机名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
@NotNull(message = "客户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@NotNull(message = "跟进状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@NotNull(message = "最后跟进时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@NotNull(message = "下次联系时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@NotNull(message = "负责人的用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 商机状态类型编号
|
||||
*/
|
||||
@NotNull(message = "商机状态类型编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long statusTypeId;
|
||||
|
||||
/**
|
||||
* 商机状态编号
|
||||
*/
|
||||
@NotNull(message = "商机状态编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long statusId;
|
||||
|
||||
/**
|
||||
* 结束状态:1-赢单 2-输单3-无效
|
||||
*/
|
||||
@NotNull(message = "结束状态:1-赢单 2-输单3-无效不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long endStatus;
|
||||
|
||||
/**
|
||||
* 预计成交日期
|
||||
*/
|
||||
@NotNull(message = "预计成交日期不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date dealTime;
|
||||
|
||||
/**
|
||||
* 产品总金额,单位:元
|
||||
*/
|
||||
@NotNull(message = "产品总金额,单位:元不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal totalProductPrice;
|
||||
|
||||
/**
|
||||
* 整单折扣,百分比
|
||||
*/
|
||||
@NotNull(message = "整单折扣,百分比不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal discountPercent;
|
||||
|
||||
/**
|
||||
* 商机总金额,单位:元
|
||||
*/
|
||||
@NotNull(message = "商机总金额,单位:元不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal totalPrice;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 结束时的备注
|
||||
*/
|
||||
@NotBlank(message = "结束时的备注不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String endRemark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联业务对象 oa_business_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaBusinessProductBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@NotNull(message = "主键不能为空", groups = { EditGroup.class })
|
||||
private Long businessProductId;
|
||||
|
||||
/**
|
||||
* 商机编号
|
||||
*/
|
||||
@NotNull(message = "商机编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
@NotNull(message = "产品编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 产品单价
|
||||
*/
|
||||
@NotNull(message = "产品单价不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal productPrice;
|
||||
|
||||
/**
|
||||
* 商机价格
|
||||
*/
|
||||
@NotNull(message = "商机价格不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal businessPrice;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal count;
|
||||
|
||||
/**
|
||||
* 总计价格
|
||||
*/
|
||||
@NotNull(message = "总计价格不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal totalPrice;
|
||||
|
||||
|
||||
}
|
||||
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaClueBo.java
Normal file
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaClueBo.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 线索业务对象 oa_clue
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaClueBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@NotNull(message = "编号,主键自增不能为空", groups = { EditGroup.class })
|
||||
private Long clueId;
|
||||
|
||||
/**
|
||||
* 线索名称
|
||||
*/
|
||||
@NotBlank(message = "线索名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String clueName;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@NotNull(message = "跟进状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@NotNull(message = "最后跟进时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
@NotBlank(message = "最后跟进内容不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String contactLastContent;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@NotNull(message = "下次联系时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@NotNull(message = "负责人的用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 转化状态
|
||||
*/
|
||||
@NotNull(message = "转化状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Integer transformStatus;
|
||||
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
@NotNull(message = "客户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String telephone;
|
||||
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
@NotBlank(message = "QQ不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String qq;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
@NotBlank(message = "微信不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String wechat;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
@NotNull(message = "地区编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
@NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String detailAddress;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
@NotNull(message = "所属行业不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long industryId;
|
||||
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
@NotNull(message = "客户等级不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
@NotNull(message = "客户来源不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long source;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaCustomerBo.java
Normal file
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaCustomerBo.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 客户业务对象 oa_customer
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaCustomerBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@NotNull(message = "编号,主键自增不能为空", groups = { EditGroup.class })
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
@NotBlank(message = "客户名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@NotNull(message = "跟进状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@NotNull(message = "最后跟进时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
@NotBlank(message = "最后跟进内容不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String contactLastContent;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@NotNull(message = "下次联系时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@NotNull(message = "负责人的用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 成为负责人的时间
|
||||
*/
|
||||
@NotNull(message = "成为负责人的时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date ownerTime;
|
||||
|
||||
/**
|
||||
* 成交状态
|
||||
*/
|
||||
@NotNull(message = "成交状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long dealStatus;
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
@NotBlank(message = "手机不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String telephone;
|
||||
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
@NotBlank(message = "QQ不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String qq;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
@NotBlank(message = "微信不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String wechat;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
@NotNull(message = "地区编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
@NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String detailAddress;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
@NotNull(message = "所属行业不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long industryId;
|
||||
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
@NotNull(message = "客户等级不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
@NotNull(message = "客户来源不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long source;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录业务对象 oa_follow_up_record
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaFollowUpRecordBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@NotNull(message = "编号不能为空", groups = { EditGroup.class })
|
||||
private Long followId;
|
||||
|
||||
/**
|
||||
* 跟进类型
|
||||
*/
|
||||
@NotNull(message = "跟进类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 跟进内容
|
||||
*/
|
||||
@NotBlank(message = "跟进内容不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@NotNull(message = "下次联系时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date nextTime;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
@NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String picUrls;
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
@NotBlank(message = "附件不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String fileUrls;
|
||||
|
||||
/**
|
||||
* 关联的商机编号数组
|
||||
*/
|
||||
@NotBlank(message = "关联的商机编号数组不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String businessIds;
|
||||
|
||||
/**
|
||||
* 暂用此代替商机记录
|
||||
*/
|
||||
@NotNull(message = "暂用此代替商机记录不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 关联的联系人编号数组
|
||||
*/
|
||||
@NotBlank(message = "关联的联系人编号数组不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String contactIds;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* CRM 产品业务对象 oa_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaProductBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
@NotNull(message = "产品编号不能为空", groups = { EditGroup.class })
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
@NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 产品编码
|
||||
*/
|
||||
@NotBlank(message = "产品编码不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String productNumber;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@NotNull(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long unit;
|
||||
|
||||
/**
|
||||
* 价格,单位:元
|
||||
*/
|
||||
@NotNull(message = "价格,单位:元不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 产品分类编号
|
||||
*/
|
||||
@NotNull(message = "产品分类编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 产品描述
|
||||
*/
|
||||
@NotBlank(message = "产品描述不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@NotNull(message = "负责人的用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@NotNull(message = "是否删除不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long deleted;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联视图对象 oa_business_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaBusinessProductVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ExcelProperty(value = "主键")
|
||||
private Long businessProductId;
|
||||
|
||||
/**
|
||||
* 商机编号
|
||||
*/
|
||||
@ExcelProperty(value = "商机编号")
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
@ExcelProperty(value = "产品编号")
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 产品单价
|
||||
*/
|
||||
@ExcelProperty(value = "产品单价")
|
||||
private BigDecimal productPrice;
|
||||
|
||||
/**
|
||||
* 商机价格
|
||||
*/
|
||||
@ExcelProperty(value = "商机价格")
|
||||
private BigDecimal businessPrice;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@ExcelProperty(value = "数量")
|
||||
private BigDecimal count;
|
||||
|
||||
/**
|
||||
* 总计价格
|
||||
*/
|
||||
@ExcelProperty(value = "总计价格")
|
||||
private BigDecimal totalPrice;
|
||||
|
||||
|
||||
}
|
||||
124
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaBusinessVo.java
Normal file
124
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaBusinessVo.java
Normal file
@@ -0,0 +1,124 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 商机视图对象 oa_business
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaBusinessVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ExcelProperty(value = "编号")
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 商机名称
|
||||
*/
|
||||
@ExcelProperty(value = "商机名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
@ExcelProperty(value = "客户编号")
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@ExcelProperty(value = "跟进状态")
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@ExcelProperty(value = "最后跟进时间")
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@ExcelProperty(value = "下次联系时间")
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@ExcelProperty(value = "负责人的用户编号")
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 商机状态类型编号
|
||||
*/
|
||||
@ExcelProperty(value = "商机状态类型编号")
|
||||
private Long statusTypeId;
|
||||
|
||||
/**
|
||||
* 商机状态编号
|
||||
*/
|
||||
@ExcelProperty(value = "商机状态编号")
|
||||
private Long statusId;
|
||||
|
||||
/**
|
||||
* 结束状态:1-赢单 2-输单3-无效
|
||||
*/
|
||||
@ExcelProperty(value = "结束状态:1-赢单 2-输单3-无效")
|
||||
private Long endStatus;
|
||||
|
||||
/**
|
||||
* 预计成交日期
|
||||
*/
|
||||
@ExcelProperty(value = "预计成交日期")
|
||||
private Date dealTime;
|
||||
|
||||
/**
|
||||
* 产品总金额,单位:元
|
||||
*/
|
||||
@ExcelProperty(value = "产品总金额,单位:元")
|
||||
private BigDecimal totalProductPrice;
|
||||
|
||||
/**
|
||||
* 整单折扣,百分比
|
||||
*/
|
||||
@ExcelProperty(value = "整单折扣,百分比")
|
||||
private BigDecimal discountPercent;
|
||||
|
||||
/**
|
||||
* 商机总金额,单位:元
|
||||
*/
|
||||
@ExcelProperty(value = "商机总金额,单位:元")
|
||||
private BigDecimal totalPrice;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 结束时的备注
|
||||
*/
|
||||
@ExcelProperty(value = "结束时的备注")
|
||||
private String endRemark;
|
||||
|
||||
|
||||
}
|
||||
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaClueVo.java
Normal file
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaClueVo.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 线索视图对象 oa_clue
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaClueVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@ExcelProperty(value = "编号,主键自增")
|
||||
private Long clueId;
|
||||
|
||||
/**
|
||||
* 线索名称
|
||||
*/
|
||||
@ExcelProperty(value = "线索名称")
|
||||
private String clueName;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@ExcelProperty(value = "跟进状态")
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@ExcelProperty(value = "最后跟进时间")
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
@ExcelProperty(value = "最后跟进内容")
|
||||
private String contactLastContent;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@ExcelProperty(value = "下次联系时间")
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@ExcelProperty(value = "负责人的用户编号")
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 转化状态
|
||||
*/
|
||||
@ExcelProperty(value = "转化状态")
|
||||
private Integer transformStatus;
|
||||
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
@ExcelProperty(value = "客户编号")
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@ExcelProperty(value = "手机号")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@ExcelProperty(value = "电话")
|
||||
private String telephone;
|
||||
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
@ExcelProperty(value = "QQ")
|
||||
private String qq;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
@ExcelProperty(value = "微信")
|
||||
private String wechat;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@ExcelProperty(value = "邮箱")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
@ExcelProperty(value = "地区编号")
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
@ExcelProperty(value = "详细地址")
|
||||
private String detailAddress;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
@ExcelProperty(value = "所属行业")
|
||||
private Long industryId;
|
||||
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
@ExcelProperty(value = "客户等级")
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
@ExcelProperty(value = "客户来源")
|
||||
private Long source;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaCustomerVo.java
Normal file
147
ruoyi-oa/src/main/java/com/ruoyi/oa/domain/vo/OaCustomerVo.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 客户视图对象 oa_customer
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaCustomerVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号,主键自增
|
||||
*/
|
||||
@ExcelProperty(value = "编号,主键自增")
|
||||
private Long customerId;
|
||||
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
@ExcelProperty(value = "客户名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 跟进状态
|
||||
*/
|
||||
@ExcelProperty(value = "跟进状态")
|
||||
private Integer followUpStatus;
|
||||
|
||||
/**
|
||||
* 最后跟进时间
|
||||
*/
|
||||
@ExcelProperty(value = "最后跟进时间")
|
||||
private Date contactLastTime;
|
||||
|
||||
/**
|
||||
* 最后跟进内容
|
||||
*/
|
||||
@ExcelProperty(value = "最后跟进内容")
|
||||
private String contactLastContent;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@ExcelProperty(value = "下次联系时间")
|
||||
private Date contactNextTime;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@ExcelProperty(value = "负责人的用户编号")
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 成为负责人的时间
|
||||
*/
|
||||
@ExcelProperty(value = "成为负责人的时间")
|
||||
private Date ownerTime;
|
||||
|
||||
/**
|
||||
* 成交状态
|
||||
*/
|
||||
@ExcelProperty(value = "成交状态")
|
||||
private Long dealStatus;
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
@ExcelProperty(value = "手机")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@ExcelProperty(value = "电话")
|
||||
private String telephone;
|
||||
|
||||
/**
|
||||
* QQ
|
||||
*/
|
||||
@ExcelProperty(value = "QQ")
|
||||
private String qq;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
@ExcelProperty(value = "微信")
|
||||
private String wechat;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@ExcelProperty(value = "邮箱")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
@ExcelProperty(value = "地区编号")
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
@ExcelProperty(value = "详细地址")
|
||||
private String detailAddress;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
@ExcelProperty(value = "所属行业")
|
||||
private Long industryId;
|
||||
|
||||
/**
|
||||
* 客户等级
|
||||
*/
|
||||
@ExcelProperty(value = "客户等级")
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
* 客户来源
|
||||
*/
|
||||
@ExcelProperty(value = "客户来源")
|
||||
private Long source;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 跟进记录视图对象 oa_follow_up_record
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaFollowUpRecordVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ExcelProperty(value = "编号")
|
||||
private Long followId;
|
||||
|
||||
/**
|
||||
* 跟进类型
|
||||
*/
|
||||
@ExcelProperty(value = "跟进类型")
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 跟进内容
|
||||
*/
|
||||
@ExcelProperty(value = "跟进内容")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 下次联系时间
|
||||
*/
|
||||
@ExcelProperty(value = "下次联系时间")
|
||||
private Date nextTime;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
@ExcelProperty(value = "图片")
|
||||
private String picUrls;
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
@ExcelProperty(value = "附件")
|
||||
private String fileUrls;
|
||||
|
||||
/**
|
||||
* 关联的商机编号数组
|
||||
*/
|
||||
@ExcelProperty(value = "关联的商机编号数组")
|
||||
private String businessIds;
|
||||
|
||||
/**
|
||||
* 暂用此代替商机记录
|
||||
*/
|
||||
@ExcelProperty(value = "暂用此代替商机记录")
|
||||
private Long businessId;
|
||||
|
||||
/**
|
||||
* 关联的联系人编号数组
|
||||
*/
|
||||
@ExcelProperty(value = "关联的联系人编号数组")
|
||||
private String contactIds;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* CRM 产品视图对象 oa_product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaProductVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 产品编号
|
||||
*/
|
||||
@ExcelProperty(value = "产品编号")
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
@ExcelProperty(value = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 产品编码
|
||||
*/
|
||||
@ExcelProperty(value = "产品编码")
|
||||
private String productNumber;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ExcelProperty(value = "单位")
|
||||
private Long unit;
|
||||
|
||||
/**
|
||||
* 价格,单位:元
|
||||
*/
|
||||
@ExcelProperty(value = "价格,单位:元")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ExcelProperty(value = "状态")
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 产品分类编号
|
||||
*/
|
||||
@ExcelProperty(value = "产品分类编号")
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 产品描述
|
||||
*/
|
||||
@ExcelProperty(value = "产品描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 负责人的用户编号
|
||||
*/
|
||||
@ExcelProperty(value = "负责人的用户编号")
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@ExcelProperty(value = "是否删除")
|
||||
private Long deleted;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaBusiness;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 商机Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaBusinessMapper extends BaseMapperPlus<OaBusinessMapper, OaBusiness, OaBusinessVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaBusinessProduct;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessProductVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaBusinessProductMapper extends BaseMapperPlus<OaBusinessProductMapper, OaBusinessProduct, OaBusinessProductVo> {
|
||||
|
||||
}
|
||||
15
ruoyi-oa/src/main/java/com/ruoyi/oa/mapper/OaClueMapper.java
Normal file
15
ruoyi-oa/src/main/java/com/ruoyi/oa/mapper/OaClueMapper.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaClue;
|
||||
import com.ruoyi.oa.domain.vo.OaClueVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 线索Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaClueMapper extends BaseMapperPlus<OaClueMapper, OaClue, OaClueVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaCustomer;
|
||||
import com.ruoyi.oa.domain.vo.OaCustomerVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 客户Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaCustomerMapper extends BaseMapperPlus<OaCustomerMapper, OaCustomer, OaCustomerVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaFollowUpRecord;
|
||||
import com.ruoyi.oa.domain.vo.OaFollowUpRecordVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaFollowUpRecordMapper extends BaseMapperPlus<OaFollowUpRecordMapper, OaFollowUpRecord, OaFollowUpRecordVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaProduct;
|
||||
import com.ruoyi.oa.domain.vo.OaProductVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* CRM 产品Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface OaProductMapper extends BaseMapperPlus<OaProductMapper, OaProduct, OaProductVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaBusinessProduct;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessProductVo;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessProductBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaBusinessProductService {
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联
|
||||
*/
|
||||
OaBusinessProductVo queryById(Long businessProductId);
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联列表
|
||||
*/
|
||||
TableDataInfo<OaBusinessProductVo> queryPageList(OaBusinessProductBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联列表
|
||||
*/
|
||||
List<OaBusinessProductVo> queryList(OaBusinessProductBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 商机产品关联
|
||||
*/
|
||||
Boolean insertByBo(OaBusinessProductBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 商机产品关联
|
||||
*/
|
||||
Boolean updateByBo(OaBusinessProductBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 商机产品关联信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaBusiness;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessVo;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 商机Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaBusinessService {
|
||||
|
||||
/**
|
||||
* 查询CRM 商机
|
||||
*/
|
||||
OaBusinessVo queryById(Long businessId);
|
||||
|
||||
/**
|
||||
* 查询CRM 商机列表
|
||||
*/
|
||||
TableDataInfo<OaBusinessVo> queryPageList(OaBusinessBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 商机列表
|
||||
*/
|
||||
List<OaBusinessVo> queryList(OaBusinessBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 商机
|
||||
*/
|
||||
Boolean insertByBo(OaBusinessBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 商机
|
||||
*/
|
||||
Boolean updateByBo(OaBusinessBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 商机信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaClue;
|
||||
import com.ruoyi.oa.domain.vo.OaClueVo;
|
||||
import com.ruoyi.oa.domain.bo.OaClueBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 线索Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaClueService {
|
||||
|
||||
/**
|
||||
* 查询CRM 线索
|
||||
*/
|
||||
OaClueVo queryById(Long clueId);
|
||||
|
||||
/**
|
||||
* 查询CRM 线索列表
|
||||
*/
|
||||
TableDataInfo<OaClueVo> queryPageList(OaClueBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 线索列表
|
||||
*/
|
||||
List<OaClueVo> queryList(OaClueBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 线索
|
||||
*/
|
||||
Boolean insertByBo(OaClueBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 线索
|
||||
*/
|
||||
Boolean updateByBo(OaClueBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 线索信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaCustomer;
|
||||
import com.ruoyi.oa.domain.vo.OaCustomerVo;
|
||||
import com.ruoyi.oa.domain.bo.OaCustomerBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 客户Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaCustomerService {
|
||||
|
||||
/**
|
||||
* 查询CRM 客户
|
||||
*/
|
||||
OaCustomerVo queryById(Long customerId);
|
||||
|
||||
/**
|
||||
* 查询CRM 客户列表
|
||||
*/
|
||||
TableDataInfo<OaCustomerVo> queryPageList(OaCustomerBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 客户列表
|
||||
*/
|
||||
List<OaCustomerVo> queryList(OaCustomerBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 客户
|
||||
*/
|
||||
Boolean insertByBo(OaCustomerBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 客户
|
||||
*/
|
||||
Boolean updateByBo(OaCustomerBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 客户信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaFollowUpRecord;
|
||||
import com.ruoyi.oa.domain.vo.OaFollowUpRecordVo;
|
||||
import com.ruoyi.oa.domain.bo.OaFollowUpRecordBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaFollowUpRecordService {
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录
|
||||
*/
|
||||
OaFollowUpRecordVo queryById(Long followId);
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录列表
|
||||
*/
|
||||
TableDataInfo<OaFollowUpRecordVo> queryPageList(OaFollowUpRecordBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录列表
|
||||
*/
|
||||
List<OaFollowUpRecordVo> queryList(OaFollowUpRecordBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 跟进记录
|
||||
*/
|
||||
Boolean insertByBo(OaFollowUpRecordBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 跟进记录
|
||||
*/
|
||||
Boolean updateByBo(OaFollowUpRecordBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 跟进记录信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaProduct;
|
||||
import com.ruoyi.oa.domain.vo.OaProductVo;
|
||||
import com.ruoyi.oa.domain.bo.OaProductBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 产品Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
public interface IOaProductService {
|
||||
|
||||
/**
|
||||
* 查询CRM 产品
|
||||
*/
|
||||
OaProductVo queryById(Long productId);
|
||||
|
||||
/**
|
||||
* 查询CRM 产品列表
|
||||
*/
|
||||
TableDataInfo<OaProductVo> queryPageList(OaProductBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询CRM 产品列表
|
||||
*/
|
||||
List<OaProductVo> queryList(OaProductBo bo);
|
||||
|
||||
/**
|
||||
* 新增CRM 产品
|
||||
*/
|
||||
Boolean insertByBo(OaProductBo bo);
|
||||
|
||||
/**
|
||||
* 修改CRM 产品
|
||||
*/
|
||||
Boolean updateByBo(OaProductBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除CRM 产品信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessProductBo;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessProductVo;
|
||||
import com.ruoyi.oa.domain.OaBusinessProduct;
|
||||
import com.ruoyi.oa.mapper.OaBusinessProductMapper;
|
||||
import com.ruoyi.oa.service.IOaBusinessProductService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 商机产品关联Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaBusinessProductServiceImpl implements IOaBusinessProductService {
|
||||
|
||||
private final OaBusinessProductMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联
|
||||
*/
|
||||
@Override
|
||||
public OaBusinessProductVo queryById(Long businessProductId){
|
||||
return baseMapper.selectVoById(businessProductId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaBusinessProductVo> queryPageList(OaBusinessProductBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaBusinessProduct> lqw = buildQueryWrapper(bo);
|
||||
Page<OaBusinessProductVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 商机产品关联列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaBusinessProductVo> queryList(OaBusinessProductBo bo) {
|
||||
LambdaQueryWrapper<OaBusinessProduct> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaBusinessProduct> buildQueryWrapper(OaBusinessProductBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaBusinessProduct> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getBusinessId() != null, OaBusinessProduct::getBusinessId, bo.getBusinessId());
|
||||
lqw.eq(bo.getProductId() != null, OaBusinessProduct::getProductId, bo.getProductId());
|
||||
lqw.eq(bo.getProductPrice() != null, OaBusinessProduct::getProductPrice, bo.getProductPrice());
|
||||
lqw.eq(bo.getBusinessPrice() != null, OaBusinessProduct::getBusinessPrice, bo.getBusinessPrice());
|
||||
lqw.eq(bo.getCount() != null, OaBusinessProduct::getCount, bo.getCount());
|
||||
lqw.eq(bo.getTotalPrice() != null, OaBusinessProduct::getTotalPrice, bo.getTotalPrice());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 商机产品关联
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaBusinessProductBo bo) {
|
||||
OaBusinessProduct add = BeanUtil.toBean(bo, OaBusinessProduct.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setBusinessProductId(add.getBusinessProductId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 商机产品关联
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaBusinessProductBo bo) {
|
||||
OaBusinessProduct update = BeanUtil.toBean(bo, OaBusinessProduct.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaBusinessProduct entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 商机产品关联
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaBusinessBo;
|
||||
import com.ruoyi.oa.domain.vo.OaBusinessVo;
|
||||
import com.ruoyi.oa.domain.OaBusiness;
|
||||
import com.ruoyi.oa.mapper.OaBusinessMapper;
|
||||
import com.ruoyi.oa.service.IOaBusinessService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 商机Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaBusinessServiceImpl implements IOaBusinessService {
|
||||
|
||||
private final OaBusinessMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 商机
|
||||
*/
|
||||
@Override
|
||||
public OaBusinessVo queryById(Long businessId){
|
||||
return baseMapper.selectVoById(businessId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 商机列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaBusinessVo> queryPageList(OaBusinessBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaBusiness> lqw = buildQueryWrapper(bo);
|
||||
Page<OaBusinessVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 商机列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaBusinessVo> queryList(OaBusinessBo bo) {
|
||||
LambdaQueryWrapper<OaBusiness> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaBusiness> buildQueryWrapper(OaBusinessBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaBusiness> lqw = Wrappers.lambdaQuery();
|
||||
lqw.like(StringUtils.isNotBlank(bo.getName()), OaBusiness::getName, bo.getName());
|
||||
lqw.eq(bo.getCustomerId() != null, OaBusiness::getCustomerId, bo.getCustomerId());
|
||||
lqw.eq(bo.getFollowUpStatus() != null, OaBusiness::getFollowUpStatus, bo.getFollowUpStatus());
|
||||
lqw.eq(bo.getContactLastTime() != null, OaBusiness::getContactLastTime, bo.getContactLastTime());
|
||||
lqw.eq(bo.getContactNextTime() != null, OaBusiness::getContactNextTime, bo.getContactNextTime());
|
||||
lqw.eq(bo.getOwnerUserId() != null, OaBusiness::getOwnerUserId, bo.getOwnerUserId());
|
||||
lqw.eq(bo.getStatusTypeId() != null, OaBusiness::getStatusTypeId, bo.getStatusTypeId());
|
||||
lqw.eq(bo.getStatusId() != null, OaBusiness::getStatusId, bo.getStatusId());
|
||||
lqw.eq(bo.getEndStatus() != null, OaBusiness::getEndStatus, bo.getEndStatus());
|
||||
lqw.eq(bo.getDealTime() != null, OaBusiness::getDealTime, bo.getDealTime());
|
||||
lqw.eq(bo.getTotalProductPrice() != null, OaBusiness::getTotalProductPrice, bo.getTotalProductPrice());
|
||||
lqw.eq(bo.getDiscountPercent() != null, OaBusiness::getDiscountPercent, bo.getDiscountPercent());
|
||||
lqw.eq(bo.getTotalPrice() != null, OaBusiness::getTotalPrice, bo.getTotalPrice());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getEndRemark()), OaBusiness::getEndRemark, bo.getEndRemark());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 商机
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaBusinessBo bo) {
|
||||
OaBusiness add = BeanUtil.toBean(bo, OaBusiness.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setBusinessId(add.getBusinessId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 商机
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaBusinessBo bo) {
|
||||
OaBusiness update = BeanUtil.toBean(bo, OaBusiness.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaBusiness entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 商机
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaClueBo;
|
||||
import com.ruoyi.oa.domain.vo.OaClueVo;
|
||||
import com.ruoyi.oa.domain.OaClue;
|
||||
import com.ruoyi.oa.mapper.OaClueMapper;
|
||||
import com.ruoyi.oa.service.IOaClueService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 线索Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaClueServiceImpl implements IOaClueService {
|
||||
|
||||
private final OaClueMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 线索
|
||||
*/
|
||||
@Override
|
||||
public OaClueVo queryById(Long clueId){
|
||||
return baseMapper.selectVoById(clueId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 线索列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaClueVo> queryPageList(OaClueBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaClue> lqw = buildQueryWrapper(bo);
|
||||
Page<OaClueVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 线索列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaClueVo> queryList(OaClueBo bo) {
|
||||
LambdaQueryWrapper<OaClue> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaClue> buildQueryWrapper(OaClueBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaClue> lqw = Wrappers.lambdaQuery();
|
||||
lqw.like(StringUtils.isNotBlank(bo.getClueName()), OaClue::getClueName, bo.getClueName());
|
||||
lqw.eq(bo.getFollowUpStatus() != null, OaClue::getFollowUpStatus, bo.getFollowUpStatus());
|
||||
lqw.eq(bo.getContactLastTime() != null, OaClue::getContactLastTime, bo.getContactLastTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getContactLastContent()), OaClue::getContactLastContent, bo.getContactLastContent());
|
||||
lqw.eq(bo.getContactNextTime() != null, OaClue::getContactNextTime, bo.getContactNextTime());
|
||||
lqw.eq(bo.getOwnerUserId() != null, OaClue::getOwnerUserId, bo.getOwnerUserId());
|
||||
lqw.eq(bo.getTransformStatus() != null, OaClue::getTransformStatus, bo.getTransformStatus());
|
||||
lqw.eq(bo.getCustomerId() != null, OaClue::getCustomerId, bo.getCustomerId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getMobile()), OaClue::getMobile, bo.getMobile());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getTelephone()), OaClue::getTelephone, bo.getTelephone());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getQq()), OaClue::getQq, bo.getQq());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getWechat()), OaClue::getWechat, bo.getWechat());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getEmail()), OaClue::getEmail, bo.getEmail());
|
||||
lqw.eq(bo.getAreaId() != null, OaClue::getAreaId, bo.getAreaId());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDetailAddress()), OaClue::getDetailAddress, bo.getDetailAddress());
|
||||
lqw.eq(bo.getIndustryId() != null, OaClue::getIndustryId, bo.getIndustryId());
|
||||
lqw.eq(bo.getLevel() != null, OaClue::getLevel, bo.getLevel());
|
||||
lqw.eq(bo.getSource() != null, OaClue::getSource, bo.getSource());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 线索
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaClueBo bo) {
|
||||
OaClue add = BeanUtil.toBean(bo, OaClue.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setClueId(add.getClueId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 线索
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaClueBo bo) {
|
||||
OaClue update = BeanUtil.toBean(bo, OaClue.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaClue entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 线索
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaCustomerBo;
|
||||
import com.ruoyi.oa.domain.vo.OaCustomerVo;
|
||||
import com.ruoyi.oa.domain.OaCustomer;
|
||||
import com.ruoyi.oa.mapper.OaCustomerMapper;
|
||||
import com.ruoyi.oa.service.IOaCustomerService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 客户Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaCustomerServiceImpl implements IOaCustomerService {
|
||||
|
||||
private final OaCustomerMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 客户
|
||||
*/
|
||||
@Override
|
||||
public OaCustomerVo queryById(Long customerId){
|
||||
return baseMapper.selectVoById(customerId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 客户列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaCustomerVo> queryPageList(OaCustomerBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaCustomer> lqw = buildQueryWrapper(bo);
|
||||
Page<OaCustomerVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 客户列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaCustomerVo> queryList(OaCustomerBo bo) {
|
||||
LambdaQueryWrapper<OaCustomer> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaCustomer> buildQueryWrapper(OaCustomerBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaCustomer> lqw = Wrappers.lambdaQuery();
|
||||
lqw.like(StringUtils.isNotBlank(bo.getName()), OaCustomer::getName, bo.getName());
|
||||
lqw.eq(bo.getFollowUpStatus() != null, OaCustomer::getFollowUpStatus, bo.getFollowUpStatus());
|
||||
lqw.eq(bo.getContactLastTime() != null, OaCustomer::getContactLastTime, bo.getContactLastTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getContactLastContent()), OaCustomer::getContactLastContent, bo.getContactLastContent());
|
||||
lqw.eq(bo.getContactNextTime() != null, OaCustomer::getContactNextTime, bo.getContactNextTime());
|
||||
lqw.eq(bo.getOwnerUserId() != null, OaCustomer::getOwnerUserId, bo.getOwnerUserId());
|
||||
lqw.eq(bo.getOwnerTime() != null, OaCustomer::getOwnerTime, bo.getOwnerTime());
|
||||
lqw.eq(bo.getDealStatus() != null, OaCustomer::getDealStatus, bo.getDealStatus());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getMobile()), OaCustomer::getMobile, bo.getMobile());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getTelephone()), OaCustomer::getTelephone, bo.getTelephone());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getQq()), OaCustomer::getQq, bo.getQq());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getWechat()), OaCustomer::getWechat, bo.getWechat());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getEmail()), OaCustomer::getEmail, bo.getEmail());
|
||||
lqw.eq(bo.getAreaId() != null, OaCustomer::getAreaId, bo.getAreaId());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDetailAddress()), OaCustomer::getDetailAddress, bo.getDetailAddress());
|
||||
lqw.eq(bo.getIndustryId() != null, OaCustomer::getIndustryId, bo.getIndustryId());
|
||||
lqw.eq(bo.getLevel() != null, OaCustomer::getLevel, bo.getLevel());
|
||||
lqw.eq(bo.getSource() != null, OaCustomer::getSource, bo.getSource());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 客户
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaCustomerBo bo) {
|
||||
OaCustomer add = BeanUtil.toBean(bo, OaCustomer.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setCustomerId(add.getCustomerId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 客户
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaCustomerBo bo) {
|
||||
OaCustomer update = BeanUtil.toBean(bo, OaCustomer.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaCustomer entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 客户
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaFollowUpRecordBo;
|
||||
import com.ruoyi.oa.domain.vo.OaFollowUpRecordVo;
|
||||
import com.ruoyi.oa.domain.OaFollowUpRecord;
|
||||
import com.ruoyi.oa.mapper.OaFollowUpRecordMapper;
|
||||
import com.ruoyi.oa.service.IOaFollowUpRecordService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 跟进记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaFollowUpRecordServiceImpl implements IOaFollowUpRecordService {
|
||||
|
||||
private final OaFollowUpRecordMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录
|
||||
*/
|
||||
@Override
|
||||
public OaFollowUpRecordVo queryById(Long followId){
|
||||
return baseMapper.selectVoById(followId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaFollowUpRecordVo> queryPageList(OaFollowUpRecordBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaFollowUpRecord> lqw = buildQueryWrapper(bo);
|
||||
Page<OaFollowUpRecordVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 跟进记录列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaFollowUpRecordVo> queryList(OaFollowUpRecordBo bo) {
|
||||
LambdaQueryWrapper<OaFollowUpRecord> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaFollowUpRecord> buildQueryWrapper(OaFollowUpRecordBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaFollowUpRecord> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getType() != null, OaFollowUpRecord::getType, bo.getType());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getContent()), OaFollowUpRecord::getContent, bo.getContent());
|
||||
lqw.eq(bo.getNextTime() != null, OaFollowUpRecord::getNextTime, bo.getNextTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPicUrls()), OaFollowUpRecord::getPicUrls, bo.getPicUrls());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getFileUrls()), OaFollowUpRecord::getFileUrls, bo.getFileUrls());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getBusinessIds()), OaFollowUpRecord::getBusinessIds, bo.getBusinessIds());
|
||||
lqw.eq(bo.getBusinessId() != null, OaFollowUpRecord::getBusinessId, bo.getBusinessId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getContactIds()), OaFollowUpRecord::getContactIds, bo.getContactIds());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 跟进记录
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaFollowUpRecordBo bo) {
|
||||
OaFollowUpRecord add = BeanUtil.toBean(bo, OaFollowUpRecord.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setFollowId(add.getFollowId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 跟进记录
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaFollowUpRecordBo bo) {
|
||||
OaFollowUpRecord update = BeanUtil.toBean(bo, OaFollowUpRecord.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaFollowUpRecord entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 跟进记录
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaProductBo;
|
||||
import com.ruoyi.oa.domain.vo.OaProductVo;
|
||||
import com.ruoyi.oa.domain.OaProduct;
|
||||
import com.ruoyi.oa.mapper.OaProductMapper;
|
||||
import com.ruoyi.oa.service.IOaProductService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* CRM 产品Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-03-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaProductServiceImpl implements IOaProductService {
|
||||
|
||||
private final OaProductMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询CRM 产品
|
||||
*/
|
||||
@Override
|
||||
public OaProductVo queryById(Long productId){
|
||||
return baseMapper.selectVoById(productId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 产品列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaProductVo> queryPageList(OaProductBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaProduct> lqw = buildQueryWrapper(bo);
|
||||
Page<OaProductVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询CRM 产品列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaProductVo> queryList(OaProductBo bo) {
|
||||
LambdaQueryWrapper<OaProduct> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaProduct> buildQueryWrapper(OaProductBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaProduct> lqw = Wrappers.lambdaQuery();
|
||||
lqw.like(StringUtils.isNotBlank(bo.getProductName()), OaProduct::getProductName, bo.getProductName());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getProductNumber()), OaProduct::getProductNumber, bo.getProductNumber());
|
||||
lqw.eq(bo.getUnit() != null, OaProduct::getUnit, bo.getUnit());
|
||||
lqw.eq(bo.getPrice() != null, OaProduct::getPrice, bo.getPrice());
|
||||
lqw.eq(bo.getStatus() != null, OaProduct::getStatus, bo.getStatus());
|
||||
lqw.eq(bo.getCategoryId() != null, OaProduct::getCategoryId, bo.getCategoryId());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDescription()), OaProduct::getDescription, bo.getDescription());
|
||||
lqw.eq(bo.getOwnerUserId() != null, OaProduct::getOwnerUserId, bo.getOwnerUserId());
|
||||
lqw.eq(bo.getDeleted() != null, OaProduct::getDeleted, bo.getDeleted());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增CRM 产品
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaProductBo bo) {
|
||||
OaProduct add = BeanUtil.toBean(bo, OaProduct.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setProductId(add.getProductId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改CRM 产品
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaProductBo bo) {
|
||||
OaProduct update = BeanUtil.toBean(bo, OaProduct.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaProduct entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除CRM 产品
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
34
ruoyi-oa/src/main/resources/mapper/oa/OaBusinessMapper.xml
Normal file
34
ruoyi-oa/src/main/resources/mapper/oa/OaBusinessMapper.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaBusinessMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaBusiness" id="OaBusinessResult">
|
||||
<result property="businessId" column="business_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="customerId" column="customer_id"/>
|
||||
<result property="followUpStatus" column="follow_up_status"/>
|
||||
<result property="contactLastTime" column="contact_last_time"/>
|
||||
<result property="contactNextTime" column="contact_next_time"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="statusTypeId" column="status_type_id"/>
|
||||
<result property="statusId" column="status_id"/>
|
||||
<result property="endStatus" column="end_status"/>
|
||||
<result property="dealTime" column="deal_time"/>
|
||||
<result property="totalProductPrice" column="total_product_price"/>
|
||||
<result property="discountPercent" column="discount_percent"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="endRemark" column="end_remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaBusinessProductMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaBusinessProduct" id="OaBusinessProductResult">
|
||||
<result property="businessProductId" column="business_product_id"/>
|
||||
<result property="businessId" column="business_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productPrice" column="product_price"/>
|
||||
<result property="businessPrice" column="business_price"/>
|
||||
<result property="count" column="count"/>
|
||||
<result property="totalPrice" column="total_price"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
37
ruoyi-oa/src/main/resources/mapper/oa/OaClueMapper.xml
Normal file
37
ruoyi-oa/src/main/resources/mapper/oa/OaClueMapper.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaClueMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaClue" id="OaClueResult">
|
||||
<result property="clueId" column="clue_id"/>
|
||||
<result property="clueName" column="clue_name"/>
|
||||
<result property="followUpStatus" column="follow_up_status"/>
|
||||
<result property="contactLastTime" column="contact_last_time"/>
|
||||
<result property="contactLastContent" column="contact_last_content"/>
|
||||
<result property="contactNextTime" column="contact_next_time"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="transformStatus" column="transform_status"/>
|
||||
<result property="customerId" column="customer_id"/>
|
||||
<result property="mobile" column="mobile"/>
|
||||
<result property="telephone" column="telephone"/>
|
||||
<result property="qq" column="qq"/>
|
||||
<result property="wechat" column="wechat"/>
|
||||
<result property="email" column="email"/>
|
||||
<result property="areaId" column="area_id"/>
|
||||
<result property="detailAddress" column="detail_address"/>
|
||||
<result property="industryId" column="industry_id"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="source" column="source"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
37
ruoyi-oa/src/main/resources/mapper/oa/OaCustomerMapper.xml
Normal file
37
ruoyi-oa/src/main/resources/mapper/oa/OaCustomerMapper.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaCustomerMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaCustomer" id="OaCustomerResult">
|
||||
<result property="customerId" column="customer_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="followUpStatus" column="follow_up_status"/>
|
||||
<result property="contactLastTime" column="contact_last_time"/>
|
||||
<result property="contactLastContent" column="contact_last_content"/>
|
||||
<result property="contactNextTime" column="contact_next_time"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="ownerTime" column="owner_time"/>
|
||||
<result property="dealStatus" column="deal_status"/>
|
||||
<result property="mobile" column="mobile"/>
|
||||
<result property="telephone" column="telephone"/>
|
||||
<result property="qq" column="qq"/>
|
||||
<result property="wechat" column="wechat"/>
|
||||
<result property="email" column="email"/>
|
||||
<result property="areaId" column="area_id"/>
|
||||
<result property="detailAddress" column="detail_address"/>
|
||||
<result property="industryId" column="industry_id"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="source" column="source"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaFollowUpRecordMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaFollowUpRecord" id="OaFollowUpRecordResult">
|
||||
<result property="followId" column="follow_id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="nextTime" column="next_time"/>
|
||||
<result property="picUrls" column="pic_urls"/>
|
||||
<result property="fileUrls" column="file_urls"/>
|
||||
<result property="businessIds" column="business_ids"/>
|
||||
<result property="businessId" column="business_id"/>
|
||||
<result property="contactIds" column="contact_ids"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
26
ruoyi-oa/src/main/resources/mapper/oa/OaProductMapper.xml
Normal file
26
ruoyi-oa/src/main/resources/mapper/oa/OaProductMapper.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.oa.mapper.OaProductMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaProduct" id="OaProductResult">
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productName" column="product_name"/>
|
||||
<result property="productNumber" column="product_number"/>
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="categoryId" column="category_id"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="deleted" column="deleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user