From 58a14e31c20f582ce11d1f19403f7085c3778d07 Mon Sep 17 00:00:00 2001 From: 1iyc <5212514+liycone@user.noreply.gitee.com> Date: Wed, 30 Oct 2024 14:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90MP=20+=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 28 +++-- sync-admin/pom.xml | 6 ++ .../monitor/SysLogininforController.java | 1 - .../monitor/SysOperlogController.java | 2 +- .../system/SysConfigController.java | 2 +- .../system/SysDictDataController.java | 2 +- .../system/SysDictTypeController.java | 2 +- .../system/SysNoticeController.java | 2 +- .../controller/system/SysPostController.java | 2 +- .../controller/system/SysRoleController.java | 6 +- .../controller/system/SysUserController.java | 2 +- .../tool/DataSourceManagerController.java | 19 ++++ sync-admin/src/main/resources/application.yml | 24 ++--- sync-admin/target/classes/application.yml | 24 ++--- .../monitor/SysLogininforController.class | Bin 3851 -> 3821 bytes .../monitor/SysOperlogController.class | Bin 3238 -> 3208 bytes .../system/SysConfigController.class | Bin 5316 -> 5286 bytes .../system/SysDictDataController.class | Bin 5175 -> 5145 bytes .../system/SysDictTypeController.class | Bin 5414 -> 5384 bytes .../system/SysNoticeController.class | Bin 3560 -> 3530 bytes .../controller/system/SysPostController.class | Bin 5163 -> 5133 bytes .../controller/system/SysRoleController.class | Bin 9888 -> 9842 bytes .../controller/system/SysUserController.class | Bin 11993 -> 11963 bytes sync-common/pom.xml | 5 - .../core/controller/BaseController.java | 33 +----- .../java/com/lyr/common/utils/PageUtils.java | 32 ------ .../core/controller/BaseController$1.class | Bin 957 -> 957 bytes .../core/controller/BaseController.class | Bin 4550 -> 3668 bytes .../lyr/common/core/redis/RedisCache.class | Bin 8793 -> 8793 bytes .../com/lyr/common/utils/PageUtils.class | Bin 1372 -> 0 bytes sync-framework/pom.xml | 16 +++ .../com/lyr/framework/config/DruidConfig.java | 15 ++- .../lyr/framework/config/MyBatisConfig.java | 100 ++---------------- .../lyr/framework/config/SecurityConfig.java | 1 + .../datasource/DynamicDataSource.java | 47 +++++++- .../manager/DataSourceManagerService.java | 57 ++++++++++ .../web/service/SysLoginService.java | 1 + .../lyr/framework/config/DruidConfig$1.class | Bin 2097 -> 2097 bytes .../lyr/framework/config/DruidConfig.class | Bin 4749 -> 4830 bytes .../lyr/framework/config/MyBatisConfig.class | Bin 6404 -> 1122 bytes .../lyr/framework/config/SecurityConfig.class | Bin 11045 -> 11103 bytes .../datasource/DynamicDataSource.class | Bin 1145 -> 3513 bytes .../web/service/SysLoginService.class | Bin 6424 -> 6424 bytes sync-gather/pom.xml | 40 +++++++ .../DataSourceConfigController.java | 34 ++++++ .../gather/domain/vo/DataSourceConfig.java | 68 ++++++++++++ .../gather/mapper/DataSourceConfigMapper.java | 7 ++ .../service/DataSourceConfigService.java | 11 ++ .../impl/DataSourceConfigServiceImpl.java | 48 +++++++++ .../generator/controller/GenController.java | 4 +- .../main/resources/vm/java/controller.java.vm | 2 +- .../generator/controller/GenController.class | Bin 9963 -> 9925 bytes .../target/classes/vm/java/controller.java.vm | 2 +- .../quartz/controller/SysJobController.java | 2 +- .../controller/SysJobLogController.java | 2 +- .../quartz/controller/SysJobController.class | Bin 6868 -> 6838 bytes .../controller/SysJobLogController.class | Bin 3681 -> 3651 bytes sync-system/pom.xml | 10 ++ .../java/com/lyr/system/domain/SysCache.java | 1 + .../com/lyr/system/mapper/SysDeptMapper.java | 3 +- .../service/impl/SysDictDataServiceImpl.java | 1 + .../resources/mapper/system/SysDeptMapper.xml | 52 +++++++-- .../com/lyr/system/domain/SysCache.class | Bin 1752 -> 1752 bytes .../com/lyr/system/mapper/SysDeptMapper.class | Bin 1478 -> 1656 bytes .../service/impl/SysDictDataServiceImpl.class | Bin 2719 -> 2719 bytes .../classes/mapper/system/SysDeptMapper.xml | 52 +++++++-- 66 files changed, 529 insertions(+), 239 deletions(-) create mode 100644 sync-admin/src/main/java/com/lyr/web/controller/tool/DataSourceManagerController.java delete mode 100644 sync-common/src/main/java/com/lyr/common/utils/PageUtils.java delete mode 100644 sync-common/target/classes/com/lyr/common/utils/PageUtils.class create mode 100644 sync-framework/src/main/java/com/lyr/framework/manager/DataSourceManagerService.java create mode 100644 sync-gather/pom.xml create mode 100644 sync-gather/src/main/java/com/lyr/gather/controller/DataSourceConfigController.java create mode 100644 sync-gather/src/main/java/com/lyr/gather/domain/vo/DataSourceConfig.java create mode 100644 sync-gather/src/main/java/com/lyr/gather/mapper/DataSourceConfigMapper.java create mode 100644 sync-gather/src/main/java/com/lyr/gather/service/DataSourceConfigService.java create mode 100644 sync-gather/src/main/java/com/lyr/gather/service/impl/DataSourceConfigServiceImpl.java diff --git a/pom.xml b/pom.xml index b6c9087..479a474 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ 5.3.33 5.7.12 1.2.23 + 3.4.1 1.21 3.0.0 2.3.3 @@ -70,6 +71,20 @@ ${druid.version} + + + com.baomidou + mybatis-plus-boot-starter + ${mp.version} + + + + + com.baomidou + mybatis-plus-extension + ${mp.version} + + eu.bitwalker @@ -77,12 +92,6 @@ ${bitwalker.version} - - - com.github.pagehelper - pagehelper-spring-boot-starter - ${pagehelper.boot.version} - @@ -181,6 +190,12 @@ ${sync.version} + + com.lyr + sync-gather + ${sync.version} + + @@ -191,6 +206,7 @@ sync-quartz sync-generator sync-common + sync-gather pom diff --git a/sync-admin/pom.xml b/sync-admin/pom.xml index ddaef56..1bc6ce7 100644 --- a/sync-admin/pom.xml +++ b/sync-admin/pom.xml @@ -61,6 +61,12 @@ sync-generator + + + com.lyr + sync-gather + + diff --git a/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysLogininforController.java b/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysLogininforController.java index f76d7e9..cda2985 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysLogininforController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysLogininforController.java @@ -33,7 +33,6 @@ public class SysLogininforController extends BaseController { @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") @GetMapping("/list") public TableDataInfo list(SysLogininfor logininfor) { - startPage(); List list = logininforService.selectLogininforList(logininfor); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysOperlogController.java b/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysOperlogController.java index a06f70e..9c43907 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysOperlogController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/monitor/SysOperlogController.java @@ -29,7 +29,7 @@ public class SysOperlogController extends BaseController { @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") @GetMapping("/list") public TableDataInfo list(SysOperLog operLog) { - startPage(); + List list = operLogService.selectOperLogList(operLog); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysConfigController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysConfigController.java index b113671..c3cd4d7 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysConfigController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysConfigController.java @@ -33,7 +33,7 @@ public class SysConfigController extends BaseController { @PreAuthorize("@ss.hasPermi('system:config:list')") @GetMapping("/list") public TableDataInfo list(SysConfig config) { - startPage(); + List list = configService.selectConfigList(config); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictDataController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictDataController.java index 41a927f..efeb7f1 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictDataController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictDataController.java @@ -36,7 +36,7 @@ public class SysDictDataController extends BaseController { @PreAuthorize("@ss.hasPermi('system:dict:list')") @GetMapping("/list") public TableDataInfo list(SysDictData dictData) { - startPage(); + List list = dictDataService.selectDictDataList(dictData); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictTypeController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictTypeController.java index bdfe66f..2fddf4d 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictTypeController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysDictTypeController.java @@ -30,7 +30,7 @@ public class SysDictTypeController extends BaseController { @PreAuthorize("@ss.hasPermi('system:dict:list')") @GetMapping("/list") public TableDataInfo list(SysDictType dictType) { - startPage(); + List list = dictTypeService.selectDictTypeList(dictType); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysNoticeController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysNoticeController.java index 292e332..036afd9 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysNoticeController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysNoticeController.java @@ -31,7 +31,7 @@ public class SysNoticeController extends BaseController { @PreAuthorize("@ss.hasPermi('system:notice:list')") @GetMapping("/list") public TableDataInfo list(SysNotice notice) { - startPage(); + List list = noticeService.selectNoticeList(notice); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysPostController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysPostController.java index 41517c2..6625251 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysPostController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysPostController.java @@ -33,7 +33,7 @@ public class SysPostController extends BaseController { @PreAuthorize("@ss.hasPermi('system:post:list')") @GetMapping("/list") public TableDataInfo list(SysPost post) { - startPage(); + List list = postService.selectPostList(post); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysRoleController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysRoleController.java index 82c726f..83ed625 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysRoleController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysRoleController.java @@ -51,7 +51,7 @@ public class SysRoleController extends BaseController { @PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/list") public TableDataInfo list(SysRole role) { - startPage(); + List list = roleService.selectRoleList(role); return getDataTable(list); } @@ -171,7 +171,7 @@ public class SysRoleController extends BaseController { @PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/authUser/allocatedList") public TableDataInfo allocatedList(SysUser user) { - startPage(); + List list = userService.selectAllocatedList(user); return getDataTable(list); } @@ -182,7 +182,7 @@ public class SysRoleController extends BaseController { @PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/authUser/unallocatedList") public TableDataInfo unallocatedList(SysUser user) { - startPage(); + List list = userService.selectUnallocatedList(user); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/system/SysUserController.java b/sync-admin/src/main/java/com/lyr/web/controller/system/SysUserController.java index 8b53f93..4921eb9 100644 --- a/sync-admin/src/main/java/com/lyr/web/controller/system/SysUserController.java +++ b/sync-admin/src/main/java/com/lyr/web/controller/system/SysUserController.java @@ -52,7 +52,7 @@ public class SysUserController extends BaseController { @PreAuthorize("@ss.hasPermi('system:user:list')") @GetMapping("/list") public TableDataInfo list(SysUser user) { - startPage(); + List list = userService.selectUserList(user); return getDataTable(list); } diff --git a/sync-admin/src/main/java/com/lyr/web/controller/tool/DataSourceManagerController.java b/sync-admin/src/main/java/com/lyr/web/controller/tool/DataSourceManagerController.java new file mode 100644 index 0000000..0fb2229 --- /dev/null +++ b/sync-admin/src/main/java/com/lyr/web/controller/tool/DataSourceManagerController.java @@ -0,0 +1,19 @@ +package com.lyr.web.controller.tool; + +import com.lyr.framework.manager.DataSourceManagerService; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author liyc + * @date 2024/10/30 + * @description TODO + **/ +@RestController("/dataSourceManager") +public class DataSourceManagerController { + + + +} diff --git a/sync-admin/src/main/resources/application.yml b/sync-admin/src/main/resources/application.yml index e539dc3..5c45fe6 100644 --- a/sync-admin/src/main/resources/application.yml +++ b/sync-admin/src/main/resources/application.yml @@ -100,25 +100,23 @@ token: # 令牌有效期(默认30分钟) expireTime: 30 -# MyBatis配置 -mybatis: - # 搜索指定包别名 + +mybatis-plus: typeAliasesPackage: com.lyr.**.domain - # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml - # 加载全局的配置文件 - configLocation: classpath:mybatis/mybatis-config.xml - -# PageHelper分页插件 -pagehelper: - helperDialect: mysql - supportMethodsArguments: true - params: count=countSql + mapperPackage: com.lyr.**.mapper + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + map-underscore-to-camel-case: true + global-config: + db-config: + id-type: AUTO + banner: off # Swagger配置 swagger: # 是否开启swagger - enabled: true + enabled: false # 请求前缀 pathMapping: /dev-api diff --git a/sync-admin/target/classes/application.yml b/sync-admin/target/classes/application.yml index c133c49..2d6cc3d 100644 --- a/sync-admin/target/classes/application.yml +++ b/sync-admin/target/classes/application.yml @@ -100,25 +100,23 @@ token: # 令牌有效期(默认30分钟) expireTime: 30 -# MyBatis配置 -mybatis: - # 搜索指定包别名 + +mybatis-plus: typeAliasesPackage: com.lyr.**.domain - # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml - # 加载全局的配置文件 - configLocation: classpath:mybatis/mybatis-config.xml - -# PageHelper分页插件 -pagehelper: - helperDialect: mysql - supportMethodsArguments: true - params: count=countSql + mapperPackage: com.lyr.**.mapper + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + map-underscore-to-camel-case: true + global-config: + db-config: + id-type: AUTO + banner: off # Swagger配置 swagger: # 是否开启swagger - enabled: true + enabled: false # 请求前缀 pathMapping: /dev-api diff --git a/sync-admin/target/classes/com/lyr/web/controller/monitor/SysLogininforController.class b/sync-admin/target/classes/com/lyr/web/controller/monitor/SysLogininforController.class index e01dd35fc0581847edfb7e4db0e6f74139902ec1..53a2e179655bbc508625f9f5182a062b12dca6a6 100644 GIT binary patch delta 1091 zcmaiy*HTkq6otQ>1Ww8cB}!9~NGG9Kz=GHT3xW+)z^>S^$9k0q&^zvY3K^X+=!_5G zJNO7*dFhPf+UJD8aO0erv-iKtT5IqBf4}utcVy+pcIwj!wGFnI)7Xlb4&NTUk@|k%%q?(k7_e7c}vWvguU$67FE6A(HJ$MGM4i z(m-EI9jHG+kM`Ru4Sl}O{s5<>Gp&5DxPU@iUYBgpb+XZFfYb7Q~wv}=_ zl(R896xpf#uAJW2z#O~Tvoh9R_6a{2Yf#>PhE!}*9h0>!R%VKOjyn`c*pi*RzvbY* z27Kj4uiBFGN)B*Pcq{b9Ego8@<1j}`^hZSru04%mIUz zlD?KT7d}Kxw5!jjqA2G-B95;SaY8&NIaS=ji1=-;q-UmwIRB=IpNg)R}H}wzJ C(Pmfx delta 1102 zcmaJV%3FX|rc{dE4DBLj7b`U@DzckhgznAIdyl;J(qG7_ zp|NKA0sWVrdT(0aK7bC>G-u{~-`?N;)>_}%`&Y;N&iS8zzWo3>s=rxNM^tSA6`< z`7w_LSzfiUXyKX-53YMLEb)dEb5gu1*)7R#OIO~;9V}V6YvJDN>~E_riZ+G&^4p9p z79J=(#InL8JT5PKv&kr)C_KfALIFjEXLzpgLQcQLq(UpUT6m@K8gC4w%I}O+S@{NS zU!j;=DbD1U@}JYbK6A90!U2;XIba~dm4~rK?-Hb8PioY~e|!0(zooRTdLG>CV6IpJ zn$U^uj0R%ZLF{(s%Zx6@NW20w{speY8r&wb@ni)}pIC4~z=HZv7u@JZ2t67!<}_A8 z34xv1Meq?bCyTt6HsxBu;IRHMx&o?(AoMsDNRl@;HElwW&&nFhYE1tWjoZjPbOL zHO^=JT{U$0<;8JABwF}7C{e+tf6->(rBtDHTnN-%2w)0X0yYSkuDNg)6Z$%4HoUEK+6CpfpkLk;C7dU^ Si3=Jj%ljoWKzTaTak_)O{WxTld-d0IsE^LZMY| zT>K2KTodB*d0&6^+Y=Y`KpUirM{jn7-& z`K(#@duAQ#?Qy5x{_RbD^Aa0QDOO;I&a zwDg16N-n;MHytfRE45srL((=4_2o1IV`3`{q9O&=Kxe~%q$S+iyfJmyRf>UPR}=X_ zaYS<|O;&|eRDFQfcCjRquvk;k))-Z0TxutpOmcFKDeBv6H8>^waIMqw&TuvuhdEih zVz%5pbjqbe+K&AH=b8$H58$?}cSm`ab4&}bH~sl-`WY_l&|l<|AUyjuF3WMa!ff}% zGm7jA8I!Vw?@;crXIF}S?~jNwDbn5FC)1VFTf|&15m$wDO-wG=1MN9^Hx%C#e|V)^ F{{ZVUPxk-- delta 929 zcmZvaOH&h35QV>)JcdlhM57U-K|>VL1Vj)YAU^SdB8YDhUr`aX$|}pS&sNv$`~j|| zv_hd(Zru52{0Ek&X9BuNP1Wu0+ui4!?z!&^p9(X-{(SoZ4D;G&Gm}19uBCKLrJ3fs zg)<&EJZ}0Vxz)j-+1r-9W68Vb-81jL$E?SLmC2vUt~}cV=Iq!)&f{UgBOV7l;i*G; zc_mg}p745#d1?XAcpmVA`GA)!1T0$9E5?^Uc#D3jzEpd+G*erc|MJ^wI*qIpf`eTID3gWc>AdRE*;N`r109)kFC?6;`9dn8O{pAvnO&+j>CCri2nVUBHKd7q^z;YL60C4NqK8e$Pej9 lNQw5}Gs?8&v=?!qorsG9x+FlC%c1t1ya~lu#2;R%OLSLy%& diff --git a/sync-admin/target/classes/com/lyr/web/controller/system/SysConfigController.class b/sync-admin/target/classes/com/lyr/web/controller/system/SysConfigController.class index e1424a728eb525e00ee1c4ff6bfae3cd6fa55160..cc05cf122868ced6ad331e3f4c1e93f529533805 100644 GIT binary patch delta 1758 zcma)6_fr&E5dLNs*k$&y=qecQJU~!j7mVnsr)L1O;F(3t3g)=#1-%{|5N}CVmd9RGqRi&`#I6h`w{o!LTgiHdR8Hd6!KBv$3=xpxU6sm zSK}dL`jA3g)1W?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FU!~Mt%S!Kw diff --git a/sync-admin/target/classes/com/lyr/web/controller/system/SysDictDataController.class b/sync-admin/target/classes/com/lyr/web/controller/system/SysDictDataController.class index 7f499e08de868af3b923d0e4a1bb344aff3a4cce..2dfba68494e6e8ebe822cc3062466450a24e183b 100644 GIT binary patch delta 1575 zcmaJ>_fr#L5Pf$EIlMcKMkRuUfDJ=5D%iWA*uY+}As{LmMH3XUoxNZ;Hn8_!b#xNT zjDLWClRCb=OJdBZ!*JiX-|oJB`*tB&)?H?O`}z4RfJ(g4QG`e@6k@M|eQ48p+ppn( zhNzA_#PTsq&USGg6z3s{?J#f{ojQ)-sD@)YyoiYJxDF3aNT?;|Nik1}d0IYaFNIFotNjXyOvOOkBnl1*P!@cWHd9KG7<{RTI~6-NX&t zG;s@Y6U7KIAZ@B`HHPjIQI4TchMzvZI~f}}GB%rTfHXaT-6A%!NlAj*kqux1%T zj2=tB)O23P@kLtl^Axh8gsSsOSx* zbk3>%AzqG(i?UQ)j3rFbWEGb3qF@ROy6lqv#x6p?fzvsWo%B8*KOZ2TvufoV`zCv*aPx-P#zCS>|r;K;HZvcIIiJ@j%*vp)S;n6LQhKQDREDW+bPEx zxjXC9a8ASdPaOwc%7xFrU3m_F9!40rD8~>C)o{tcWn3|E71ttV`pWz~TsLq7Hw{E^ z%fM~iF%ZOX4R;OPLzjm81|HyH|4u6NEKV87X5&$(W}LfKG`|QSybZ9h(ec+ZH``M zfXHr?BbU$tf(y?|8z;##hzXd;TEw;(n<`UsEXoch>X?Mdgc9<(BxApov55Uv#W!gq zpEpzZJ~fPLOl!e(%t*8~6E(!QyQ<~aEX-!GbX7yE(t1L1t=-f=3PY4uEv4sgwc`v-mv4OR>yy(Oa$4IbC$le7eOkHXTa#RN_g=APY-FE_4Uhj&Hzl}iwpYCcTNq?-cx&&u Usf3ng-ezHV`L&(?j%4`Gf1Hx8+yDRo diff --git a/sync-admin/target/classes/com/lyr/web/controller/system/SysDictTypeController.class b/sync-admin/target/classes/com/lyr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2Gh-kyMZeu%;@c6R*uY((Bmdzob2cwBADO8C)~)nS@!#=u z5N~CHc$;oZb%ZcQVW4=)L=mU*nYk diff --git a/sync-admin/target/classes/com/lyr/web/controller/system/SysNoticeController.class b/sync-admin/target/classes/com/lyr/web/controller/system/SysNoticeController.class index 54861175122d209c76b767806e476cdcd104f163..ac7fd475c0e022bd8ef36737200cc6ba53934d42 100644 GIT binary patch delta 988 zcmZ{i*-{fx5Qe{*2osW#2x_861&x}R;J)C#5OF~x;(`l`Yfy1F4=~SQ@giDUsnQE? zyyM2#@F^_+&P*W0P*XF#%;~?s)93uj&Sxj)|Ni(19Hf>Y#g!g$tkVO&{y-P&*&yqXWutV`@~g5j*}md8+|qYqE|ua?ofV&zjA23vErA?K zwl%~C!-7amrEFreM3chFGN9GLpbD&KnA)P0(Pm_~Dx0fGX}dX7I5l?2%Tti50hMK~ zU#b`pb-C2(HXOHsV|#{O4U}}abO9yBPKr1|d%IFgyCKzr=SXI^9EUyZje3tqy)&g^ z9j{Kj$7l6J61 z<*RK!(L4mFiH$dwvYW{Dqt0+Br&Dh^+K!;lPZ=XHC`~|qx1x&H53<* zwD`3gH_~uih67?{>Fh=&F*ryzIGY(F72hzCma#;u#5NdgWr)`qY`-i=l%owCi5f>D z9Eo!Di+gzOF%C)Nc!|RtDUy@sV^W|zaeeXQdjAtX)X7GuCMIWtY12QMCWUG0f0#}+ zF;#M$W}*cuWIDsya8Q4}QD+N_{;`m6;BafRahVjt;EjgsvpMH;OxK5Vo@uEH{*epK Xk7jaF>`gBD58Wl%Wzkn^`SpyOC&!cv_w(ysAXD%X=)#2 zHJC|>AEkX*2I(3WvC5_0^((v}*7D99Z(BWkX29cNv0QpF@80j;``!E5`+erUP}xyw z|MTA;e*vgLuYrfr8bJxRMzIas4Qg!~c4$Z$$ihw?yF~65=iB0ZN3=Z}-Zcdph2ijV)pA61HE*2eLUJ?t^0aP_~EkNjNN~BVzhUmXBrmM8l^VI(koc>EkOf z)kG=EG<;^_C_X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#Eq&!kU(MtAz7=ulYUm_z~h+3>@n7! zi6@wOHlw7rXGzf_G%6^cq;*ajPhqZXHbP5d9(VJxfKIZq(aTyzQbkZTxTx0NL~%>p z7(r-$a8fYY7!Nxzg|UY*&J!TR2&)fagp+ zgGI1|F8Fey@ti3Z@tlj@CV)2(z_au>rLhD{JFpDP$7wZV1@n8fR&uur&oNjoYYC-J z8MFLmM|3z)(&+qan`^tsr95ME$YWTIHOyDg#kF}|d>-p~#E_9#&y9u`@SLogZ&>I_E@|C3GkI>5nm+%TR z!EHiBUe5+9ukxp%<$fD6g>*LMIx)fR-i?sx@!-1~F?GBVkK{KZ(;2U{^Xc9<+tvcM z8}Zt`*>1vS|Jv^wxk?v`T{v^?c^8mBa$B&~A32$Lzw2!UINI?#gS?5~Rycwk*v^}f z@o%M+kuJ4{Z3IS9rD3(j?zs=Zd&Q<3(8+hWD-Teq{|4l*We2}4TJGE8SyDd463U5B a%1-8bgXMH|x?>aPZWr}88D)52cmD^;SN?eb diff --git a/sync-admin/target/classes/com/lyr/web/controller/system/SysRoleController.class b/sync-admin/target/classes/com/lyr/web/controller/system/SysRoleController.class index 73d0a8b0dc3c728b1934f1ea8b337ab3b5b76f5a..73a77bebb1da61096fd32face5bfca42c7cca6f7 100644 GIT binary patch delta 3576 zcmcImd3+RA68>s3q$fR(%w&K70y!XpCX=8-AcAtELJ}150B?n;yXY!LytTb=L>U!9 z#rsx_q5~n`iU;1hx~sdc7iL*?SJzd%UBBw?=@}-#@8=)>(eJ4Ds_LujRo~eBRg<&! zm(`B}7%qF+n1pl@CSqk2tI%$9wc0|5g-2|3!=n*Art{+#p3w6rb$CiIJ*}%}EUd8+ zLpp+Ib$-r9A)b%m1>LOGYcJ}xmm+vsH?QdNtE4!1P4}?gKGf5Xl=iWWb@)WLox1&}jrI7K3ivdF&s5syI{aIQ z|LE|AvQPO^$N%d7D;@r)!`C*xQLYUt=i4a0!}m)0A%Y(*{A6Ps(n|cy7FNhv@ z%uy|=Wud{TGf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E>IMJLFT&Uhu%aW&zaobT0S-nWJC-WKfM z?Za*_Bbs5K^tZ)*%Bn5OtS#fsiXxX6SAk-7qZ4<>8wFuPmQfGPGUJMO>_Jkz!>j`n z+bc9?9bnHA5ICQaU=;&kyyeVzvjjN!g zW2nXtgb=DiAIBd@y5%OR0kJ{;`SPC)w%D8bZ|!lq{D_TnCjVHEIscx=Pgw9%-om(sKBxD2?B@Sf joTd-xJ$^V{=5Y#x{yYEu1K*=bdK68aD8`Uc0h;~^LnAspring-boot-starter-security - - - com.github.pagehelper - pagehelper-spring-boot-starter - diff --git a/sync-common/src/main/java/com/lyr/common/core/controller/BaseController.java b/sync-common/src/main/java/com/lyr/common/core/controller/BaseController.java index a4d6519..3decce2 100644 --- a/sync-common/src/main/java/com/lyr/common/core/controller/BaseController.java +++ b/sync-common/src/main/java/com/lyr/common/core/controller/BaseController.java @@ -1,18 +1,12 @@ package com.lyr.common.core.controller; -import com.github.pagehelper.PageHelper; -import com.github.pagehelper.PageInfo; import com.lyr.common.constant.HttpStatus; import com.lyr.common.core.domain.AjaxResult; import com.lyr.common.core.domain.model.LoginUser; -import com.lyr.common.core.page.PageDomain; import com.lyr.common.core.page.TableDataInfo; -import com.lyr.common.core.page.TableSupport; import com.lyr.common.utils.DateUtils; -import com.lyr.common.utils.PageUtils; import com.lyr.common.utils.SecurityUtils; import com.lyr.common.utils.StringUtils; -import com.lyr.common.utils.sql.SqlUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.WebDataBinder; @@ -44,31 +38,6 @@ public class BaseController { }); } - /** - * 设置请求分页数据 - */ - protected void startPage() { - PageUtils.startPage(); - } - - /** - * 设置请求排序数据 - */ - protected void startOrderBy() { - PageDomain pageDomain = TableSupport.buildPageRequest(); - if (StringUtils.isNotEmpty(pageDomain.getOrderBy())) { - String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); - PageHelper.orderBy(orderBy); - } - } - - /** - * 清理分页的线程变量 - */ - protected void clearPage() { - PageUtils.clearPage(); - } - /** * 响应请求分页数据 */ @@ -78,7 +47,7 @@ public class BaseController { rspData.setCode(HttpStatus.SUCCESS); rspData.setMsg("查询成功"); rspData.setRows(list); - rspData.setTotal(new PageInfo(list).getTotal()); + // rspData.setTotal(new Page(list).getTotal()); return rspData; } diff --git a/sync-common/src/main/java/com/lyr/common/utils/PageUtils.java b/sync-common/src/main/java/com/lyr/common/utils/PageUtils.java deleted file mode 100644 index 1d53d5a..0000000 --- a/sync-common/src/main/java/com/lyr/common/utils/PageUtils.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.lyr.common.utils; - -import com.github.pagehelper.PageHelper; -import com.lyr.common.core.page.PageDomain; -import com.lyr.common.core.page.TableSupport; -import com.lyr.common.utils.sql.SqlUtil; - -/** - * 分页工具类 - * - * @author ruoyi - */ -public class PageUtils extends PageHelper { - /** - * 设置请求分页数据 - */ - public static void startPage() { - PageDomain pageDomain = TableSupport.buildPageRequest(); - Integer pageNum = pageDomain.getPageNum(); - Integer pageSize = pageDomain.getPageSize(); - String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); - Boolean reasonable = pageDomain.getReasonable(); - PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable); - } - - /** - * 清理分页的线程变量 - */ - public static void clearPage() { - PageHelper.clearPage(); - } -} diff --git a/sync-common/target/classes/com/lyr/common/core/controller/BaseController$1.class b/sync-common/target/classes/com/lyr/common/core/controller/BaseController$1.class index c4350f8ff4a82e94eccdc69503f7710b25aa95b0..264a2dcddffb657f6452fefa55363d9dd5aa1049 100644 GIT binary patch delta 23 ecmdnXzL$N2E;FOzWIbjtRuu*g2Gz;6%nkrZM+HIv delta 23 ecmdnXzL$N2E;FP0WIbjtRxJh&2JOkU%nkrZ^#xP_ diff --git a/sync-common/target/classes/com/lyr/common/core/controller/BaseController.class b/sync-common/target/classes/com/lyr/common/core/controller/BaseController.class index 68df8e1cf45587c279c4fd5c6b718b16b8297dfd..839b1e7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rn78i`XTK9z zGqDL%jH0N^iJAekH4Wpg0doqcBN)!)446C8FqJi6mbBqi&w$yMhI#6yFgZLzf5+7` z!CidQ+I<-ts_4Fk<|-l&$GH(l=h-^E)|!)AaR!f)U(#AdgEp+@c9J%L;~L4 zeF+-d$eq`qa=S~^t%tu@2j5rTO2=;BUYjHEzH;3~<+oBz=It{{ydFF!}%h diff --git a/sync-common/target/classes/com/lyr/common/core/redis/RedisCache.class b/sync-common/target/classes/com/lyr/common/core/redis/RedisCache.class index bdc2216095f91b330d0dece4c7748542244a9c95..0192864787df6ec5f082169f33b200c35821c2bc 100644 GIT binary patch delta 152 zcmV;J0B8T%MA<~J%Nr4F00sbU015zZ01NleHaw5vBkM0H**E0H^>P0I2{o0IQQk9<2ejlhhw0lNBF13BLdY0Kfne z0K$`3AAAAJlhhws1=au$0N0Z;Abe9<2edlhhw0lNBF13Aq3S0J;DY z0KAh|AAAADlhhws1<(Kw0MU~&Abr&G|6#lj?god=`DuRk20_7S(yaA#DA{{F-RPlExJ0(tw$B555{m{#13j#!=i?V0`04|YX@rr(e%{5Ky1T1lme-&?aG}>@j&_?tOJLVo~)O*oPEo; z)wwQ=1xI#SU?iLOil%eoo7{_@YgPi=DVw`iL4H)+ia@*^Sbm@+0(yztrdPCVS77|2 zZQk>xsWd|Sni>H#C1OMZz1h#!7t3@kw_s-6Ko+FW`wn%Vv%eBw^ZY~Uub-%(o2t3M zx7`9YbzfR#&#k4^3byWfj13JITelw-%&>Wv47419RwdL5%DLQ7k=BkJf#!jJsYPuPQ zM)MxT2p%VVlHfP^-^KvuaWizkL>Dp4P&yF0pP+n@Atjm95V;6%262lvQLbLx!7%mX g>UB{|druid-spring-boot-starter + + com.baomidou + mybatis-plus-boot-starter + + + + com.baomidou + mybatis-plus-extension + + + + com.microsoft.sqlserver + mssql-jdbc + 12.8.1.jre8 + + pro.fessional diff --git a/sync-framework/src/main/java/com/lyr/framework/config/DruidConfig.java b/sync-framework/src/main/java/com/lyr/framework/config/DruidConfig.java index 54009a0..46b4ca5 100644 --- a/sync-framework/src/main/java/com/lyr/framework/config/DruidConfig.java +++ b/sync-framework/src/main/java/com/lyr/framework/config/DruidConfig.java @@ -18,7 +18,6 @@ import org.springframework.context.annotation.Primary; import javax.servlet.*; import javax.sql.DataSource; import java.io.IOException; -import java.util.HashMap; import java.util.Map; /** @@ -46,10 +45,15 @@ public class DruidConfig { @Bean(name = "dynamicDataSource") @Primary public DynamicDataSource dataSource(DataSource masterDataSource) { - Map targetDataSources = new HashMap<>(); + DynamicDataSource dynamicDataSource = new DynamicDataSource(); + dynamicDataSource.setDefaultTargetDataSource(masterDataSource); + dynamicDataSource.addTargetDataSource(DataSourceType.MASTER.name(), masterDataSource); + dynamicDataSource.addTargetDataSource(DataSourceType.SLAVE.name(), "slaveDataSource"); + return dynamicDataSource; + /* Map targetDataSources = new HashMap<>(); targetDataSources.put(DataSourceType.MASTER.name(), masterDataSource); setDataSource(targetDataSources, DataSourceType.SLAVE.name(), "slaveDataSource"); - return new DynamicDataSource(masterDataSource, targetDataSources); + return new DynamicDataSource(masterDataSource, targetDataSources);*/ } /** @@ -87,8 +91,7 @@ public class DruidConfig { } @Override - public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) - throws IOException, ServletException { + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); // 重置缓冲区,响应头不会被重置 response.resetBuffer(); @@ -109,4 +112,6 @@ public class DruidConfig { registrationBean.addUrlPatterns(commonJsPattern); return registrationBean; } + + } diff --git a/sync-framework/src/main/java/com/lyr/framework/config/MyBatisConfig.java b/sync-framework/src/main/java/com/lyr/framework/config/MyBatisConfig.java index 8c39c6d..a74847f 100644 --- a/sync-framework/src/main/java/com/lyr/framework/config/MyBatisConfig.java +++ b/sync-framework/src/main/java/com/lyr/framework/config/MyBatisConfig.java @@ -1,29 +1,10 @@ package com.lyr.framework.config; -import com.lyr.common.utils.StringUtils; -import org.apache.ibatis.io.VFS; -import org.apache.ibatis.session.SqlSessionFactory; -import org.mybatis.spring.SqlSessionFactoryBean; -import org.mybatis.spring.boot.autoconfigure.SpringBootVFS; -import org.springframework.beans.factory.annotation.Autowired; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.core.env.Environment; -import org.springframework.core.io.DefaultResourceLoader; -import org.springframework.core.io.Resource; -import org.springframework.core.io.support.PathMatchingResourcePatternResolver; -import org.springframework.core.io.support.ResourcePatternResolver; -import org.springframework.core.type.classreading.CachingMetadataReaderFactory; -import org.springframework.core.type.classreading.MetadataReader; -import org.springframework.core.type.classreading.MetadataReaderFactory; -import org.springframework.util.ClassUtils; - -import javax.sql.DataSource; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; +import org.springframework.transaction.annotation.EnableTransactionManagement; /** * Mybatis支持*匹配扫描包 @@ -31,79 +12,14 @@ import java.util.List; * @author ruoyi */ @Configuration +@EnableTransactionManagement(proxyTargetClass = true) public class MyBatisConfig { - static final String DEFAULT_RESOURCE_PATTERN = "**/*.class"; - @Autowired - private Environment env; - public static String setTypeAliasesPackage(String typeAliasesPackage) { - ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); - MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resolver); - List allResult = new ArrayList(); - try { - for (String aliasesPackage : typeAliasesPackage.split(",")) { - List result = new ArrayList(); - aliasesPackage = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX - + ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + DEFAULT_RESOURCE_PATTERN; - Resource[] resources = resolver.getResources(aliasesPackage); - if (resources != null && resources.length > 0) { - MetadataReader metadataReader = null; - for (Resource resource : resources) { - if (resource.isReadable()) { - metadataReader = metadataReaderFactory.getMetadataReader(resource); - try { - result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName()); - } catch (ClassNotFoundException e) { - e.printStackTrace(); - } - } - } - } - if (result.size() > 0) { - HashSet hashResult = new HashSet(result); - allResult.addAll(hashResult); - } - } - if (allResult.size() > 0) { - typeAliasesPackage = String.join(",", allResult.toArray(new String[0])); - } else { - throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包"); - } - } catch (IOException e) { - e.printStackTrace(); - } - return typeAliasesPackage; - } - - public Resource[] resolveMapperLocations(String[] mapperLocations) { - ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(); - List resources = new ArrayList(); - if (mapperLocations != null) { - for (String mapperLocation : mapperLocations) { - try { - Resource[] mappers = resourceResolver.getResources(mapperLocation); - resources.addAll(Arrays.asList(mappers)); - } catch (IOException e) { - // ignore - } - } - } - return resources.toArray(new Resource[resources.size()]); - } @Bean - public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception { - String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage"); - String mapperLocations = env.getProperty("mybatis.mapperLocations"); - String configLocation = env.getProperty("mybatis.configLocation"); - typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage); - VFS.addImplClass(SpringBootVFS.class); - - final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean(); - sessionFactory.setDataSource(dataSource); - sessionFactory.setTypeAliasesPackage(typeAliasesPackage); - sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ","))); - sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation)); - return sessionFactory.getObject(); + public MybatisPlusInterceptor mybatisPlusInterceptor() { + MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); + interceptor.addInnerInterceptor(new PaginationInnerInterceptor()); + return interceptor; } } \ No newline at end of file diff --git a/sync-framework/src/main/java/com/lyr/framework/config/SecurityConfig.java b/sync-framework/src/main/java/com/lyr/framework/config/SecurityConfig.java index 8e54f30..ab8e7a4 100644 --- a/sync-framework/src/main/java/com/lyr/framework/config/SecurityConfig.java +++ b/sync-framework/src/main/java/com/lyr/framework/config/SecurityConfig.java @@ -112,6 +112,7 @@ public class SecurityConfig { // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() + .antMatchers("/gather/*", "/gather/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated(); }) diff --git a/sync-framework/src/main/java/com/lyr/framework/datasource/DynamicDataSource.java b/sync-framework/src/main/java/com/lyr/framework/datasource/DynamicDataSource.java index 33f2e8a..f0f9e6f 100644 --- a/sync-framework/src/main/java/com/lyr/framework/datasource/DynamicDataSource.java +++ b/sync-framework/src/main/java/com/lyr/framework/datasource/DynamicDataSource.java @@ -1,9 +1,12 @@ package com.lyr.framework.datasource; +import com.alibaba.druid.pool.DruidDataSource; +import com.lyr.common.utils.spring.SpringUtils; import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; import javax.sql.DataSource; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; /** * 动态数据源 @@ -11,14 +14,52 @@ import java.util.Map; * @author ruoyi */ public class DynamicDataSource extends AbstractRoutingDataSource { + + private static Map targetDataSources = new ConcurrentHashMap<>(); + + @Override + protected Object determineCurrentLookupKey() { + return DynamicDataSourceContextHolder.getDataSourceType(); + } + + + public DynamicDataSource() { + super.setTargetDataSources(targetDataSources); + } + + public DynamicDataSource(DataSource defaultTargetDataSource, Map targetDataSources) { super.setDefaultTargetDataSource(defaultTargetDataSource); super.setTargetDataSources(targetDataSources); super.afterPropertiesSet(); } - @Override - protected Object determineCurrentLookupKey() { - return DynamicDataSourceContextHolder.getDataSourceType(); + public void addTargetDataSource(Object key, Object dataSource) { + if (dataSource instanceof String) { + try { + SpringUtils.getBean(dataSource.toString()); + this.targetDataSources.put(key, dataSource); + } catch (Exception e) { + } + } else { + this.targetDataSources.put(key, dataSource); + } + super.afterPropertiesSet(); // 重新初始化数据源 + } + + + public void removeTargetDataSource(Object key) { + this.targetDataSources.remove(key); + super.afterPropertiesSet(); // 重新初始化数据源 + } + + public void print() { + DruidDataSource resolvedDefaultDataSource = (DruidDataSource) getResolvedDefaultDataSource(); + System.out.println("主数据源:" + resolvedDefaultDataSource.getUrl()); + Map resolvedDataSources = getResolvedDataSources(); + for (Map.Entry entry : resolvedDataSources.entrySet()) { + DruidDataSource value = (DruidDataSource) entry.getValue(); + System.out.println("数据源[" + entry.getKey() + "]:" + value.getUrl()); + } } } \ No newline at end of file diff --git a/sync-framework/src/main/java/com/lyr/framework/manager/DataSourceManagerService.java b/sync-framework/src/main/java/com/lyr/framework/manager/DataSourceManagerService.java new file mode 100644 index 0000000..df1fe2a --- /dev/null +++ b/sync-framework/src/main/java/com/lyr/framework/manager/DataSourceManagerService.java @@ -0,0 +1,57 @@ +package com.lyr.framework.manager; + +import com.lyr.framework.datasource.DynamicDataSource; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; +import javax.sql.DataSource; + +/** + * @author liyc + * @date 2024/10/30 + * @description TODO + **/ +@Component +public class DataSourceManagerService implements ApplicationContextAware { + + private ApplicationContext applicationContext; + @Resource + private DynamicDataSource dynamicDataSource; + + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + this.applicationContext = applicationContext; + } + + public void print() { + dynamicDataSource.print(); + } + + + public void registerDataSources(String beanName, DataSource dataSource) { + DataSource resolvedDefaultDataSource = dynamicDataSource.getResolvedDefaultDataSource(); + dynamicDataSource.setDefaultTargetDataSource(resolvedDefaultDataSource); + dynamicDataSource.addTargetDataSource(beanName, dataSource); + } + + public void add() { + /* // 构建数据源 + DruidDataSource dataSource = new DruidDataSource(); + dataSource.setUrl("jdbc:sqlserver://192.168.3.28:1433;DatabaseName=BiDataDeYue;encrypt=true;trustServerCertificate=true;"); + dataSource.setUsername("sa"); + dataSource.setPassword("mssql_whdZeB"); + dataSource.setDriverClassName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); + try { + DataSource resolvedDefaultDataSource = dynamicDataSource.getResolvedDefaultDataSource(); + dynamicDataSource.setDefaultTargetDataSource(resolvedDefaultDataSource); + dynamicDataSource.addTargetDataSource("deYueMssql", dataSource); + } catch (BeansException e) { + }*/ + } + + +} diff --git a/sync-framework/src/main/java/com/lyr/framework/web/service/SysLoginService.java b/sync-framework/src/main/java/com/lyr/framework/web/service/SysLoginService.java index fed18eb..778e749 100644 --- a/sync-framework/src/main/java/com/lyr/framework/web/service/SysLoginService.java +++ b/sync-framework/src/main/java/com/lyr/framework/web/service/SysLoginService.java @@ -13,6 +13,7 @@ import com.lyr.common.utils.MessageUtils; import com.lyr.common.utils.StringUtils; import com.lyr.common.utils.ip.IpUtils; import com.lyr.framework.manager.AsyncManager; +import com.lyr.framework.manager.DataSourceManagerService; import com.lyr.framework.manager.factory.AsyncFactory; import com.lyr.framework.security.context.AuthenticationContextHolder; import com.lyr.system.service.ISysConfigService; diff --git a/sync-framework/target/classes/com/lyr/framework/config/DruidConfig$1.class b/sync-framework/target/classes/com/lyr/framework/config/DruidConfig$1.class index b34799ae7c1d302c24ed538f29368bc50e486338..d55f4e9c5061447ada15cbc6c803b125d0400e54 100644 GIT binary patch delta 55 zcmdleuu)*cdN#(0$s5?57^5eDW^0m+XW(E+WZ+{+W)NjaWl&&9W6)+uXE0;PnB2#n L!4+Ja$AX4@Eea@VSTt|~PZ>yJ zNykYYPwO~kpdHWXcviz{13r{AJZGQ{X}LVF;RR`5)Nn?_OA5?`xm+f{KWi5XnSuh> z-kIFW^{tNPsgpVT_)L1pF51bt#e6!WU}r*{(sw8WBB7oZKRJTprWz4{IK~=0$)cS; zHfqnO?8$6~q*it38AUm}y6mb~)UzxpE^Eu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dR z_ynKY_zc&i9d6V=#|_yL9u76(3k^N8H{i+};T`oi@uh~%8wi=g>_qOgjj!Wq<91WM3{;)xQB@3~P1u^55v z5aeqqav3XESCDuP2_%UqD5{-O0_b2>72|Hk`}n3a&#BX}=l@Z*5i#y--(V~%@&85H zOksCW?#2Dw*q6s%bUz6#k2HGncz{CM@gUWy-Y>)OyGgDgIJ$z+P~r!O63qCI2E-bkd@(I}|6^JxbE={bV-DdH@H>-ph09 zPRcud71tc!HLW7}5Dv3SQ}bHUTf9l)AUECQDynW{bJ~a}T%)Y^TLja_66=9#s)>VBYAU+;E)0u~?Dsoy*A=_IPKD*-VGNL8t!f_OQePLZwho|A zUWmqu%Fe$DXEGj*m*5O>j;eowr2?fnTaF~18mG2|y0qbJO$XQDj&fe_PKVY|PxJ3d z3s<!WI5>wN1$lt9J)ljV8Q@ibot;Q4c{et4&t SZ|7ItmdmI<8U8ztAp9?EiqYi& diff --git a/sync-framework/target/classes/com/lyr/framework/config/MyBatisConfig.class b/sync-framework/target/classes/com/lyr/framework/config/MyBatisConfig.class index 8f720265b4930b90f21bd84549e710ee1bb40b1e..bbee8825dfdde742e33927ae5b204ab753159929 100644 GIT binary patch literal 1122 zcmb_bT~8B16g|_H7E84Vwus^fYD|&nycl0FCeT1676m0u^liEw*1_GGW_GIdU+Ie^ zlK2DsQN}ydMhoGgM)zT6&iy!Z&%Luhet!E7;4$u%F^#1XZj_Pp`^_>6Sn}Xj3AamF zW+*;YTDfNo`Nm3{q0ls4$xv-6EnoK2je+NrQT7|T>K8@8&YVhul&aJN%WQqO+D3~M~C90V0bbqx(#k8?+85zAC+M^v*tYmNr{!p71y6OmsmEUji z<3sZC!*cvq6}RCdetcBH?S6brj^7c0hK~oJ;}ZdV68i$U6Q2s;)A)>v{rIfBd``t( zxI2J*@OcIIsyH17snf9#Qb9idDEtUcN0akE!?$9+xuT zm9I}I_@0WjQeZ8pETcfFHPt0tJ#}k%eMX6U{Wl=>vrV&r+JB)~x zNRH@6c7on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$upMSb#^BWd6w~{qF3_9_-!QZ zyVIN`OT=O43A>*{<0(vH*NW%Hf>_MXjCG#1ea(kc;N%qyx4MBAHH2HlaC=GA~nC z1s49KW_{6#QVy{yqbZpkEyEc3ahm!xfiw8$P7D9$D#1x;#f9vPHrQ{oIKtk7?-%ji z$9o&^9^Tn*^SX&|I`4vaZ)gezuL7{s}_3QO@;oQGSn4Eu0C zwXLAOFg32k+c9-kLsc03e*@~{g2GN9#qLpbQ<9{VH z;Bk1d6&ItDnj7#2Y(oXtxfGZ1r&3cH-iSBxX)Q+aW?V))2XP&?!{C<{1fz#(sZgub z5}{Ab8T4`t@QbxDX+LX7tUw?7i9t~4h*C=_c2Z(K@6HOlvMa>6f+H2<*8xi1iNJA! zqbP_gNGKRoaJhmcdvqM9Ar%GV_5ekeDBy8;i6hvA%GVZDU_mGtdKtds^hlk026*~8 z?In0mpSMoIuq-OJ!@RP12y+R+0SvczvNcotFfOQ_Tr#z8$<$?Pz+WHqAHrfM5%si+;SlP{tZY!g-fnyzv zuFQZ&^1%vb!3g8&r{pQj3C2?z@3Mk?x(ZiwB|mfHEsST0t$BMkijqa-THBd7PQ)7F zIgWWUVsB%h?4V6V>>T(D#)-4UefVVvVoH5)$2+J?(%1{kDIf1UL-*s{s-?jr9k)n!}Zg5#aN7;$x72d$52R9%6ROs$9v8Ze&icXFhi^n|rY< zizuzlqPG**;GOhHWA(_okW}7DL@%U&3rOyJ_~fCsrMMRFqVLynMM>n>XQ}-L+n#sZ L*Y{*cZv_4eQe;l) diff --git a/sync-framework/target/classes/com/lyr/framework/config/SecurityConfig.class b/sync-framework/target/classes/com/lyr/framework/config/SecurityConfig.class index ef45f1495bc38a9bc354dab63f896bc18c509a2c..130c78720fe76a852d7d0e767bb9d982cca386d4 100644 GIT binary patch delta 2284 zcmah~d0bRg6#mXI%zN{^#>`^?QBY739TilxTyoz)9Z*peH$WXxQ!p?y%_hq-Gt<1e zmZh1rSuSH^VVId^*=l8rE!w_sR<>*B&b)N|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000..dabe325 --- /dev/null +++ b/sync-gather/pom.xml @@ -0,0 +1,40 @@ + + + + com.lyr + sync + 1.0.0 + + 4.0.0 + + sync-gather + + + 数据采集模块 + + + + + + + com.lyr + sync-common + + + + com.lyr + sync-framework + + + + org.projectlombok + lombok + provided + + + + + + \ No newline at end of file diff --git a/sync-gather/src/main/java/com/lyr/gather/controller/DataSourceConfigController.java b/sync-gather/src/main/java/com/lyr/gather/controller/DataSourceConfigController.java new file mode 100644 index 0000000..0ba0eb6 --- /dev/null +++ b/sync-gather/src/main/java/com/lyr/gather/controller/DataSourceConfigController.java @@ -0,0 +1,34 @@ +package com.lyr.gather.controller; + +import com.lyr.gather.service.DataSourceConfigService; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author liyc + * @date 2024/10/30 + * @description TODO + **/ +@RestController +@RequestMapping("/gather") +public class DataSourceConfigController { + + + @Resource + private DataSourceConfigService dataSourceConfigService; + + + @GetMapping("/print") + public void print() { + dataSourceConfigService.print(); + } + + + @GetMapping("/add") + public void add() { + dataSourceConfigService.add(); + } +} diff --git a/sync-gather/src/main/java/com/lyr/gather/domain/vo/DataSourceConfig.java b/sync-gather/src/main/java/com/lyr/gather/domain/vo/DataSourceConfig.java new file mode 100644 index 0000000..c07c4fd --- /dev/null +++ b/sync-gather/src/main/java/com/lyr/gather/domain/vo/DataSourceConfig.java @@ -0,0 +1,68 @@ +package com.lyr.gather.domain.vo; + +import com.lyr.common.annotation.Excel; +import lombok.Data; + + +/** + * @author liyc + * @date 2024/10/30 + * @description TODO + **/ +@Data +public class DataSourceConfig { + + private static final long serialVersionUID = 1L; + + /** + * 主键,自动递增 + */ + private Long id; + + /** + * 数据源的唯一名称,用于标识不同的数据源 + */ + @Excel(name = "数据源的唯一名称,用于标识不同的数据源") + private String name; + + /** + * 数据库类型,例如 MySQL, PostgreSQL 等 + */ + @Excel(name = "数据库类型,例如 MySQL, PostgreSQL 等") + private String dbType; + + /** + * 数据库连接URL + */ + @Excel(name = "数据库连接URL") + private String url; + + /** + * 数据库用户名 + */ + @Excel(name = "数据库用户名") + private String username; + + /** + * 数据库密码 + */ + @Excel(name = "数据库密码") + private String password; + + /** + * 数据库驱动类名 + */ + @Excel(name = "数据库驱动类名") + private String driverClassName; + + @Excel(name = "bean名称") + private String beanName; + + /** + * 是否启用该数据源,1 表示启用,0 表示禁用 + */ + @Excel(name = "是否启用该数据源,1 表示启用,0 表示禁用") + private Integer isEnabled; + + +} diff --git a/sync-gather/src/main/java/com/lyr/gather/mapper/DataSourceConfigMapper.java b/sync-gather/src/main/java/com/lyr/gather/mapper/DataSourceConfigMapper.java new file mode 100644 index 0000000..2a3f286 --- /dev/null +++ b/sync-gather/src/main/java/com/lyr/gather/mapper/DataSourceConfigMapper.java @@ -0,0 +1,7 @@ +package com.lyr.gather.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.lyr.gather.domain.vo.DataSourceConfig; + +public interface DataSourceConfigMapper extends BaseMapper { +} diff --git a/sync-gather/src/main/java/com/lyr/gather/service/DataSourceConfigService.java b/sync-gather/src/main/java/com/lyr/gather/service/DataSourceConfigService.java new file mode 100644 index 0000000..1e48d39 --- /dev/null +++ b/sync-gather/src/main/java/com/lyr/gather/service/DataSourceConfigService.java @@ -0,0 +1,11 @@ +package com.lyr.gather.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.lyr.gather.domain.vo.DataSourceConfig; + +public interface DataSourceConfigService extends IService { + + void print(); + + void add(); +} diff --git a/sync-gather/src/main/java/com/lyr/gather/service/impl/DataSourceConfigServiceImpl.java b/sync-gather/src/main/java/com/lyr/gather/service/impl/DataSourceConfigServiceImpl.java new file mode 100644 index 0000000..e9cc276 --- /dev/null +++ b/sync-gather/src/main/java/com/lyr/gather/service/impl/DataSourceConfigServiceImpl.java @@ -0,0 +1,48 @@ +package com.lyr.gather.service.impl; + +import com.alibaba.druid.pool.DruidDataSource; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyr.framework.manager.DataSourceManagerService; +import com.lyr.gather.domain.vo.DataSourceConfig; +import com.lyr.gather.mapper.DataSourceConfigMapper; +import com.lyr.gather.service.DataSourceConfigService; +import org.springframework.stereotype.Service; + +import javax.annotation.PostConstruct; +import javax.annotation.Resource; +import java.util.List; + +@Service +public class DataSourceConfigServiceImpl extends ServiceImpl implements DataSourceConfigService { + + @Resource + private DataSourceManagerService dataSourceManagerService; + + @PostConstruct + private void registered() { + List configList = this.lambdaQuery().eq(DataSourceConfig::getIsEnabled, 1).list(); + configList.stream().forEach(e -> { + DruidDataSource dataSource = new DruidDataSource(); + dataSource.setDriverClassName(e.getDriverClassName()); + dataSource.setUrl(e.getUrl()); + dataSource.setUsername(e.getUsername()); + dataSource.setPassword(e.getPassword()); + dataSourceManagerService.registerDataSources(e.getBeanName(), dataSource); + }); + } + + @Override + public void print() { + dataSourceManagerService.print(); + } + + @Override + public void add() { + DruidDataSource dataSource = new DruidDataSource(); + dataSource.setUrl("jdbc:sqlserver://192.168.3.28:1433;DatabaseName=BiDataDeYue;encrypt=true;trustServerCertificate=true;"); + dataSource.setUsername("sa"); + dataSource.setPassword("mssql_whdZeB"); + dataSource.setDriverClassName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); + dataSourceManagerService.registerDataSources("biDataDeYue", dataSource); + } +} diff --git a/sync-generator/src/main/java/com/lyr/generator/controller/GenController.java b/sync-generator/src/main/java/com/lyr/generator/controller/GenController.java index b5a11e4..aa56180 100644 --- a/sync-generator/src/main/java/com/lyr/generator/controller/GenController.java +++ b/sync-generator/src/main/java/com/lyr/generator/controller/GenController.java @@ -49,7 +49,7 @@ public class GenController extends BaseController { @PreAuthorize("@ss.hasPermi('tool:gen:list')") @GetMapping("/list") public TableDataInfo genList(GenTable genTable) { - startPage(); + List list = genTableService.selectGenTableList(genTable); return getDataTable(list); } @@ -76,7 +76,7 @@ public class GenController extends BaseController { @PreAuthorize("@ss.hasPermi('tool:gen:list')") @GetMapping("/db/list") public TableDataInfo dataList(GenTable genTable) { - startPage(); + List list = genTableService.selectDbTableList(genTable); return getDataTable(list); } diff --git a/sync-generator/src/main/resources/vm/java/controller.java.vm b/sync-generator/src/main/resources/vm/java/controller.java.vm index f5d98a8..7d7a138 100644 --- a/sync-generator/src/main/resources/vm/java/controller.java.vm +++ b/sync-generator/src/main/resources/vm/java/controller.java.vm @@ -44,7 +44,7 @@ public class ${ClassName}Controller extends BaseController { @GetMapping("/list") #if($table.crud || $table.sub) public TableDataInfo list(${ClassName} ${className}) { - startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); return getDataTable(list); } diff --git a/sync-generator/target/classes/com/lyr/generator/controller/GenController.class b/sync-generator/target/classes/com/lyr/generator/controller/GenController.class index 3b8a7e53c98ebf63b4a5883159a5840934af86ab..1f7794339a6e6de36a49db1a3b48c12a6ce7570b 100644 GIT binary patch delta 3669 zcmbVO33yc175>kgnY@>oOO_!J1_(I2Dnd7{)D{g68KM;0TI8MDm+-Q-Uh(6PcvU;R=EtA#XKnq(k9ZAU z_v5d4BO8Ci-~IRp-Zb%+9|Le&Fa2i#|H8lZ@V1F}O#H`>61=O|p4HYlOJIrk5fy{( z;xWampFR`2{gQ>(O)&{vEI&p|c0l|Rutf0}>A@J16F~e$$<=0_9`f}NWG2#6TLpUP zrH9@DDU?2zge>W+&3=~jx1`9D0s3vAC4)>E>_??ex>AbuFhsw;Ye|Xr7^;V1ei<$! zOc`lPSdd%4x@lglu5G)RR*#4&QTqok0k_?gz0Z)+woz)55nY7E3bmML$|xmeGFr(+ zQm*7;8KY#Zj8j;Eg{F*Ga*0ex+?P{SSfS)nxlG_~Ucb3T$wZl?WU`D-ypR)#Pm!sn zM3h`ES16e#SDJE_lIc>ZWQNQ%WtNiJQl+F?uGS0Zm{Ox;uGE?`Psx0_#*_t07Rn+) z&$Y2lv9gV=4UJ_}o10@>W;e97Dp@Q`n1_<3vP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20`Pdo0x-deneUcQ&I+$_0|)cvQ7kXQMLS&Z(oUW_Pv79)Fc zZgn3D8H-U1Y0hY2jp$k^5+->Jp*9PMk6jU;_&Viv~X0X)e1oQP?7 z2oKY%ir?Pnw3&SDp@(%Y>_&m(VLv?PVo z1LF7z8vjW=K}EWbmQlCH7`3(M*xaTW@Tlpeyc{$JwBrZpqX%i-Lr(q`xUbU|M!j~d ztD%rOyu^C)6d*6Lp2E{)&}}Cql<+CAus_X{pcBt{(B^v3ay&d2Wa0@ry7v*!{sCBW z(pYlvEV?LCV;PX--5FS(Ll2p}UU(q07xr>C_#Ic(Ql0LFVGmEG*9Ql5b{EkT?A=c~ zh}>ZnP9qAZdwUjA?B4yuDr7UwQh1(MebnJ6qR(Wuloy<)?N;MK2d8p-wlmdQ`Q)=K z2N&#GLe>2-qQNrtXXy4)R(=2%_77`!ygo;?JqX)4FrcAC(vTxKjL%UtMLA_*kln=R z@dYY49q9lUznJ0TFAhNdB?tLnopgHMIM|bV9>2uq;wEKg_E2x=g2K6#Qz4E_+@=C)_H{GWOIP2vzf_jBvc0IL)yPjy#I7f;8 zed1$RyjcG}iIqkDr$yVHAg_`A7`xQ#oP2LMFekeL>~zGV>4-<2VPcRW-x(%8KD3Ytly6I0g+YI|E list = ${className}Service.select${ClassName}List(${className}); return getDataTable(list); } diff --git a/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobController.java b/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobController.java index 3d6bfd5..8bb2683 100644 --- a/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobController.java +++ b/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobController.java @@ -38,7 +38,7 @@ public class SysJobController extends BaseController { @PreAuthorize("@ss.hasPermi('monitor:job:list')") @GetMapping("/list") public TableDataInfo list(SysJob sysJob) { - startPage(); + List list = jobService.selectJobList(sysJob); return getDataTable(list); } diff --git a/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobLogController.java b/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobLogController.java index a55153b..22be600 100644 --- a/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobLogController.java +++ b/sync-quartz/src/main/java/com/lyr/quartz/controller/SysJobLogController.java @@ -32,7 +32,7 @@ public class SysJobLogController extends BaseController { @PreAuthorize("@ss.hasPermi('monitor:job:list')") @GetMapping("/list") public TableDataInfo list(SysJobLog sysJobLog) { - startPage(); + List list = jobLogService.selectJobLogList(sysJobLog); return getDataTable(list); } diff --git a/sync-quartz/target/classes/com/lyr/quartz/controller/SysJobController.class b/sync-quartz/target/classes/com/lyr/quartz/controller/SysJobController.class index b20b09bc6a4d6dc9fa4d99a5eed90ae9e1ed2c98..eb4c637f0d21dde445426d14a9e6ea74fbb0a343 100644 GIT binary patch delta 2569 zcmb_d32+ou5Ph@P%+5{{GfDsd3@g z4U0tHE<1NurKyg@q&RD@sfdccv(Sz zJImMKULEY0Hw>>BconZ1cpYyTcoT0KcpL31-ZAhl-m|v`Bij4;z`%!Sw+HKm86TnD zz{mK+z^ByI=q16=41A6+6qMLQLk0FKeUSG{d}VLaE$@14u&0E=fsF>f=2;D)L1VrV z_iyo?f$#Byfgkacf{gWRmu_6py1uP#!<>d91Dj;~XW9M*zZ%#qE?Y!5O>{Hxo8bK2 z?qd{q|G=O2NTa=}U&biERZijo1s;i*vVyAs4C7>NV8Qc#5hX(i6JlwQj0@CtZ}TjBL!Y&a5wzt(11_&dBV&}Ac z*CT!!eK86L@zfCiS%rgXeF*L4pRQ&!H3GjUM@S9!*K*R1<)e+ zSkSPLFNh)zqH%5TN6kPp)Cym3UvY`4#SoN8U3?~8fHMBA963x|9#d9HO{pA&{0^M? zI1)$kXQC6t9(wd}5PRvTqZ&u^B*C5oE3rA6KXEsY;iiO9L`^)5V{sf$IldlIoKTDL zI1wlDd^fCt$>6b5l{ain5+vxgt zc3h5v?fhl;&c-b$>@Mg%QY^zU6fy2S6GROVqQddpU~la)!m4DVNs%No!4PK?ojWjz zdl~}a;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7O)T;`)KNvPNE*s7c~HND$xl;9@5?czzhff~*~cxZ z{f%2OW{9NKw4mjvdM~|*Lk*+{i1IK|UjK{Gcg9T8xVKD(gscEV^fk|X1M}%jg45&8 z$;n8^rL=QW*-LSm$z4)k>y(AH&gIlPFgX;N!z*YbV8LMYX#@D9CmY~zzx0LL{ulcC z{4`Y^n!kbc^*O5Qe(4J}9*VwPt7$_``}hmcml>dMY(M(8$Nf+Am50$+fhz~nw=h5- z<`eNeZc{zY8qHb*6|C`Fi6~r4Ew?CS{H6w452^mv zi=qL06*ZyFY&!?FPigqPx|&dHp#zIy2L{$P;oVmmgkMHM8GfRFcpYv--pFdm^i;Cy z;PR;1JTAz<8ptwF8Z4m+x-!FIDW`(sFc_uGUs-vi^H;Neb`x!2^nC-^0=2a-`D!HriJO?Qj1VM+e;p diff --git a/sync-quartz/target/classes/com/lyr/quartz/controller/SysJobLogController.class b/sync-quartz/target/classes/com/lyr/quartz/controller/SysJobLogController.class index 7b3f1d78826f5841dd7bd36e4fe9ea88fab1510d..c576f2991dcaa6920c54c69ca89e975b0065e336 100644 GIT binary patch delta 1042 zcmZ{iNmCP16otR;1Un?n6eWm)qKpO*M4WIIQIW|B5pYCs7Sy2I{057izd}kY6k6rR zo&Um}D}RFJx!nz>QswHN_wI1cx$pgK_}(!2?MWGX3i%VXMO zCP^8y2}Uj6w&Wd4-Zga3(0xM>49$5w^q60rS@vo()cK^@>apPSh{rxpc)Ie-8*a<+ z%;z~Td|tBXv&1W(*Szt`vF!8K`j!}3nM%w#9q$)AKK)KqxcO?y0|(b;DsIzhi(+jQ zMW@qtoq7}<#j@-g&Z>Y*eN=?d4q-nmU?&YaIW)3MRo1+q7*njte#Y%wC+0Gi?JAIu zf7ER(n3Plvw2-1TnAQ|_MAOvEZkjYTC4r6XQT1Nc8)taatQ(VGr`V#~)*NlL8<@q( z(IK>ttdb_^197dLJWZykD^N84m9pvdmNmSAczwLHJDn&{ZcameX|>oIQuLDHfYkH_ zI{R&ql!dMhb`~HewCg6a(JMBWz8nYX zU*HgjIimTYt)oK67*Mg<8dS6`R%N3_CtV7pY{|vXH4q5T;O4D%Q+XA~IiYzaTRd5` z#Z#PCi)UZqjDW*g&i#+uH|~m3?x78Cqs|v`4{|=@F0wwfVf{jA{UVoC6j~oH)pD5; z*|a^F3wwb|Tf;h)4%q@#|D=R}ZG!o7t^|6*uUi?(DcS#~h|y5QSdoZvF;0ld)gWt2 M3td&bwkh-aU;CJ0F8}}l delta 1073 zcmZuv*-{fx5Ir+lCYg+hL_-84MgfsYq6ASf;w~ymATFqYThxdPxFm6Vu;wH3=08{^ zr4!tEi<%WZAY-=|DS%ZEtG$dGW58a6w#r0Duh#@NY-Mh_4M<@d zD-C_v&Mp~VVe~O3>?U;kGklqK_;nN=JKIFyBX4{PEvmZu;l}`C7*wcfchW;82GZC; z^caQqVJDIMIWOGq$pBAejU?kBPj}TYgx!)XLaSkznT-rDDa^rpas}9(7FAiLYUV3~ z^KoMhp@P51pUK6;O_;K=t1-?Au_J;J+LY&xqe|zPi__AXMix1e5nCzNIgwC`eVj9~ zhZv4uiSMQw_i}(F?&Sz+WQ`%7cx&Xzq+?%=zuW!_4&WfhiSMp;h*<%L*(`paV$>O9 zwr6%kM-!G9-TrI^M=2M2_O_JAFo7e)>u~XCn~TSAoFj((5+|5wIH@@Q%e_Ikqn+H7 zLhW$bPVUo~^tjtrKl69>v+nBWFvTW!_4A!tE?}CdqGf_j@&Zw@VI46(eG?o1Nm(`( r{Vc*LDJ$GxIOsync-common + + org.projectlombok + lombok + provided + + + + com.baomidou + mybatis-plus-boot-starter + \ No newline at end of file diff --git a/sync-system/src/main/java/com/lyr/system/domain/SysCache.java b/sync-system/src/main/java/com/lyr/system/domain/SysCache.java index 1d1d450..a2a9bc7 100644 --- a/sync-system/src/main/java/com/lyr/system/domain/SysCache.java +++ b/sync-system/src/main/java/com/lyr/system/domain/SysCache.java @@ -1,5 +1,6 @@ package com.lyr.system.domain; + import com.lyr.common.utils.StringUtils; /** diff --git a/sync-system/src/main/java/com/lyr/system/mapper/SysDeptMapper.java b/sync-system/src/main/java/com/lyr/system/mapper/SysDeptMapper.java index fff8626..1065bab 100644 --- a/sync-system/src/main/java/com/lyr/system/mapper/SysDeptMapper.java +++ b/sync-system/src/main/java/com/lyr/system/mapper/SysDeptMapper.java @@ -1,5 +1,6 @@ package com.lyr.system.mapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.lyr.common.core.domain.entity.SysDept; import org.apache.ibatis.annotations.Param; @@ -10,7 +11,7 @@ import java.util.List; * * @author ruoyi */ -public interface SysDeptMapper { +public interface SysDeptMapper extends BaseMapper { /** * 查询部门管理数据 * diff --git a/sync-system/src/main/java/com/lyr/system/service/impl/SysDictDataServiceImpl.java b/sync-system/src/main/java/com/lyr/system/service/impl/SysDictDataServiceImpl.java index 5016ba6..b16c7c9 100644 --- a/sync-system/src/main/java/com/lyr/system/service/impl/SysDictDataServiceImpl.java +++ b/sync-system/src/main/java/com/lyr/system/service/impl/SysDictDataServiceImpl.java @@ -2,6 +2,7 @@ package com.lyr.system.service.impl; import com.lyr.common.core.domain.entity.SysDictData; import com.lyr.common.utils.DictUtils; +import com.lyr.common.utils.spring.SpringUtils; import com.lyr.system.mapper.SysDictDataMapper; import com.lyr.system.service.ISysDictDataService; import org.springframework.beans.factory.annotation.Autowired; diff --git a/sync-system/src/main/resources/mapper/system/SysDeptMapper.xml b/sync-system/src/main/resources/mapper/system/SysDeptMapper.xml index 0afc409..e68b16f 100644 --- a/sync-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/sync-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -23,8 +23,18 @@ - select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, - d.del_flag, d.create_by, d.create_time + select d.dept_id, + d.parent_id, + d.ancestors, + d.dept_name, + d.order_num, + d.leader, + d.phone, + d.email, + d.status, + d.del_flag, + d.create_by, + d.create_time from sys_dept d @@ -61,27 +71,47 @@