Commit 539d40f3 authored by 廖旭伟's avatar 廖旭伟
parents 8c955e42 2e802679
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
......@@ -2,7 +2,7 @@ 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接口
......
package com.mortals.xhx.module.business.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
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;
import org.springframework.stereotype.Repository;
/**
* 营业执照信息DaoImpl DAO接口
*
......
package com.mortals.xhx.module.business.model;
import java.util.List;
import java.util.ArrayList;
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;
/**
* 营业执照信息实体对象
......
package com.mortals.xhx.module.business.model;
import java.util.List;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
/**
* 营业执照信息查询对象
*
......
package com.mortals.xhx.module.business.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 营业执照信息视图对象
*
......
package com.mortals.xhx.module.business.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.ap.GlobalSysInfo;
import com.mortals.framework.common.code.ExcuteStatus;
import com.mortals.framework.common.code.TaskExcuteStrategy;
import com.mortals.framework.common.code.TaskInterimExcuteStatus;
import com.mortals.framework.service.ITaskExcuteService;
import com.mortals.framework.springcloud.service.IApplicationStartedService;
import com.mortals.framework.util.DataUtil;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.util.DateUtils;
import com.mortals.framework.util.StringUtils;
import com.mortals.framework.util.SystemUtil;
import com.mortals.xhx.base.system.task.model.TaskEntity;
import com.mortals.xhx.base.system.task.model.TaskQuery;
import com.mortals.xhx.common.code.HolderIdType;
import com.mortals.xhx.common.code.HolderType;
import com.mortals.xhx.module.business.dao.BusinessLicenseDao;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import com.mortals.xhx.module.business.service.BusinessLicenseService;
import com.mortals.xhx.module.certificate.model.CertificateCatalogEntity;
import com.mortals.xhx.module.certificate.model.CertificateCatalogQuery;
import com.mortals.xhx.module.certificate.model.CertificateCatalogTemplateEntity;
......@@ -26,21 +22,10 @@ import com.mortals.xhx.module.record.model.ApplyLogEntity;
import com.mortals.xhx.module.record.model.ApplyLogQuery;
import com.mortals.xhx.module.record.service.ApplyLogService;
import org.apache.commons.collections4.CollectionUtils;
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.business.dao.BusinessLicenseDao;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import com.mortals.xhx.module.business.service.BusinessLicenseService;
import java.time.LocalDateTime;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* BusinessLicenseService
......
package com.mortals.xhx.module.business.web;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.api.PrintCatalogVO;
import com.mortals.xhx.module.print.model.PrintCatalogEntity;
import com.mortals.xhx.module.print.model.PrintCatalogQuery;
import org.apache.commons.collections4.CollectionUtils;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import com.mortals.xhx.module.business.service.BusinessLicenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.business.model.BusinessLicenseEntity;
import com.mortals.xhx.module.business.service.BusinessLicenseService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 营业执照信息
......
package com.mortals.xhx.module.child.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import java.util.List;
/**
* 行业许可子证Dao
* 行业许可子证 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseDao extends ICRUDDao<ChildLicenseEntity,Long>{
}
package com.mortals.xhx.module.child.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import java.util.List;
/**
* 行业许可子证数据集Dao
* 行业许可子证数据集 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseDatasetDao extends ICRUDDao<ChildLicenseDatasetEntity,Long>{
}
package com.mortals.xhx.module.child.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import java.util.List;
/**
* 行业许可子证信息字段Dao
* 行业许可子证信息字段 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseInfoFieldDao extends ICRUDDao<ChildLicenseInfoFieldEntity,Long>{
}
package com.mortals.xhx.module.child.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
import java.util.List;
/**
* 行业许可子证模板信息字段Dao
* 行业许可子证模板信息字段 DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseTempleteFieldDao extends ICRUDDao<ChildLicenseTempleteFieldEntity,Long>{
}
package com.mortals.xhx.module.child.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.child.dao.ChildLicenseDao;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("childLicenseDao")
public class ChildLicenseDaoImpl extends BaseCRUDDaoMybatis<ChildLicenseEntity,Long> implements ChildLicenseDao {
}
package com.mortals.xhx.module.child.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.child.dao.ChildLicenseDatasetDao;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证数据集DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("childLicenseDatasetDao")
public class ChildLicenseDatasetDaoImpl extends BaseCRUDDaoMybatis<ChildLicenseDatasetEntity,Long> implements ChildLicenseDatasetDao {
}
package com.mortals.xhx.module.child.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.child.dao.ChildLicenseInfoFieldDao;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证信息字段DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("childLicenseInfoFieldDao")
public class ChildLicenseInfoFieldDaoImpl extends BaseCRUDDaoMybatis<ChildLicenseInfoFieldEntity,Long> implements ChildLicenseInfoFieldDao {
}
package com.mortals.xhx.module.child.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.child.dao.ChildLicenseTempleteFieldDao;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 行业许可子证模板信息字段DaoImpl DAO接口
*
* @author zxfei
* @date 2024-07-27
*/
@Repository("childLicenseTempleteFieldDao")
public class ChildLicenseTempleteFieldDaoImpl extends BaseCRUDDaoMybatis<ChildLicenseTempleteFieldEntity,Long> implements ChildLicenseTempleteFieldDao {
}
package com.mortals.xhx.module.child.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.child.model.vo.ChildLicenseDatasetVo;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import lombok.Data;
/**
* 行业许可子证数据集实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class ChildLicenseDatasetEntity extends ChildLicenseDatasetVo {
private static final long serialVersionUID = 1L;
/**
* 许可子证Id
*/
private Long subLicenseId;
/**
* 行业许可子证信息字段信息
*/
private List<ChildLicenseInfoFieldEntity> childLicenseInfoFieldList=new ArrayList<>();;
public List<ChildLicenseInfoFieldEntity> getChildLicenseInfoFieldList(){
return childLicenseInfoFieldList;
}
public void setChildLicenseInfoFieldList(List<ChildLicenseInfoFieldEntity> childLicenseInfoFieldList){
this.childLicenseInfoFieldList = childLicenseInfoFieldList;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ChildLicenseDatasetEntity) {
ChildLicenseDatasetEntity tmp = (ChildLicenseDatasetEntity) 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.child.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.child.model.vo.ChildLicenseVo;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import lombok.Data;
/**
* 行业许可子证实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class ChildLicenseEntity extends ChildLicenseVo {
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;
/**
* 站点Id
*/
private Long siteId;
/**
* 站点名称
*/
private String siteName;
/**
* 行业许可子证数据集信息
*/
private List<ChildLicenseDatasetEntity> childLicenseDatasetList=new ArrayList<>();;
public List<ChildLicenseDatasetEntity> getChildLicenseDatasetList(){
return childLicenseDatasetList;
}
public void setChildLicenseDatasetList(List<ChildLicenseDatasetEntity> childLicenseDatasetList){
this.childLicenseDatasetList = childLicenseDatasetList;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ChildLicenseEntity) {
ChildLicenseEntity tmp = (ChildLicenseEntity) 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 = "";
this.siteId = null;
this.siteName = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.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.child.model.vo.ChildLicenseInfoFieldVo;
import lombok.Data;
/**
* 行业许可子证信息字段实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class ChildLicenseInfoFieldEntity extends ChildLicenseInfoFieldVo {
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 ChildLicenseInfoFieldEntity) {
ChildLicenseInfoFieldEntity tmp = (ChildLicenseInfoFieldEntity) 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.child.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.child.model.vo.ChildLicenseTempleteFieldVo;
import lombok.Data;
/**
* 行业许可子证模板信息字段实体对象
*
* @author zxfei
* @date 2024-07-27
*/
@Data
public class ChildLicenseTempleteFieldEntity extends ChildLicenseTempleteFieldVo {
private static final long serialVersionUID = 1L;
/**
* 许可子证Id
*/
private Long subLicenseId;
/**
* 字段编码
*/
private String fieldCode;
/**
* 字段名称
*/
private String fieldName;
/**
* 字段类型(input.单行输入框,textarea.多行输入框,SELECT.下拉选项框,date.日期选择框,editer.富文本)
*/
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 ChildLicenseTempleteFieldEntity) {
ChildLicenseTempleteFieldEntity tmp = (ChildLicenseTempleteFieldEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.subLicenseId = 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.child.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
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 ChildLicenseDatasetVo extends BaseEntityLong {
/** 主键ID,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.child.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
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 ChildLicenseInfoFieldVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.child.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
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 ChildLicenseTempleteFieldVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.child.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
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 ChildLicenseVo extends BaseEntityLong {
/** 主键ID,主键,自增长列表 */
private List <Long> idList;
}
\ No newline at end of file
package com.mortals.xhx.module.child.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import com.mortals.xhx.module.child.dao.ChildLicenseDatasetDao;
/**
* ChildLicenseDatasetService
*
* 行业许可子证数据集 service接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseDatasetService extends ICRUDService<ChildLicenseDatasetEntity,Long>{
ChildLicenseDatasetDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.child.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import com.mortals.xhx.module.child.dao.ChildLicenseInfoFieldDao;
/**
* ChildLicenseInfoFieldService
*
* 行业许可子证信息字段 service接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseInfoFieldService extends ICRUDService<ChildLicenseInfoFieldEntity,Long>{
ChildLicenseInfoFieldDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.child.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import com.mortals.xhx.module.child.dao.ChildLicenseDao;
/**
* ChildLicenseService
*
* 行业许可子证 service接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseService extends ICRUDService<ChildLicenseEntity,Long>{
ChildLicenseDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.child.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
import com.mortals.xhx.module.child.dao.ChildLicenseTempleteFieldDao;
/**
* ChildLicenseTempleteFieldService
*
* 行业许可子证模板信息字段 service接口
*
* @author zxfei
* @date 2024-07-27
*/
public interface ChildLicenseTempleteFieldService extends ICRUDService<ChildLicenseTempleteFieldEntity,Long>{
ChildLicenseTempleteFieldDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.child.service.impl;
import org.springframework.beans.BeanUtils;
import java.util.function.Function;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.child.dao.ChildLicenseDatasetDao;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import com.mortals.xhx.module.child.service.ChildLicenseDatasetService;
import org.springframework.beans.factory.annotation.Autowired;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldQuery;
import com.mortals.xhx.module.child.service.ChildLicenseInfoFieldService;
import org.springframework.util.ObjectUtils;
import java.util.Date;
import java.util.Arrays;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
/**
* ChildLicenseDatasetService
* 行业许可子证数据集 service实现
*
* @author zxfei
* @date 2024-07-27
*/
@Service("childLicenseDatasetService")
@Slf4j
public class ChildLicenseDatasetServiceImpl extends AbstractCRUDServiceImpl<ChildLicenseDatasetDao, ChildLicenseDatasetEntity, Long> implements ChildLicenseDatasetService {
@Autowired
private ChildLicenseInfoFieldService childLicenseInfoFieldService;
@Override
protected void findAfter(ChildLicenseDatasetEntity params,PageInfo pageInfo, Context context, List<ChildLicenseDatasetEntity> list) throws AppException {
fillSubData(list);
super.findAfter(params,pageInfo, context, list);
}
@Override
protected void findAfter(ChildLicenseDatasetEntity params, Context context, List<ChildLicenseDatasetEntity> list) throws AppException {
fillSubData(list);
super.findAfter(params, context, list);
}
private void fillSubData(List<ChildLicenseDatasetEntity> list) {
List<Long> idList = list.stream().map(i -> i.getId()).collect(Collectors.toList());
ChildLicenseInfoFieldQuery childLicenseInfoFieldQuery = new ChildLicenseInfoFieldQuery();
childLicenseInfoFieldQuery.setDatasetIdList(idList);
Map<Long, List<ChildLicenseInfoFieldEntity>> childLicenseInfoFieldListMap = childLicenseInfoFieldService.find(childLicenseInfoFieldQuery).stream().collect(Collectors.groupingBy(ChildLicenseInfoFieldEntity::getDatasetId));
list.forEach(item -> item.setChildLicenseInfoFieldList(childLicenseInfoFieldListMap.get(item.getId())));
}
@Override
protected void saveAfter(ChildLicenseDatasetEntity entity, Context context) throws AppException {
if(!ObjectUtils.isEmpty(entity.getChildLicenseInfoFieldList())){
entity.getChildLicenseInfoFieldList().stream().peek(item->{
item.setDatasetId(entity.getId());
item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date());
}).count();
childLicenseInfoFieldService.save(entity.getChildLicenseInfoFieldList());
}
super.saveAfter(entity, context);
}
@Override
protected void updateAfter(ChildLicenseDatasetEntity entity, Context context) throws AppException {
if(!ObjectUtils.isEmpty(entity.getChildLicenseInfoFieldList())){
Long[] childLicenseInfoFieldIds = childLicenseInfoFieldService.find(new ChildLicenseInfoFieldQuery().datasetId(entity.getId())).stream().map(ChildLicenseInfoFieldEntity::getId).toArray(Long[]::new);
childLicenseInfoFieldService.remove(childLicenseInfoFieldIds,context);
entity.getChildLicenseInfoFieldList().stream().peek(item ->{
item.setDatasetId(entity.getId());
item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date());
item.setUpdateUserId(this.getContextUserId(context));
item.setUpdateTime(new Date());
}).count();
childLicenseInfoFieldService.save(entity.getChildLicenseInfoFieldList());
}
super.updateAfter(entity, context);
}
@Override
protected void removeAfter(Long[] ids, Context context, int result) throws AppException {
List<ChildLicenseInfoFieldEntity> childLicenseInfoFieldlist = childLicenseInfoFieldService.find(new ChildLicenseInfoFieldQuery().datasetIdList(Arrays.asList(ids)));
childLicenseInfoFieldService.removeList(childLicenseInfoFieldlist,context);
super.removeAfter(ids, context, result);
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.service.impl;
import org.springframework.beans.BeanUtils;
import java.util.function.Function;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.child.dao.ChildLicenseInfoFieldDao;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import com.mortals.xhx.module.child.service.ChildLicenseInfoFieldService;
import lombok.extern.slf4j.Slf4j;
/**
* ChildLicenseInfoFieldService
* 行业许可子证信息字段 service实现
*
* @author zxfei
* @date 2024-07-27
*/
@Service("childLicenseInfoFieldService")
@Slf4j
public class ChildLicenseInfoFieldServiceImpl extends AbstractCRUDServiceImpl<ChildLicenseInfoFieldDao, ChildLicenseInfoFieldEntity, Long> implements ChildLicenseInfoFieldService {
}
\ No newline at end of file
package com.mortals.xhx.module.child.service.impl;
import org.springframework.beans.BeanUtils;
import java.util.function.Function;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.child.dao.ChildLicenseDao;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import com.mortals.xhx.module.child.service.ChildLicenseService;
import org.springframework.beans.factory.annotation.Autowired;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetQuery;
import com.mortals.xhx.module.child.service.ChildLicenseDatasetService;
import org.springframework.util.ObjectUtils;
import java.util.Date;
import java.util.Arrays;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
/**
* ChildLicenseService
* 行业许可子证 service实现
*
* @author zxfei
* @date 2024-07-27
*/
@Service("childLicenseService")
@Slf4j
public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicenseDao, ChildLicenseEntity, Long> implements ChildLicenseService {
@Autowired
private ChildLicenseDatasetService childLicenseDatasetService;
@Override
protected void findAfter(ChildLicenseEntity params,PageInfo pageInfo, Context context, List<ChildLicenseEntity> list) throws AppException {
fillSubData(list);
super.findAfter(params,pageInfo, context, list);
}
@Override
protected void findAfter(ChildLicenseEntity params, Context context, List<ChildLicenseEntity> list) throws AppException {
fillSubData(list);
super.findAfter(params, context, list);
}
private void fillSubData(List<ChildLicenseEntity> list) {
List<Long> idList = list.stream().map(i -> i.getId()).collect(Collectors.toList());
ChildLicenseDatasetQuery childLicenseDatasetQuery = new ChildLicenseDatasetQuery();
childLicenseDatasetQuery.setSubLicenseIdList(idList);
Map<Long, List<ChildLicenseDatasetEntity>> childLicenseDatasetListMap = childLicenseDatasetService.find(childLicenseDatasetQuery).stream().collect(Collectors.groupingBy(ChildLicenseDatasetEntity::getSubLicenseId));
list.forEach(item -> item.setChildLicenseDatasetList(childLicenseDatasetListMap.get(item.getId())));
}
@Override
protected void saveAfter(ChildLicenseEntity entity, Context context) throws AppException {
if(!ObjectUtils.isEmpty(entity.getChildLicenseDatasetList())){
entity.getChildLicenseDatasetList().stream().peek(item->{
item.setSubLicenseId(entity.getId());
item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date());
}).count();
childLicenseDatasetService.save(entity.getChildLicenseDatasetList());
}
super.saveAfter(entity, context);
}
@Override
protected void updateAfter(ChildLicenseEntity entity, Context context) throws AppException {
if(!ObjectUtils.isEmpty(entity.getChildLicenseDatasetList())){
Long[] childLicenseDatasetIds = childLicenseDatasetService.find(new ChildLicenseDatasetQuery().subLicenseId(entity.getId())).stream().map(ChildLicenseDatasetEntity::getId).toArray(Long[]::new);
childLicenseDatasetService.remove(childLicenseDatasetIds,context);
entity.getChildLicenseDatasetList().stream().peek(item ->{
item.setSubLicenseId(entity.getId());
item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date());
item.setUpdateUserId(this.getContextUserId(context));
item.setUpdateTime(new Date());
}).count();
childLicenseDatasetService.save(entity.getChildLicenseDatasetList());
}
super.updateAfter(entity, context);
}
@Override
protected void removeAfter(Long[] ids, Context context, int result) throws AppException {
List<ChildLicenseDatasetEntity> childLicenseDatasetlist = childLicenseDatasetService.find(new ChildLicenseDatasetQuery().subLicenseIdList(Arrays.asList(ids)));
childLicenseDatasetService.removeList(childLicenseDatasetlist,context);
super.removeAfter(ids, context, result);
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.service.impl;
import org.springframework.beans.BeanUtils;
import java.util.function.Function;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.child.dao.ChildLicenseTempleteFieldDao;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
import com.mortals.xhx.module.child.service.ChildLicenseTempleteFieldService;
import lombok.extern.slf4j.Slf4j;
/**
* ChildLicenseTempleteFieldService
* 行业许可子证模板信息字段 service实现
*
* @author zxfei
* @date 2024-07-27
*/
@Service("childLicenseTempleteFieldService")
@Slf4j
public class ChildLicenseTempleteFieldServiceImpl extends AbstractCRUDServiceImpl<ChildLicenseTempleteFieldDao, ChildLicenseTempleteFieldEntity, Long> implements ChildLicenseTempleteFieldService {
}
\ No newline at end of file
package com.mortals.xhx.module.child.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import com.mortals.xhx.module.child.service.ChildLicenseService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
import com.mortals.xhx.common.code.*;
/**
*
* 行业许可子证
*
* @author zxfei
* @date 2024-07-27
*/
@RestController
@RequestMapping("child/license")
public class ChildLicenseController extends BaseCRUDJsonBodyMappingController<ChildLicenseService,ChildLicenseEntity,Long> {
@Autowired
private ParamService paramService;
public ChildLicenseController(){
super.setModuleDesc( "行业许可子证");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "legalPersonName", LegalPersonNameEnum.getEnumMap());
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.child.model.ChildLicenseDatasetEntity;
import com.mortals.xhx.module.child.service.ChildLicenseDatasetService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
import com.mortals.xhx.common.code.*;
/**
*
* 行业许可子证数据集
*
* @author zxfei
* @date 2024-07-27
*/
@RestController
@RequestMapping("child/license/dataset")
public class ChildLicenseDatasetController extends BaseCRUDJsonBodyMappingController<ChildLicenseDatasetService,ChildLicenseDatasetEntity,Long> {
@Autowired
private ParamService paramService;
public ChildLicenseDatasetController(){
super.setModuleDesc( "行业许可子证数据集");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.child.model.ChildLicenseInfoFieldEntity;
import com.mortals.xhx.module.child.service.ChildLicenseInfoFieldService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
import com.mortals.xhx.common.code.*;
/**
*
* 行业许可子证信息字段
*
* @author zxfei
* @date 2024-07-27
*/
@RestController
@RequestMapping("child/license/info/field")
public class ChildLicenseInfoFieldController extends BaseCRUDJsonBodyMappingController<ChildLicenseInfoFieldService,ChildLicenseInfoFieldEntity,Long> {
@Autowired
private ParamService paramService;
public ChildLicenseInfoFieldController(){
super.setModuleDesc( "行业许可子证信息字段");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "fieldType", FieldTypeEnum.getEnumMap());
this.addDict(model, "dataType", DataTypeEnum.getEnumMap());
this.addDict(model, "fieldNull", FieldNullEnum.getEnumMap());
this.addDict(model, "isList", IsListEnum.getEnumMap());
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.child.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.child.model.ChildLicenseTempleteFieldEntity;
import com.mortals.xhx.module.child.service.ChildLicenseTempleteFieldService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
import com.mortals.xhx.common.code.*;
/**
*
* 行业许可子证模板信息字段
*
* @author zxfei
* @date 2024-07-27
*/
@RestController
@RequestMapping("child/license/templete/field")
public class ChildLicenseTempleteFieldController extends BaseCRUDJsonBodyMappingController<ChildLicenseTempleteFieldService,ChildLicenseTempleteFieldEntity,Long> {
@Autowired
private ParamService paramService;
public ChildLicenseTempleteFieldController(){
super.setModuleDesc( "行业许可子证模板信息字段");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "fieldType", FieldTypeEnum.getEnumMap());
this.addDict(model, "dataType", DataTypeEnum.getEnumMap());
this.addDict(model, "fieldNull", FieldNullEnum.getEnumMap());
this.addDict(model, "isList", IsListEnum.getEnumMap());
super.init(model, context);
}
}
\ 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