Commit b93bc9e9 authored by 赵啸非's avatar 赵啸非

添加基础配置

parent b4f6c419
This diff is collapsed.
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 数据类型(number.数字,string.字符串)枚举类
*
* @author zxfei
*/
public enum DataTypeEnum {
数字("number", "数字"),
字符串("string", "字符串");
private String value;
private String desc;
DataTypeEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static DataTypeEnum getByValue(String value) {
for (DataTypeEnum dataTypeEnum : DataTypeEnum.values()) {
if (dataTypeEnum.getValue() == value) {
return dataTypeEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(String... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (DataTypeEnum item : DataTypeEnum.values()) {
try {
boolean hasE = false;
for (String e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 是否允许为空,(0.否,1.是)枚举类
*
* @author zxfei
*/
public enum FieldNullEnum {
(0, "否"),
(1, "是");
private Integer value;
private String desc;
FieldNullEnum(Integer value, String desc) {
this.value = value;
this.desc = desc;
}
public Integer getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static FieldNullEnum getByValue(Integer value) {
for (FieldNullEnum fieldNullEnum : FieldNullEnum.values()) {
if (fieldNullEnum.getValue() == value) {
return fieldNullEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(Integer... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (FieldNullEnum item : FieldNullEnum.values()) {
try {
boolean hasE = false;
for (Integer e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 字段类型(input.单行输入框,textarea.多行输入框,SELECT.下拉选项框,date.日期选择框)枚举类
*
* @author zxfei
*/
public enum FieldTypeEnum {
单行输入框("input", "单行输入框"),
多行输入框("textarea", "多行输入框"),
下拉选项框("SELECT", "下拉选项框"),
日期选择框("date", "日期选择框");
private String value;
private String desc;
FieldTypeEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static FieldTypeEnum getByValue(String value) {
for (FieldTypeEnum fieldTypeEnum : FieldTypeEnum.values()) {
if (fieldTypeEnum.getValue() == value) {
return fieldTypeEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(String... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (FieldTypeEnum item : FieldTypeEnum.values()) {
try {
boolean hasE = false;
for (String e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 字段是否列表显示(0.否,1.是)枚举类
*
* @author zxfei
*/
public enum IsListEnum {
(0, "否"),
(1, "是");
private Integer value;
private String desc;
IsListEnum(Integer value, String desc) {
this.value = value;
this.desc = desc;
}
public Integer getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static IsListEnum getByValue(Integer value) {
for (IsListEnum isListEnum : IsListEnum.values()) {
if (isListEnum.getValue() == value) {
return isListEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(Integer... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (IsListEnum item : IsListEnum.values()) {
try {
boolean hasE = false;
for (Integer e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 法定代表人(负责人)枚举类
*
* @author zxfei
*/
public enum LegalPersonNameEnum {
负责人("负责人", "负责人");
private String value;
private String desc;
LegalPersonNameEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static LegalPersonNameEnum getByValue(String value) {
for (LegalPersonNameEnum legalPersonNameEnum : LegalPersonNameEnum.values()) {
if (legalPersonNameEnum.getValue() == value) {
return legalPersonNameEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(String... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (LegalPersonNameEnum item : LegalPersonNameEnum.values()) {
try {
boolean hasE = false;
for (String e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
package com.mortals.xhx.module.business.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import java.util.List;
/**
* 行业许可子证Dao
* 行业许可子证 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface BusinessLicenseDao extends ICRUDDao<BusinessLicenseEntity,Long>{
}
package com.mortals.xhx.module.business.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.business.model.BusinessLicenseDatasetEntity;
import java.util.List;
/**
* 行业许可子证数据集Dao
* 行业许可子证数据集 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface BusinessLicenseDatasetDao extends ICRUDDao<BusinessLicenseDatasetEntity,Long>{
}
package com.mortals.xhx.module.business.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.business.model.BusinessLicenseInfoFieldEntity;
import java.util.List;
/**
* 行业许可子证信息字段Dao
* 行业许可子证信息字段 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface BusinessLicenseInfoFieldDao extends ICRUDDao<BusinessLicenseInfoFieldEntity,Long>{
}
package com.mortals.xhx.module.business.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.business.model.BusinessLicenseTempleteFieldEntity;
import java.util.List;
/**
* 行业许可子证模板信息字段Dao
* 行业许可子证模板信息字段 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface BusinessLicenseTempleteFieldDao extends ICRUDDao<BusinessLicenseTempleteFieldEntity,Long>{
}
package com.mortals.xhx.module.business.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.business.dao.BusinessLicenseDao;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("businessLicenseDao")
public class BusinessLicenseDaoImpl extends BaseCRUDDaoMybatis<BusinessLicenseEntity,Long> implements BusinessLicenseDao {
}
package com.mortals.xhx.module.business.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.business.dao.BusinessLicenseDatasetDao;
import com.mortals.xhx.module.business.model.BusinessLicenseDatasetEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证数据集DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("businessLicenseDatasetDao")
public class BusinessLicenseDatasetDaoImpl extends BaseCRUDDaoMybatis<BusinessLicenseDatasetEntity,Long> implements BusinessLicenseDatasetDao {
}
package com.mortals.xhx.module.business.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.business.dao.BusinessLicenseInfoFieldDao;
import com.mortals.xhx.module.business.model.BusinessLicenseInfoFieldEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证信息字段DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("businessLicenseInfoFieldDao")
public class BusinessLicenseInfoFieldDaoImpl extends BaseCRUDDaoMybatis<BusinessLicenseInfoFieldEntity,Long> implements BusinessLicenseInfoFieldDao {
}
package com.mortals.xhx.module.business.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.business.dao.BusinessLicenseTempleteFieldDao;
import com.mortals.xhx.module.business.model.BusinessLicenseTempleteFieldEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证模板信息字段DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("businessLicenseTempleteFieldDao")
public class BusinessLicenseTempleteFieldDaoImpl extends BaseCRUDDaoMybatis<BusinessLicenseTempleteFieldEntity,Long> implements BusinessLicenseTempleteFieldDao {
}
package com.mortals.xhx.module.business.model;
import java.util.List;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.vo.BusinessLicenseDatasetVo;
import com.mortals.xhx.module.business.model.BusinessLicenseInfoFieldEntity;
import lombok.Data;
/**
* 行业许可子证数据集实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseDatasetEntity extends BusinessLicenseDatasetVo {
private static final long serialVersionUID = 1L;
/**
* 许可子证Id
*/
private Long subLicenseId;
/**
* 行业许可子证信息字段信息
*/
private List<BusinessLicenseInfoFieldEntity> businessLicenseInfoFieldList=new ArrayList<>();;
public List<BusinessLicenseInfoFieldEntity> getBusinessLicenseInfoFieldList(){
return businessLicenseInfoFieldList;
}
public void setBusinessLicenseInfoFieldList(List<BusinessLicenseInfoFieldEntity> businessLicenseInfoFieldList){
this.businessLicenseInfoFieldList = businessLicenseInfoFieldList;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof BusinessLicenseDatasetEntity) {
BusinessLicenseDatasetEntity tmp = (BusinessLicenseDatasetEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.subLicenseId = null;
}
}
\ No newline at end of file
package com.mortals.xhx.module.business.model;
import java.util.List;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.vo.BusinessLicenseVo;
import com.mortals.xhx.module.business.model.BusinessLicenseDatasetEntity;
import lombok.Data;
/**
* 行业许可子证实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseEntity extends BusinessLicenseVo {
private static final long serialVersionUID = 1L;
/**
* 市场主体名称
*/
private String marketEntityName;
/**
* 许可证编号
*/
private String licenseCode;
/**
* 法定代表人(负责人)
*/
private String legalPersonName;
/**
* 统一社会信用代码
*/
private String creditCode;
/**
* 制证日期
*/
private Date productLicenseTime;
/**
* 证件二维码
*/
private String certQRCode;
/**
* 链接地址
*/
private String url;
/**
* 制证机关
*/
private String certAuthority;
/**
* 经营场所
*/
private String businessPlace;
/**
* 许可项目
*/
private String licensedItems;
/**
* 文件名称
*/
private String fileName;
/**
* 文件相对路径地址
*/
private String filePath;
/**
* 简介
*/
private String summary;
/**
* 备注
*/
private String remark;
/**
* 行业许可子证数据集信息
*/
private List<BusinessLicenseDatasetEntity> businessLicenseDatasetList=new ArrayList<>();;
public List<BusinessLicenseDatasetEntity> getBusinessLicenseDatasetList(){
return businessLicenseDatasetList;
}
public void setBusinessLicenseDatasetList(List<BusinessLicenseDatasetEntity> businessLicenseDatasetList){
this.businessLicenseDatasetList = businessLicenseDatasetList;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof BusinessLicenseEntity) {
BusinessLicenseEntity tmp = (BusinessLicenseEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.marketEntityName = "";
this.licenseCode = "";
this.legalPersonName = "";
this.creditCode = "";
this.productLicenseTime = null;
this.certQRCode = "";
this.url = "";
this.certAuthority = "";
this.businessPlace = "";
this.licensedItems = "";
this.fileName = "";
this.filePath = "";
this.summary = "";
this.remark = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.business.model;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.vo.BusinessLicenseInfoFieldVo;
import lombok.Data;
/**
* 行业许可子证信息字段实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseInfoFieldEntity extends BusinessLicenseInfoFieldVo {
private static final long serialVersionUID = 1L;
/**
* 子证数据集Id
*/
private Long datasetId;
/**
* 字段编码
*/
private String fieldCode;
/**
* 字段名称
*/
private String fieldName;
/**
* 字段类型(input.单行输入框,textarea.多行输入框,SELECT.下拉选项框,date.日期选择框)
*/
private String fieldType;
/**
* 字段类型值,当字段类型为多选,单选时候,预设复选值
*/
private String fieldTypeValue;
/**
* 数据类型(number.数字,string.字符串)
*/
private String dataType;
/**
* 字段值
*/
private String fieldValue;
/**
* 字段默认值
*/
private String defaultValue;
/**
* 数据长度,默认128
*/
private Integer fieldLen;
/**
* 是否允许为空,(0.否,1.是)
*/
private Integer fieldNull;
/**
* 字段是否列表显示(0.否,1.是)
*/
private Integer isList;
/**
* 排序号
*/
private Integer fieldOrderNo;
/**
* 事件服务接口请求地址
*/
private String serviceApi;
/**
* 事件服务接口请求参数
*/
private String serviceApiParams;
/**
* 备注
*/
private String remark;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof BusinessLicenseInfoFieldEntity) {
BusinessLicenseInfoFieldEntity tmp = (BusinessLicenseInfoFieldEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.datasetId = null;
this.fieldCode = "";
this.fieldName = "";
this.fieldType = "";
this.fieldTypeValue = "";
this.dataType = "string";
this.fieldValue = "";
this.defaultValue = "";
this.fieldLen = 128;
this.fieldNull = 1;
this.isList = 0;
this.fieldOrderNo = 0;
this.serviceApi = "";
this.serviceApiParams = "";
this.remark = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.business.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.BusinessLicenseDatasetEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 行业许可子证数据集视图对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseDatasetVo extends BaseEntityLong {
/** 主键ID,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.business.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.BusinessLicenseInfoFieldEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 行业许可子证信息字段视图对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseInfoFieldVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.business.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.BusinessLicenseTempleteFieldEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 行业许可子证模板信息字段视图对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class BusinessLicenseTempleteFieldVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.business.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.business.model.BusinessLicenseDatasetEntity;
import com.mortals.xhx.module.business.dao.BusinessLicenseDatasetDao;
/**
* BusinessLicenseDatasetService
*
* 行业许可子证数据集 service接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface BusinessLicenseDatasetService extends ICRUDService<BusinessLicenseDatasetEntity,Long>{
BusinessLicenseDatasetDao getDao();
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment