From 5c765d5946d246bde8567ee8d9986b4ff05e0d21 Mon Sep 17 00:00:00 2001 From: zjh <10930829+zheng-jinhao1209@user.noreply.gitee.com> Date: Mon, 10 Jul 2023 18:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=A7=84=E5=88=99=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/rulex/entity/RuleVo.java | 181 ++++++++++++++++++ .../demo/rulex/mapper/RuleVoMapper.java | 16 ++ .../demo/rulex/service/IRuleVoService.java | 16 ++ .../rulex/service/impl/RuleVoServiceImpl.java | 20 ++ 4 files changed, 233 insertions(+) create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/entity/RuleVo.java create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/mapper/RuleVoMapper.java create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/IRuleVoService.java create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/impl/RuleVoServiceImpl.java diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/entity/RuleVo.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/entity/RuleVo.java new file mode 100644 index 0000000..0f73a62 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/entity/RuleVo.java @@ -0,0 +1,181 @@ +package org.jeecg.modules.demo.rulex.entity; + +import java.io.Serializable; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 规则管理 + * @Author: jeecg-boot + * @Date: 2023-04-10 + * @Version: V1.0 + */ +@Data +@TableName("rule_vo") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value = "rulex对象", description = "规则管理") +public class RuleVo implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /** + * 创建人 + */ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /** + * 创建日期 + */ + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private String createTime; + /** + * 更新人 + */ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /** + * 更新日期 + */ + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private String updateTime; + /** + * 对应模块id + */ + @Excel(name = "对应模块id", width = 15) + @ApiModelProperty(value = "对应模块id") + @Dict(dictTable = "modulex", dicCode = "id", dicText = "module_name") + private java.lang.String moduleId; + /** + * 对应功能id + */ + @Excel(name = "对应功能id", width = 15) + @ApiModelProperty(value = "对应功能id") + @Dict(dictTable = "functionx", dicCode = "id", dicText = "function_name") + private java.lang.String functionId; + /** + * 规则序号 + */ + @Excel(name = "规则序号", width = 15) + @ApiModelProperty(value = "规则序号") + private java.lang.String ruleNo; + /** + * 规则编码 + */ + @Excel(name = "规则编码", width = 15) + @ApiModelProperty(value = "规则编码") + private java.lang.String ruleCode; + /** + * 规则描述 + */ + @Excel(name = "规则描述", width = 15) + @ApiModelProperty(value = "规则描述") + private java.lang.String pmDescribe; + /** + * 分析图 + */ + @Excel(name = "分析图", width = 15) + @ApiModelProperty(value = "分析图") + private java.lang.String diagrams; + /** + * 对应实体id + */ + @Excel(name = "对应实体id", width = 15) + @ApiModelProperty(value = "对应实体id") + @Dict(dictTable = "tablex", dicText = "table_name", dicCode = "id") + private java.lang.String tableId; + /** + * 对应字段 + */ + @Excel(name = "对应字段", width = 15) + @ApiModelProperty(value = "对应字段") + @Dict(dictTable = "fieldx", dicText = "field_name", dicCode = "id") + private java.lang.String fieldId; + /** + * 责任人 + */ + @Excel(name = "责任人", width = 15) + @ApiModelProperty(value = "责任人") + private java.lang.String managerUsers; + /** + * 任务等级 + */ + @Excel(name = "任务等级", width = 15) + @ApiModelProperty(value = "任务等级") + @Dict(dicCode = "work_level") + private String workLevel; + /** + * 任务状态 + */ + @Excel(name = "任务状态", width = 15) + @ApiModelProperty(value = "任务状态") + @Dict(dicCode = "work_status") + private String workStatus; + /** + * 开始时间 + */ + @Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "开始时间") + private String startTime; + /** + * 任务时长 + */ + @Excel(name = "任务时长", width = 15) + @ApiModelProperty(value = "任务时长") + private String duration; + /** + * 提交时间 + */ + @Excel(name = "提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "提交时间") + private String submitTime; + /** + * 实际时长 + */ + @Excel(name = "实际时长", width = 15) + @ApiModelProperty(value = "实际时长") + private String realDuration; + /** + * 规则状态 + */ + @Excel(name = "规则状态", width = 15) + @ApiModelProperty(value = "规则状态") + @Dict(dicCode = "status") + private String status; + /** + * 版本状态 + */ + @Excel(name = "版本状态", width = 15) + @ApiModelProperty(value = "版本状态") + @Dict(dicCode = "verison_status") + private String verisonStatus; + /** + * 版本号 + */ + @Excel(name = "版本号", width = 15) + @ApiModelProperty(value = "版本号") + private java.lang.String verison; +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/mapper/RuleVoMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/mapper/RuleVoMapper.java new file mode 100644 index 0000000..b2abd26 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/mapper/RuleVoMapper.java @@ -0,0 +1,16 @@ +package org.jeecg.modules.demo.rulex.mapper; + +import org.jeecg.modules.demo.rulex.entity.RuleVo; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *
+ * Mapper 接口 + *
+ * + * @author zjh + * @since 2023-07-10 + */ +public interface RuleVoMapper extends BaseMapper+ * 服务类 + *
+ * + * @author zjh + * @since 2023-07-10 + */ +public interface IRuleVoService extends IService+ * 服务实现类 + *
+ * + * @author zjh + * @since 2023-07-10 + */ +@Service +public class RuleVoServiceImpl extends ServiceImpl