Merge branch 'develop' of https://git.mesalab.cn/K18_NTCS_WEB/NTC.git into develop
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.nis.web.controller.report;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.nis.web.controller.BaseController;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("${adminPath}/export")
|
||||
public class ExportController extends BaseController {
|
||||
|
||||
@RequestMapping(value = "ajaxExport")
|
||||
public void ajaxExport(String exports,HttpServletRequest request,HttpServletResponse response) throws Exception{
|
||||
JSONObject jsonObject = JSONObject.fromObject(StringEscapeUtils.unescapeHtml(exports));
|
||||
Map<String,Object> map=JSONObject.fromObject(jsonObject);
|
||||
List<List<Object>> list=(List<List<Object>>) map.get("book");
|
||||
List<String> heard=(List<String>) map.get("heard");
|
||||
String titleTime=String.valueOf(map.get("titleTime"));
|
||||
String titleCode=String.valueOf(map.get("titleCode"));
|
||||
_ajaxExport(request,response,titleCode, titleTime, heard, list);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -581,7 +581,7 @@ public class AppMultiFeatureCfgService extends BaseService {
|
||||
count++;
|
||||
}
|
||||
|
||||
if((count >0 || count <5) && (!errorFlag) && (ipHeaderFlag)) {// 清空错误信息
|
||||
if((0<count) && (count<5) && (!errorFlag) && (ipHeaderFlag)) {// 清空错误信息
|
||||
errInfo.setLength(0);;
|
||||
errInfo.append(errInfoCopy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user