diff --git a/pom.xml b/pom.xml index ff1cece..38e25e6 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ 5.7.12 1.2.23 3.5.7 + 1.5.1 1.21 3.0.0 2.3.3 @@ -80,6 +81,19 @@ ${mp.version} + + + com.github.yulichang + mybatis-plus-join-boot-starter + ${mpj.version} + + + + com.baomidou + mybatis-plus-extension + 3.5.7 + + diff --git a/sync-common/pom.xml b/sync-common/pom.xml index 991a7e0..84c9819 100644 --- a/sync-common/pom.xml +++ b/sync-common/pom.xml @@ -136,9 +136,14 @@ guava + + com.github.yulichang + mybatis-plus-join-boot-starter + + com.baomidou - mybatis-plus-boot-starter + mybatis-plus-extension diff --git a/sync-framework/pom.xml b/sync-framework/pom.xml index 7a3258f..a7deea6 100644 --- a/sync-framework/pom.xml +++ b/sync-framework/pom.xml @@ -35,11 +35,21 @@ druid-spring-boot-starter + com.baomidou mybatis-plus-boot-starter + + com.github.yulichang + mybatis-plus-join-boot-starter + + + + com.baomidou + mybatis-plus-extension + @@ -70,6 +80,10 @@ lombok provided + + org.springframework.boot + spring-boot-starter-jdbc + diff --git a/sync-gather/src/main/java/com/lyr/gather/local/mapper/ConfigTaskMapper.java b/sync-gather/src/main/java/com/lyr/gather/local/mapper/ConfigTaskMapper.java index d121a6f..4eb52c4 100644 --- a/sync-gather/src/main/java/com/lyr/gather/local/mapper/ConfigTaskMapper.java +++ b/sync-gather/src/main/java/com/lyr/gather/local/mapper/ConfigTaskMapper.java @@ -1,7 +1,7 @@ package com.lyr.gather.local.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.github.yulichang.base.MPJBaseMapper; import com.lyr.gather.local.domain.model.ConfigTask; -public interface ConfigTaskMapper extends BaseMapper { +public interface ConfigTaskMapper extends MPJBaseMapper { } diff --git a/sync-gather/src/main/java/com/lyr/gather/local/mapper/DataSourceConfigMapper.java b/sync-gather/src/main/java/com/lyr/gather/local/mapper/DataSourceConfigMapper.java index 78d1d21..85800fc 100644 --- a/sync-gather/src/main/java/com/lyr/gather/local/mapper/DataSourceConfigMapper.java +++ b/sync-gather/src/main/java/com/lyr/gather/local/mapper/DataSourceConfigMapper.java @@ -1,9 +1,9 @@ package com.lyr.gather.local.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.github.yulichang.base.MPJBaseMapper; import com.lyr.gather.local.domain.model.ConfigDataSource; -public interface DataSourceConfigMapper extends BaseMapper { +public interface DataSourceConfigMapper extends MPJBaseMapper { } diff --git a/sync-gather/src/main/java/com/lyr/gather/local/service/IConfigTaskService.java b/sync-gather/src/main/java/com/lyr/gather/local/service/IConfigTaskService.java index 74359fe..e932f60 100644 --- a/sync-gather/src/main/java/com/lyr/gather/local/service/IConfigTaskService.java +++ b/sync-gather/src/main/java/com/lyr/gather/local/service/IConfigTaskService.java @@ -1,7 +1,7 @@ package com.lyr.gather.local.service; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.service.IService; +import com.github.yulichang.base.MPJBaseService; import com.lyr.gather.local.domain.model.ConfigTask; import com.lyr.gather.local.domain.req.ConfigTaskEditReq; import com.lyr.gather.local.domain.req.ConfigTaskReq; @@ -13,7 +13,7 @@ import com.lyr.gather.local.domain.vo.ConfigTaskPageVO; * @date 2024/11/5 * @description TODO **/ -public interface IConfigTaskService extends IService { +public interface IConfigTaskService extends MPJBaseService { IPage page(ConfigTaskReq req); diff --git a/sync-gather/src/main/java/com/lyr/gather/local/service/impl/ConfigTaskServiceImpl.java b/sync-gather/src/main/java/com/lyr/gather/local/service/impl/ConfigTaskServiceImpl.java index afcd0a3..c882669 100644 --- a/sync-gather/src/main/java/com/lyr/gather/local/service/impl/ConfigTaskServiceImpl.java +++ b/sync-gather/src/main/java/com/lyr/gather/local/service/impl/ConfigTaskServiceImpl.java @@ -3,6 +3,7 @@ package com.lyr.gather.local.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.github.yulichang.base.MPJBaseServiceImpl; import com.google.common.collect.ImmutableMap; import com.lyr.common.core.redis.RedisCache; import com.lyr.gather.kis.domain.model.TSupplier; @@ -27,10 +28,8 @@ import java.util.List; * @description TODO **/ @Service -public class ConfigTaskServiceImpl extends ServiceImpl implements IConfigTaskService { +public class ConfigTaskServiceImpl extends MPJBaseServiceImpl implements IConfigTaskService { - @Resource - private ConfigTaskMapper configTaskMapper; @Resource private SyncServicesStrategyContext syncServicesStrategyContext; @Resource diff --git a/sync-gather/target/generated-sources/annotations/com/lyr/gather/kis/convert/TSupplierConvertImpl.java b/sync-gather/target/generated-sources/annotations/com/lyr/gather/kis/convert/TSupplierConvertImpl.java index 5542912..47efa1c 100644 --- a/sync-gather/target/generated-sources/annotations/com/lyr/gather/kis/convert/TSupplierConvertImpl.java +++ b/sync-gather/target/generated-sources/annotations/com/lyr/gather/kis/convert/TSupplierConvertImpl.java @@ -6,7 +6,7 @@ import javax.annotation.Generated; @Generated( value = "org.mapstruct.ap.MappingProcessor", - date = "2024-11-11T09:40:40+0800", + date = "2024-11-11T11:01:13+0800", comments = "version: 1.6.2, compiler: javac, environment: Java 1.8.0_392 (Amazon.com Inc.)" ) public class TSupplierConvertImpl implements TSupplierConvert { diff --git a/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/ConfigTaskConvertImpl.java b/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/ConfigTaskConvertImpl.java index 7e5e771..bc83010 100644 --- a/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/ConfigTaskConvertImpl.java +++ b/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/ConfigTaskConvertImpl.java @@ -6,7 +6,7 @@ import javax.annotation.Generated; @Generated( value = "org.mapstruct.ap.MappingProcessor", - date = "2024-11-11T09:40:40+0800", + date = "2024-11-11T11:01:13+0800", comments = "version: 1.6.2, compiler: javac, environment: Java 1.8.0_392 (Amazon.com Inc.)" ) public class ConfigTaskConvertImpl implements ConfigTaskConvert { diff --git a/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/DataSourceConfigConvertImpl.java b/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/DataSourceConfigConvertImpl.java index d9bfbe7..27c72b5 100644 --- a/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/DataSourceConfigConvertImpl.java +++ b/sync-gather/target/generated-sources/annotations/com/lyr/gather/local/convert/DataSourceConfigConvertImpl.java @@ -8,7 +8,7 @@ import javax.annotation.Generated; @Generated( value = "org.mapstruct.ap.MappingProcessor", - date = "2024-11-11T09:40:40+0800", + date = "2024-11-11T11:01:13+0800", comments = "version: 1.6.2, compiler: javac, environment: Java 1.8.0_392 (Amazon.com Inc.)" ) public class DataSourceConfigConvertImpl implements DataSourceConfigConvert { diff --git a/sync-system/pom.xml b/sync-system/pom.xml index ced0814..7078df3 100644 --- a/sync-system/pom.xml +++ b/sync-system/pom.xml @@ -29,10 +29,18 @@ provided + + + + com.github.yulichang + mybatis-plus-join-boot-starter + + com.baomidou - mybatis-plus-boot-starter + mybatis-plus-extension + \ No newline at end of file