page.setOrderBy("");
page.setPageSize(Constants.MAAT_JSON_SEND_SIZE); page.setPageNo(1); 三个参数设置
This commit is contained in:
@@ -2040,7 +2040,6 @@ public class BaseController {
|
|||||||
cfg.setBehavCode(Integer.parseInt(behaviorId));
|
cfg.setBehavCode(Integer.parseInt(behaviorId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
AppFeatureIndex appfeature = new AppFeatureIndex();
|
AppFeatureIndex appfeature = new AppFeatureIndex();
|
||||||
BeanUtils.copyProperties(cfg, appfeature,new String[] {"cfgId"});
|
BeanUtils.copyProperties(cfg, appfeature,new String[] {"cfgId"});
|
||||||
if(regionDict!=null){
|
if(regionDict!=null){
|
||||||
@@ -2049,7 +2048,6 @@ public class BaseController {
|
|||||||
appfeature.setCfgRegionType(String.valueOf(regionDict.getRegionType()));
|
appfeature.setCfgRegionType(String.valueOf(regionDict.getRegionType()));
|
||||||
}
|
}
|
||||||
appFeatureIndexs.add(appfeature);
|
appFeatureIndexs.add(appfeature);
|
||||||
|
|
||||||
ind++;
|
ind++;
|
||||||
}
|
}
|
||||||
ipCfgService.saveAndSend(regionDict, serviceDict, specificServiceCfg, _complexkeywordCfgs, cfgIndexInfos, appPolicyCfgs,appFeatureIndexs,isSend.equals("1"));
|
ipCfgService.saveAndSend(regionDict, serviceDict, specificServiceCfg, _complexkeywordCfgs, cfgIndexInfos, appPolicyCfgs,appFeatureIndexs,isSend.equals("1"));
|
||||||
@@ -2279,6 +2277,24 @@ public class BaseController {
|
|||||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||||
ExcelCsv.writeCSVFile(response,titleList,headMap,dataList,fileName,titleTime,msgProp);
|
ExcelCsv.writeCSVFile(response,titleList,headMap,dataList,fileName,titleTime,msgProp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void _ajaxExport(HttpServletRequest request, HttpServletResponse response,
|
||||||
|
String code,String titleTime,List<String> headerList, List<List<Object>> dataList)
|
||||||
|
throws Exception{
|
||||||
|
Properties msgProp = getMsgProp();
|
||||||
|
String fileName = msgProp.getProperty(code, code) + "_" + DateUtils.getDate("yyyyMMddHHmmss")
|
||||||
|
+ ".xlsx";
|
||||||
|
fileName = fileName.replaceAll(" ", "_");
|
||||||
|
if (request.getHeader("User-Agent").toUpperCase().indexOf("MSIE") > 0) {
|
||||||
|
fileName = URLEncoder.encode(fileName, "UTF-8");
|
||||||
|
} else {
|
||||||
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1");
|
||||||
|
}
|
||||||
|
new ExportExcel(msgProp.getProperty(code, code),code,titleTime, headerList).ajaxDataList(dataList, code).write(response, fileName).dispose();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public String initLogMap(BaseLogEntity log,String title){
|
public String initLogMap(BaseLogEntity log,String title){
|
||||||
Properties msgProp = getMsgProp();
|
Properties msgProp = getMsgProp();
|
||||||
String logTime=msgProp.getProperty(title,title);;
|
String logTime=msgProp.getProperty(title,title);;
|
||||||
|
|||||||
Reference in New Issue
Block a user