|
|
|
@ -9,7 +9,6 @@ import com.dsideal.base.DataEase.Util.Step3_CopyBigScreen;
|
|
|
|
|
import com.dsideal.base.Interceptor.EmptyInterface;
|
|
|
|
|
import com.dsideal.base.Interceptor.IsLoginInterface;
|
|
|
|
|
import com.dsideal.base.Interceptor.IsNumericInterface;
|
|
|
|
|
import com.dsideal.base.Interceptor.LayUiPageInfoInterface;
|
|
|
|
|
import com.dsideal.base.Res.Model.ResourceModel;
|
|
|
|
|
import com.dsideal.base.Util.CommonUtil;
|
|
|
|
|
import com.dsideal.base.Util.CookieUtil;
|
|
|
|
@ -23,7 +22,6 @@ import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.upload.UploadFile;
|
|
|
|
|
import io.github.yedaxia.apidocs.ApiDoc;
|
|
|
|
|
import net.sf.json.JSONArray;
|
|
|
|
|
import net.sf.json.JSONObject;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
@ -36,7 +34,6 @@ import java.util.Set;
|
|
|
|
|
public class DataEaseController extends Controller {
|
|
|
|
|
DataEaseModel dm = new DataEaseModel();
|
|
|
|
|
ResourceModel rm = new ResourceModel();
|
|
|
|
|
String tempDir = System.getProperty("java.io.tmpdir");
|
|
|
|
|
/*
|
|
|
|
|
http://10.10.21.20:9000/dsBase/dataease/route?city_name=昆明市
|
|
|
|
|
http://10.10.21.20:9000/dsBase/dataease/routePage?type_id=1
|
|
|
|
@ -318,12 +315,13 @@ public class DataEaseController extends Controller {
|
|
|
|
|
*
|
|
|
|
|
* @param id 数据集id
|
|
|
|
|
* @param pageNumber 第几页
|
|
|
|
|
* @param keyword 关键字
|
|
|
|
|
* @param pageSize 每页多少条数据
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@IsNumericInterface({"id"})
|
|
|
|
|
public void getDataSetContent(int id, int pageNumber, int pageSize) {
|
|
|
|
|
public void getDataSetContent(int id, String keyword, int pageNumber, int pageSize) {
|
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
|
//登录的人员
|
|
|
|
@ -336,7 +334,7 @@ public class DataEaseController extends Controller {
|
|
|
|
|
//根据区域码,获取区域名称
|
|
|
|
|
String area_name = rm.getAreaName(area_code);
|
|
|
|
|
|
|
|
|
|
Page<Record> pageList = dm.getDataSetContent(id, identity_id, area_name, pageNumber, pageSize);
|
|
|
|
|
Page<Record> pageList = dm.getDataSetContent(id, identity_id, area_name, keyword, pageNumber, pageSize);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(pageList));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -386,13 +384,14 @@ public class DataEaseController extends Controller {
|
|
|
|
|
* 市州管理员,帮助县区管理员填报数据,需要获取指定数据集的数据
|
|
|
|
|
*
|
|
|
|
|
* @param id 数据集id
|
|
|
|
|
* @param keyword 关键字
|
|
|
|
|
* @param pageNumber 第几页
|
|
|
|
|
* @param pageSize 每页多少条数据
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@IsNumericInterface({"id"})
|
|
|
|
|
public void getDataSetContentByCity(int id, int pageNumber, int pageSize) {
|
|
|
|
|
public void getDataSetContentByCity(int id, String keyword, int pageNumber, int pageSize) {
|
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
|
//登录的人员
|
|
|
|
@ -404,7 +403,7 @@ public class DataEaseController extends Controller {
|
|
|
|
|
//根据区域码,获取区域名称
|
|
|
|
|
String area_name = rm.getAreaName(area_code);
|
|
|
|
|
|
|
|
|
|
Page<Record> list = dm.getDataSetContentByCity(id, area_name, pageNumber, pageSize);
|
|
|
|
|
Page<Record> list = dm.getDataSetContentByCity(id, keyword, area_name, pageNumber, pageSize);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -510,14 +509,17 @@ public class DataEaseController extends Controller {
|
|
|
|
|
* 省级管理员,帮助市州、县区填报数据,需要获取指定数据集的数据
|
|
|
|
|
*
|
|
|
|
|
* @param id 数据集id
|
|
|
|
|
* @param keyword 关键字
|
|
|
|
|
* @param pageNumber 第几页
|
|
|
|
|
* @param pageSize 每页显示多少条数据
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@IsNumericInterface({"id"})
|
|
|
|
|
public void getDataSetContentByProvince(int id, int pageNumber, int pageSize) {
|
|
|
|
|
public void getDataSetContentByProvince(int id, String keyword, int pageNumber, int pageSize) {
|
|
|
|
|
if (pageNumber == 0) pageNumber = 1;
|
|
|
|
|
if (pageSize == 0) pageSize = 20;
|
|
|
|
|
Page<Record> list = dm.getDataSetContentByProvince(id, pageNumber, pageSize);
|
|
|
|
|
Page<Record> list = dm.getDataSetContentByProvince(id, keyword, pageNumber, pageSize);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|