update to v3.6.0

This commit is contained in:
zlt2000
2020-05-05 23:55:27 +08:00
parent 2d8b66e256
commit 7632757626
58 changed files with 57 additions and 78 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>zlt-business</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>code-generator</artifactId>
+1 -1
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>zlt-business</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>file-center</artifactId>
<description>文件中心</description>
+1 -1
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>central-platform</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>zlt-business</artifactId>
<description>业务中心</description>
+1 -1
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>zlt-business</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>search-center</artifactId>
<description>搜索中心</description>
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>search-center</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>search-client</artifactId>
<description>搜索中心客户端</description>
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>search-center</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>search-server</artifactId>
<description>搜索中心服务端</description>
+1 -1
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>com.zlt</groupId>
<artifactId>zlt-business</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
</parent>
<artifactId>user-center</artifactId>
<description>用户中心</description>
@@ -1,6 +1,5 @@
package com.central.user.service;
import com.central.common.lock.DistributedLock;
import com.central.common.model.LoginAppUser;
import static org.assertj.core.api.Assertions.*;
@@ -8,14 +7,12 @@ import com.central.common.model.PageResult;
import com.central.common.model.SysUser;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.redisson.api.RLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* SysUserServiceTest单元测试用例
@@ -28,20 +25,6 @@ public class SysUserServiceTest {
@Autowired
private ISysUserService sysUserService;
@Autowired
private DistributedLock locker;
@Test
public void testLock() throws Exception {
Object lock = null;
try {
lock = locker.tryLock("test", 1000, TimeUnit.MILLISECONDS, true);
Thread.sleep(5000);
} finally {
locker.unlock(lock);
}
}
@Test
public void testFindByUsername() {
LoginAppUser loginAppUser = sysUserService.findByUsername("admin");