|
|
@ -12,6 +12,7 @@ import com.dsideal.base.Interceptor.IsNumericInterface;
|
|
|
|
import com.dsideal.base.Res.Model.ResourceModel;
|
|
|
|
import com.dsideal.base.Res.Model.ResourceModel;
|
|
|
|
import com.dsideal.base.Util.CommonUtil;
|
|
|
|
import com.dsideal.base.Util.CommonUtil;
|
|
|
|
import com.dsideal.base.Util.CookieUtil;
|
|
|
|
import com.dsideal.base.Util.CookieUtil;
|
|
|
|
|
|
|
|
import com.dsideal.base.Util.SqlInjectionUtils;
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
@ -325,6 +326,10 @@ public class DataEaseController extends Controller {
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
|
|
|
|
if (SqlInjectionUtils.hasSqlInjectionRisk(keyword)) {
|
|
|
|
|
|
|
|
renderJson("输入的查询关键字存在SQL注入攻击,无法执行!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
//登录的人员
|
|
|
|
//登录的人员
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
@ -396,6 +401,10 @@ public class DataEaseController extends Controller {
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
|
|
|
|
if (SqlInjectionUtils.hasSqlInjectionRisk(keyword)) {
|
|
|
|
|
|
|
|
renderJson("输入的查询关键字存在SQL注入攻击,无法执行!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
//登录的人员
|
|
|
|
//登录的人员
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
@ -522,6 +531,10 @@ public class DataEaseController extends Controller {
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
if (StrKit.isBlank(keyword)) keyword = "";
|
|
|
|
|
|
|
|
if (SqlInjectionUtils.hasSqlInjectionRisk(keyword)) {
|
|
|
|
|
|
|
|
renderJson("输入的查询关键字存在SQL注入攻击,无法执行!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
Page<Record> list = dm.getDataSetContentByProvince(id, keyword, pageNumber, pageSize);
|
|
|
|
Page<Record> list = dm.getDataSetContentByProvince(id, keyword, pageNumber, pageSize);
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
}
|
|
|
|
}
|
|
|
|