Commit 3bb6b36c authored by 李德才's avatar 李德才

恢复配置信息

parent 14aefa80
......@@ -6,7 +6,6 @@ import com.archser.aserver.model.User;
import com.archser.aserver.util.redis.InfoOrgan;
import com.archser.aserver.util.redis.InfoSystem;
import com.archser.aserver.util.redis.InfoUser;
import com.jfinal.kit.PropKit;
import com.jfinal.plugin.cron4j.ITask;
......@@ -17,12 +16,12 @@ public class GoodSync implements ITask {
@Override
public void stop() {
}
@Override
public void run() {
if (PropKit.getBoolean("updateRedisData")) {
// 同步用户数据
// 同步用户数据
java.lang.System.err.println("同步用户信息");
User.dao.findAll().forEach(InfoUser::saveUser);
// 同步系统数据
......@@ -32,6 +31,4 @@ public class GoodSync implements ITask {
java.lang.System.err.println("同步机构数据");
Organ.dao.findAll().forEach(InfoOrgan::saveOrgan);
}
}
}
......@@ -9,9 +9,6 @@ basic.url=http://39.104.174.12:11028
devMode =true
engineDevMode=true
## 是否同步Redis中的数据
updateRedisData=false
authUrl=http://125.77.26.133:7001/auth/token
userInfoUrl=http://125.77.26.133:7001/api/info/user_info
redirect_uri=http://192.168.31.17:8080/
......
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