未提交的代码
This commit is contained in:
parent
3ad3b9a39e
commit
c33ddd41a2
|
|
@ -55,6 +55,16 @@
|
||||||
<artifactId>pdfbox</artifactId>
|
<artifactId>pdfbox</artifactId>
|
||||||
<version>3.0.5</version> <!-- 或使用最新版本 -->
|
<version>3.0.5</version> <!-- 或使用最新版本 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.poi</groupId>
|
||||||
|
<artifactId>poi</artifactId>
|
||||||
|
<version>5.2.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.poi</groupId>
|
||||||
|
<artifactId>poi-ooxml</artifactId>
|
||||||
|
<version>5.2.3</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ public interface AdminUserMapper {
|
||||||
@Result(column = "name", property = "name"),
|
@Result(column = "name", property = "name"),
|
||||||
@Result(column = "active", property = "active"),
|
@Result(column = "active", property = "active"),
|
||||||
@Result(column = "user_type", property = "userType"),
|
@Result(column = "user_type", property = "userType"),
|
||||||
|
@Result(column = "password", property = "password"),
|
||||||
@Result(column = "create_time", property = "createTime", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP),
|
@Result(column = "create_time", property = "createTime", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP),
|
||||||
@Result(column = "update_time", property = "updateTime", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP)
|
@Result(column = "update_time", property = "updateTime", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,16 @@ public class AdminUser {
|
||||||
* 用户修改时间
|
* 用户修改时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
public AdminUser() {}
|
public AdminUser() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.jinrui.reference.admin.service;
|
package com.jinrui.reference.admin.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
@ -155,6 +156,9 @@ public class AdminUserService {
|
||||||
if (!adminUser.isActive()) {
|
if (!adminUser.isActive()) {
|
||||||
return ResultObject.failed("用户已被禁用,请联系系统管理员!");
|
return ResultObject.failed("用户已被禁用,请联系系统管理员!");
|
||||||
}
|
}
|
||||||
|
if (!Objects.equals(captcha, adminUser.getPassword())) {
|
||||||
|
return ResultObject.failed("用户密码错误!");
|
||||||
|
}
|
||||||
LoginVO loginVO = new LoginVO(adminUser);
|
LoginVO loginVO = new LoginVO(adminUser);
|
||||||
jedis.del(redisLockKey, redisCaptchaListKey);
|
jedis.del(redisLockKey, redisCaptchaListKey);
|
||||||
return ResultObject.success(loginVO);
|
return ResultObject.success(loginVO);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
root: DEBUG
|
|
||||||
server:
|
server:
|
||||||
port: 13579
|
port: 13579
|
||||||
compression:
|
compression:
|
||||||
|
|
@ -25,21 +22,21 @@ spring:
|
||||||
# url: jdbc:mysql://192.168.0.142:3306/reference?autoReconnect=true&useUnicode=true&useSSL=false&allowMultiQueries=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
# url: jdbc:mysql://192.168.0.142:3306/reference?autoReconnect=true&useUnicode=true&useSSL=false&allowMultiQueries=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||||
# username: financial_prod
|
# username: financial_prod
|
||||||
# password: mmTFncqmDal5HLRGY0BV
|
# password: mmTFncqmDal5HLRGY0BV
|
||||||
url: jdbc:mysql://121.37.185.246:3306/reference?autoReconnect=true&useUnicode=true&useSSL=false&allowMultiQueries=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
url: jdbc:mysql://10.127.2.207:3306/reference?autoReconnect=true&useUnicode=true&useSSL=false&allowMultiQueries=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
username: financial_prod
|
||||||
password: Xgf_8000
|
password: mmTFncqmDal5HLRGY0BV
|
||||||
redis:
|
redis:
|
||||||
# host: 192.168.0.172
|
# host: 192.168.0.172
|
||||||
# port: 6379
|
# port: 6379
|
||||||
# password: Xgf_redis
|
# password: Xgf_redis
|
||||||
host: 123.60.153.169
|
host: 10.127.2.209
|
||||||
port: 6379
|
port: 6379
|
||||||
password: Xgf_redis
|
password: dMrt4kmwiW6LDJXy
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
scheme: http
|
scheme: http
|
||||||
# 111.13.176.3 部署地址
|
# 111.13.176.3 部署地址
|
||||||
# 10.127.2.194 本地测试地址
|
# 10.127.2.194 本地测试地址
|
||||||
host: 111.13.176.3
|
host: 10.127.2.194
|
||||||
port: 9200
|
port: 9200
|
||||||
enable: true
|
enable: true
|
||||||
username: elastic
|
username: elastic
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue