feat(customer-lead): 实现完整客资管理系统及全民推荐功能
- 新增客资管理系统数据库变更脚本,扩展客资表及新增派单、推荐关系等多张表 - 实现客资派单、跟进、统计、导出等核心业务逻辑,支持多管理员配置 - 开发Java后端实体、参数、Mapper和服务,实现完整业务流程接口 - 提供客资管理相关REST API,涵盖分页查询、详情、状态更新、派单、跟进和统计等 - 新增全民推荐模块,支持匿名及注册用户报备推荐客户,并提供推荐记录管理 - 开发推荐人相关API接口,支持推荐码生成与查询,推荐确认及结算功能 - Vue后台新增客资管理页面,实现客资列表、派单、跟进、详情查看等功能 - 微信小程序端新增推荐客户页面,支持推荐记录展示和推荐状态跟踪 - 完善数据字典和部署说明,涵盖状态说明、来源类型和跟进方式 - 提出后续优化建议,包括权限细化、数据看板、消息通知以及推荐海报功能等
This commit is contained in:
69
src/main/java/com/gxwebsoft/cms/entity/LeadDispatch.java
Normal file
69
src/main/java/com/gxwebsoft/cms/entity/LeadDispatch.java
Normal file
@@ -0,0 +1,69 @@
|
||||
package com.gxwebsoft.cms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 客资派单记录实体
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2026-04-14
|
||||
*/
|
||||
@Data
|
||||
@TableName("lead_dispatch")
|
||||
@Schema(name = "LeadDispatch", description = "客资派单记录")
|
||||
public class LeadDispatch implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "派单ID")
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer dispatchId;
|
||||
|
||||
@Schema(description = "客资ID")
|
||||
private Integer leadId;
|
||||
|
||||
@Schema(description = "原分配用户ID")
|
||||
private Integer fromUserId;
|
||||
|
||||
@Schema(description = "新分配用户ID(业务员)")
|
||||
private Integer toUserId;
|
||||
|
||||
@Schema(description = "执行派单的管理员ID")
|
||||
private Integer adminId;
|
||||
|
||||
@Schema(description = "派单备注")
|
||||
private String dispatchRemarks;
|
||||
|
||||
@Schema(description = "派单类型: 1新分配 2重新分配 3抢单")
|
||||
private Integer dispatchType;
|
||||
|
||||
@Schema(description = "派单时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
// ========== 关联信息(非数据库字段)==========
|
||||
@Schema(description = "业务员昵称")
|
||||
private String toUserName;
|
||||
|
||||
@Schema(description = "管理员昵称")
|
||||
private String adminName;
|
||||
|
||||
@Schema(description = "客资客户姓名")
|
||||
private String leadCustomerName;
|
||||
|
||||
@Schema(description = "客资客户电话")
|
||||
private String leadCustomerPhone;
|
||||
|
||||
// ========== 派单类型常量 ==========
|
||||
public static final int TYPE_NEW = 1; // 新分配
|
||||
public static final int TYPE_REDISPATCH = 2; // 重新分配
|
||||
public static final int TYPE_GRAB = 3; // 抢单
|
||||
}
|
||||
Reference in New Issue
Block a user