Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Smart Hospital
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
李俊
Smart Hospital
Commits
d6495c28
Commit
d6495c28
authored
Mar 31, 2022
by
lijun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将mysql转化成oracle数据库
parent
2925000c
Changes
48
Show whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
130 additions
and
668 deletions
+130
-668
pom.xml
pom.xml
+1
-0
smart-hospital-auth/pom.xml
smart-hospital-auth/pom.xml
+6
-0
smart-hospital-auth/src/main/resources/bootstrap.yml
smart-hospital-auth/src/main/resources/bootstrap.yml
+2
-2
smart-hospital-common/smart-common-data/src/main/java/com/smart/hospital/common/data/mybatis/IdGenerator.java
...a/com/smart/hospital/common/data/mybatis/IdGenerator.java
+13
-0
smart-hospital-common/smart-common-data/src/main/java/com/smart/hospital/common/data/mybatis/MybatisPlusConfig.java
...smart/hospital/common/data/mybatis/MybatisPlusConfig.java
+8
-0
smart-hospital-gateway/src/main/resources/bootstrap.yml
smart-hospital-gateway/src/main/resources/bootstrap.yml
+2
-2
smart-hospital-pay/src/main/java/com/smart/hospital/pay/SmartPayApplication.java
...main/java/com/smart/hospital/pay/SmartPayApplication.java
+1
-1
smart-hospital-register/hospital-register-biz/pom.xml
smart-hospital-register/hospital-register-biz/pom.xml
+6
-0
smart-hospital-register/hospital-register-biz/src/main/resources/bootstrap.yml
...er/hospital-register-biz/src/main/resources/bootstrap.yml
+2
-2
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDept.java
...ain/java/com/smart/hospital/admin/api/entity/SysDept.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDict.java
...ain/java/com/smart/hospital/admin/api/entity/SysDict.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDictItem.java
...java/com/smart/hospital/admin/api/entity/SysDictItem.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysFile.java
...ain/java/com/smart/hospital/admin/api/entity/SysFile.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysLog.java
...main/java/com/smart/hospital/admin/api/entity/SysLog.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysMenu.java
...ain/java/com/smart/hospital/admin/api/entity/SysMenu.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysOauthClientDetails.java
...mart/hospital/admin/api/entity/SysOauthClientDetails.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysPublicParam.java
...a/com/smart/hospital/admin/api/entity/SysPublicParam.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysRole.java
...ain/java/com/smart/hospital/admin/api/entity/SysRole.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysRouteConf.java
...ava/com/smart/hospital/admin/api/entity/SysRouteConf.java
+3
-10
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysSocialDetails.java
...com/smart/hospital/admin/api/entity/SysSocialDetails.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysTenant.java
...n/java/com/smart/hospital/admin/api/entity/SysTenant.java
+0
-75
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysUser.java
...ain/java/com/smart/hospital/admin/api/entity/SysUser.java
+2
-0
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/YyHospitalInfo.java
...a/com/smart/hospital/admin/api/entity/YyHospitalInfo.java
+54
-49
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/feign/RemoteTenantService.java
...m/smart/hospital/admin/api/feign/RemoteTenantService.java
+0
-1
smart-hospital-upms/smart-upms-biz/pom.xml
smart-hospital-upms/smart-upms-biz/pom.xml
+6
-0
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/config/DynamicRouteInitRunner.java
...m/smart/hospital/admin/config/DynamicRouteInitRunner.java
+1
-1
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/controller/upms/SysTenantController.java
...t/hospital/admin/controller/upms/SysTenantController.java
+0
-2
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/mapper/SysTenantMapper.java
...java/com/smart/hospital/admin/mapper/SysTenantMapper.java
+0
-1
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/SysTenantService.java
...va/com/smart/hospital/admin/service/SysTenantService.java
+0
-32
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/impl/SysRouteConfServiceImpl.java
.../hospital/admin/service/impl/SysRouteConfServiceImpl.java
+1
-1
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/impl/SysTenantServiceImpl.java
...art/hospital/admin/service/impl/SysTenantServiceImpl.java
+0
-166
smart-hospital-upms/smart-upms-biz/src/main/resources/bootstrap.yml
...ital-upms/smart-upms-biz/src/main/resources/bootstrap.yml
+2
-2
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDeptMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysDeptMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDeptRelationMapper.xml
...s-biz/src/main/resources/mapper/SysDeptRelationMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDictItemMapper.xml
...-upms-biz/src/main/resources/mapper/SysDictItemMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDictMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysDictMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysFileMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysFileMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysLogMapper.xml
...smart-upms-biz/src/main/resources/mapper/SysLogMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysMenuMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysMenuMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysOauthClientDetailsMapper.xml
...src/main/resources/mapper/SysOauthClientDetailsMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysPublicParamMapper.xml
...ms-biz/src/main/resources/mapper/SysPublicParamMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRoleMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysRoleMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
...-upms-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRouteConfMapper.xml
...upms-biz/src/main/resources/mapper/SysRouteConfMapper.xml
+0
-18
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysSocialDetailsMapper.xml
...-biz/src/main/resources/mapper/SysSocialDetailsMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysTenantMapper.xml
...rt-upms-biz/src/main/resources/mapper/SysTenantMapper.xml
+0
-37
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysUserMapper.xml
...mart-upms-biz/src/main/resources/mapper/SysUserMapper.xml
+0
-19
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysUserRoleMapper.xml
...-upms-biz/src/main/resources/mapper/SysUserRoleMapper.xml
+0
-19
No files found.
pom.xml
View file @
d6495c28
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<docker.plugin.version>
0.4.12
</docker.plugin.version>
<docker.plugin.version>
0.4.12
</docker.plugin.version>
<registry.url>
192.168.0.13:5000
</registry.url>
<registry.url>
192.168.0.13:5000
</registry.url>
<mapstruct.version>
1.3.1.Final
</mapstruct.version>
<mapstruct.version>
1.3.1.Final
</mapstruct.version>
<oralce.connector.version>
11.2.0.3
</oralce.connector.version>
</properties>
</properties>
<dependencies>
<dependencies>
...
...
smart-hospital-auth/pom.xml
View file @
d6495c28
...
@@ -37,6 +37,12 @@
...
@@ -37,6 +37,12 @@
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependency>
<!-- 添加oracle驱动依赖 -->
<dependency>
<groupId>
com.oracle
</groupId>
<artifactId>
ojdbc6
</artifactId>
<version>
${oralce.connector.version}
</version>
</dependency>
<!--缓存操作-->
<!--缓存操作-->
<dependency>
<dependency>
<groupId>
com.smart.hospital
</groupId>
<groupId>
com.smart.hospital
</groupId>
...
...
smart-hospital-auth/src/main/resources/bootstrap.yml
View file @
d6495c28
...
@@ -8,11 +8,11 @@ spring:
...
@@ -8,11 +8,11 @@ spring:
nacos
:
nacos
:
discovery
:
discovery
:
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
config
:
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
file-extension
:
yml
file-extension
:
yml
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
profiles
:
profiles
:
active
:
@
profiles.active@
active
:
@
profiles.active@
\ No newline at end of file
smart-hospital-common/smart-common-data/src/main/java/com/smart/hospital/common/data/mybatis/IdGenerator.java
0 → 100644
View file @
d6495c28
//package com.smart.hospital.common.data.mybatis;
//
//import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator;
//import org.springframework.stereotype.Component;
//
//@Component
//public class IdGenerator implements IKeyGenerator {
//
// @Override
// public String executeSql(String incrementerName) {
// return "SELECT CUSTOM_SQE.NEXTVAL FROM DUAL";
// }
//}
smart-hospital-common/smart-common-data/src/main/java/com/smart/hospital/common/data/mybatis/MybatisPlusConfig.java
View file @
d6495c28
...
@@ -2,8 +2,11 @@
...
@@ -2,8 +2,11 @@
package
com.smart.hospital.common.data.mybatis
;
package
com.smart.hospital.common.data.mybatis
;
import
com.baomidou.mybatisplus.core.incrementer.IKeyGenerator
;
import
com.baomidou.mybatisplus.core.injector.ISqlInjector
;
import
com.baomidou.mybatisplus.core.injector.ISqlInjector
;
import
com.baomidou.mybatisplus.core.parser.ISqlParser
;
import
com.baomidou.mybatisplus.core.parser.ISqlParser
;
import
com.baomidou.mybatisplus.extension.incrementer.H2KeyGenerator
;
import
com.baomidou.mybatisplus.extension.incrementer.OracleKeyGenerator
;
import
com.baomidou.mybatisplus.extension.injector.LogicSqlInjector
;
import
com.baomidou.mybatisplus.extension.injector.LogicSqlInjector
;
import
com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.tenant.TenantSqlParser
;
import
com.baomidou.mybatisplus.extension.plugins.tenant.TenantSqlParser
;
...
@@ -84,4 +87,9 @@ public class MybatisPlusConfig {
...
@@ -84,4 +87,9 @@ public class MybatisPlusConfig {
public
ISqlInjector
sqlInjector
()
{
public
ISqlInjector
sqlInjector
()
{
return
new
LogicSqlInjector
();
return
new
LogicSqlInjector
();
}
}
@Bean
public
IKeyGenerator
keyGenerator
()
{
return
new
OracleKeyGenerator
();
}
}
}
smart-hospital-gateway/src/main/resources/bootstrap.yml
View file @
d6495c28
...
@@ -8,11 +8,11 @@ spring:
...
@@ -8,11 +8,11 @@ spring:
nacos
:
nacos
:
discovery
:
discovery
:
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
config
:
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
file-extension
:
yml
file-extension
:
yml
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
profiles
:
profiles
:
active
:
@
profiles.active@
active
:
@
profiles.active@
\ No newline at end of file
smart-hospital-pay/src/main/java/com/smart/hospital/pay/SmartPayApplication.java
View file @
d6495c28
...
@@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
...
@@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.client.SpringCloudApplication
;
/**
/**
* 支付订单中心
* 支付
/
订单中心
*/
*/
@SpringCloudApplication
@SpringCloudApplication
public
class
SmartPayApplication
{
public
class
SmartPayApplication
{
...
...
smart-hospital-register/hospital-register-biz/pom.xml
View file @
d6495c28
...
@@ -91,6 +91,12 @@
...
@@ -91,6 +91,12 @@
<groupId>
com.smart.hospital
</groupId>
<groupId>
com.smart.hospital
</groupId>
<artifactId>
smart-common-mq
</artifactId>
<artifactId>
smart-common-mq
</artifactId>
</dependency>
</dependency>
<!-- 添加oracle驱动依赖 -->
<dependency>
<groupId>
com.oracle
</groupId>
<artifactId>
ojdbc6
</artifactId>
<version>
${oralce.connector.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
smart-hospital-register/hospital-register-biz/src/main/resources/bootstrap.yml
View file @
d6495c28
...
@@ -8,11 +8,11 @@ spring:
...
@@ -8,11 +8,11 @@ spring:
nacos
:
nacos
:
discovery
:
discovery
:
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
config
:
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
file-extension
:
yml
file-extension
:
yml
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
profiles
:
profiles
:
active
:
@
profiles.active@
active
:
@
profiles.active@
\ No newline at end of file
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDept.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"部门"
)
@ApiModel
(
value
=
"部门"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysDept
extends
Model
<
SysDept
>
{
public
class
SysDept
extends
Model
<
SysDept
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDict.java
View file @
d6495c28
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
...
@@ -21,6 +22,7 @@ import java.time.LocalDateTime;
...
@@ -21,6 +22,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"字典类型"
)
@ApiModel
(
value
=
"字典类型"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysDict
extends
Model
<
SysDict
>
{
public
class
SysDict
extends
Model
<
SysDict
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysDictItem.java
View file @
d6495c28
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -20,6 +21,7 @@ import java.time.LocalDateTime;
...
@@ -20,6 +21,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"字典项"
)
@ApiModel
(
value
=
"字典项"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysDictItem
extends
Model
<
SysDictItem
>
{
public
class
SysDictItem
extends
Model
<
SysDictItem
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysFile.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -22,6 +23,7 @@ import java.time.LocalDateTime;
...
@@ -22,6 +23,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"文件"
)
@ApiModel
(
value
=
"文件"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysFile
extends
Model
<
SysFile
>
{
public
class
SysFile
extends
Model
<
SysFile
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysLog.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -23,6 +24,7 @@ import java.time.LocalDateTime;
...
@@ -23,6 +24,7 @@ import java.time.LocalDateTime;
*/
*/
@Data
@Data
@ApiModel
(
value
=
"日志"
)
@ApiModel
(
value
=
"日志"
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysLog
implements
Serializable
{
public
class
SysLog
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysMenu.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"菜单"
)
@ApiModel
(
value
=
"菜单"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysMenu
extends
Model
<
SysMenu
>
{
public
class
SysMenu
extends
Model
<
SysMenu
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysOauthClientDetails.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -23,6 +24,7 @@ import javax.validation.constraints.NotBlank;
...
@@ -23,6 +24,7 @@ import javax.validation.constraints.NotBlank;
@Data
@Data
@ApiModel
(
value
=
"客户端信息"
)
@ApiModel
(
value
=
"客户端信息"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysOauthClientDetails
extends
Model
<
SysOauthClientDetails
>
{
public
class
SysOauthClientDetails
extends
Model
<
SysOauthClientDetails
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysPublicParam.java
View file @
d6495c28
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
...
@@ -22,6 +23,7 @@ import java.util.Date;
...
@@ -22,6 +23,7 @@ import java.util.Date;
@Data
@Data
@ApiModel
(
value
=
"公共参数"
)
@ApiModel
(
value
=
"公共参数"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysPublicParam
extends
Model
<
SysPublicParam
>
{
public
class
SysPublicParam
extends
Model
<
SysPublicParam
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysRole.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
...
@@ -26,6 +27,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"角色"
)
@ApiModel
(
value
=
"角色"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysRole
extends
Model
<
SysRole
>
{
public
class
SysRole
extends
Model
<
SysRole
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysRouteConf.java
View file @
d6495c28
...
@@ -2,10 +2,7 @@
...
@@ -2,10 +2,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -24,6 +21,7 @@ import java.time.LocalDateTime;
...
@@ -24,6 +21,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"网关路由信息"
)
@ApiModel
(
value
=
"网关路由信息"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysRouteConf
extends
Model
<
SysRouteConf
>
{
public
class
SysRouteConf
extends
Model
<
SysRouteConf
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@JsonIgnore
@JsonIgnore
...
@@ -55,12 +53,7 @@ public class SysRouteConf extends Model<SysRouteConf> {
...
@@ -55,12 +53,7 @@ public class SysRouteConf extends Model<SysRouteConf> {
*/
*/
@ApiModelProperty
(
value
=
"请求uri"
)
@ApiModelProperty
(
value
=
"请求uri"
)
private
String
uri
;
private
String
uri
;
/**
* 排序
*/
@TableField
(
value
=
"`order`"
)
@ApiModelProperty
(
value
=
"排序值"
)
private
Integer
order
;
/**
/**
* 创建时间
* 创建时间
*/
*/
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysSocialDetails.java
View file @
d6495c28
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
...
@@ -22,6 +23,7 @@ import java.time.LocalDateTime;
...
@@ -22,6 +23,7 @@ import java.time.LocalDateTime;
@Data
@Data
@ApiModel
(
value
=
"第三方账号信息"
)
@ApiModel
(
value
=
"第三方账号信息"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysSocialDetails
extends
Model
<
SysSocialDetails
>
{
public
class
SysSocialDetails
extends
Model
<
SysSocialDetails
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysTenant.java
deleted
100644 → 0
View file @
2925000c
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
/**
* 租户
*
* @author giaogiao
* @date 2019-05-15 15:55:41
*/
@Data
@ApiModel
(
value
=
"租户信息"
)
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
SysTenant
extends
Model
<
SysTenant
>
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 租户id
*/
@TableId
@ApiModelProperty
(
value
=
"租户id"
)
private
Integer
id
;
/**
* 租户名称
*/
@ApiModelProperty
(
value
=
"租户名称"
)
private
String
name
;
/**
* 租户编号
*/
@ApiModelProperty
(
value
=
"租户编号"
)
private
String
code
;
/**
* 开始时间
*/
@ApiModelProperty
(
value
=
"开始时间"
)
private
LocalDate
startTime
;
/**
* 结束时间
*/
@ApiModelProperty
(
value
=
"结束时间"
)
private
LocalDate
endTime
;
/**
* 0正常 9-冻结
*/
@ApiModelProperty
(
value
=
"租户冻结标记,9:冻结,0:正常"
)
private
String
status
;
/**
* 删除标记
*/
@TableLogic
@ApiModelProperty
(
value
=
"删除标记,1:已删除,0:正常"
)
private
String
delFlag
;
/**
* 创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/SysUser.java
View file @
d6495c28
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
...
@@ -23,6 +24,7 @@ import java.time.LocalDateTime;
...
@@ -23,6 +24,7 @@ import java.time.LocalDateTime;
*/
*/
@Data
@Data
@ApiModel
(
value
=
"用户"
)
@ApiModel
(
value
=
"用户"
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
SysUser
implements
Serializable
{
public
class
SysUser
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/entity/YyHospitalInfo.java
View file @
d6495c28
package
com.smart.hospital.admin.api.entity
;
package
com.smart.hospital.admin.api.entity
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
/**
/**
* <p>
* <p>
*
*
...
@@ -23,7 +27,8 @@ import lombok.experimental.Accessors;
...
@@ -23,7 +27,8 @@ import lombok.experimental.Accessors;
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"yy_hospital_info"
)
@TableName
(
"yy_hospital_info"
)
@ApiModel
(
value
=
"YyHospitalInfo对象"
,
description
=
""
)
@ApiModel
(
value
=
"YyHospitalInfo对象"
,
description
=
""
)
@KeySequence
(
value
=
"CUSTOM_SQE"
)
public
class
YyHospitalInfo
extends
Model
<
YyHospitalInfo
>
{
public
class
YyHospitalInfo
extends
Model
<
YyHospitalInfo
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
smart-hospital-upms/smart-upms-api/src/main/java/com/smart/hospital/admin/api/feign/RemoteTenantService.java
View file @
d6495c28
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
package
com.smart.hospital.admin.api.feign
;
package
com.smart.hospital.admin.api.feign
;
import
com.smart.hospital.admin.api.entity.SysTenant
;
import
com.smart.hospital.common.core.constant.SecurityConstants
;
import
com.smart.hospital.common.core.constant.SecurityConstants
;
import
com.smart.hospital.common.core.constant.ServiceNameConstants
;
import
com.smart.hospital.common.core.constant.ServiceNameConstants
;
import
com.smart.hospital.common.core.util.R
;
import
com.smart.hospital.common.core.util.R
;
...
...
smart-hospital-upms/smart-upms-biz/pom.xml
View file @
d6495c28
...
@@ -76,6 +76,12 @@
...
@@ -76,6 +76,12 @@
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependency>
<!-- 添加oracle驱动依赖 -->
<dependency>
<groupId>
com.oracle
</groupId>
<artifactId>
ojdbc6
</artifactId>
<version>
${oralce.connector.version}
</version>
</dependency>
<!--web 模块-->
<!--web 模块-->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/config/DynamicRouteInitRunner.java
View file @
d6495c28
...
@@ -51,7 +51,7 @@ public class DynamicRouteInitRunner {
...
@@ -51,7 +51,7 @@ public class DynamicRouteInitRunner {
vo
.
setRouteName
(
route
.
getRouteName
());
vo
.
setRouteName
(
route
.
getRouteName
());
vo
.
setId
(
route
.
getRouteId
());
vo
.
setId
(
route
.
getRouteId
());
vo
.
setUri
(
URI
.
create
(
route
.
getUri
()));
vo
.
setUri
(
URI
.
create
(
route
.
getUri
()));
vo
.
setOrder
(
route
.
getOrder
());
//
vo.setOrder(route.getOrder());
JSONArray
filterObj
=
JSONUtil
.
parseArray
(
route
.
getFilters
());
JSONArray
filterObj
=
JSONUtil
.
parseArray
(
route
.
getFilters
());
vo
.
setFilters
(
filterObj
.
toList
(
FilterDefinition
.
class
));
vo
.
setFilters
(
filterObj
.
toList
(
FilterDefinition
.
class
));
...
...
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/controller/upms/SysTenantController.java
View file @
d6495c28
...
@@ -4,8 +4,6 @@ package com.smart.hospital.admin.controller.upms;
...
@@ -4,8 +4,6 @@ package com.smart.hospital.admin.controller.upms;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.smart.hospital.admin.api.entity.SysTenant
;
import
com.smart.hospital.admin.service.SysTenantService
;
import
com.smart.hospital.common.core.constant.CacheConstants
;
import
com.smart.hospital.common.core.constant.CacheConstants
;
import
com.smart.hospital.common.core.util.R
;
import
com.smart.hospital.common.core.util.R
;
import
com.smart.hospital.common.log.annotation.SysLog
;
import
com.smart.hospital.common.log.annotation.SysLog
;
...
...
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/mapper/SysTenantMapper.java
View file @
d6495c28
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
package
com.smart.hospital.admin.mapper
;
package
com.smart.hospital.admin.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.smart.hospital.admin.api.entity.SysTenant
;
/**
/**
* 租户
* 租户
...
...
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/SysTenantService.java
deleted
100644 → 0
View file @
2925000c
package
com.smart.hospital.admin.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.smart.hospital.admin.api.entity.SysTenant
;
import
java.util.List
;
/**
* 租户管理
*
* @author giaogiao
* @date 2019-05-15 15:55:41
*/
public
interface
SysTenantService
extends
IService
<
SysTenant
>
{
/**
* 获取正常的租户
*
* @return
*/
List
<
SysTenant
>
getNormal
();
/**
* 保存租户
*
* @param sysTenant
* @return
*/
Boolean
saveTenant
(
SysTenant
sysTenant
);
}
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/impl/SysRouteConfServiceImpl.java
View file @
d6495c28
...
@@ -133,7 +133,7 @@ public class SysRouteConfServiceImpl extends ServiceImpl<SysRouteConfMapper, Sys
...
@@ -133,7 +133,7 @@ public class SysRouteConfServiceImpl extends ServiceImpl<SysRouteConfMapper, Sys
routeConf
.
setRouteName
(
vo
.
getRouteName
());
routeConf
.
setRouteName
(
vo
.
getRouteName
());
routeConf
.
setFilters
(
JSONUtil
.
toJsonStr
(
vo
.
getFilters
()));
routeConf
.
setFilters
(
JSONUtil
.
toJsonStr
(
vo
.
getFilters
()));
routeConf
.
setPredicates
(
JSONUtil
.
toJsonStr
(
vo
.
getPredicates
()));
routeConf
.
setPredicates
(
JSONUtil
.
toJsonStr
(
vo
.
getPredicates
()));
routeConf
.
setOrder
(
vo
.
getOrder
());
//
routeConf.setOrder(vo.getOrder());
routeConf
.
setUri
(
vo
.
getUri
().
toString
());
routeConf
.
setUri
(
vo
.
getUri
().
toString
());
return
routeConf
;
return
routeConf
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
smart-hospital-upms/smart-upms-biz/src/main/java/com/smart/hospital/admin/service/impl/SysTenantServiceImpl.java
deleted
100644 → 0
View file @
2925000c
package
com.smart.hospital.admin.service.impl
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.smart.hospital.admin.mapper.SysTenantMapper
;
import
com.smart.hospital.admin.service.*
;
import
com.smart.hospital.admin.api.entity.*
;
import
com.smart.hospital.admin.service.*
;
import
com.smart.hospital.common.core.constant.CacheConstants
;
import
com.smart.hospital.common.core.constant.CommonConstants
;
import
com.smart.hospital.common.core.constant.enums.DictTypeEnum
;
import
com.smart.hospital.common.core.exception.CheckedException
;
import
com.smart.hospital.common.data.tenant.TenantContextHolder
;
import
lombok.AllArgsConstructor
;
import
org.apache.commons.configuration.Configuration
;
import
org.apache.commons.configuration.ConfigurationException
;
import
org.apache.commons.configuration.PropertiesConfiguration
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
springfox.documentation.annotations.Cacheable
;
import
java.time.LocalDate
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* 租户
*
* @author giaogiao
* @date 2019-05-15 15:55:41
*/
@Service
@AllArgsConstructor
public
class
SysTenantServiceImpl
extends
ServiceImpl
<
SysTenantMapper
,
SysTenant
>
implements
SysTenantService
{
private
static
final
PasswordEncoder
ENCODER
=
new
BCryptPasswordEncoder
();
private
final
SysDeptRelationService
deptRelationService
;
private
final
SysUserRoleService
userRoleService
;
private
final
SysRoleMenuService
roleMenuService
;
private
final
SysDictItemService
dictItemService
;
private
final
SysUserService
userService
;
private
final
SysRoleService
roleService
;
private
final
SysMenuService
menuService
;
private
final
SysDeptService
deptService
;
private
final
SysDictService
dictService
;
/**
* 获取正常状态租户
* <p>
* 1. 状态正常
* 2. 开始时间小于等于当前时间
* 3. 结束时间大于等于当前时间
*
* @return
*/
@Override
@Cacheable
(
value
=
CacheConstants
.
TENANT_DETAILS
)
public
List
<
SysTenant
>
getNormal
()
{
return
list
(
Wrappers
.<
SysTenant
>
lambdaQuery
()
.
eq
(
SysTenant:
:
getStatus
,
CommonConstants
.
STATUS_NORMAL
)
.
le
(
SysTenant:
:
getStartTime
,
LocalDate
.
now
())
.
ge
(
SysTenant:
:
getEndTime
,
LocalDate
.
now
()));
}
/**
* 保存租户
* <p>
* 1. 保存租户
* 2. 初始化权限相关表
* - sys_user
* - sys_role
* - sys_user_role
* - sys_role_menu
* - sys_dict
* - sys_dict_item
*
* @param sysTenant 租户实体
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@CacheEvict
(
value
=
CacheConstants
.
TENANT_DETAILS
)
public
Boolean
saveTenant
(
SysTenant
sysTenant
)
{
this
.
save
(
sysTenant
);
// 查询系统内置字典
List
<
SysDict
>
dictList
=
dictService
.
list
(
Wrappers
.<
SysDict
>
lambdaQuery
()
.
eq
(
SysDict:
:
getSystem
,
DictTypeEnum
.
SYSTEM
.
getType
()))
.
stream
().
map
(
dict
->
{
SysDict
sysDict
=
new
SysDict
();
BeanUtils
.
copyProperties
(
dict
,
sysDict
,
"tenantId"
);
return
sysDict
;
}).
collect
(
Collectors
.
toList
());
// 查询系统内置字典项目
List
<
Integer
>
dictIdList
=
dictList
.
stream
().
map
(
SysDict:
:
getId
)
.
collect
(
Collectors
.
toList
());
List
<
SysDictItem
>
dictItemList
=
dictItemService
.
list
(
Wrappers
.<
SysDictItem
>
lambdaQuery
()
.
in
(
SysDictItem:
:
getDictId
,
dictIdList
))
.
stream
().
map
(
item
->
{
SysDictItem
sysDictItem
=
new
SysDictItem
();
BeanUtils
.
copyProperties
(
item
,
sysDictItem
,
"tenantId"
);
return
sysDictItem
;
}).
collect
(
Collectors
.
toList
());
// 保证插入租户为新的租户
TenantContextHolder
.
setTenantId
(
sysTenant
.
getId
());
Configuration
config
=
getConfig
();
// 插入部门
SysDept
dept
=
new
SysDept
();
dept
.
setName
(
config
.
getString
(
"defaultDeptName"
));
dept
.
setParentId
(
0
);
deptService
.
save
(
dept
);
//维护部门关系
deptRelationService
.
insertDeptRelation
(
dept
);
// 构造初始化用户
SysUser
user
=
new
SysUser
();
user
.
setUsername
(
config
.
getString
(
"defaultUsername"
));
user
.
setPassword
(
ENCODER
.
encode
(
config
.
getString
(
"defaultPassword"
)));
user
.
setDeptId
(
dept
.
getDeptId
());
userService
.
save
(
user
);
// 构造新角色
SysRole
role
=
new
SysRole
();
role
.
setRoleCode
(
config
.
getString
(
"defaultRoleCode"
));
role
.
setRoleName
(
config
.
getString
(
"defaultRoleName"
));
roleService
.
save
(
role
);
// 用户角色关系
SysUserRole
userRole
=
new
SysUserRole
();
userRole
.
setUserId
(
user
.
getUserId
());
userRole
.
setRoleId
(
role
.
getRoleId
());
userRoleService
.
save
(
userRole
);
// 查询全部菜单,构造角色菜单关系
List
<
SysRoleMenu
>
collect
=
menuService
.
list
()
.
stream
().
map
(
menu
->
{
SysRoleMenu
roleMenu
=
new
SysRoleMenu
();
roleMenu
.
setRoleId
(
role
.
getRoleId
());
roleMenu
.
setMenuId
(
menu
.
getMenuId
());
return
roleMenu
;
}).
collect
(
Collectors
.
toList
());
roleMenuService
.
saveBatch
(
collect
);
// 插入系统字典
dictService
.
saveBatch
(
dictList
);
// 处理字典项最新关联的字典ID
List
<
SysDictItem
>
itemList
=
dictList
.
stream
()
.
flatMap
(
dict
->
dictItemList
.
stream
()
.
filter
(
item
->
item
.
getType
().
equals
(
dict
.
getType
()))
.
peek
(
item
->
item
.
setDictId
(
dict
.
getId
())))
.
collect
(
Collectors
.
toList
());
return
dictItemService
.
saveBatch
(
itemList
);
}
/**
* 获取配置信息
*/
private
Configuration
getConfig
()
{
try
{
return
new
PropertiesConfiguration
(
"tenant/tenant.properties"
);
}
catch
(
ConfigurationException
e
)
{
throw
new
CheckedException
(
"获取配置文件失败,"
,
e
);
}
}
}
smart-hospital-upms/smart-upms-biz/src/main/resources/bootstrap.yml
View file @
d6495c28
...
@@ -8,12 +8,12 @@ spring:
...
@@ -8,12 +8,12 @@ spring:
nacos
:
nacos
:
discovery
:
discovery
:
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
server-addr
:
${NACOS-HOST:smart-register}:${NACOS-PORT:8848}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
config
:
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
file-extension
:
yml
file-extension
:
yml
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
shared-dataids
:
application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace
:
c75c0cb5-da84-417f-838c-27b53a39e1dc
namespace
:
5992d9a2-5b3e-4170-96bd-76a5f0a68540
autoconfigure
:
autoconfigure
:
exclude
:
org.springframework.cloud.gateway.config.GatewayAutoConfiguration,org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration
exclude
:
org.springframework.cloud.gateway.config.GatewayAutoConfiguration,org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration
profiles
:
profiles
:
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDeptMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDeptMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDeptMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDeptRelationMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDeptRelationMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDeptRelationMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDictItemMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDictItemMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDictItemMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysDictMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDictMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysDictMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysFileMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysFileMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysFileMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysLogMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysLogMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysLogMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysMenuMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysMenuMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysMenuMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysOauthClientDetailsMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysOauthClientDetailsMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysOauthClientDetailsMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysPublicParamMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysPublicParamMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysPublicParamMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRoleMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRoleMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRoleMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRoleMenuMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRoleMenuMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRoleMenuMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysRouteConfMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of ource code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRouteConfMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysRouteConfMapper"
>
...
@@ -26,7 +9,6 @@
...
@@ -26,7 +9,6 @@
<result
property=
"predicates"
column=
"predicates"
/>
<result
property=
"predicates"
column=
"predicates"
/>
<result
property=
"filters"
column=
"filters"
/>
<result
property=
"filters"
column=
"filters"
/>
<result
property=
"uri"
column=
"uri"
/>
<result
property=
"uri"
column=
"uri"
/>
<result
property=
"order"
column=
"order"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysSocialDetailsMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysSocialDetailsMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysSocialDetailsMapper"
>
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysTenantMapper.xml
deleted
100644 → 0
View file @
2925000c
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysTenantMapper"
>
<resultMap
id=
"sysTenantMap"
type=
"com.smart.hospital.admin.api.entity.SysTenant"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"code"
column=
"code"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"endTime"
column=
"end_time"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysUserMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysUserMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysUserMapper"
>
<!-- 通用查询映射结果 -->
<!-- 通用查询映射结果 -->
...
...
smart-hospital-upms/smart-upms-biz/src/main/resources/mapper/SysUserRoleMapper.xml
View file @
d6495c28
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, giaogiao All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the pig4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: giaogiao (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysUserRoleMapper"
>
<mapper
namespace=
"com.smart.hospital.admin.mapper.SysUserRoleMapper"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment