Browse Source

错误处理

chenw 7 years ago
parent
commit
7d7d73dd63

+ 63 - 0
base-servers/account/account-dto/src/main/java/com/usoftchina/smartschool/account/dto/RoleDTO.java

@@ -0,0 +1,63 @@
+package com.usoftchina.smartschool.account.dto;
+
+/**
+ * @Author chenwei
+ * @Date 2019/01/22
+ */
+public class RoleDTO {
+
+    private String role_id;
+    private String role_name;
+    private String role_sign;
+    private String create_date;
+    private String role_remarks;
+    private Long school_id;
+
+    public String getRole_id() {
+        return role_id;
+    }
+
+    public void setRole_id(String role_id) {
+        this.role_id = role_id;
+    }
+
+    public String getRole_name() {
+        return role_name;
+    }
+
+    public void setRole_name(String role_name) {
+        this.role_name = role_name;
+    }
+
+    public String getRole_sign() {
+        return role_sign;
+    }
+
+    public void setRole_sign(String role_sign) {
+        this.role_sign = role_sign;
+    }
+
+    public String getCreate_date() {
+        return create_date;
+    }
+
+    public void setCreate_date(String create_date) {
+        this.create_date = create_date;
+    }
+
+    public String getRole_remarks() {
+        return role_remarks;
+    }
+
+    public void setRole_remarks(String role_remarks) {
+        this.role_remarks = role_remarks;
+    }
+
+    public Long getSchool_id() {
+        return school_id;
+    }
+
+    public void setSchool_id(Long school_id) {
+        this.school_id = school_id;
+    }
+}

+ 2 - 0
base-servers/auth/auth-server/src/main/java/com/usoftchina/smartschool/auth/AuthApplication.java

@@ -4,6 +4,7 @@ import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
 
 /**
  * @author yingp
@@ -11,6 +12,7 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
  */
 @SpringBootApplication
 @EnableEurekaClient
+@EnableFeignClients("com.usoftchina.smartschool")
 @MapperScan(basePackages = "com.usoftchina.smartschool.auth.mapper")
 public class AuthApplication {
     public static void main(String[] args) {

+ 2 - 2
base-servers/auth/auth-server/src/main/java/com/usoftchina/smartschool/auth/mapper/AuthorizeLogMapper.java

@@ -1,7 +1,7 @@
 package com.usoftchina.smartschool.auth.mapper;
 
-import com.usoftchina.saas.auth.po.AuthorizeLog;
-import com.usoftchina.saas.auth.po.VirtualAuthorizeLog;
+import com.usoftchina.smartschool.auth.po.AuthorizeLog;
+import com.usoftchina.smartschool.auth.po.VirtualAuthorizeLog;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;

+ 1 - 1
base-servers/auth/auth-server/src/main/java/com/usoftchina/smartschool/auth/service/AuthorizeCountService.java

@@ -1,6 +1,6 @@
 package com.usoftchina.smartschool.auth.service;
 
-import com.usoftchina.saas.cache.CacheKeyHelper;
+import com.usoftchina.smartschool.cache.CacheKeyHelper;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.data.redis.core.StringRedisTemplate;

+ 5 - 4
base-servers/auth/auth-server/src/main/java/com/usoftchina/smartschool/auth/service/AuthorizeLogService.java

@@ -1,10 +1,11 @@
 package com.usoftchina.smartschool.auth.service;
 
+
 import com.github.pagehelper.PageInfo;
-import com.usoftchina.saas.auth.dto.AuthorizeLogDTO;
-import com.usoftchina.saas.auth.po.AuthorizeLog;
-import com.usoftchina.saas.auth.po.VirtualAuthorizeLog;
-import com.usoftchina.saas.page.PageRequest;
+import com.usoftchina.smartschool.auth.dto.AuthorizeLogDTO;
+import com.usoftchina.smartschool.auth.po.AuthorizeLog;
+import com.usoftchina.smartschool.auth.po.VirtualAuthorizeLog;
+import com.usoftchina.smartschool.page.PageRequest;
 
 /**
  * @author yingp

+ 9 - 9
base-servers/auth/auth-server/src/main/java/com/usoftchina/smartschool/auth/service/impl/AuthorizeLogServiceImpl.java

@@ -2,14 +2,14 @@ package com.usoftchina.smartschool.auth.service.impl;
 
 import com.github.pagehelper.PageHelper;
 import com.github.pagehelper.PageInfo;
-import com.usoftchina.saas.auth.dto.AuthorizeLogDTO;
-import com.usoftchina.saas.auth.mapper.AuthorizeLogMapper;
-import com.usoftchina.saas.auth.po.AuthorizeLog;
-import com.usoftchina.saas.auth.po.VirtualAuthorizeLog;
-import com.usoftchina.saas.auth.service.AuthorizeLogService;
-import com.usoftchina.saas.context.BaseContextHolder;
-import com.usoftchina.saas.page.PageRequest;
-import com.usoftchina.saas.utils.BeanMapper;
+import com.usoftchina.smartschool.auth.dto.AuthorizeLogDTO;
+import com.usoftchina.smartschool.auth.mapper.AuthorizeLogMapper;
+import com.usoftchina.smartschool.auth.po.AuthorizeLog;
+import com.usoftchina.smartschool.auth.po.VirtualAuthorizeLog;
+import com.usoftchina.smartschool.auth.service.AuthorizeLogService;
+import com.usoftchina.smartschool.context.BaseContextHolder;
+import com.usoftchina.smartschool.page.PageRequest;
+import com.usoftchina.smartschool.utils.BeanMapper;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
@@ -21,7 +21,7 @@ import java.util.List;
  * @date 2018/11/6
  */
 @Service
-public class AuthorizeLogServiceImpl implements AuthorizeLogService{
+public class AuthorizeLogServiceImpl implements AuthorizeLogService {
 
     @Autowired
     private AuthorizeLogMapper authorizeLogMapper;

+ 1 - 1
base-servers/auth/auth-server/src/main/resources/application.yml

@@ -54,7 +54,7 @@ eureka:
   client:
     registryFetchIntervalSeconds: 5
     serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:8500/eureka/
+      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:9500/eureka/
 server:
   port: 9720
   tomcat: