去除无用代码,新增主数据功能

This commit is contained in:
wangmingwei
2026-05-06 09:32:05 +08:00
parent 540f3973d9
commit 825c45a45a
194 changed files with 12560 additions and 7946 deletions

View File

@@ -1,81 +0,0 @@
package com.yunzhupaas.base.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
/**
* 客户信息
*
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@TableName("crm_customer")
public class CrmCustomerEntity {
@TableId(value ="customer_id" )
@JSONField(name = "customer_id")
private String customerId;
@TableField("company_id")
@JSONField(name = "company_id")
private String companyId;
@TableField(value = "org_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "org_id")
private String orgId;
@TableField(value = "owner_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "owner_id")
private String ownerId;
@TableField(value = "customer_level" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "customer_level")
private String customerLevel;
@TableField(value = "customer_lifecycle" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "customer_lifecycle")
private String customerLifecycle;
@TableField(value = "is_public" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "is_public")
private String isPublic;
@TableField(value = "last_followup_date" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "last_followup_date")
private Date lastFollowupDate;
@TableField("remark")
@JSONField(name = "remark")
private String remark;
@TableField("create_by")
@JSONField(name = "create_by")
private String createBy;
@TableField("create_time")
@JSONField(name = "create_time")
private Date createTime;
@TableField("update_by")
@JSONField(name = "update_by")
private String updateBy;
@TableField("update_time")
@JSONField(name = "update_time")
private Date updateTime;
@TableField("f_flow_id")
@JSONField(name = "f_flow_id")
private String flowId;
@TableField("f_flow_task_id")
@JSONField(name = "f_flow_task_id")
private String flowTaskId;
@TableField("f_delete_mark")
@JSONField(name = "f_delete_mark")
private Integer deleteMark;
@TableField("f_delete_time")
@JSONField(name = "f_delete_time")
private Date deleteTime;
@TableField("f_delete_user_id")
@JSONField(name = "f_delete_user_id")
private String deleteUserId;
@TableField("f_version")
@Version
@JSONField(name = "f_version")
private Integer version;
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
@JSONField(name = "f_tenant_id")
private String tenantId;
}

View File

@@ -1,81 +0,0 @@
package com.yunzhupaas.base.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
/**
*
*
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@TableName("crm_lead")
public class CrmLeadEntity {
@TableId(value ="lead_id" )
@JSONField(name = "lead_id")
private String leadId;
@TableField(value = "lead_name" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "lead_name")
private String leadName;
@TableField(value = "mobile" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "mobile")
private String mobile;
@TableField(value = "email" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "email")
private String email;
@TableField(value = "lead_status" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "lead_status")
private String leadStatus;
@TableField(value = "sales_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "sales_id")
private String salesId;
@TableField(value = "customer_source" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "customer_source")
private String customerSource;
@TableField("customer_id")
@JSONField(name = "customer_id")
private String customerId;
@TableField(value = "remark" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "remark")
private String remark;
@TableField("create_by")
@JSONField(name = "create_by")
private String createBy;
@TableField("create_time")
@JSONField(name = "create_time")
private Date createTime;
@TableField("update_by")
@JSONField(name = "update_by")
private String updateBy;
@TableField("update_time")
@JSONField(name = "update_time")
private Date updateTime;
@TableField("f_flow_id")
@JSONField(name = "f_flow_id")
private String flowId;
@TableField("f_flow_task_id")
@JSONField(name = "f_flow_task_id")
private String flowTaskId;
@TableField("f_delete_mark")
@JSONField(name = "f_delete_mark")
private Integer deleteMark;
@TableField("f_delete_time")
@JSONField(name = "f_delete_time")
private Date deleteTime;
@TableField("f_delete_user_id")
@JSONField(name = "f_delete_user_id")
private String deleteUserId;
@TableField("f_version")
@Version
@JSONField(name = "f_version")
private Integer version;
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
@JSONField(name = "f_tenant_id")
private String tenantId;
}

View File

@@ -1,100 +0,0 @@
package com.yunzhupaas.base.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
import java.math.BigDecimal;
/**
* 商机信息
*
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@TableName("crm_opportunity")
public class CrmOpportunityEntity {
@TableId(value ="opportunity_id" )
@JSONField(name = "opportunity_id")
private String opportunityId;
@TableField(value = "customer_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "customer_id")
private String customerId;
@TableField(value = "opportunity_code" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "opportunity_code")
private String opportunityCode;
@TableField(value = "opportunity_name" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "opportunity_name")
private String opportunityName;
@TableField(value = "owner_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "owner_id")
private String ownerId;
@TableField(value = "opportunity_stage" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "opportunity_stage")
private String opportunityStage;
@TableField(value = "desciption" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "desciption")
private String desciption;
@TableField(value = "amount" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "amount")
private BigDecimal amount;
@TableField(value = "close_date" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "close_date")
private Date closeDate;
@TableField(value = "probability" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "probability")
private Byte probability;
@TableField(value = "last_followup_date" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "last_followup_date")
private Date lastFollowupDate;
@TableField(value = "competitor" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "competitor")
private String competitor;
@TableField(value = "analysis" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "analysis")
private String analysis;
@TableField(value = "remark" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "remark")
private String remark;
@TableField("create_by")
@JSONField(name = "create_by")
private String createBy;
@TableField("create_time")
@JSONField(name = "create_time")
private Date createTime;
@TableField("update_by")
@JSONField(name = "update_by")
private String updateBy;
@TableField("update_time")
@JSONField(name = "update_time")
private Date updateTime;
@TableField("f_flow_id")
@JSONField(name = "f_flow_id")
private String flowId;
@TableField("f_flow_task_id")
@JSONField(name = "f_flow_task_id")
private String flowTaskId;
@TableField("f_delete_mark")
@JSONField(name = "f_delete_mark")
private Integer deleteMark;
@TableField("f_delete_time")
@JSONField(name = "f_delete_time")
private Date deleteTime;
@TableField("f_delete_user_id")
@JSONField(name = "f_delete_user_id")
private String deleteUserId;
@TableField("f_version")
@Version
@JSONField(name = "f_version")
private Integer version;
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
@JSONField(name = "f_tenant_id")
private String tenantId;
@JSONField(name = "crmCustomer")
@TableField(exist = false)
private CrmCustomerEntity crmCustomer;
}

View File

@@ -1,25 +0,0 @@
package com.yunzhupaas.base.model.crmCustomer;
import lombok.Data;
import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.annotation.JSONField;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import java.math.BigDecimal;
import java.util.List;
/**
*
* mdm_company
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
public class CrmCustomerExcelVO{
}

View File

@@ -1,58 +0,0 @@
package com.yunzhupaas.base.model.crmCustomer;
import lombok.Data;
import java.util.List;
import java.util.Date;
import java.math.BigDecimal;
import com.alibaba.fastjson.annotation.JSONField;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
/**
*
* mdm_company
* 版本: V5.2.7
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* 作者: 深圳市乐程软件有限公司
* 日期: 2026-03-27
*/
@Data
@Schema(description = "CrmCustomer子表参数")
public class CrmCustomerModel {
/** 子表CrmCustomer 主键customer_id **/
@Schema(description = "主键")
@JsonProperty("customer_id")
private String customer_id;
/** 客户负责人 **/
@Schema(description = "客户负责人")
@JsonProperty("owner_id")
@JSONField(name = "owner_id")
private Object ownerId;
/** 归属组织 **/
@Schema(description = "归属组织")
@JsonProperty("org_id")
@JSONField(name = "org_id")
private Object orgId;
/** 客户等级 **/
@Schema(description = "客户等级")
@JsonProperty("customer_level")
@JSONField(name = "customer_level")
private Object customerLevel;
/** 生命周期阶段 **/
@Schema(description = "生命周期阶段")
@JsonProperty("customer_lifecycle")
@JSONField(name = "customer_lifecycle")
private Object customerLifecycle;
/** 是否公海客户 **/
@Schema(description = "是否公海客户")
@JsonProperty("is_public")
@JSONField(name = "is_public")
private Object isPublic;
/** 最后一次跟进日期 **/
@Schema(description = "最后一次跟进日期")
@JsonProperty("last_followup_date")
@JSONField(name = "last_followup_date")
private Long lastFollowupDate;
}

View File

@@ -1,22 +0,0 @@
package com.yunzhupaas.base.model.crmlead;
import lombok.Data;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
/**
*
* crm_lead
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
public class CrmLeadExcelErrorVO extends CrmLeadExcelVO{
@Excel(name = "异常原因",orderNum = "-999")
@JSONField(name = "errorsInfo")
private String errorsInfo;
}

View File

@@ -1,60 +0,0 @@
package com.yunzhupaas.base.model.crmlead;
import lombok.Data;
import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.annotation.JSONField;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import java.math.BigDecimal;
import java.util.List;
/**
*
* crm_lead
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
public class CrmLeadExcelVO{
/** 线索名称 **/
@JSONField(name = "lead_name")
@Excel(name = "线索名称(lead_name)",orderNum = "1", isImportField = "true" )
private String lead_name;
/** 手机号 **/
@JSONField(name = "mobile")
@Excel(name = "手机号(mobile)",orderNum = "1", isImportField = "true" )
private String mobile;
/** 状态 **/
@JSONField(name = "lead_status")
@Excel(name = "状态(lead_status)",orderNum = "1", isImportField = "true" )
private String lead_status;
/** 销售人员 **/
@JSONField(name = "sales_id")
@Excel(name = "销售人员(sales_id)",orderNum = "1", isImportField = "true" )
private String sales_id;
/** 备注 **/
@JSONField(name = "remark")
@Excel(name = "备注(remark)",orderNum = "1", isImportField = "true" )
private String remark;
/** 邮箱 **/
@JSONField(name = "email")
@Excel(name = "邮箱(email)",orderNum = "1", isImportField = "true" )
private String email;
/** 来源 **/
@JSONField(name = "customer_source")
@Excel(name = "来源(customer_source)",orderNum = "1", isImportField = "true" )
private String customer_source;
}

View File

@@ -1,67 +0,0 @@
package com.yunzhupaas.base.model.crmlead;
import lombok.Data;
import java.util.*;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* crm_lead
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@Schema(description = "表单参数")
public class CrmLeadForm {
/** 主键 */
@Schema(description = "主键")
@JSONField(name = "lead_id")
private String leadId;
/** 乐观锁 **/
@Schema(description = "乐观锁")
@JsonProperty("f_version")
@JSONField(name = "f_version")
private Integer version;
/** 线索名称 **/
@Schema(description = "线索名称")
@JsonProperty("lead_name")
@JSONField(name = "lead_name")
private String leadName;
/** 手机号 **/
@Schema(description = "手机号")
@JsonProperty("mobile")
@JSONField(name = "mobile")
private String mobile;
/** 邮箱 **/
@Schema(description = "邮箱")
@JsonProperty("email")
@JSONField(name = "email")
private String email;
/** 状态 **/
@Schema(description = "状态")
@JsonProperty("lead_status")
@JSONField(name = "lead_status")
private Object leadStatus;
/** 销售人员 **/
@Schema(description = "销售人员")
@JsonProperty("sales_id")
@JSONField(name = "sales_id")
private Object salesId;
/** 来源 **/
@Schema(description = "来源")
@JsonProperty("customer_source")
@JSONField(name = "customer_source")
private Object customerSource;
/** 备注 **/
@Schema(description = "备注")
@JsonProperty("remark")
@JSONField(name = "remark")
private String remark;
}

View File

@@ -1,55 +0,0 @@
package com.yunzhupaas.base.model.crmlead;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import com.yunzhupaas.base.Pagination;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
/**
*
* crm_lead
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@Schema(description = "列表查询参数")
public class CrmLeadPagination extends Pagination {
/** 关键词搜索 */
@Schema(description = "关键词搜索")
private String yunzhupaasKeyword;
/** 查询key */
@Schema(description = "查询key")
private String[] selectKey;
/** 选中数据数组id */
@Schema(description = "选中数据数组id")
private Object[] selectIds;
/** json */
@Schema(description = "json")
private String json;
/** 数据类型 0-当前页1-全部数据 */
@Schema(description = "数据类型 0-当前页1-全部数据")
private String dataType;
/** 高级查询 */
@Schema(description = "高级查询")
private String superQueryJson;
/** 功能id */
@Schema(description = "功能id")
private String moduleId;
/** 菜单id */
@Schema(description = "菜单id")
private String menuId;
/** 手机号 */
@Schema(description = "手机号")
@JsonProperty("mobile")
@JSONField(name = "mobile")
private Object mobile;
/** 来源 */
@Schema(description = "来源")
@JsonProperty("customer_source")
@JSONField(name = "customerSource")
private Object customerSource;
}

View File

@@ -1,22 +0,0 @@
package com.yunzhupaas.base.model.crmopportunity;
import lombok.Data;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
/**
*
* crm_opportunity
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
public class CrmOpportunityExcelErrorVO extends CrmOpportunityExcelVO{
@Excel(name = "异常原因",orderNum = "-999")
@JSONField(name = "errorsInfo")
private String errorsInfo;
}

View File

@@ -1,25 +0,0 @@
package com.yunzhupaas.base.model.crmopportunity;
import lombok.Data;
import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.annotation.JSONField;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import java.math.BigDecimal;
import java.util.List;
/**
*
* crm_opportunity
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
public class CrmOpportunityExcelVO{
}

View File

@@ -1,97 +0,0 @@
package com.yunzhupaas.base.model.crmopportunity;
import lombok.Data;
import java.util.*;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* crm_opportunity
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@Schema(description = "表单参数")
public class CrmOpportunityForm {
/** 主键 */
@Schema(description = "主键")
@JSONField(name = "opportunity_id")
private String opportunityId;
/** 乐观锁 **/
@Schema(description = "乐观锁")
@JsonProperty("f_version")
@JSONField(name = "f_version")
private Integer version;
/** 商机编码 **/
@Schema(description = "商机编码")
@JsonProperty("opportunity_code")
@JSONField(name = "opportunity_code")
private String opportunityCode;
/** 商机名称 **/
@Schema(description = "商机名称")
@JsonProperty("opportunity_name")
@JSONField(name = "opportunity_name")
private String opportunityName;
/** 客户 **/
@Schema(description = "客户")
@JsonProperty("customer_id")
@JSONField(name = "customer_id")
private String customerId;
/** 商机负责人 **/
@Schema(description = "商机负责人")
@JsonProperty("owner_id")
@JSONField(name = "owner_id")
private Object ownerId;
/** 商机阶段 **/
@Schema(description = "商机阶段")
@JsonProperty("opportunity_stage")
@JSONField(name = "opportunity_stage")
private Object opportunityStage;
/** 预计金额 **/
@Schema(description = "预计金额")
@JsonProperty("amount")
@JSONField(name = "amount")
private BigDecimal amount;
/** 预计成交日期 **/
@Schema(description = "预计成交日期")
@JsonProperty("close_date")
@JSONField(name = "close_date")
private String closeDate;
/** 商机简介 **/
@Schema(description = "商机简介")
@JsonProperty("desciption")
@JSONField(name = "desciption")
private String desciption;
/** 赢单概率 **/
@Schema(description = "赢单概率")
@JsonProperty("probability")
@JSONField(name = "probability")
private BigDecimal probability;
/** 最后跟进日期 **/
@Schema(description = "最后跟进日期")
@JsonProperty("last_followup_date")
@JSONField(name = "last_followup_date")
private String lastFollowupDate;
/** 竞争对手信息 **/
@Schema(description = "竞争对手信息")
@JsonProperty("competitor")
@JSONField(name = "competitor")
private String competitor;
/** 决策分析 **/
@Schema(description = "决策分析")
@JsonProperty("analysis")
@JSONField(name = "analysis")
private String analysis;
/** 备注 **/
@Schema(description = "备注")
@JsonProperty("remark")
@JSONField(name = "remark")
private String remark;
}

View File

@@ -1,60 +0,0 @@
package com.yunzhupaas.base.model.crmopportunity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import com.yunzhupaas.base.Pagination;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
/**
*
* crm_opportunity
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-03-27
*/
@Data
@Schema(description = "列表查询参数")
public class CrmOpportunityPagination extends Pagination {
/** 关键词搜索 */
@Schema(description = "关键词搜索")
private String yunzhupaasKeyword;
/** 查询key */
@Schema(description = "查询key")
private String[] selectKey;
/** 选中数据数组id */
@Schema(description = "选中数据数组id")
private Object[] selectIds;
/** json */
@Schema(description = "json")
private String json;
/** 数据类型 0-当前页1-全部数据 */
@Schema(description = "数据类型 0-当前页1-全部数据")
private String dataType;
/** 高级查询 */
@Schema(description = "高级查询")
private String superQueryJson;
/** 功能id */
@Schema(description = "功能id")
private String moduleId;
/** 菜单id */
@Schema(description = "菜单id")
private String menuId;
/** 商机名称 */
@Schema(description = "商机名称")
@JsonProperty("opportunity_name")
@JSONField(name = "opportunityName")
private Object opportunityName;
/** 商机阶段 */
@Schema(description = "商机阶段")
@JsonProperty("opportunity_stage")
@JSONField(name = "opportunityStage")
private Object opportunityStage;
/** 预计成交日期 */
@Schema(description = "预计成交日期")
@JsonProperty("close_date")
@JSONField(name = "closeDate")
private Object closeDate;
}