统一代码风格

This commit is contained in:
TinyAnts
2022-07-18 15:05:31 +08:00
parent fdae717b4e
commit e6a9cf9a8b
35 changed files with 308 additions and 78 deletions

View File

@@ -0,0 +1,30 @@
package com.hxkj.common.entity.setting;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;
/**
* 字典数据实体
*/
@Data
public class DictData implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value="id", type= IdType.AUTO)
private Integer id; // 主键
private Integer typeId; // 类型
private String key; // 键名
private String value; // 数值
private String remark; // 备注
private Integer sort; // 排序
private Integer status; // 状态: 0=停用, 1-正常
private Integer isDelete; // 是否删除: 0=否, 1=是
private Long createTime; // 创建时间
private Long updateTime; // 更新时间
private Long deleteTime; // 删除时间
}

View File

@@ -0,0 +1,28 @@
package com.hxkj.common.entity.setting;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;
/**
* 字典类型实体
*/
@Data
public class DictType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value="id", type= IdType.AUTO)
private Integer id; // 字典主键
private String dictName; // 字典名称
private String dictType; // 字典类型
private String dictRemark; // 字典备注
private Integer dictStatus; // 字典状态: 0=停用, 1=正常
private Integer isDelete; // 是否删除: 0=否, 1=是
private Long createTime; // 创建时间
private Long updateTime; // 更新时间
private Long deleteTime; // 删除时间
}

View File

@@ -0,0 +1,12 @@
package com.hxkj.common.mapper.setting;
import com.hxkj.common.core.basics.IBaseMapper;
import com.hxkj.common.entity.setting.DictData;
import org.apache.ibatis.annotations.Mapper;
/**
* 字典数据Mapper
*/
@Mapper
public interface DictDataMapper extends IBaseMapper<DictData> {
}

View File

@@ -0,0 +1,12 @@
package com.hxkj.common.mapper.setting;
import com.hxkj.common.core.basics.IBaseMapper;
import com.hxkj.common.entity.setting.DictType;
import org.apache.ibatis.annotations.Mapper;
/**
* 字典类型Mapper
*/
@Mapper
public interface DictTypeMapper extends IBaseMapper<DictType> {
}