Commit d6495c28 authored by lijun's avatar lijun

将mysql转化成oracle数据库

parent 2925000c
...@@ -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>
......
...@@ -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>
......
...@@ -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
//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";
// }
//}
...@@ -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();
}
} }
...@@ -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
...@@ -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 {
......
...@@ -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>
......
...@@ -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
...@@ -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;
......
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;
......
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;
/** /**
......
...@@ -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;
......
...@@ -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;
......
...@@ -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;
......
...@@ -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;
......
...@@ -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;
/** /**
......
...@@ -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;
......
...@@ -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;
/** /**
* 创建时间 * 创建时间
*/ */
......
...@@ -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;
......
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;
}
...@@ -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;
......
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;
......
...@@ -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;
......
...@@ -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>
......
...@@ -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));
......
...@@ -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;
......
...@@ -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;
/** /**
* 租户 * 租户
......
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);
}
...@@ -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());
......
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);
}
}
}
...@@ -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:
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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">
......
<?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"/>
......
<?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">
......
<?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>
<?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">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
......
<?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">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment