|
|
|
@ -7,6 +7,7 @@ import com.dsideal.QingLong.DataShare.Model.DataShareModel;
|
|
|
|
|
import com.dsideal.QingLong.Interceptor.*;
|
|
|
|
|
import com.dsideal.QingLong.Util.AsposeUtil;
|
|
|
|
|
import com.dsideal.QingLong.Util.CommonUtil;
|
|
|
|
|
import com.dsideal.QingLong.Util.PgUtil;
|
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
@ -171,7 +172,7 @@ public class DataShareController extends Controller {
|
|
|
|
|
String file_name = array[array.length - 1];
|
|
|
|
|
String basePath = PathKit.getWebRootPath() + "/upload/";
|
|
|
|
|
String realPath = basePath + file_name;
|
|
|
|
|
realPath=realPath.replace("\\","/");
|
|
|
|
|
realPath = realPath.replace("\\", "/");
|
|
|
|
|
String system_name = record.getStr("system_name");
|
|
|
|
|
//注册信息
|
|
|
|
|
AsposeUtil.getLicense();
|
|
|
|
@ -269,6 +270,23 @@ public class DataShareController extends Controller {
|
|
|
|
|
renderJson(kv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:修改系统的密码
|
|
|
|
|
*
|
|
|
|
|
* @param system_id
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@IsSysAdminInterface({"1"})
|
|
|
|
|
@IsNumericInterface({"system_id"})
|
|
|
|
|
public void changePwd(int system_id) {
|
|
|
|
|
String user_name = dm.getSystemById(system_id).getStr("user_name");
|
|
|
|
|
String pwd = CommonUtil.generatePassword(10);
|
|
|
|
|
PgUtil.changePwd(user_name, pwd);
|
|
|
|
|
Kv kv = Kv.by("success", true);
|
|
|
|
|
kv.set("message", "修改成功!");
|
|
|
|
|
renderJson(kv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:记录指定系统它有哪些数据表
|
|
|
|
|