diff --git a/archives/src/main/java/com/storeroom/modules/common/ArchivesListToMap.java b/archives/src/main/java/com/storeroom/modules/common/ArchivesListToMap.java index bc62f2b..d015e7d 100644 --- a/archives/src/main/java/com/storeroom/modules/common/ArchivesListToMap.java +++ b/archives/src/main/java/com/storeroom/modules/common/ArchivesListToMap.java @@ -27,11 +27,11 @@ public class ArchivesListToMap { for (Field fie : f) { try { fie.setAccessible(true); + String s = fie.getName(); map.put(fie.getName(), fie.get(obj)); } catch (Exception e) { e.printStackTrace(); } - } //获取父类的私有属性 for (Field fie : c.getSuperclass().getDeclaredFields()) { @@ -48,9 +48,9 @@ public class ArchivesListToMap { for (int i = 0; i < list.size(); i++) { stringBuilder.append(list.get(i).get("fieldName")); stringBuilder.append(" "); - stringBuilder.append(list.get(i).get("fieldType")); + stringBuilder.append(list.get(i).get("isDataTypeDetails")); stringBuilder.append("("); - stringBuilder.append(list.get(i).get("fieldExtent")); + stringBuilder.append(list.get(i).get("isColumnLength")); stringBuilder.append(")"); if (list.size() - 1 != i) { stringBuilder.append(","); @@ -58,10 +58,41 @@ public class ArchivesListToMap { if (list.size() - 1 == i) { stringBuilder.append(")"); } - } return stringBuilder.toString(); } + + public static List> getMapList(List list){ + + List> maps = new ArrayList>(); + for (Object obj : list) { + Class c = obj.getClass(); + Field[] f = c.getDeclaredFields(); + Map map = new HashMap(); + for (Field fie : f) { + try { + fie.setAccessible(true); + String s = fie.getName(); + map.put(fie.getName(), fie.get(obj)); + } catch (Exception e) { + e.printStackTrace(); + } + } + //获取父类的私有属性 + for (Field fie : c.getSuperclass().getDeclaredFields()) { + try { + fie.setAccessible(true);//取消语言访问检查 + map.put(fie.getName(), fie.get(obj));//获取私有变量值 + } catch (Exception e) { + e.printStackTrace(); + } + } + maps.add(map); + } + return maps; + } + + } diff --git a/archives/src/main/java/com/storeroom/modules/common/DynamicSQLTable.java b/archives/src/main/java/com/storeroom/modules/common/DynamicSQLTable.java new file mode 100644 index 0000000..d5df45b --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/common/DynamicSQLTable.java @@ -0,0 +1,58 @@ +package com.storeroom.modules.common; + +import com.storeroom.utils.DateUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.jdbc.core.JdbcTemplate; + +import java.util.List; +import java.util.Map; + + +public class DynamicSQLTable { + + + @Value("${table-template.archive}") + private static String tbName; + + @Value("${table-template.file}") + private static String fileTbname; + + private static JdbcTemplate jdbcTemplate; + + /** + * 生成表 + * + * @param listMap + */ + public static void CreateTable(List> listMap) { + tbName += DateUtils.getNowDateTime(); + StringBuilder stringBuilder = new StringBuilder("create table " + tbName + "(id varchar(100) primary key not null,"); + //List> list = listMap; + for (int i = 0; i < listMap.size(); i++) { + stringBuilder.append(listMap.get(i).get("fieldName")); + stringBuilder.append(" "); + stringBuilder.append(listMap.get(i).get("isDataTypeDetails")); + stringBuilder.append("("); + stringBuilder.append(listMap.get(i).get("isColumnLength")); + stringBuilder.append(")"); + if (listMap.size() - 1 != i) { + stringBuilder.append(","); + } + if (listMap.size() - 1 == i) { + stringBuilder.append(")"); + } + } + jdbcTemplate.execute(stringBuilder.toString()); + } + + /** + * 修改表 + * + * @param listMap / + * @return / + */ + public Integer UpdataTable(List> listMap) { + StringBuilder stringBuilder=new StringBuilder("insert into archives_dictionary"); + return 0; + } +} diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/controller/ArchivesTypeController.java b/archives/src/main/java/com/storeroom/modules/dictionary/controller/ArchivesTypeController.java index 60485ac..613b7c8 100644 --- a/archives/src/main/java/com/storeroom/modules/dictionary/controller/ArchivesTypeController.java +++ b/archives/src/main/java/com/storeroom/modules/dictionary/controller/ArchivesTypeController.java @@ -27,6 +27,8 @@ public class ArchivesTypeController { private final ArchivesTypeService archivesTypeService; + + @ApiOperation("门类类型") @AnonymousGetMapping("dropdown-list") public ApiResponse getType() { diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/domain/ArchivesDictionary.java b/archives/src/main/java/com/storeroom/modules/dictionary/domain/ArchivesDictionary.java index 9be8886..3406704 100644 --- a/archives/src/main/java/com/storeroom/modules/dictionary/domain/ArchivesDictionary.java +++ b/archives/src/main/java/com/storeroom/modules/dictionary/domain/ArchivesDictionary.java @@ -128,32 +128,34 @@ public class ArchivesDictionary extends BaseEntity implements Serializable { @ApiModelProperty(value = "是否浏览") private Boolean isDisplay; - @Column(name = "is_displayorder") - @ApiModelProperty(value = "是否浏览排序") - private Boolean isDisplayorder; + @Column(name = "display_order") + @ApiModelProperty(value = "排序") + private Integer displayOrder; + + @Column(name = "is_displayformat") + @ApiModelProperty(value = "是否有显示格式") + private Boolean isDisplayformat; - @Column(name = "displayorder") - @ApiModelProperty(value = "浏览排序") - private Boolean displayorder; + @Column(name = "displayformat_type") + @ApiModelProperty(value = "显示格式") + private String displayformatType; + @Column(name = "displayformat_width") + @ApiModelProperty(value = "显示长度") + private Integer displayformatWidth; - @Column(name = "displayorder_type") - @ApiModelProperty(value = "浏览排序状态") - private String displayorderType; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ArchivesDictionary that = (ArchivesDictionary) o; - return Objects.equals(id, that.id) && Objects.equals(fieldName, that.fieldName) && Objects.equals(fieldCnName, that.fieldCnName) && Objects.equals(isDefaultValue, that.isDefaultValue) && Objects.equals(isDataType, that.isDataType) && Objects.equals(isColumnLength, that.isColumnLength) && Objects.equals(isSequence, that.isSequence) && Objects.equals(isType, that.isType) && Objects.equals(isSystem, that.isSystem) && Objects.equals(isLine, that.isLine) && Objects.equals(isInput, that.isInput) && Objects.equals(isRequired, that.isRequired) && Objects.equals(isAutomatic, that.isAutomatic) && Objects.equals(isAdd, that.isAdd) && Objects.equals(isSearch, that.isSearch) && Objects.equals(isInherit, that.isInherit) && Objects.equals(isFilling, that.isFilling) && Objects.equals(fillingDigit, that.fillingDigit) && Objects.equals(isRepeat, that.isRepeat) && Objects.equals(isDisplay, that.isDisplay) && Objects.equals(isDisplayorder, that.isDisplayorder) && Objects.equals(displayorder, that.displayorder) && Objects.equals(displayorderType, that.displayorderType); + return Objects.equals(id, that.id) && Objects.equals(categoryId, that.categoryId) && Objects.equals(sysDictionaryId, that.sysDictionaryId) && Objects.equals(fieldName, that.fieldName) && Objects.equals(fieldCnName, that.fieldCnName) && Objects.equals(isDefaultValue, that.isDefaultValue) && Objects.equals(isInputClass, that.isInputClass) && Objects.equals(isDataType, that.isDataType) && Objects.equals(isDataTypeDetails, that.isDataTypeDetails) && Objects.equals(isColumnLength, that.isColumnLength) && Objects.equals(isColumnType, that.isColumnType) && Objects.equals(isSequence, that.isSequence) && Objects.equals(isType, that.isType) && Objects.equals(isSystem, that.isSystem) && Objects.equals(isLine, that.isLine) && Objects.equals(isInput, that.isInput) && Objects.equals(isRequired, that.isRequired) && Objects.equals(isAutomatic, that.isAutomatic) && Objects.equals(isAdd, that.isAdd) && Objects.equals(isSearch, that.isSearch) && Objects.equals(isInherit, that.isInherit) && Objects.equals(isFilling, that.isFilling) && Objects.equals(fillingDigit, that.fillingDigit) && Objects.equals(isRepeat, that.isRepeat) && Objects.equals(isDisplay, that.isDisplay) && Objects.equals(displayOrder, that.displayOrder) && Objects.equals(isDisplayformat, that.isDisplayformat) && Objects.equals(displayformatType, that.displayformatType) && Objects.equals(displayformatWidth, that.displayformatWidth); } @Override public int hashCode() { - return Objects.hash(id, fieldName, fieldCnName, isDefaultValue, isDataType, isColumnLength, isSequence, isType, isSystem, isLine, isInput, isRequired, isAutomatic, isAdd, isSearch, isInherit, isFilling, fillingDigit, isRepeat, isDisplay, isDisplayorder, displayorder, displayorderType); + return Objects.hash(id, categoryId, sysDictionaryId, fieldName, fieldCnName, isDefaultValue, isInputClass, isDataType, isDataTypeDetails, isColumnLength, isColumnType, isSequence, isType, isSystem, isLine, isInput, isRequired, isAutomatic, isAdd, isSearch, isInherit, isFilling, fillingDigit, isRepeat, isDisplay, displayOrder, isDisplayformat, displayformatType, displayformatWidth); } - - } diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/domain/vo/FieldVO.java b/archives/src/main/java/com/storeroom/modules/dictionary/domain/vo/FieldVO.java index 7780028..8e1f501 100644 --- a/archives/src/main/java/com/storeroom/modules/dictionary/domain/vo/FieldVO.java +++ b/archives/src/main/java/com/storeroom/modules/dictionary/domain/vo/FieldVO.java @@ -67,4 +67,7 @@ public class FieldVO { @JsonProperty("isSystem") private Boolean isSystem; + + private String categoryId; + } diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/repository/ArchivesDictionaryRepository.java b/archives/src/main/java/com/storeroom/modules/dictionary/repository/ArchivesDictionaryRepository.java index e863f64..bb05778 100644 --- a/archives/src/main/java/com/storeroom/modules/dictionary/repository/ArchivesDictionaryRepository.java +++ b/archives/src/main/java/com/storeroom/modules/dictionary/repository/ArchivesDictionaryRepository.java @@ -7,12 +7,19 @@ import org.springframework.data.jpa.repository.Query; import java.util.List; -public interface ArchivesDictionaryRepository extends JpaRepository, JpaSpecificationExecutor { +public interface ArchivesDictionaryRepository extends JpaRepository, JpaSpecificationExecutor { @Query(nativeQuery = true, value = "select field_name from archives_dictionary where category_id = ?1 and is_display is true order by is_displayorder asc") List findDisPlayField(String categoryId); - List findAllByCategoryIdAndIsInputOrderByIsSequenceAsc(String categoryId,boolean isInput); + List findAllByCategoryIdAndIsInputOrderByIsSequenceAsc(String categoryId, boolean isInput); + + @Query(value = "INSERT INTO yxk_storeroom.archives_dictionary(id,category_id,field_name,field_cn_name,dictionary_id,is_data_type,is_data_type_details,is_column_length,is_sequence,is_type,is_system VALUES ())", nativeQuery = true) + void insertData(String id,String categoryId, + String fieldName,String fieldCnName, + String isDefaultValue,Integer isDataType, + String isDataTypeDetails,String isColumnLength, + Integer isSequence,Integer isType,Integer isSystem); } diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/ArchivesDictionaryService.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/ArchivesDictionaryService.java new file mode 100644 index 0000000..b4bf6ec --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/ArchivesDictionaryService.java @@ -0,0 +1,15 @@ +package com.storeroom.modules.dictionary.service; + + +import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; + +import java.util.List; + +public interface ArchivesDictionaryService { + + /** + * 批量保存 + * @param list + */ + void saveAll(List list); +} diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/DynamicTableService.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/DynamicTableService.java new file mode 100644 index 0000000..d61e7d0 --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/DynamicTableService.java @@ -0,0 +1,18 @@ +package com.storeroom.modules.dictionary.service; + + +import com.storeroom.modules.dictionary.service.dto.FieldDTO; + +import java.io.File; +import java.util.List; + +public interface DynamicTableService { + + /* + * 生成表 + */ + void DynamicCreate(Integer type,String archiveTypeId); + + + +} diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/dto/ArchivesDictionaryDTO.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/dto/ArchivesDictionaryDTO.java new file mode 100644 index 0000000..bfc7724 --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/dto/ArchivesDictionaryDTO.java @@ -0,0 +1,85 @@ +package com.storeroom.modules.dictionary.service.dto; + + +import com.storeroom.base.BaseDTO; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.Objects; + +@Getter +@Setter +public class ArchivesDictionaryDTO extends BaseDTO implements Serializable { + + private String id; + + private String categoryId; + + private String sysDictionaryId; + + private String fieldName; + + private String fieldCnName; + + private String isDefaultValue; + + private String isInputClass; + + private Integer isDataType; + + private String isDataTypeDetails; + + private Integer isColumnLength; + + private Integer isColumnType; + + private Integer isSequence; + + private Integer isType; + + private Boolean isSystem; + + private Boolean isLine; + + private Boolean isInput; + + private Boolean isRequired; + + private Boolean isAutomatic; + + private Boolean isAdd; + + private Boolean isSearch; + + private Boolean isInherit; + + private Boolean isFilling; + + private Integer fillingDigit; + + private Boolean isRepeat; + + private Boolean isDisplay; + + private Integer displayOrder; + + private Boolean isDisplayformat; + + private String displayformatType; + + private Integer displayformatWidth; + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ArchivesDictionaryDTO that = (ArchivesDictionaryDTO) o; + return Objects.equals(id, that.id) && Objects.equals(categoryId, that.categoryId) && Objects.equals(sysDictionaryId, that.sysDictionaryId) && Objects.equals(fieldName, that.fieldName) && Objects.equals(fieldCnName, that.fieldCnName) && Objects.equals(isDefaultValue, that.isDefaultValue) && Objects.equals(isInputClass, that.isInputClass) && Objects.equals(isDataType, that.isDataType) && Objects.equals(isDataTypeDetails, that.isDataTypeDetails) && Objects.equals(isColumnLength, that.isColumnLength) && Objects.equals(isColumnType, that.isColumnType) && Objects.equals(isSequence, that.isSequence) && Objects.equals(isType, that.isType) && Objects.equals(isSystem, that.isSystem) && Objects.equals(isLine, that.isLine) && Objects.equals(isInput, that.isInput) && Objects.equals(isRequired, that.isRequired) && Objects.equals(isAutomatic, that.isAutomatic) && Objects.equals(isAdd, that.isAdd) && Objects.equals(isSearch, that.isSearch) && Objects.equals(isInherit, that.isInherit) && Objects.equals(isFilling, that.isFilling) && Objects.equals(fillingDigit, that.fillingDigit) && Objects.equals(isRepeat, that.isRepeat) && Objects.equals(isDisplay, that.isDisplay) && Objects.equals(displayOrder, that.displayOrder) && Objects.equals(isDisplayformat, that.isDisplayformat) && Objects.equals(displayformatType, that.displayformatType) && Objects.equals(displayformatWidth, that.displayformatWidth); + } + + @Override + public int hashCode() { + return Objects.hash(id, categoryId, sysDictionaryId, fieldName, fieldCnName, isDefaultValue, isInputClass, isDataType, isDataTypeDetails, isColumnLength, isColumnType, isSequence, isType, isSystem, isLine, isInput, isRequired, isAutomatic, isAdd, isSearch, isInherit, isFilling, fillingDigit, isRepeat, isDisplay, displayOrder, isDisplayformat, displayformatType, displayformatWidth); + } +} diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesDictionaryImpl.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesDictionaryImpl.java new file mode 100644 index 0000000..5cdb547 --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesDictionaryImpl.java @@ -0,0 +1,19 @@ +package com.storeroom.modules.dictionary.service.impl; + + +import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; +import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class ArchivesDictionaryImpl implements ArchivesDictionaryService { + + + @Override + public void saveAll(List list) { + + + } +} diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesTypeServiceImpl.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesTypeServiceImpl.java index ac0086a..540c5fd 100644 --- a/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesTypeServiceImpl.java +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/ArchivesTypeServiceImpl.java @@ -3,11 +3,14 @@ package com.storeroom.modules.dictionary.service.impl; import com.storeroom.modules.common.ArchivesListToMap; import com.storeroom.modules.dictionary.domain.ArchivesType; import com.storeroom.modules.dictionary.domain.vo.FieldVO; +import com.storeroom.modules.dictionary.repository.ArchivesTypeRepository; import com.storeroom.modules.dictionary.service.ArchivesTypeService; +import com.storeroom.modules.dictionary.service.DynamicTableService; import com.storeroom.modules.dictionary.service.FieldService; import com.storeroom.modules.dictionary.service.dto.ArchivesTypeDTO; import com.storeroom.modules.dictionary.service.mapstruct.ArchivesTypeMapper; import com.storeroom.utils.DateUtils; +import com.storeroom.utils.NanoIdUtils; import lombok.RequiredArgsConstructor; @@ -15,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import java.lang.reflect.Field; import java.util.ArrayList; @@ -29,41 +33,42 @@ public class ArchivesTypeServiceImpl implements ArchivesTypeService { private final ArchivesTypeMapper archivesTypeMapper; - private final FieldService fieldService; - private final JdbcTemplate jdbcTemplate; + private final ArchivesTypeRepository archivesTypeRepository; + private final DynamicTableService dynamicTableService; - @Value("${table-template.name}") + @Value("${table-template.archive}") private String tableName; + @Value("${table-template.file}") + private String fileTableName; @Override + @Transactional(rollbackFor = Exception.class) public void create(ArchivesTypeDTO archivesTypeDTO) { ArchivesType archivesType = archivesTypeMapper.toEntity(archivesTypeDTO); - switch (archivesType.getIsType()) { - case 1 -> dynamicSystemTable(archivesType.getIsType()); - case 2 -> dynameicTemplateTable(archivesType.getIsType()); - } + //注入nonaid + archivesType.setId(NanoIdUtils.randomNanoId()); + archivesTypeRepository.save(archivesType); + dynamicTableService.DynamicCreate(archivesType.getIsType(),archivesType.getId()); } - public void dynamicSystemTable(Integer type) { - tableName += tableName + DateUtils.getNowDateTime(); - - List list = fieldService.findGroupType(type); - if (!list.isEmpty()) { - String sqlstr = ArchivesListToMap.getMaps(list, tableName); - jdbcTemplate.execute(sqlstr); - } - - - } - - public void dynameicTemplateTable(Integer type) { - - } +// public void dynamicSystemTable(Integer type) { +// tableName += DateUtils.getNowDateTime(); +// List list = fieldService.findGroupType(type); +// if (!list.isEmpty()) { +// String sqlstr = ArchivesListToMap.getMaps(list, tableName); +// jdbcTemplate.execute(sqlstr); +// } +// } +// +// public void dynameicTemplateTable(Integer type) { +// fileTableName += DateUtils.getNowDateTime(); +// +// } } diff --git a/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/DynamicTableImpl.java b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/DynamicTableImpl.java new file mode 100644 index 0000000..4fc1139 --- /dev/null +++ b/archives/src/main/java/com/storeroom/modules/dictionary/service/impl/DynamicTableImpl.java @@ -0,0 +1,63 @@ +package com.storeroom.modules.dictionary.service.impl; + +import com.storeroom.modules.dictionary.domain.vo.FieldVO; +import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; +import com.storeroom.modules.dictionary.service.DynamicTableService; +import com.storeroom.modules.dictionary.service.FieldService; +import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; +import com.storeroom.modules.dictionary.service.dto.FieldDTO; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +@Service +@RequiredArgsConstructor +public class DynamicTableImpl implements DynamicTableService { + + + private final FieldService fieldService; + private final ArchivesDictionaryService archivesDictionaryService; + private ArchivesDictionaryDTO archivesDictionaryDTO; + + + @Override + public void DynamicCreate(Integer type, String archiveTypeId) { + // if (type == 1 || type == 2){ + List integerList = new ArrayList<>(); + integerList.add(1); + integerList.add(2); + integerList.add(3); + + //获取基础字典表数据 + List list = fieldService.findGroupType(integerList); + List newList = new ArrayList<>(); + + if (!list.isEmpty()) { + for (FieldVO j : list) { + j.setCategoryId(archiveTypeId); + archivesDictionaryDTO.setFieldName(j.getFieldName()); + archivesDictionaryDTO.setFieldCnName(j.getFieldCnName()); + archivesDictionaryDTO.setIsDefaultValue(j.getIsDefaultValue()); + //archivesDictionaryDTO.setIsDataType(); + + } + // archivesDictionaryService.saveAll(); + //根据基础字典表创建数据 + // DynamicSQLTable.CreateTable(ArchivesListToMap.getMapList(newList)); + } + // } + } + + + public void DynamicInsert(List list) { + + + } + + private void DynamicCreateFileTable(List list) { + + } +} diff --git a/archives/src/test/java/ArchivesTypeTest.java b/archives/src/test/java/ArchivesTypeTest.java index a1153e8..840092f 100644 --- a/archives/src/test/java/ArchivesTypeTest.java +++ b/archives/src/test/java/ArchivesTypeTest.java @@ -1,9 +1,23 @@ +import com.storeroom.modules.dictionary.domain.Field; +import com.storeroom.modules.dictionary.domain.vo.FieldVO; +import com.storeroom.modules.dictionary.service.FieldService; +import lombok.RequiredArgsConstructor; import org.junit.jupiter.api.Test; +import java.util.ArrayList; +import java.util.List; + + public class ArchivesTypeTest { - @Test - public void dynamicSystemTableTest() { - } + +// @Test +// public void dynamicSystemTableTest() { +// List list = new ArrayList<>(); +// list.add(1); +// list.add(2); +// List vo = service.findGroupType(list); +// System.out.println(vo); +// } } diff --git a/system/src/main/resources/application.yml b/system/src/main/resources/application.yml index 735d1c3..0f76595 100644 --- a/system/src/main/resources/application.yml +++ b/system/src/main/resources/application.yml @@ -73,5 +73,7 @@ user-cache: # 生成表模板 table-template: - #表名称 - name: tb_ \ No newline at end of file + #生成表名称 + archive: tb_ + #生成文件表 + file: file_tb_