fix: bug
This commit is contained in:
@@ -171,8 +171,8 @@ public class DocSimpleController {
|
||||
map.put("ids",ids);
|
||||
// map.put("fondsNoCode",fondsNoCode);
|
||||
//System.out.println(request.getContextPath());
|
||||
//System.out.println(request.getServletPath());
|
||||
//System.out.println(request.getRequestURI());
|
||||
//System.out.println(request.getServletPath());
|
||||
//System.out.println(request.getRequestURI());
|
||||
//System.out.println(System.getProperty("user.dir"));
|
||||
//System.out.println(request.getRealPath("/"));
|
||||
//String relativelyPath = request.getRealPath("/")+"static"+File.separator+"images";
|
||||
@@ -346,7 +346,7 @@ public class DocSimpleController {
|
||||
bos.writeTo(response.getOutputStream());
|
||||
response.flushBuffer();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value="/queryDocOriginalEntity" , method= RequestMethod.POST)
|
||||
@ApiOperation(value = "查询原文信息")
|
||||
public AjaxJson queryDocOriginalEntity(@RequestParam(value = "recId",required = true)Integer recId) {
|
||||
@@ -442,7 +442,7 @@ public class DocSimpleController {
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value="/downloadExcel" , method= RequestMethod.GET)
|
||||
@ApiOperation(value = "下载文书简化整理excel模板")
|
||||
public void downloadExcel(HttpServletResponse response)throws Exception{
|
||||
@@ -461,54 +461,54 @@ public class DocSimpleController {
|
||||
"存放位置","档案门类","档案门类代码","题名","责任者","录入人","录入日期","是否打eep包",
|
||||
"是否打eep包代码","加密代码","加密检测日期","batch_id","batch_name","back_to_update_state","is_process","testtest_code",
|
||||
"原文数量","部门名称","部门代码","类别","类别代码","lm","lm_code","组卷标识"};
|
||||
|
||||
String fieldName = "case_no," +
|
||||
" mlh," +
|
||||
" archive_no," +
|
||||
" note ," +
|
||||
" pigeonhole_date," +
|
||||
" archive_ctg_no," +
|
||||
" archive_ctg_no_code," +
|
||||
" retention," +
|
||||
" retention_code," +
|
||||
" filing_year," +
|
||||
" fonds_no," +
|
||||
" fonds_no_code," +
|
||||
" sbt_word," +
|
||||
" doc_no," +
|
||||
" dagdm," +
|
||||
" dagdm_code," +
|
||||
" created_date," +
|
||||
" object_quantity," +
|
||||
" security_class," +
|
||||
" security_class_code," +
|
||||
" quantity," +
|
||||
" piece_no," +
|
||||
" kzbs," +
|
||||
" kzbs_code," +
|
||||
" folder_location," +
|
||||
" damldm," +
|
||||
" damldm_code," +
|
||||
" maintitle," +
|
||||
" responsibleby," +
|
||||
" create_person," +
|
||||
" create_date," +
|
||||
" is_packeep," +
|
||||
" is_packeep_code," +
|
||||
" md5_code," +
|
||||
" md5_check_date," +
|
||||
" batch_id," +
|
||||
" batch_name," +
|
||||
" back_to_update_state," +
|
||||
" is_process," +
|
||||
" testtest_code," +
|
||||
" archive_file_num," +
|
||||
" departname," +
|
||||
" departname_code," +
|
||||
" lb," +
|
||||
" lb_code," +
|
||||
" lm," +
|
||||
" lm_code," +
|
||||
|
||||
String fieldName = "case_no," +
|
||||
" mlh," +
|
||||
" archive_no," +
|
||||
" note ," +
|
||||
" pigeonhole_date," +
|
||||
" archive_ctg_no," +
|
||||
" archive_ctg_no_code," +
|
||||
" retention," +
|
||||
" retention_code," +
|
||||
" filing_year," +
|
||||
" fonds_no," +
|
||||
" fonds_no_code," +
|
||||
" sbt_word," +
|
||||
" doc_no," +
|
||||
" dagdm," +
|
||||
" dagdm_code," +
|
||||
" created_date," +
|
||||
" object_quantity," +
|
||||
" security_class," +
|
||||
" security_class_code," +
|
||||
" quantity," +
|
||||
" piece_no," +
|
||||
" kzbs," +
|
||||
" kzbs_code," +
|
||||
" folder_location," +
|
||||
" damldm," +
|
||||
" damldm_code," +
|
||||
" maintitle," +
|
||||
" responsibleby," +
|
||||
" create_person," +
|
||||
" create_date," +
|
||||
" is_packeep," +
|
||||
" is_packeep_code," +
|
||||
" md5_code," +
|
||||
" md5_check_date," +
|
||||
" batch_id," +
|
||||
" batch_name," +
|
||||
" back_to_update_state," +
|
||||
" is_process," +
|
||||
" testtest_code," +
|
||||
" archive_file_num," +
|
||||
" departname," +
|
||||
" departname_code," +
|
||||
" lb," +
|
||||
" lb_code," +
|
||||
" lm," +
|
||||
" lm_code," +
|
||||
" archive_flag";
|
||||
String cols[] = fieldName.split(",");
|
||||
HSSFWorkbook wb = new HSSFWorkbook();
|
||||
@@ -522,10 +522,10 @@ public class DocSimpleController {
|
||||
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||
wb.write(bos);
|
||||
response.setHeader("Content-Length", bos.toByteArray().length+"");
|
||||
bos.writeTo(response.getOutputStream());
|
||||
response.setHeader("Content-Length", bos.toByteArray().length+"");
|
||||
bos.writeTo(response.getOutputStream());
|
||||
response.flushBuffer();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value="/saveBatchDocSimple" , method= RequestMethod.POST)
|
||||
@@ -540,8 +540,8 @@ public class DocSimpleController {
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value="/aa" , method= RequestMethod.GET)
|
||||
@ApiOperation(value = "测试连接是否通")
|
||||
public AjaxJson aa()throws Exception {
|
||||
@@ -550,7 +550,7 @@ public class DocSimpleController {
|
||||
System.out.println(json);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value="/bb" , method= RequestMethod.GET)
|
||||
@ApiOperation(value = "测试登录")
|
||||
public AjaxJson bb(HttpServletRequest request)throws Exception {
|
||||
@@ -664,7 +664,7 @@ public class DocSimpleController {
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//动态删除 String funcType,Integer funcTypeCode,String tableName,输出列表,查询条件
|
||||
@RequestMapping(value="/deleteObject" , method= RequestMethod.POST)
|
||||
@ApiOperation(value = "动态删除文书简化")
|
||||
@@ -699,7 +699,7 @@ public class DocSimpleController {
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//动态保存 String funcType,Integer funcTypeCode,String tableName,输出列表,查询条件
|
||||
@RequestMapping(value="/saveObject" , method= RequestMethod.POST)
|
||||
@ApiOperation(value = "动态保存文书简化")
|
||||
@@ -712,7 +712,7 @@ public class DocSimpleController {
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
//动态修改 String funcType,Integer funcTypeCode,String tableName,输出列表,查询条件
|
||||
@RequestMapping(value="/updateObject" , method= RequestMethod.POST)
|
||||
@ApiOperation(value = "动态修改文书简化")
|
||||
@@ -1032,8 +1032,7 @@ public class DocSimpleController {
|
||||
public AjaxJson selectFileNameAndContentByFileContent(String tableName,String fileContent,int recId) {
|
||||
AjaxJson json = null;
|
||||
try {
|
||||
String tableRealName=tableName+"_file";
|
||||
List list = docSimpleService.selectFileNameAndContentByFileContent(tableRealName, fileContent,recId);
|
||||
List list = docSimpleService.selectFileNameAndContentByFileContent(tableName, fileContent,recId);
|
||||
PageInfo pageInfo = new PageInfo(list);
|
||||
long total = pageInfo.getTotal();
|
||||
json = new AjaxJson();
|
||||
|
||||
Reference in New Issue
Block a user