system拆分
parent
13b8ab14bf
commit
53147cf1d9
26
pom.xml
26
pom.xml
|
@ -253,6 +253,29 @@
|
|||
<version>${shopgoods.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-file-remote</artifactId>
|
||||
<version>${shopgoods.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-file-common</artifactId>
|
||||
<version>${shopgoods.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system-remote</artifactId>
|
||||
<version>${shopgoods.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system-common</artifactId>
|
||||
<version>${shopgoods.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
@ -266,6 +289,9 @@
|
|||
<module>shopgoods-modules/shopgoods-file/shopgoods-file-common</module>
|
||||
<module>shopgoods-modules/shopgoods-file/shopgoods-file-remote</module>
|
||||
<module>shopgoods-modules/shopgoods-file/shopgoods-file-server</module>
|
||||
<module>shopgoods-modules/shopgoods-system/shopgoods-system-common</module>
|
||||
<module>shopgoods-modules/shopgoods-system/shopgoods-system-remote</module>
|
||||
<module>shopgoods-modules/shopgoods-system/shopgoods-system-server</module>
|
||||
</modules>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
|
|
|
@ -18,4 +18,10 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-core</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -18,4 +18,10 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-file-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -69,6 +69,10 @@
|
|||
<artifactId>shopgoods-api-system</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-file-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -9,85 +9,12 @@
|
|||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>shopgoods-modules-system</artifactId>
|
||||
<artifactId>shopgoods-system</artifactId>
|
||||
|
||||
<description>
|
||||
shopgoods-modules-system系统模块
|
||||
shopgoods-system系统模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<!-- <relativePath>../../../pom.xml</relativePath>-->
|
||||
</parent>
|
||||
|
||||
<artifactId>shopgoods-system-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-core</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,7 @@
|
|||
package com.shopgoods;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<!-- <relativePath>../../../pom.xml</relativePath>-->
|
||||
</parent>
|
||||
|
||||
<artifactId>shopgoods-system-remote</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,41 @@
|
|||
package com.shopgoods.system.remote;
|
||||
|
||||
import com.shopgoods.common.core.constant.SecurityConstants;
|
||||
import com.shopgoods.common.core.constant.ServiceNameConstants;
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
import com.shopgoods.system.api.factory.RemoteLogFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
|
||||
/**
|
||||
* 日志服务
|
||||
*
|
||||
* @author shopgoods
|
||||
*/
|
||||
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
|
||||
public interface RemoteLogService
|
||||
{
|
||||
/**
|
||||
* 保存系统日志
|
||||
*
|
||||
* @param sysOperLog 日志实体
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/operlog")
|
||||
public R<Boolean> saveLog(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception;
|
||||
|
||||
/**
|
||||
* 保存访问记录
|
||||
*
|
||||
* @param sysLogininfor 访问实体
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/logininfor")
|
||||
public R<Boolean> saveLogininfor(@RequestBody SysLogininfor sysLogininfor, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
package com.shopgoods.system.remote;
|
||||
|
||||
import com.shopgoods.common.core.constant.SecurityConstants;
|
||||
import com.shopgoods.common.core.constant.ServiceNameConstants;
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
import com.shopgoods.system.api.factory.RemoteUserFallbackFactory;
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 用户服务
|
||||
*
|
||||
* @author shopgoods
|
||||
*/
|
||||
@FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
|
||||
public interface RemoteUserService
|
||||
{
|
||||
/**
|
||||
* 通过用户名查询用户信息
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/user/info/{username}")
|
||||
public R<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
/**
|
||||
* 注册用户信息
|
||||
*
|
||||
* @param sysUser 用户信息
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/user/register")
|
||||
public R<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
/**
|
||||
* 记录用户登录IP地址和登录时间
|
||||
*
|
||||
* @param sysUser 用户信息
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@PutMapping("/user/recordlogin")
|
||||
public R<Boolean> recordUserLogin(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.shopgoods.system.remote.factory;
|
||||
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.system.api.RemoteLogService;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 日志服务降级处理
|
||||
*
|
||||
* @author shopgoods
|
||||
*/
|
||||
@Component
|
||||
public class RemoteLogFallbackFactory implements FallbackFactory<RemoteLogService>
|
||||
{
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteLogFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteLogService create(Throwable throwable)
|
||||
{
|
||||
log.error("日志服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteLogService()
|
||||
{
|
||||
@Override
|
||||
public R<Boolean> saveLog(SysOperLog sysOperLog, String source)
|
||||
{
|
||||
return R.fail("保存操作日志失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Boolean> saveLogininfor(SysLogininfor sysLogininfor, String source)
|
||||
{
|
||||
return R.fail("保存登录日志失败:" + throwable.getMessage());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
package com.shopgoods.system.remote.factory;
|
||||
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.system.api.RemoteUserService;
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author shopgoods
|
||||
*/
|
||||
@Component
|
||||
public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserService>
|
||||
{
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteUserFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteUserService create(Throwable throwable)
|
||||
{
|
||||
log.error("用户服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteUserService()
|
||||
{
|
||||
@Override
|
||||
public R<LoginUser> getUserInfo(String username, String source)
|
||||
{
|
||||
return R.fail("获取用户失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Boolean> registerUserInfo(SysUser sysUser, String source)
|
||||
{
|
||||
return R.fail("注册用户失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Boolean> recordUserLogin(SysUser sysUser, String source)
|
||||
{
|
||||
return R.fail("记录用户登录信息失败:" + throwable.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
com.shopgoods.system.remote.factory.RemoteUserFallbackFactory
|
||||
com.shopgoods.system.remote.factory.RemoteLogFallbackFactory
|
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<!-- <relativePath>../../../pom.xml</relativePath>-->
|
||||
</parent>
|
||||
|
||||
<artifactId>shopgoods-system-server</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- ShopGoods Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.shopgoods</groupId>
|
||||
<artifactId>shopgoods-system-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
|
@ -1,9 +1,9 @@
|
|||
package com.shopgoods.system;
|
||||
package com.shopgoods.system.server;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import com.shopgoods.common.security.annotation.EnableCustomConfig;
|
||||
import com.shopgoods.common.security.annotation.EnableRyFeignClients;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 系统模块
|
|
@ -1,17 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
|
@ -22,6 +10,12 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.domain.SysConfig;
|
||||
import com.shopgoods.system.service.ISysConfigService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 参数配置 信息操作处理
|
|
@ -1,17 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
|
@ -22,6 +10,12 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
import com.shopgoods.system.service.ISysDeptService;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 部门信息
|
|
@ -1,18 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
|
@ -25,6 +12,13 @@ import com.shopgoods.common.security.utils.SecurityUtils;
|
|||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
import com.shopgoods.system.service.ISysDictDataService;
|
||||
import com.shopgoods.system.service.ISysDictTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据字典信息
|
|
@ -1,17 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
|
@ -22,6 +10,12 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.api.domain.SysDictType;
|
||||
import com.shopgoods.system.service.ISysDictTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据字典信息
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.constant.CacheConstants;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
|
@ -22,6 +12,11 @@ import com.shopgoods.common.security.annotation.InnerAuth;
|
|||
import com.shopgoods.common.security.annotation.RequiresPermissions;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
import com.shopgoods.system.service.ISysLogininforService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统访问记录
|
|
@ -1,16 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
|
@ -21,6 +10,11 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
import com.shopgoods.system.service.ISysMenuService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜单信息
|
|
@ -1,16 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
import com.shopgoods.common.core.web.page.TableDataInfo;
|
||||
|
@ -20,6 +9,11 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
import com.shopgoods.system.service.ISysNoticeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 公告 信息操作处理
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
|
@ -20,6 +10,11 @@ import com.shopgoods.common.security.annotation.InnerAuth;
|
|||
import com.shopgoods.common.security.annotation.RequiresPermissions;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
import com.shopgoods.system.service.ISysOperLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 操作日志记录
|
|
@ -1,17 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
|
@ -22,6 +10,12 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.common.security.utils.SecurityUtils;
|
||||
import com.shopgoods.system.domain.SysPost;
|
||||
import com.shopgoods.system.service.ISysPostService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 岗位信息操作处理
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.utils.file.FileTypeUtils;
|
||||
|
@ -25,6 +15,11 @@ import com.shopgoods.system.api.domain.SysFile;
|
|||
import com.shopgoods.system.api.domain.SysUser;
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import com.shopgoods.system.service.ISysUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 个人信息 业务处理
|
|
@ -1,17 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
import com.shopgoods.common.core.web.domain.AjaxResult;
|
||||
|
@ -27,6 +15,12 @@ import com.shopgoods.system.domain.SysUserRole;
|
|||
import com.shopgoods.system.service.ISysDeptService;
|
||||
import com.shopgoods.system.service.ISysRoleService;
|
||||
import com.shopgoods.system.service.ISysUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色信息
|
|
@ -1,22 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import com.shopgoods.common.core.domain.R;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.utils.poi.ExcelUtil;
|
||||
|
@ -33,12 +16,18 @@ import com.shopgoods.system.api.domain.SysDept;
|
|||
import com.shopgoods.system.api.domain.SysRole;
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import com.shopgoods.system.service.ISysConfigService;
|
||||
import com.shopgoods.system.service.ISysDeptService;
|
||||
import com.shopgoods.system.service.ISysPermissionService;
|
||||
import com.shopgoods.system.service.ISysPostService;
|
||||
import com.shopgoods.system.service.ISysRoleService;
|
||||
import com.shopgoods.system.service.ISysUserService;
|
||||
import com.shopgoods.system.service.*;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 用户信息
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.controller;
|
||||
package com.shopgoods.system.server.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.shopgoods.common.core.constant.CacheConstants;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.common.core.web.controller.BaseController;
|
||||
|
@ -22,6 +12,13 @@ import com.shopgoods.common.security.annotation.RequiresPermissions;
|
|||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import com.shopgoods.system.domain.SysUserOnline;
|
||||
import com.shopgoods.system.service.ISysUserOnlineService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 在线用户监控
|
|
@ -1,12 +1,13 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.shopgoods.common.core.annotation.Excel;
|
||||
import com.shopgoods.common.core.annotation.Excel.ColumnType;
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* 参数配置表 sys_config
|
|
@ -1,13 +1,14 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜单权限表 sys_menu
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import com.shopgoods.common.core.xss.Xss;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import com.shopgoods.common.core.xss.Xss;
|
||||
|
||||
/**
|
||||
* 通知公告表 sys_notice
|
|
@ -1,13 +1,14 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import com.shopgoods.common.core.annotation.Excel;
|
||||
import com.shopgoods.common.core.annotation.Excel.ColumnType;
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.shopgoods.common.core.annotation.Excel;
|
||||
import com.shopgoods.common.core.annotation.Excel.ColumnType;
|
||||
import com.shopgoods.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 岗位表 sys_post
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
/**
|
||||
* 当前在线会话
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain;
|
||||
package com.shopgoods.system.server.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.domain.vo;
|
||||
package com.shopgoods.system.server.domain.vo;
|
||||
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
package com.shopgoods.system.domain.vo;
|
||||
package com.shopgoods.system.server.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.domain.vo;
|
||||
package com.shopgoods.system.server.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
|
||||
/**
|
||||
* Treeselect树结构实体类
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysConfig;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 数据层
|
|
@ -1,8 +1,9 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
|
||||
/**
|
||||
* 部门管理 数据层
|
|
@ -1,8 +1,9 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysDictType;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysDictType;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 数据层
|
|
@ -1,8 +1,9 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
|
||||
/**
|
||||
* 菜单表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 通知公告表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysPost;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysRoleDept;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysRoleDept;
|
||||
|
||||
/**
|
||||
* 角色与部门关联表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysRole;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysRole;
|
||||
|
||||
/**
|
||||
* 角色表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysRoleMenu;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysRoleMenu;
|
||||
|
||||
/**
|
||||
* 角色与菜单关联表 数据层
|
|
@ -1,8 +1,9 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
|
||||
/**
|
||||
* 用户表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysUserPost;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysUserPost;
|
||||
|
||||
/**
|
||||
* 用户与岗位关联表 数据层
|
|
@ -1,8 +1,9 @@
|
|||
package com.shopgoods.system.mapper;
|
||||
package com.shopgoods.system.server.mapper;
|
||||
|
||||
import com.shopgoods.system.domain.SysUserRole;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.shopgoods.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 用户与角色关联表 数据层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.domain.SysConfig;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 服务层
|
|
@ -1,9 +1,10 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysDept;
|
||||
import com.shopgoods.system.domain.vo.TreeSelect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 部门管理 服务层
|
||||
*
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
|
@ -1,9 +1,10 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
import com.shopgoods.system.api.domain.SysDictType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
||||
*
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 服务层
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import com.shopgoods.system.domain.SysMenu;
|
||||
import com.shopgoods.system.domain.vo.RouterVo;
|
||||
import com.shopgoods.system.domain.vo.TreeSelect;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 菜单 业务层
|
||||
*
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 公告 服务层
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 服务层
|
|
@ -1,9 +1,9 @@
|
|||
package com.shopgoods.system.service;
|
||||
|
||||
import java.util.Set;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 权限信息 服务层
|
||||
*
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.domain.SysPost;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 服务层
|
|
@ -1,9 +1,10 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysRole;
|
||||
import com.shopgoods.system.domain.SysUserRole;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import com.shopgoods.system.api.domain.SysRole;
|
||||
import com.shopgoods.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 角色业务层
|
|
@ -1,4 +1,4 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import com.shopgoods.system.domain.SysUserOnline;
|
|
@ -1,7 +1,8 @@
|
|||
package com.shopgoods.system.service;
|
||||
package com.shopgoods.system.server.service;
|
||||
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
|
||||
import java.util.List;
|
||||
import com.shopgoods.system.api.domain.SysUser;
|
||||
|
||||
/**
|
||||
* 用户 业务层
|
|
@ -1,10 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import javax.annotation.PostConstruct;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.core.constant.CacheConstants;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
|
@ -14,6 +9,12 @@ import com.shopgoods.common.redis.service.RedisService;
|
|||
import com.shopgoods.system.domain.SysConfig;
|
||||
import com.shopgoods.system.mapper.SysConfigMapper;
|
||||
import com.shopgoods.system.service.ISysConfigService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 参数配置 服务层实现
|
|
@ -1,11 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
import com.shopgoods.common.core.text.Convert;
|
||||
|
@ -20,6 +14,13 @@ import com.shopgoods.system.domain.vo.TreeSelect;
|
|||
import com.shopgoods.system.mapper.SysDeptMapper;
|
||||
import com.shopgoods.system.mapper.SysRoleMapper;
|
||||
import com.shopgoods.system.service.ISysDeptService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 部门管理 服务实现
|
|
@ -1,12 +1,13 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.security.utils.DictUtils;
|
||||
import com.shopgoods.system.api.domain.SysDictData;
|
||||
import com.shopgoods.system.mapper.SysDictDataMapper;
|
||||
import com.shopgoods.system.service.ISysDictDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 字典 业务层处理
|
|
@ -1,13 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.PostConstruct;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
|
@ -17,6 +9,15 @@ import com.shopgoods.system.api.domain.SysDictType;
|
|||
import com.shopgoods.system.mapper.SysDictDataMapper;
|
||||
import com.shopgoods.system.mapper.SysDictTypeMapper;
|
||||
import com.shopgoods.system.service.ISysDictTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 字典 业务层处理
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.system.api.domain.SysLogininfor;
|
||||
import com.shopgoods.system.mapper.SysLogininforMapper;
|
||||
import com.shopgoods.system.service.ISysLogininforService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 服务层处理
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.core.constant.Constants;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
|
@ -24,6 +14,11 @@ import com.shopgoods.system.mapper.SysMenuMapper;
|
|||
import com.shopgoods.system.mapper.SysRoleMapper;
|
||||
import com.shopgoods.system.mapper.SysRoleMenuMapper;
|
||||
import com.shopgoods.system.service.ISysMenuService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 菜单 业务层处理
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.system.domain.SysNotice;
|
||||
import com.shopgoods.system.mapper.SysNoticeMapper;
|
||||
import com.shopgoods.system.service.ISysNoticeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 公告 服务层实现
|
|
@ -1,11 +1,12 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.system.api.domain.SysOperLog;
|
||||
import com.shopgoods.system.mapper.SysOperLogMapper;
|
||||
import com.shopgoods.system.service.ISysOperLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 操作日志 服务层处理
|
|
@ -1,11 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.system.api.domain.SysRole;
|
||||
|
@ -13,6 +7,13 @@ import com.shopgoods.system.api.domain.SysUser;
|
|||
import com.shopgoods.system.service.ISysMenuService;
|
||||
import com.shopgoods.system.service.ISysPermissionService;
|
||||
import com.shopgoods.system.service.ISysRoleService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 用户权限处理
|
|
@ -1,8 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
|
@ -10,6 +7,10 @@ import com.shopgoods.system.domain.SysPost;
|
|||
import com.shopgoods.system.mapper.SysPostMapper;
|
||||
import com.shopgoods.system.mapper.SysUserPostMapper;
|
||||
import com.shopgoods.system.service.ISysPostService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 岗位信息 服务层处理
|
|
@ -1,13 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
import com.shopgoods.common.core.utils.SpringUtils;
|
||||
|
@ -24,6 +16,11 @@ import com.shopgoods.system.mapper.SysRoleMapper;
|
|||
import com.shopgoods.system.mapper.SysRoleMenuMapper;
|
||||
import com.shopgoods.system.mapper.SysUserRoleMapper;
|
||||
import com.shopgoods.system.service.ISysRoleService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 角色 业务层处理
|
|
@ -1,10 +1,10 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.shopgoods.common.core.utils.StringUtils;
|
||||
import com.shopgoods.system.api.model.LoginUser;
|
||||
import com.shopgoods.system.domain.SysUserOnline;
|
||||
import com.shopgoods.system.service.ISysUserOnlineService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 在线用户 服务层处理
|
|
@ -1,15 +1,5 @@
|
|||
package com.shopgoods.system.service.impl;
|
||||
package com.shopgoods.system.server.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.validation.Validator;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import com.shopgoods.common.core.constant.UserConstants;
|
||||
import com.shopgoods.common.core.exception.ServiceException;
|
||||
import com.shopgoods.common.core.utils.SpringUtils;
|
||||
|
@ -22,14 +12,21 @@ import com.shopgoods.system.api.domain.SysUser;
|
|||
import com.shopgoods.system.domain.SysPost;
|
||||
import com.shopgoods.system.domain.SysUserPost;
|
||||
import com.shopgoods.system.domain.SysUserRole;
|
||||
import com.shopgoods.system.mapper.SysPostMapper;
|
||||
import com.shopgoods.system.mapper.SysRoleMapper;
|
||||
import com.shopgoods.system.mapper.SysUserMapper;
|
||||
import com.shopgoods.system.mapper.SysUserPostMapper;
|
||||
import com.shopgoods.system.mapper.SysUserRoleMapper;
|
||||
import com.shopgoods.system.mapper.*;
|
||||
import com.shopgoods.system.service.ISysConfigService;
|
||||
import com.shopgoods.system.service.ISysDeptService;
|
||||
import com.shopgoods.system.service.ISysUserService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.validation.Validator;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 用户 业务层处理
|
|
@ -1,45 +0,0 @@
|
|||
package com.shopgoods.system;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Test {
|
||||
|
||||
/**
|
||||
* 有数组【3,56,23,12,21】,使用冒泡算法进行排序
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
int[] arr = {3, 56, 23, 12, 21};
|
||||
for (int i = 0; i < arr.length - 1; i++) {
|
||||
for (int j = 0; j < arr.length - 1 - i; j++) {
|
||||
if (arr[j] > arr[j + 1]) {
|
||||
int temp = arr[j];
|
||||
arr[j] = arr[j + 1];
|
||||
arr[j + 1] = temp;
|
||||
|
||||
}
|
||||
}
|
||||
//打印每一轮的结果
|
||||
System.out.println("第 "+(i+1)+"轮:"+ Arrays.toString(arr));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 冒泡排序
|
||||
*/
|
||||
// public static void main(String[] args) {
|
||||
// int[] n={5,99,58,67,12};
|
||||
// for (int i = 0; i < n.length-1; i++) {
|
||||
// for (int j = 0; j < n.length-1-i; j++) {
|
||||
// if (n[j] > n[j+1]){
|
||||
// int temp =n[j];
|
||||
// n[j] =n[j+1];
|
||||
// n[j+1] = temp;
|
||||
// }
|
||||
// }
|
||||
// //打印结果
|
||||
// System.out.println("第 "+(i+1)+"轮:"+Arrays.toString(n));
|
||||
// }
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue