|
|
|
@ -25,11 +25,9 @@ public class clearDataBase {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
|
//写死的三个系统管理员
|
|
|
|
|
//写死的一个系统管理员
|
|
|
|
|
String[] arrManager = new String[3];
|
|
|
|
|
arrManager[0] = "9B28524B-7564-45BC-B1D4-156AC6306EC8";
|
|
|
|
|
arrManager[1] = "B6013DFC-5C95-4FD7-86CA-8B15D0CDFACF";
|
|
|
|
|
arrManager[2] = "101343CB-A6EA-452E-9A02-F0776288A912";
|
|
|
|
|
//告之配置文件位置
|
|
|
|
|
PropKit.use("application.properties");
|
|
|
|
|
//安装地区
|
|
|
|
@ -84,11 +82,9 @@ public class clearDataBase {
|
|
|
|
|
}
|
|
|
|
|
//修正一下sys1的密码,配置开发用
|
|
|
|
|
sql = Db.getSql("clearDataBase.setPwd");
|
|
|
|
|
String original_pwd = "123456";
|
|
|
|
|
String original_pwd = "DsideaL4r5t6y7u";
|
|
|
|
|
String pwd = CommonUtil.getLdapPassword(original_pwd);
|
|
|
|
|
Db.update(sql, "******", pwd, CommonUtil.md5(original_pwd), "sys1");
|
|
|
|
|
Db.update(sql, "******", pwd, CommonUtil.md5(original_pwd), "sys2");
|
|
|
|
|
Db.update(sql, "******", pwd, CommonUtil.md5(original_pwd), "sys3");
|
|
|
|
|
|
|
|
|
|
//目标:根据行政区划,并且生成市管理员帐号
|
|
|
|
|
sql = Db.getSql("clearDataBase.getAreaByCityId");
|
|
|
|
|