新增主数据与基本配置部分代码

This commit is contained in:
wangmingwei
2026-05-20 14:44:47 +08:00
parent 0f9631cf9a
commit 4d923017eb
61 changed files with 4442 additions and 36 deletions

View File

@@ -0,0 +1,81 @@
package com.yunzhupaas.mdm.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-05-18
*/
@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

@@ -0,0 +1,65 @@
package com.yunzhupaas.mdm.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-05-19
*/
@Data
@TableName("mdm_project")
public class ProjectsEntity {
@TableId(value ="project_id" )
@JSONField(name = "project_id")
private String projectId;
@TableField(value = "project_code" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "project_code")
private String projectCode;
@TableField(value = "project_name" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "project_name")
private String projectName;
@TableField(value = "pid" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "pid")
private String pid;
@TableField(value = "org_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "org_id")
private String orgId;
@TableField(value = "project_type_id" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "project_type_id")
private String projectTypeId;
@TableField(value = "seq_num" , updateStrategy = FieldStrategy.IGNORED)
@JSONField(name = "seq_num")
private Integer seqNum;
@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(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
@JSONField(name = "f_tenant_id")
private String tenantId;
@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;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
package com.yunzhupaas.mdm.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-05-18
*/
@Data
public class CrmLeadExcelErrorVO extends CrmLeadExcelVO{
@Excel(name = "异常原因",orderNum = "-999")
@JSONField(name = "errorsInfo")
private String errorsInfo;
}

View File

@@ -0,0 +1,60 @@
package com.yunzhupaas.mdm.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-05-18
*/
@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

@@ -0,0 +1,75 @@
package com.yunzhupaas.mdm.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-05-18
*/
@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;
/** 流程id **/
@Schema(description = "流程id")
@JsonProperty("flowId")
@JSONField(name = "f_flow_id")
private String flowId;
/** 流程权限列表 **/
@JsonProperty("formOperates")
private List<Map<String,Object>> formOperates = new ArrayList<>();
/** 线索名称 **/
@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

@@ -0,0 +1,58 @@
package com.yunzhupaas.mdm.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-05-18
*/
@Data
@Schema(description = "列表查询参数")
public class CrmLeadPagination extends Pagination {
/** 流程模板id */
@Schema(description = "流程模板id")
private String flowId;
/** 关键词搜索 */
@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;
}

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -0,0 +1,25 @@
package com.yunzhupaas.mdm.model.projects;
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;
/**
*
* 项目信息
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-05-19
*/
@Data
public class ProjectsExcelVO{
}

View File

@@ -0,0 +1,62 @@
package com.yunzhupaas.mdm.model.projects;
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;
/**
* 项目信息
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-05-19
*/
@Data
@Schema(description = "表单参数")
public class ProjectsForm {
/** 主键 */
@Schema(description = "主键")
@JSONField(name = "project_id")
private String projectId;
/** 项目编码 **/
@Schema(description = "项目编码")
@JsonProperty("project_code")
@JSONField(name = "project_code")
private String projectCode;
/** 项目名称 **/
@Schema(description = "项目名称")
@JsonProperty("project_name")
@JSONField(name = "project_name")
private String projectName;
/** 项目类型 **/
@Schema(description = "项目类型")
@JsonProperty("project_type_id")
@JSONField(name = "project_type_id")
private Object projectTypeId;
/** 归属组织 **/
@Schema(description = "归属组织")
@JsonProperty("org_id")
@JSONField(name = "org_id")
private Object orgId;
/** 上级项目 **/
@Schema(description = "上级项目")
@JsonProperty("pid")
@JSONField(name = "pid")
private Object pid;
/** 顺序号 **/
@Schema(description = "顺序号")
@JsonProperty("seq_num")
@JSONField(name = "seq_num")
private BigDecimal seqNum;
/** 备注 **/
@Schema(description = "备注")
@JsonProperty("remark")
@JSONField(name = "remark")
private String remark;
}

View File

@@ -0,0 +1,63 @@
package com.yunzhupaas.mdm.model.projects;
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;
/**
*
* 项目信息
* @版本: V5.2.7
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
* @作者: 深圳市乐程软件有限公司
* @日期: 2026-05-19
*/
@Data
@Schema(description = "列表查询参数")
public class ProjectsPagination 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("project_name")
@JSONField(name = "projectName")
private Object projectName;
/** 归属组织 */
@Schema(description = "归属组织")
@JsonProperty("org_id")
@JSONField(name = "orgId")
private Object orgId;
/**
* 树形异步父级字段传值
*/
private String treeParentValue;
/**
* 是否有参数
*/
private boolean hasParam=false;
}