mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-08 17:32:14 +08:00
feat(issue-#155): rename plugin module to meta (#156)
* feat(issue-#155): rename module plugin to meta * feat: remove unused md file * refactor: rename plugin module to meta * fix: trigger document error * fix: code checkstyle
This commit is contained in:
@@ -7,7 +7,7 @@ dependencies {
|
||||
// internal module
|
||||
implementation project(":common")
|
||||
implementation project(":dao")
|
||||
implementation project(":plugin")
|
||||
implementation project(":meta")
|
||||
|
||||
// spring boot
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
|
||||
|
@@ -7,6 +7,8 @@ import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.ReportingPolicy;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -62,6 +64,10 @@ public interface DocumentPojoConverter {
|
||||
Integer tableDocumentId,
|
||||
TriggerMeta meta);
|
||||
|
||||
default LocalDateTime toLocalDateTime(String dateTime) {
|
||||
return LocalDateTime.parse(dateTime, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
}
|
||||
|
||||
default List<TableForeignKeyDocumentPojo> toForeignKeyPojo(Integer docId,
|
||||
Integer tableMetaId,
|
||||
List<ForeignKeyMeta> foreignKeys) {
|
||||
|
Reference in New Issue
Block a user