feat:修改文件展示传输

dev
wangxy 8 months ago
parent 5a39ce00aa
commit 3738ff2610

@ -1,69 +1,69 @@
/* */ package com.archive.project.dacx.archivesearch.controller package com.archive.project.dacx.archivesearch.controller
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.page.PageDomain; import com.archive.framework.web.page.PageDomain;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.framework.web.page.TableSupport; import com.archive.framework.web.page.TableSupport;
/* */ import com.archive.project.dacx.archivesearch.service.IArchiveSearchService; import com.archive.project.dacx.archivesearch.service.IArchiveSearchService;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dacx/archivesearch"}) @RequestMapping({"/dacx/archivesearch"})
/* */ public class ArchiveSearchController public class ArchiveSearchController
/* */ extends BaseController extends BaseController
/* */ { {
/* 32 */ private String prefix = "dacx/archivesearch"; private String prefix = "dacx/archivesearch";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IArchiveSearchService archivesearchService; private IArchiveSearchService archivesearchService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dacx:archivesearch:view"}) @RequiresPermissions({"dacx:archivesearch:view"})
/* */ @GetMapping @GetMapping
/* */ public String archivesearch(ModelMap mmap) { public String archivesearch(ModelMap mmap) {
/* 45 */ return this.prefix + "/archivesearch"; return this.prefix + "/archivesearch";
/* */ } }
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dacx:archivesearch:list"}) @RequiresPermissions({"dacx:archivesearch:list"})
/* */ @PostMapping({"/list/{ft}/{py}/{qw}"}) @PostMapping({"/list/{ft}/{py}/{qw}"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(String keyword, @PathVariable("ft") String ft, @PathVariable("py") String py, @PathVariable("qw") String qw) throws Exception { public TableDataInfo list(String keyword, @PathVariable("ft") String ft, @PathVariable("py") String py, @PathVariable("qw") String qw) throws Exception {
/* 55 */ PageDomain pageDomain = TableSupport.buildPageRequest(); PageDomain pageDomain = TableSupport.buildPageRequest();
/* 56 */ Integer pageNum = pageDomain.getPageNum(); Integer pageNum = pageDomain.getPageNum();
/* 57 */ Integer pageSize = pageDomain.getPageSize(); Integer pageSize = pageDomain.getPageSize();
/* 58 */ String orderBy = pageDomain.getOrderBy(); String orderBy = pageDomain.getOrderBy();
/* 59 */ String orderByColumn = pageDomain.getOrderByColumn(); String orderByColumn = pageDomain.getOrderByColumn();
/* 60 */ Map<String, Object> map = this.archivesearchService.selectArchiveList(pageNum, pageSize, orderBy, orderByColumn, keyword, ft, py, qw); Map<String, Object> map = this.archivesearchService.selectArchiveList(pageNum, pageSize, orderBy, orderByColumn, keyword, ft, py, qw);
/* 61 */ TableDataInfo tableDataInfo = new TableDataInfo((List)map.get("list"), ((Integer)map.get("count")).intValue()); TableDataInfo tableDataInfo = new TableDataInfo((List)map.get("list"), ((Integer)map.get("count")).intValue());
/* 62 */ return tableDataInfo; return tableDataInfo;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dacx\archivesearch\controller\ArchiveSearchController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dacx\archivesearch\controller\ArchiveSearchController.class

@ -1,160 +1,160 @@
/* */ package com.archive.project.dacx.archivesearch.service.impl; package com.archive.project.dacx.archivesearch.service.impl;
/* */
/* */ import com.archive.common.archiveUtil.AnsjTextUtil; import com.archive.common.archiveUtil.AnsjTextUtil;
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.project.common.service.IExecuteSqlService; import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dacx.archivesearch.service.IArchiveSearchService; import com.archive.project.dacx.archivesearch.service.IArchiveSearchService;
/* */ import com.archive.project.dasz.archivetype.mapper.ArchiveTypeMapper; import com.archive.project.dasz.archivetype.mapper.ArchiveTypeMapper;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper; import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class ArchiveSearchServiceImpl public class ArchiveSearchServiceImpl
/* */ implements IArchiveSearchService implements IArchiveSearchService
/* */ { {
/* */ @Autowired @Autowired
/* */ private ArchiveTypeMapper archiveTypeMapper; private ArchiveTypeMapper archiveTypeMapper;
/* */ @Autowired @Autowired
/* */ private PhysicalTableMapper physicalTableMapper; private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */ @Override @Override
/* */ public Map<String, Object> selectArchiveList(Integer pageNum, Integer pageSize, String orderBy, String orderByColumn, String keyword, String ft, String py, String qw) { public Map<String, Object> selectArchiveList(Integer pageNum, Integer pageSize, String orderBy, String orderByColumn, String keyword, String ft, String py, String qw) {
/* 51 */ Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
/* 52 */ List<LinkedHashMap<String, Object>> resultList = new ArrayList<>(); List<LinkedHashMap<String, Object>> resultList = new ArrayList<>();
/* 53 */ Integer count = Integer.valueOf(0); Integer count = Integer.valueOf(0);
/* 54 */ Integer beginNum = Integer.valueOf((pageNum.intValue() - 1) * pageSize.intValue()); Integer beginNum = Integer.valueOf((pageNum.intValue() - 1) * pageSize.intValue());
/* 55 */ String sql = ""; String sql = "";
/* 56 */ String condition = ""; String condition = "";
/* */
/* 58 */ if (keyword.equals("0")) { if (keyword.equals("0")) {
/* 59 */ keyword = ""; keyword = "";
/* */ } }
/* */
/* 62 */ if (!keyword.equals("")) { if (!keyword.equals("")) {
/* 63 */ String[] sttrs = keyword.split(" "); String[] sttrs = keyword.split(" ");
/* 64 */ for (int i = 0; i < sttrs.length; i++) { for (int i = 0; i < sttrs.length; i++) {
/* */
/* 66 */ String nlpfcResult = AnsjTextUtil.nlpfc(sttrs[i]); String nlpfcResult = AnsjTextUtil.nlpfc(sttrs[i]);
/* 67 */ String[] words = nlpfcResult.split(","); String[] words = nlpfcResult.split(",");
/* 68 */ for (int j = 0; j < words.length; j++) { for (int j = 0; j < words.length; j++) {
/* 69 */ condition = condition + " rowContext like '%" + words[i] + "%' OR"; condition = condition + " rowContext like '%" + words[i] + "%' OR";
/* 70 */ if (ft.equals("true")) if (ft.equals("true"))
/* */ { {
/* 72 */ condition = condition + " fantiContext like '%" + words[i] + "%' OR"; condition = condition + " fantiContext like '%" + words[i] + "%' OR";
/* */ } }
/* 74 */ if (py.equals("true")) if (py.equals("true"))
/* */ { {
/* 76 */ condition = condition + " pinyinContext like '%" + words[i] + "%' OR"; condition = condition + " pinyinContext like '%" + words[i] + "%' OR";
/* */ } }
/* 78 */ if (qw.equals("true")) if (qw.equals("true"))
/* */ { {
/* 80 */ condition = condition + " fileContext like '%" + words[i] + "%' OR"; condition = condition + " fileContext like '%" + words[i] + "%' OR";
/* */ } }
/* */ } }
/* */ } }
/* */ } }
/* */
/* 86 */ if (condition.trim().equals("")) { if (condition.trim().equals("")) {
/* 87 */ condition = " 1=1"; condition = " 1=1";
/* */ } else { } else {
/* 89 */ condition = condition.substring(0, condition.lastIndexOf("OR")); condition = condition.substring(0, condition.lastIndexOf("OR"));
/* */ } }
/* 91 */ sql = "select archiveId,tableId,archiveTypeId,archiveTypeCode,archiveType,qzh,qzmc,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName from t_ar_total where " + condition + " limit " + beginNum + " , " + pageSize; sql = "select archiveId,tableId,archiveTypeId,archiveTypeCode,archiveType,qzh,qzmc,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName from t_ar_total where " + condition + " limit " + beginNum + " , " + pageSize;
/* 92 */ if (StringUtils.isNotEmpty(orderBy) && StringUtils.isNotEmpty(orderByColumn)) { if (StringUtils.isNotEmpty(orderBy) && StringUtils.isNotEmpty(orderByColumn)) {
/* 93 */ sql = sql + " order by " + orderByColumn + orderBy; sql = sql + " order by " + orderByColumn + orderBy;
/* */ } }
/* 95 */ resultList = this.executeSqlService.queryList(sql); resultList = this.executeSqlService.queryList(sql);
/* 96 */ String countSql = "select COUNT(*) from t_ar_total where " + condition; String countSql = "select COUNT(*) from t_ar_total where " + condition;
/* 97 */ count = this.executeSqlService.jdbcTemplateQueryCount(countSql); count = this.executeSqlService.jdbcTemplateQueryCount(countSql);
/* */
/* */
/* 100 */ if (resultList.size() > 0 && !keyword.equals("")) { if (resultList.size() > 0 && !keyword.equals("")) {
/* 101 */ for (int i = 0; i < resultList.size(); i++) { for (int i = 0; i < resultList.size(); i++) {
/* 102 */ String qzh = (((LinkedHashMap)resultList.get(i)).get("qzh") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("qzh").toString(); String qzh = (((LinkedHashMap)resultList.get(i)).get("qzh") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("qzh").toString();
/* 103 */ String qzmc = (((LinkedHashMap)resultList.get(i)).get("qzmc") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("qzmc").toString(); String qzmc = (((LinkedHashMap)resultList.get(i)).get("qzmc") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("qzmc").toString();
/* 104 */ String yearCode = (((LinkedHashMap)resultList.get(i)).get("yearCode") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("yearCode").toString(); String yearCode = (((LinkedHashMap)resultList.get(i)).get("yearCode") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("yearCode").toString();
/* 105 */ String tm = (((LinkedHashMap)resultList.get(i)).get("tm") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("tm").toString(); String tm = (((LinkedHashMap)resultList.get(i)).get("tm") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("tm").toString();
/* 106 */ String zrz = (((LinkedHashMap)resultList.get(i)).get("zrz") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("zrz").toString(); String zrz = (((LinkedHashMap)resultList.get(i)).get("zrz") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("zrz").toString();
/* 107 */ String rq = (((LinkedHashMap)resultList.get(i)).get("rq") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("rq").toString(); String rq = (((LinkedHashMap)resultList.get(i)).get("rq") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("rq").toString();
/* 108 */ String dh = (((LinkedHashMap)resultList.get(i)).get("dh") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("dh").toString(); String dh = (((LinkedHashMap)resultList.get(i)).get("dh") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("dh").toString();
/* 109 */ String archiveTypeName = (((LinkedHashMap)resultList.get(i)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("archiveTypeName").toString(); String archiveTypeName = (((LinkedHashMap)resultList.get(i)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)resultList.get(i)).get("archiveTypeName").toString();
/* */
/* 111 */ tm = getRedValueByKeyWord(tm, keyword); tm = getRedValueByKeyWord(tm, keyword);
/* 112 */ (resultList.get(i)).put("tm", tm); (resultList.get(i)).put("tm", tm);
/* 113 */ zrz = getRedValueByKeyWord(zrz, keyword); zrz = getRedValueByKeyWord(zrz, keyword);
/* 114 */ (resultList.get(i)).put("zrz", zrz); (resultList.get(i)).put("zrz", zrz);
/* 115 */ dh = getRedValueByKeyWord(dh, keyword); dh = getRedValueByKeyWord(dh, keyword);
/* 116 */ (resultList.get(i)).put("dh", dh); (resultList.get(i)).put("dh", dh);
/* 117 */ yearCode = getRedValueByKeyWord(yearCode, keyword); yearCode = getRedValueByKeyWord(yearCode, keyword);
/* 118 */ (resultList.get(i)).put("yearCode", yearCode); (resultList.get(i)).put("yearCode", yearCode);
/* 119 */ qzh = getRedValueByKeyWord(qzh, keyword); qzh = getRedValueByKeyWord(qzh, keyword);
/* 120 */ (resultList.get(i)).put("qzh", qzh); (resultList.get(i)).put("qzh", qzh);
/* 121 */ archiveTypeName = getRedValueByKeyWord(archiveTypeName, keyword); archiveTypeName = getRedValueByKeyWord(archiveTypeName, keyword);
/* 122 */ (resultList.get(i)).put("archiveTypeName", archiveTypeName); (resultList.get(i)).put("archiveTypeName", archiveTypeName);
/* 123 */ rq = getRedValueByKeyWord(rq, keyword); rq = getRedValueByKeyWord(rq, keyword);
/* 124 */ (resultList.get(i)).put("rq", rq); (resultList.get(i)).put("rq", rq);
/* 125 */ qzmc = getRedValueByKeyWord(qzmc, keyword); qzmc = getRedValueByKeyWord(qzmc, keyword);
/* 126 */ (resultList.get(i)).put("qzmc", qzmc); (resultList.get(i)).put("qzmc", qzmc);
/* */ } }
/* */ } }
/* 129 */ resultMap.put("list", resultList); resultMap.put("list", resultList);
/* 130 */ resultMap.put("count", count); resultMap.put("count", count);
/* 131 */ return resultMap; return resultMap;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getRedValueByKeyWord(String value, String keyword) { public String getRedValueByKeyWord(String value, String keyword) {
/* 142 */ if (value != null && !value.equals("")) { if (value != null && !value.equals("")) {
/* 143 */ String[] sttrs = keyword.split(" "); String[] sttrs = keyword.split(" ");
/* 144 */ for (int i = 0; i < sttrs.length; i++) { for (int i = 0; i < sttrs.length; i++) {
/* */
/* 146 */ String nlpfcResult = AnsjTextUtil.nlpfc(sttrs[i]); String nlpfcResult = AnsjTextUtil.nlpfc(sttrs[i]);
/* 147 */ String[] words = nlpfcResult.split(","); String[] words = nlpfcResult.split(",");
/* 148 */ for (int j = 0; j < words.length; j++) { for (int j = 0; j < words.length; j++) {
/* 149 */ if (value.contains(words[i])) { if (value.contains(words[i])) {
/* 150 */ value = value.replaceAll(words[i], "<font color='red'>" + words[i] + "</font>"); value = value.replaceAll(words[i], "<font color='red'>" + words[i] + "</font>");
/* */ } }
/* */ } }
/* */ } }
/* */ } }
/* 155 */ return value; return value;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dacx\archivesearch\service\impl\ArchiveSearchServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dacx\archivesearch\service\impl\ArchiveSearchServiceImpl.class

@ -1,316 +1,316 @@
/* */ package com.archive.project.dasz.archivetype.controller package com.archive.project.dasz.archivetype.controller
; ;
/* */
/* */ import com.archive.common.exception.BusinessException; import com.archive.common.exception.BusinessException;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.PageDomain; import com.archive.framework.web.page.PageDomain;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.framework.web.page.TableSupport; import com.archive.framework.web.page.TableSupport;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveTableColumn; import com.archive.project.dasz.archivetype.domain.ArchiveTableColumn;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveType; import com.archive.project.dasz.archivetype.domain.ArchiveType;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveListService; import com.archive.project.dasz.archivetype.service.IArchiveListService;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
/* */ import com.archive.project.system.dict.service.IDictDataService; import com.archive.project.system.dict.service.IDictDataService;
/* */ import java.io.File; import java.io.File;
/* */ import java.io.FileOutputStream; import java.io.FileOutputStream;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.io.OutputStream; import java.io.OutputStream;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/* */ import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Cell;
/* */ import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellStyle;
/* */ import org.apache.poi.ss.usermodel.Font; import org.apache.poi.ss.usermodel.Font;
/* */ import org.apache.poi.ss.usermodel.HorizontalAlignment; import org.apache.poi.ss.usermodel.HorizontalAlignment;
/* */ import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Row;
/* */ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Sheet;
/* */ import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
/* */ import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */ import ucar.httpservices.HTTPSession; import ucar.httpservices.HTTPSession;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dasz/archivelist"}) @RequestMapping({"/dasz/archivelist"})
/* */ public class ArchiveListController public class ArchiveListController
/* */ extends BaseController extends BaseController
/* */ { {
/* */ @Autowired @Autowired
/* */ private IArchiveListService archiveListService; private IArchiveListService archiveListService;
/* */ @Autowired @Autowired
/* */ private IArchiveTypeService archiveTypeService; private IArchiveTypeService archiveTypeService;
/* */ @Autowired @Autowired
/* */ private IDictDataService dictDataService; private IDictDataService dictDataService;
/* 63 */ private String prefix = "dasz/archivelist"; private String prefix = "dasz/archivelist";
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getColumns/{id}/{code}"}) @GetMapping({"/getColumns/{id}/{code}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getColumns(@PathVariable("id") String id, @PathVariable("code") String code) { public AjaxResult getColumns(@PathVariable("id") String id, @PathVariable("code") String code) {
/* 79 */ return AjaxResult.success(this.archiveListService.getColumns(id, code)); return AjaxResult.success(this.archiveListService.getColumns(id, code));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getOrderColumns/{id}/{code}"}) @GetMapping({"/getOrderColumns/{id}/{code}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getOrderColumns(@PathVariable("id") String id, @PathVariable("code") String code) { public AjaxResult getOrderColumns(@PathVariable("id") String id, @PathVariable("code") String code) {
/* 92 */ return AjaxResult.success(this.archiveListService.getOrderColumns(id, code)); return AjaxResult.success(this.archiveListService.getOrderColumns(id, code));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/list/{id}/{code}/{ownerid}/{isRecycle}/{status}"}) @PostMapping({"/list/{id}/{code}/{ownerid}/{isRecycle}/{status}"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(@PathVariable("id") String id, @PathVariable("code") String code, @PathVariable("ownerid") String ownerid, @RequestParam Map<String, Object> formData, @PathVariable("isRecycle") String isRecycle, @PathVariable("status") String status) { public TableDataInfo list(@PathVariable("id") String id, @PathVariable("code") String code, @PathVariable("ownerid") String ownerid, @RequestParam Map<String, Object> formData, @PathVariable("isRecycle") String isRecycle, @PathVariable("status") String status) {
/* 111 */ PageDomain pageDomain = TableSupport.buildPageRequest(); PageDomain pageDomain = TableSupport.buildPageRequest();
/* 112 */ Integer pageNum = pageDomain.getPageNum(); Integer pageNum = pageDomain.getPageNum();
/* 113 */ Integer pageSize = pageDomain.getPageSize(); Integer pageSize = pageDomain.getPageSize();
/* 114 */ String orderBy = pageDomain.getOrderBy(); String orderBy = pageDomain.getOrderBy();
/* 115 */ String orderByColumn = pageDomain.getOrderByColumn(); String orderByColumn = pageDomain.getOrderByColumn();
/* 116 */ Map<String, Object> map = this.archiveListService.selectArchiveList(id, code, ownerid, pageNum, pageSize, orderBy, orderByColumn, formData, isRecycle, status); Map<String, Object> map = this.archiveListService.selectArchiveList(id, code, ownerid, pageNum, pageSize, orderBy, orderByColumn, formData, isRecycle, status);
/* 117 */ TableDataInfo tableDataInfo = new TableDataInfo((List)map.get("list"), ((Integer)map.get("count")).intValue()); TableDataInfo tableDataInfo = new TableDataInfo((List)map.get("list"), ((Integer)map.get("count")).intValue());
/* 118 */ return tableDataInfo; return tableDataInfo;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/columnDataFormat/{dictType}/{dictValue}"}) @GetMapping({"/columnDataFormat/{dictType}/{dictValue}"})
/* */ @ResponseBody @ResponseBody
/* */ public String columnDataFormat(@PathVariable("dictType") String dictType, @PathVariable("dictValue") String dictValue) { public String columnDataFormat(@PathVariable("dictType") String dictType, @PathVariable("dictValue") String dictValue) {
/* 135 */ return this.dictDataService.selectDictLabel(dictType, dictValue); return this.dictDataService.selectDictLabel(dictType, dictValue);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getSearchHtml/{id}/{code}"}) @GetMapping({"/getSearchHtml/{id}/{code}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getSearchHtml(@PathVariable("id") String id, @PathVariable("code") String code) { public AjaxResult getSearchHtml(@PathVariable("id") String id, @PathVariable("code") String code) {
/* 152 */ return AjaxResult.success(this.archiveListService.getSearchHtml(id, code)); return AjaxResult.success(this.archiveListService.getSearchHtml(id, code));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivelist:export"}) @RequiresPermissions({"dasz:archivelist:export"})
/* */ @Log(title = "接收管理导出", businessType = BusinessType.EXPORT) @Log(title = "接收管理导出", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export/{id}/{code}/{ownerid}/{isRecycle}/{status}"}) @PostMapping({"/export/{id}/{code}/{ownerid}/{isRecycle}/{status}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(HttpServletResponse response, @PathVariable("id") String id, @PathVariable("code") String code, @PathVariable("ownerid") String ownerid, @PathVariable("isRecycle") String isRecycle, @RequestParam Map<String, Object> formData, @PathVariable("status") String status) throws Exception { public AjaxResult export(HttpServletResponse response, @PathVariable("id") String id, @PathVariable("code") String code, @PathVariable("ownerid") String ownerid, @PathVariable("isRecycle") String isRecycle, @RequestParam Map<String, Object> formData, @PathVariable("status") String status) throws Exception {
/* 165 */ Map<String, Object> map = this.archiveListService.selectArchiveList(id, code, ownerid, Integer.valueOf(1), Integer.valueOf(99999999), "", "", formData, isRecycle, status); Map<String, Object> map = this.archiveListService.selectArchiveList(id, code, ownerid, Integer.valueOf(1), Integer.valueOf(99999999), "", "", formData, isRecycle, status);
/* 166 */ List<LinkedHashMap<String, Object>> list = (List<LinkedHashMap<String, Object>>)map.get("list"); List<LinkedHashMap<String, Object>> list = (List<LinkedHashMap<String, Object>>)map.get("list");
/* */
/* */
/* 169 */ List<ArchiveTableColumn> headsList = this.archiveListService.getColumns(id, code); List<ArchiveTableColumn> headsList = this.archiveListService.getColumns(id, code);
/* 170 */ String[] arr = new String[headsList.size() - 1]; String[] arr = new String[headsList.size() - 1];
/* 171 */ for (int i = 0; i < headsList.size(); i++) { for (int i = 0; i < headsList.size(); i++) {
/* 172 */ if (i != 0) if (i != 0)
/* */ { {
/* 174 */ arr[i - 1] = ((ArchiveTableColumn)headsList.get(i)).getTitle(); arr[i - 1] = ((ArchiveTableColumn)headsList.get(i)).getTitle();
/* */ } }
/* */ } }
/* 177 */ ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(id))); ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(id)));
/* */
/* 179 */ List<List> listAll = new ArrayList<>(); List<List> listAll = new ArrayList<>();
/* 180 */ for (int j = 0; j < list.size(); j++) { for (int j = 0; j < list.size(); j++) {
/* 181 */ List<String> list1 = new ArrayList(); List<String> list1 = new ArrayList();
/* 182 */ for (int k = 0; k < headsList.size(); k++) { for (int k = 0; k < headsList.size(); k++) {
/* 183 */ if (k > 0) { if (k > 0) {
/* 184 */ String value = (((LinkedHashMap)list.get(j)).get(((ArchiveTableColumn)headsList.get(k)).getField()) == null) ? "" : ((LinkedHashMap)list.get(j)).get(((ArchiveTableColumn)headsList.get(k)).getField()).toString(); String value = (((LinkedHashMap)list.get(j)).get(((ArchiveTableColumn)headsList.get(k)).getField()) == null) ? "" : ((LinkedHashMap)list.get(j)).get(((ArchiveTableColumn)headsList.get(k)).getField()).toString();
/* 185 */ list1.add(value); list1.add(value);
/* */ } }
/* */ } }
/* 188 */ listAll.add(list1); listAll.add(list1);
/* */ } }
/* 190 */ Workbook wb = writeToExcelByList(archiveType.getArchiveName(), arr, listAll); Workbook wb = writeToExcelByList(archiveType.getArchiveName(), arr, listAll);
/* */
/* 192 */ String fileName = archiveType.getArchiveName() + ".xlsx"; String fileName = archiveType.getArchiveName() + ".xlsx";
/* 193 */ return exportExcel(wb, fileName); return exportExcel(wb, fileName);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public AjaxResult exportExcel(Workbook wb, String filename) { public AjaxResult exportExcel(Workbook wb, String filename) {
/* 204 */ OutputStream out = null; OutputStream out = null;
/* */
/* */ try { try {
/* 207 */ out = new FileOutputStream(getAbsoluteFile(filename)); out = new FileOutputStream(getAbsoluteFile(filename));
/* 208 */ wb.write(out); wb.write(out);
/* 209 */ return AjaxResult.success(filename); return AjaxResult.success(filename);
/* */ } }
/* 211 */ catch (Exception e) { catch (Exception e) {
/* */
/* 213 */ HTTPSession.log.error("导出Excel异常{}", e.getMessage()); HTTPSession.log.error("导出Excel异常{}", e.getMessage());
/* 214 */ throw new BusinessException("导出Excel失败请联系网站管理员"); throw new BusinessException("导出Excel失败请联系网站管理员");
/* */ } }
/* */ finally { finally {
/* */
/* 218 */ if (wb != null) { if (wb != null) {
/* */
/* */ try { try {
/* */
/* 222 */ wb.close(); wb.close();
/* */ } }
/* 224 */ catch (IOException e1) { catch (IOException e1) {
/* */
/* 226 */ e1.printStackTrace(); e1.printStackTrace();
/* */ } }
/* */ } }
/* 229 */ if (out != null) { if (out != null) {
/* */
/* */ try { try {
/* */
/* 233 */ out.close(); out.close();
/* */ } }
/* 235 */ catch (IOException e1) { catch (IOException e1) {
/* */
/* 237 */ e1.printStackTrace(); e1.printStackTrace();
/* */ } }
/* */ } }
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getAbsoluteFile(String filename) { public String getAbsoluteFile(String filename) {
/* 251 */ String downloadPath = ArchiveConfig.getInstance().getDownloadPath() + filename; String downloadPath = ArchiveConfig.getInstance().getDownloadPath() + filename;
/* 252 */ File desc = new File(downloadPath); File desc = new File(downloadPath);
/* 253 */ if (!desc.getParentFile().exists()) if (!desc.getParentFile().exists())
/* */ { {
/* 255 */ desc.getParentFile().mkdirs(); desc.getParentFile().mkdirs();
/* */ } }
/* 257 */ return downloadPath; return downloadPath;
/* */ } }
/* */
/* */
/* */
/* */ public static Workbook writeToExcelByList(String name, String[] array, List<List> list) { public static Workbook writeToExcelByList(String name, String[] array, List<List> list) {
/* 263 */ XSSFWorkbook xSSFWorkbook = new XSSFWorkbook(); XSSFWorkbook xSSFWorkbook = new XSSFWorkbook();
/* */
/* 265 */ CellStyle titleStyle = xSSFWorkbook.createCellStyle(); CellStyle titleStyle = xSSFWorkbook.createCellStyle();
/* */
/* 267 */ titleStyle.setAlignment(HorizontalAlignment.LEFT); titleStyle.setAlignment(HorizontalAlignment.LEFT);
/* */
/* 269 */ Font titleFont = xSSFWorkbook.createFont(); Font titleFont = xSSFWorkbook.createFont();
/* */
/* 271 */ titleFont.setFontHeightInPoints((short)12); titleFont.setFontHeightInPoints((short)12);
/* */
/* 273 */ titleFont.setFontName("黑体"); titleFont.setFontName("黑体");
/* 274 */ titleStyle.setFont(titleFont); titleStyle.setFont(titleFont);
/* */
/* 276 */ Sheet sheet = xSSFWorkbook.createSheet(name); Sheet sheet = xSSFWorkbook.createSheet(name);
/* */
/* 278 */ sheet.autoSizeColumn(0); sheet.autoSizeColumn(0);
/* */
/* 280 */ Row row = sheet.createRow(0); Row row = sheet.createRow(0);
/* 281 */ for (int i = 0; i < array.length; i++) { for (int i = 0; i < array.length; i++) {
/* 282 */ Cell cell = row.createCell(i); Cell cell = row.createCell(i);
/* 283 */ cell.setCellValue(array[i]); cell.setCellValue(array[i]);
/* 284 */ cell.setCellStyle(titleStyle); cell.setCellStyle(titleStyle);
/* */ } }
/* */
/* 287 */ CellStyle dataStyle = xSSFWorkbook.createCellStyle(); CellStyle dataStyle = xSSFWorkbook.createCellStyle();
/* */
/* 289 */ dataStyle.setAlignment(HorizontalAlignment.CENTER); dataStyle.setAlignment(HorizontalAlignment.CENTER);
/* */
/* */ try { try {
/* 292 */ int index = 1; int index = 1;
/* 293 */ for (List<List> value : list) { for (List<List> value : list) {
/* */
/* 295 */ row = sheet.createRow(index); row = sheet.createRow(index);
/* 296 */ index++; index++;
/* 297 */ List<List> data = value; List<List> data = value;
/* 298 */ for (int j = 0; j < data.size(); j++) { for (int j = 0; j < data.size(); j++) {
/* 299 */ Cell cell = row.createCell(j); Cell cell = row.createCell(j);
/* */
/* 301 */ cell.setCellValue(data.get(j).toString()); cell.setCellValue(data.get(j).toString());
/* */
/* 303 */ cell.setCellStyle(dataStyle); cell.setCellStyle(dataStyle);
/* */ } }
/* */ } }
/* 306 */ } catch (Exception e) { } catch (Exception e) {
/* 307 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 309 */ return (Workbook)xSSFWorkbook; return (Workbook)xSSFWorkbook;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\controller\ArchiveListController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\controller\ArchiveListController.class

@ -1,235 +1,235 @@
/* */ package com.archive.project.dasz.archivetype.controller package com.archive.project.dasz.archivetype.controller
; ;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil; import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree; import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveType; import com.archive.project.dasz.archivetype.domain.ArchiveType;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveTypeManageTree; import com.archive.project.dasz.archivetype.domain.ArchiveTypeManageTree;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
/* */ import com.archive.project.dasz.physicaltable.domain.PhysicalTable; import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService; import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.system.dict.domain.DictType; import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dasz/archivetype"}) @RequestMapping({"/dasz/archivetype"})
/* */ public class ArchiveTypeController public class ArchiveTypeController
/* */ extends BaseController extends BaseController
/* */ { {
/* 42 */ private String prefix = "dasz/archivetype"; private String prefix = "dasz/archivetype";
/* */
/* */ @Autowired @Autowired
/* */ private IArchiveTypeService archiveTypeService; private IArchiveTypeService archiveTypeService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */ @Autowired @Autowired
/* */ private IPhysicalTableService physicalTableService; private IPhysicalTableService physicalTableService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:view"}) @RequiresPermissions({"dasz:archivetype:view"})
/* */ @GetMapping @GetMapping
/* */ public String ArchiveType(ModelMap mmap) { public String ArchiveType(ModelMap mmap) {
/* 57 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 58 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 59 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 60 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 61 */ return this.prefix + "/archivetype"; return this.prefix + "/archivetype";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:list"}) @RequiresPermissions({"dasz:archivetype:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(ArchiveType archiveType) { public TableDataInfo list(ArchiveType archiveType) {
/* 72 */ startPage(); startPage();
/* 73 */ List<ArchiveType> list = this.archiveTypeService.selectArchiveTypeList(archiveType); List<ArchiveType> list = this.archiveTypeService.selectArchiveTypeList(archiveType);
/* 74 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:export"}) @RequiresPermissions({"dasz:archivetype:export"})
/* */ @Log(title = "档案类型", businessType = BusinessType.EXPORT) @Log(title = "档案类型", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(ArchiveType archiveType) { public AjaxResult export(ArchiveType archiveType) {
/* 86 */ List<ArchiveType> list = this.archiveTypeService.selectArchiveTypeList(archiveType); List<ArchiveType> list = this.archiveTypeService.selectArchiveTypeList(archiveType);
/* 87 */ ExcelUtil<ArchiveType> util = new ExcelUtil(ArchiveType.class); ExcelUtil<ArchiveType> util = new ExcelUtil(ArchiveType.class);
/* 88 */ return util.exportExcel(list, "archiveType"); return util.exportExcel(list, "archiveType");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 97 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:add"}) @RequiresPermissions({"dasz:archivetype:add"})
/* */ @Log(title = "档案类型", businessType = BusinessType.INSERT) @Log(title = "档案类型", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(ArchiveType archiveType) { public AjaxResult addSave(ArchiveType archiveType) {
/* */ try { try {
/* 110 */ ArchiveType ArchiveTypeTemp = new ArchiveType(); ArchiveType ArchiveTypeTemp = new ArchiveType();
/* 111 */ ArchiveTypeTemp.setArhciveCode(archiveType.getArhciveCode()); ArchiveTypeTemp.setArhciveCode(archiveType.getArhciveCode());
/* 112 */ List<ArchiveType> ArchiveTypeList = this.archiveTypeService.selectArchiveTypeList(ArchiveTypeTemp); List<ArchiveType> ArchiveTypeList = this.archiveTypeService.selectArchiveTypeList(ArchiveTypeTemp);
/* 113 */ if (ArchiveTypeList != null && ArchiveTypeList.size() > 0) { if (ArchiveTypeList != null && ArchiveTypeList.size() > 0) {
/* 114 */ return error("该档案类型已存在!"); return error("该档案类型已存在!");
/* */ } }
/* 116 */ this.archiveTypeService.insertArchiveType(archiveType); this.archiveTypeService.insertArchiveType(archiveType);
/* 117 */ return toAjax(true); return toAjax(true);
/* */ } }
/* 119 */ catch (Exception e) { catch (Exception e) {
/* 120 */ e.printStackTrace(); e.printStackTrace();
/* 121 */ return toAjax(false); return toAjax(false);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 131 */ ArchiveType ArchiveType = this.archiveTypeService.selectArchiveTypeById(id); ArchiveType ArchiveType = this.archiveTypeService.selectArchiveTypeById(id);
/* 132 */ mmap.put("archiveType", ArchiveType); mmap.put("archiveType", ArchiveType);
/* 133 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:edit"}) @RequiresPermissions({"dasz:archivetype:edit"})
/* */ @Log(title = "档案类型", businessType = BusinessType.UPDATE) @Log(title = "档案类型", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(ArchiveType archiveType) { public AjaxResult editSave(ArchiveType archiveType) {
/* 145 */ return toAjax(this.archiveTypeService.updateArchiveType(archiveType)); return toAjax(this.archiveTypeService.updateArchiveType(archiveType));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:remove"}) @RequiresPermissions({"dasz:archivetype:remove"})
/* */ @Log(title = "档案类型", businessType = BusinessType.DELETE) @Log(title = "档案类型", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* */ try { try {
/* 158 */ boolean isNotEmpty = this.archiveTypeService.checkArchiveTypeIsHaveData(ids); boolean isNotEmpty = this.archiveTypeService.checkArchiveTypeIsHaveData(ids);
/* 159 */ if (isNotEmpty) { if (isNotEmpty) {
/* 160 */ return error("该档案类型下存在数据,不能删除!"); return error("该档案类型下存在数据,不能删除!");
/* */ } }
/* 162 */ this.archiveTypeService.deleteArchiveType(ids); this.archiveTypeService.deleteArchiveType(ids);
/* 163 */ return success(); return success();
/* */ } }
/* 165 */ catch (Exception e) { catch (Exception e) {
/* 166 */ e.printStackTrace(); e.printStackTrace();
/* 167 */ return error(); return error();
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/archiveCollationTreeData"}) @GetMapping({"/archiveCollationTreeData"})
/* */ @ResponseBody @ResponseBody
/* */ public List<ArchiveCollationTree> archiveCollationTreeData() { public List<ArchiveCollationTree> archiveCollationTreeData() {
/* 178 */ List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData(); List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData();
/* 179 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/archiveTypeManageTreeData"}) @GetMapping({"/archiveTypeManageTreeData"})
/* */ @ResponseBody @ResponseBody
/* */ public List<ArchiveTypeManageTree> ArchiveTypeManageTreeData() { public List<ArchiveTypeManageTree> ArchiveTypeManageTreeData() {
/* 189 */ List<ArchiveTypeManageTree> ztrees = this.archiveTypeService.ArchiveTypeManageTreeData(); List<ArchiveTypeManageTree> ztrees = this.archiveTypeService.ArchiveTypeManageTreeData();
/* 190 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:archivetype:formbuild"}) @RequiresPermissions({"dasz:archivetype:formbuild"})
/* */ @GetMapping({"/formBuild/{tableId}"}) @GetMapping({"/formBuild/{tableId}"})
/* */ public String formBuild(@PathVariable("tableId") Long tableId, ModelMap mmap) { public String formBuild(@PathVariable("tableId") Long tableId, ModelMap mmap) {
/* 201 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId); PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId);
/* 202 */ String tableForm = physicalTable.getTableForm(); String tableForm = physicalTable.getTableForm();
/* 203 */ mmap.put("tableId", tableId); mmap.put("tableId", tableId);
/* 204 */ mmap.put("tableForm", tableForm); mmap.put("tableForm", tableForm);
/* 205 */ return this.prefix + "/formbuild"; return this.prefix + "/formbuild";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/baseForm/{tableId}"}) @GetMapping({"/baseForm/{tableId}"})
/* */ @ResponseBody @ResponseBody
/* */ public String baseForm(@PathVariable("tableId") Long tableId) { public String baseForm(@PathVariable("tableId") Long tableId) {
/* 216 */ return this.archiveTypeService.appendBaseForm(tableId); return this.archiveTypeService.appendBaseForm(tableId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/tableForm/{tableId}"}) @GetMapping({"/tableForm/{tableId}"})
/* */ @ResponseBody @ResponseBody
/* */ public String tableForm(@PathVariable("tableId") Long tableId) { public String tableForm(@PathVariable("tableId") Long tableId) {
/* 227 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId); PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId);
/* 228 */ return physicalTable.getTableFormDiv(); return physicalTable.getTableFormDiv();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\controller\ArchiveTypeController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\controller\ArchiveTypeController.class

@ -1,73 +1,73 @@
/* */ package com.archive.project.dasz.archivetype.domain package com.archive.project.dasz.archivetype.domain
; ;
/* */
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ArchiveTableColumn public class ArchiveTableColumn
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private boolean checkbox = false; private boolean checkbox = false;
/* 19 */ private String field = ""; private String field = "";
/* */
/* */
/* 22 */ private String title = ""; private String title = "";
/* */
/* */
/* */ private boolean visible = false; private boolean visible = false;
/* */
/* */
/* 28 */ private String codeType = ""; private String codeType = "";
/* */
/* 30 */ private int width = 50; private int width = 50;
/* */
/* */ public boolean isCheckbox() { public boolean isCheckbox() {
/* 33 */ return this.checkbox; return this.checkbox;
/* */ } }
/* */ public void setCheckbox(boolean checkbox) { public void setCheckbox(boolean checkbox) {
/* 36 */ this.checkbox = checkbox; this.checkbox = checkbox;
/* */ } }
/* */ public String getField() { public String getField() {
/* 39 */ return this.field; return this.field;
/* */ } }
/* */ public void setField(String field) { public void setField(String field) {
/* 42 */ this.field = field; this.field = field;
/* */ } }
/* */ public String getTitle() { public String getTitle() {
/* 45 */ return this.title; return this.title;
/* */ } }
/* */ public void setTitle(String title) { public void setTitle(String title) {
/* 48 */ this.title = title; this.title = title;
/* */ } }
/* */ public boolean isVisible() { public boolean isVisible() {
/* 51 */ return this.visible; return this.visible;
/* */ } }
/* */ public void setVisible(boolean visible) { public void setVisible(boolean visible) {
/* 54 */ this.visible = visible; this.visible = visible;
/* */ } }
/* */ public String getCodeType() { public String getCodeType() {
/* 57 */ return this.codeType; return this.codeType;
/* */ } }
/* */ public void setCodeType(String codeType) { public void setCodeType(String codeType) {
/* 60 */ this.codeType = codeType; this.codeType = codeType;
/* */ } }
/* */ public int getWidth() { public int getWidth() {
/* 63 */ return this.width; return this.width;
/* */ } }
/* */ public void setWidth(int width) { public void setWidth(int width) {
/* 66 */ this.width = width; this.width = width;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveTableColumn.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveTableColumn.class

@ -1,124 +1,124 @@
/* */ package com.archive.project.dasz.archivetype.domain package com.archive.project.dasz.archivetype.domain
; ;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel; import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ArchiveType public class ArchiveType
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ @Excel(name = "档案类型名称") @Excel(name = "档案类型名称")
/* */ private String archiveName; private String archiveName;
/* */ @Excel(name = "基础类型") @Excel(name = "基础类型")
/* */ private Long archiveType; private Long archiveType;
/* */ @Excel(name = "档案类型") @Excel(name = "档案类型")
/* */ private String type; private String type;
/* */ @Excel(name = "备注") @Excel(name = "备注")
/* */ private String bz; private String bz;
/* */ @Excel(name = "档案类型编码") @Excel(name = "档案类型编码")
/* */ private String arhciveCode; private String arhciveCode;
/* */ private String showorder; private String showorder;
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 46 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getId() { public Long getId() {
/* 51 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setArchiveName(String archiveName) { public void setArchiveName(String archiveName) {
/* 55 */ this.archiveName = archiveName; this.archiveName = archiveName;
/* */ } }
/* */
/* */
/* */ public String getArchiveName() { public String getArchiveName() {
/* 60 */ return this.archiveName; return this.archiveName;
/* */ } }
/* */
/* */ public void setArchiveType(Long archiveType) { public void setArchiveType(Long archiveType) {
/* 64 */ this.archiveType = archiveType; this.archiveType = archiveType;
/* */ } }
/* */
/* */
/* */ public Long getArchiveType() { public Long getArchiveType() {
/* 69 */ return this.archiveType; return this.archiveType;
/* */ } }
/* */
/* */ public void setType(String type) { public void setType(String type) {
/* 73 */ this.type = type; this.type = type;
/* */ } }
/* */
/* */
/* */ public String getType() { public String getType() {
/* 78 */ return this.type; return this.type;
/* */ } }
/* */
/* */ public void setBz(String bz) { public void setBz(String bz) {
/* 82 */ this.bz = bz; this.bz = bz;
/* */ } }
/* */
/* */
/* */ public String getBz() { public String getBz() {
/* 87 */ return this.bz; return this.bz;
/* */ } }
/* */
/* */ public void setArhciveCode(String arhciveCode) { public void setArhciveCode(String arhciveCode) {
/* 91 */ this.arhciveCode = arhciveCode; this.arhciveCode = arhciveCode;
/* */ } }
/* */
/* */
/* */ public String getArhciveCode() { public String getArhciveCode() {
/* 96 */ return this.arhciveCode; return this.arhciveCode;
/* */ } }
/* */
/* */ public void setShoworder(String showorder) { public void setShoworder(String showorder) {
/* 100 */ this.showorder = showorder; this.showorder = showorder;
/* */ } }
/* */
/* */
/* */ public String getShoworder() { public String getShoworder() {
/* 105 */ return this.showorder; return this.showorder;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 110 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 111 */ .append("id", getId()) .append("id", getId())
/* 112 */ .append("archiveName", getArchiveName()) .append("archiveName", getArchiveName())
/* 113 */ .append("archiveType", getArchiveType()) .append("archiveType", getArchiveType())
/* 114 */ .append("type", getType()) .append("type", getType())
/* 115 */ .append("bz", getBz()) .append("bz", getBz())
/* 116 */ .append("arhciveCode", getArhciveCode()) .append("arhciveCode", getArhciveCode())
/* 117 */ .append("order", getShoworder()) .append("order", getShoworder())
/* 118 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveType.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveType.class

@ -1,120 +1,120 @@
/* */ package com.archive.project.dasz.archivetype.domain package com.archive.project.dasz.archivetype.domain
; ;
/* */
/* */ import java.io.Serializable; import java.io.Serializable;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ArchiveTypeManageTree public class ArchiveTypeManageTree
/* */ implements Serializable implements Serializable
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private String id; private String id;
/* */ private String pId; private String pId;
/* */ private String name; private String name;
/* */ private String title; private String title;
/* */ private String nodeType; private String nodeType;
/* */ private String archiveTypeId; private String archiveTypeId;
/* */ private boolean checked = false; private boolean checked = false;
/* */ private boolean open = false; private boolean open = false;
/* */ private boolean nocheck = false; private boolean nocheck = false;
/* */
/* */ public String getId() { public String getId() {
/* 45 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setId(String id) { public void setId(String id) {
/* 49 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */ public String getpId() { public String getpId() {
/* 53 */ return this.pId; return this.pId;
/* */ } }
/* */
/* */ public void setpId(String pId) { public void setpId(String pId) {
/* 57 */ this.pId = pId; this.pId = pId;
/* */ } }
/* */
/* */ public String getName() { public String getName() {
/* 61 */ return this.name; return this.name;
/* */ } }
/* */
/* */ public void setName(String name) { public void setName(String name) {
/* 65 */ this.name = name; this.name = name;
/* */ } }
/* */
/* */ public String getTitle() { public String getTitle() {
/* 69 */ return this.title; return this.title;
/* */ } }
/* */
/* */ public void setTitle(String title) { public void setTitle(String title) {
/* 73 */ this.title = title; this.title = title;
/* */ } }
/* */
/* */ public String getNodeType() { public String getNodeType() {
/* 77 */ return this.nodeType; return this.nodeType;
/* */ } }
/* */
/* */ public void setNodeType(String nodeType) { public void setNodeType(String nodeType) {
/* 81 */ this.nodeType = nodeType; this.nodeType = nodeType;
/* */ } }
/* */
/* */ public boolean isChecked() { public boolean isChecked() {
/* 85 */ return this.checked; return this.checked;
/* */ } }
/* */
/* */ public void setChecked(boolean checked) { public void setChecked(boolean checked) {
/* 89 */ this.checked = checked; this.checked = checked;
/* */ } }
/* */
/* */ public boolean isOpen() { public boolean isOpen() {
/* 93 */ return this.open; return this.open;
/* */ } }
/* */
/* */ public void setOpen(boolean open) { public void setOpen(boolean open) {
/* 97 */ this.open = open; this.open = open;
/* */ } }
/* */
/* */ public boolean isNocheck() { public boolean isNocheck() {
/* 101 */ return this.nocheck; return this.nocheck;
/* */ } }
/* */
/* */ public void setNocheck(boolean nocheck) { public void setNocheck(boolean nocheck) {
/* 105 */ this.nocheck = nocheck; this.nocheck = nocheck;
/* */ } }
/* */
/* */ public String getArchiveTypeId() { public String getArchiveTypeId() {
/* 109 */ return this.archiveTypeId; return this.archiveTypeId;
/* */ } }
/* */
/* */ public void setArchiveTypeId(String archiveTypeId) { public void setArchiveTypeId(String archiveTypeId) {
/* 113 */ this.archiveTypeId = archiveTypeId; this.archiveTypeId = archiveTypeId;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveTypeManageTree.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\domain\ArchiveTypeManageTree.class

@ -1,424 +1,424 @@
/* */ package com.archive.project.dasz.archivetype.service.impl package com.archive.project.dasz.archivetype.service.impl
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.common.service.IExecuteSqlService; import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveTableColumn; import com.archive.project.dasz.archivetype.domain.ArchiveTableColumn;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveListService; import com.archive.project.dasz.archivetype.service.IArchiveListService;
/* */ import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns; import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns;
/* */ import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService; import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService;
/* */ import com.archive.project.dasz.physicaltable.domain.PhysicalTable; import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper; import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn; import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper; import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import com.archive.project.system.dict.domain.DictData; import com.archive.project.system.dict.domain.DictData;
/* */ import com.archive.project.system.dict.mapper.DictDataMapper; import com.archive.project.system.dict.mapper.DictDataMapper;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import java.util.Set; import java.util.Set;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class ArchiveListServiceImpl public class ArchiveListServiceImpl
/* */ implements IArchiveListService implements IArchiveListService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PhysicalTableMapper physicalTableMapper; private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper; private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */ @Autowired @Autowired
/* */ private ITXtpzGridColumnsService itXtpzGridColumnsService; private ITXtpzGridColumnsService itXtpzGridColumnsService;
/* */ @Autowired @Autowired
/* */ private DictDataMapper dictDataMapper; private DictDataMapper dictDataMapper;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public List<ArchiveTableColumn> getColumns(String id, String code) { public List<ArchiveTableColumn> getColumns(String id, String code) {
/* 58 */ List<ArchiveTableColumn> resultList = new ArrayList<>(); List<ArchiveTableColumn> resultList = new ArrayList<>();
/* */
/* */
/* 61 */ PhysicalTable physicalTable = new PhysicalTable(); PhysicalTable physicalTable = new PhysicalTable();
/* 62 */ physicalTable.setArchivetypeid(id); physicalTable.setArchivetypeid(id);
/* 63 */ physicalTable.setTableCode(code); physicalTable.setTableCode(code);
/* 64 */ List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable); List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* */
/* 66 */ if (tablesList != null && tablesList.size() > 0) { if (tablesList != null && tablesList.size() > 0) {
/* 67 */ physicalTable = tablesList.get(0); physicalTable = tablesList.get(0);
/* 68 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
/* 69 */ physicalTableColumn.setTableId(physicalTable.getId()); physicalTableColumn.setTableId(physicalTable.getId());
/* 70 */ physicalTableColumn.setLbx(Long.valueOf(1L)); physicalTableColumn.setLbx(Long.valueOf(1L));
/* 71 */ List<PhysicalTableColumn> columnsList = new ArrayList<>(); List<PhysicalTableColumn> columnsList = new ArrayList<>();
/* 72 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 73 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
/* */ } }
/* 75 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 76 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
/* */ } }
/* */
/* 79 */ if (columnsList != null && columnsList.size() > 0) { if (columnsList != null && columnsList.size() > 0) {
/* */
/* 81 */ ArchiveTableColumn columnOne = new ArchiveTableColumn(); ArchiveTableColumn columnOne = new ArchiveTableColumn();
/* 82 */ columnOne.setCheckbox(true); columnOne.setCheckbox(true);
/* 83 */ resultList.add(columnOne); resultList.add(columnOne);
/* */
/* */
/* 86 */ ArchiveTableColumn columnTwo = new ArchiveTableColumn(); ArchiveTableColumn columnTwo = new ArchiveTableColumn();
/* 87 */ columnTwo.setField("id"); columnTwo.setField("id");
/* 88 */ columnTwo.setTitle(""); columnTwo.setTitle("");
/* 89 */ columnTwo.setVisible(false); columnTwo.setVisible(false);
/* 90 */ resultList.add(columnTwo); resultList.add(columnTwo);
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 104 */ TXtpzGridColumns tXtpzGridColumns = new TXtpzGridColumns(); TXtpzGridColumns tXtpzGridColumns = new TXtpzGridColumns();
/* 105 */ tXtpzGridColumns.setTableId(physicalTable.getId()); tXtpzGridColumns.setTableId(physicalTable.getId());
/* 106 */ List<TXtpzGridColumns> tglist = this.itXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns); List<TXtpzGridColumns> tglist = this.itXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns);
/* 107 */ for (TXtpzGridColumns tableColumn : tglist) { for (TXtpzGridColumns tableColumn : tglist) {
/* 108 */ ArchiveTableColumn column = new ArchiveTableColumn(); ArchiveTableColumn column = new ArchiveTableColumn();
/* */
/* 110 */ if (StringUtils.isEmpty(tableColumn.getBy1())) { if (StringUtils.isEmpty(tableColumn.getBy1())) {
/* 111 */ column.setField(tableColumn.getColumnname()); column.setField(tableColumn.getColumnname());
/* 112 */ column.setTitle(tableColumn.getShowname()); column.setTitle(tableColumn.getShowname());
/* 113 */ column.setWidth(Integer.parseInt(String.valueOf(tableColumn.getWidth()))); column.setWidth(Integer.parseInt(String.valueOf(tableColumn.getWidth())));
/* */ } else { } else {
/* 115 */ column.setField(tableColumn.getColumnname()); column.setField(tableColumn.getColumnname());
/* 116 */ column.setTitle(tableColumn.getShowname()); column.setTitle(tableColumn.getShowname());
/* 117 */ column.setCodeType(tableColumn.getBy1()); column.setCodeType(tableColumn.getBy1());
/* 118 */ column.setWidth(Integer.parseInt(String.valueOf(tableColumn.getWidth()))); column.setWidth(Integer.parseInt(String.valueOf(tableColumn.getWidth())));
/* */ } }
/* 120 */ resultList.add(column); resultList.add(column);
/* */ } }
/* */ } }
/* */ } }
/* 124 */ return resultList; return resultList;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Map<String, String> getOrderColumns(String id, String code) { public Map<String, String> getOrderColumns(String id, String code) {
/* 134 */ Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
/* 135 */ String orderColumns = ""; String orderColumns = "";
/* 136 */ String orderType = "asc"; String orderType = "asc";
/* */
/* 138 */ PhysicalTable physicalTable = new PhysicalTable(); PhysicalTable physicalTable = new PhysicalTable();
/* 139 */ physicalTable.setArchivetypeid(id); physicalTable.setArchivetypeid(id);
/* 140 */ physicalTable.setTableCode(code); physicalTable.setTableCode(code);
/* 141 */ List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable); List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* */
/* 143 */ if (tablesList != null && tablesList.size() > 0) { if (tablesList != null && tablesList.size() > 0) {
/* 144 */ physicalTable = tablesList.get(0); physicalTable = tablesList.get(0);
/* 145 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
/* 146 */ physicalTableColumn.setTableId(physicalTable.getId()); physicalTableColumn.setTableId(physicalTable.getId());
/* 147 */ physicalTableColumn.setPxx(Long.valueOf(1L)); physicalTableColumn.setPxx(Long.valueOf(1L));
/* 148 */ List<PhysicalTableColumn> columnsList = new ArrayList<>(); List<PhysicalTableColumn> columnsList = new ArrayList<>();
/* 149 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 150 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
/* */ } }
/* 152 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 153 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
/* */ } }
/* */
/* 156 */ if (columnsList != null && columnsList.size() > 0) { if (columnsList != null && columnsList.size() > 0) {
/* 157 */ for (PhysicalTableColumn tableColumn : columnsList) { for (PhysicalTableColumn tableColumn : columnsList) {
/* */
/* */
/* 160 */ if (tableColumn.getBz() != null && tableColumn.getBz().contains("倒序")) { if (tableColumn.getBz() != null && tableColumn.getBz().contains("倒序")) {
/* 161 */ orderType = "desc"; orderType = "desc";
/* */ } }
/* 163 */ orderColumns = orderColumns + "," + tableColumn.getColumnCode() + " " + orderType; orderColumns = orderColumns + "," + tableColumn.getColumnCode() + " " + orderType;
/* */ } }
/* */ } }
/* */ } }
/* 167 */ if (orderColumns.length() > 0) { if (orderColumns.length() > 0) {
/* 168 */ orderColumns = orderColumns.substring(1, orderColumns.length()); orderColumns = orderColumns.substring(1, orderColumns.length());
/* */ } }
/* 170 */ map.put("orderColumns", orderColumns); map.put("orderColumns", orderColumns);
/* 171 */ map.put("orderType", orderType); map.put("orderType", orderType);
/* 172 */ return map; return map;
/* */ } }
/* */
/* */
/* */ public Map<String, Object> selectArchiveList(String id, String code, String ownerid, Integer pageNum, Integer pageSize, String orderBy, String orderByColumn, Map<String, Object> formData, String isRecycle, String status) { public Map<String, Object> selectArchiveList(String id, String code, String ownerid, Integer pageNum, Integer pageSize, String orderBy, String orderByColumn, Map<String, Object> formData, String isRecycle, String status) {
/* 177 */ Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
/* 178 */ List<LinkedHashMap<String, Object>> resultList = new ArrayList<>(); List<LinkedHashMap<String, Object>> resultList = new ArrayList<>();
/* 179 */ Integer count = Integer.valueOf(0); Integer count = Integer.valueOf(0);
/* 180 */ Integer beginNum = Integer.valueOf((pageNum.intValue() - 1) * pageSize.intValue()); Integer beginNum = Integer.valueOf((pageNum.intValue() - 1) * pageSize.intValue());
/* */
/* */
/* 183 */ PhysicalTable physicalTable = new PhysicalTable(); PhysicalTable physicalTable = new PhysicalTable();
/* 184 */ physicalTable.setArchivetypeid(id); physicalTable.setArchivetypeid(id);
/* 185 */ physicalTable.setTableCode(code); physicalTable.setTableCode(code);
/* 186 */ List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable); List<PhysicalTable> tablesList = this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* */
/* 188 */ if (tablesList != null && tablesList.size() > 0) { if (tablesList != null && tablesList.size() > 0) {
/* 189 */ physicalTable = tablesList.get(0); physicalTable = tablesList.get(0);
/* */
/* */
/* 192 */ String condition = ""; String condition = "";
/* */
/* 194 */ if (!"folder".equals(code) && StringUtils.isNotEmpty(ownerid) && !"ALL".equals(ownerid) && !"0".equals(ownerid) && !"ownerid".equals(ownerid)) { if (!"folder".equals(code) && StringUtils.isNotEmpty(ownerid) && !"ALL".equals(ownerid) && !"0".equals(ownerid) && !"ownerid".equals(ownerid)) {
/* 195 */ condition = condition + "ownerid in (" + ownerid + ") "; condition = condition + "ownerid in (" + ownerid + ") ";
/* */ } }
/* 197 */ PhysicalTableColumn physicalTableColumn1 = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn1 = new PhysicalTableColumn();
/* 198 */ physicalTableColumn1.setTableId(physicalTable.getId()); physicalTableColumn1.setTableId(physicalTable.getId());
/* 199 */ List<PhysicalTableColumn> columnsList1 = new ArrayList<>(); List<PhysicalTableColumn> columnsList1 = new ArrayList<>();
/* 200 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 201 */ columnsList1 = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn1); columnsList1 = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn1);
/* */ } }
/* 203 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 204 */ columnsList1 = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn1); columnsList1 = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn1);
/* */ } }
/* */
/* 207 */ if (columnsList1 != null && columnsList1.size() > 0) { if (columnsList1 != null && columnsList1.size() > 0) {
/* 208 */ Set<String> keySet = formData.keySet(); Set<String> keySet = formData.keySet();
/* 209 */ for (String key : keySet) { for (String key : keySet) {
/* 210 */ String value = String.valueOf(formData.get(key)); String value = String.valueOf(formData.get(key));
/* 211 */ for (PhysicalTableColumn tableColumn : columnsList1) { for (PhysicalTableColumn tableColumn : columnsList1) {
/* 212 */ String field = tableColumn.getColumnCode(); String field = tableColumn.getColumnCode();
/* 213 */ if ((key.equals(field) || key.replaceAll("_Qazwsx13579!", "").equals(field) || key.replaceAll("_Qazwsx24680!", "").equals(field)) && if ((key.equals(field) || key.replaceAll("_Qazwsx13579!", "").equals(field) || key.replaceAll("_Qazwsx24680!", "").equals(field)) &&
/* 214 */ !"pageNum".equals(key) && !"pageSize".equals(key) && !"isAsc".equals(key) && StringUtils.isNotEmpty(value)) { !"pageNum".equals(key) && !"pageSize".equals(key) && !"isAsc".equals(key) && StringUtils.isNotEmpty(value)) {
/* 215 */ Long jsfs = tableColumn.getJsfs(); Long jsfs = tableColumn.getJsfs();
/* */
/* 217 */ if (jsfs.longValue() == 0L) { if (jsfs.longValue() == 0L) {
/* 218 */ condition = condition + "and " + field + " like '%" + value + "%' "; condition = condition + "and " + field + " like '%" + value + "%' ";
/* */ continue; continue;
/* */ } }
/* 221 */ if (jsfs.longValue() == 1L) { if (jsfs.longValue() == 1L) {
/* 222 */ condition = condition + "and " + field + " = '" + value + "' "; condition = condition + "and " + field + " = '" + value + "' ";
/* */ continue; continue;
/* */ } }
/* 225 */ if (jsfs.longValue() == 2L) { if (jsfs.longValue() == 2L) {
/* 226 */ condition = condition + "and " + field + " > '" + value + "' "; condition = condition + "and " + field + " > '" + value + "' ";
/* */ continue; continue;
/* */ } }
/* 229 */ if (jsfs.longValue() == 3L) { if (jsfs.longValue() == 3L) {
/* 230 */ condition = condition + "and " + field + " < '" + value + "' "; condition = condition + "and " + field + " < '" + value + "' ";
/* */ continue; continue;
/* */ } }
/* 233 */ if (jsfs.longValue() == 4L) { if (jsfs.longValue() == 4L) {
/* 234 */ condition = condition + "and " + field + " >= '" + value + "' "; condition = condition + "and " + field + " >= '" + value + "' ";
/* */ continue; continue;
/* */ } }
/* 237 */ if (jsfs.longValue() == 5L) { if (jsfs.longValue() == 5L) {
/* 238 */ condition = condition + "and " + field + " <= '" + value + "' "; condition = condition + "and " + field + " <= '" + value + "' ";
/* */ continue; continue;
/* */ } }
/* 241 */ if (jsfs.longValue() == 6L) { if (jsfs.longValue() == 6L) {
/* 242 */ if (key.replaceAll("_Qazwsx13579!", "").equals(field)) { if (key.replaceAll("_Qazwsx13579!", "").equals(field)) {
/* 243 */ condition = condition + "and " + field + " >= '" + value + "' "; condition = condition + "and " + field + " >= '" + value + "' ";
/* */ } }
/* 245 */ if (key.replaceAll("_Qazwsx24680!", "").equals(field)) { if (key.replaceAll("_Qazwsx24680!", "").equals(field)) {
/* 246 */ condition = condition + "and " + field + " <= '" + value + "' "; condition = condition + "and " + field + " <= '" + value + "' ";
/* */ } }
/* */ continue; continue;
/* */ } }
/* 250 */ condition = condition + "and " + field + " like '%" + value + "%' "; condition = condition + "and " + field + " like '%" + value + "%' ";
/* */ } }
/* */ } }
/* */
/* */
/* 255 */ if ("ids".equals(key)) { if ("ids".equals(key)) {
/* 256 */ condition = condition + "and id in (" + value + ")"; condition = condition + "and id in (" + value + ")";
/* */ } }
/* */ } }
/* */ } }
/* */
/* 261 */ if (condition.startsWith("and")) { if (condition.startsWith("and")) {
/* 262 */ condition = condition.substring(3); condition = condition.substring(3);
/* */ } }
/* */
/* 265 */ if (isRecycle.equals("true")) { if (isRecycle.equals("true")) {
/* 266 */ if (condition.length() > 0) { if (condition.length() > 0) {
/* 267 */ condition = " where is_delete = '1' and " + condition; condition = " where is_delete = '1' and " + condition;
/* */ } else { } else {
/* 269 */ condition = " where is_delete = '1' "; condition = " where is_delete = '1' ";
/* */ } }
/* */
/* 272 */ } else if (condition.length() > 0) { } else if (condition.length() > 0) {
/* 273 */ condition = " is_delete = '0' and " + condition; condition = " is_delete = '0' and " + condition;
/* */ } else { } else {
/* 275 */ condition = " is_delete = '0' "; condition = " is_delete = '0' ";
/* */ } }
/* */
/* */
/* */
/* 280 */ if (status != null && !status.equals("") && !status.equals("0")) { if (status != null && !status.equals("") && !status.equals("0")) {
/* 281 */ if (condition.length() > 0) { if (condition.length() > 0) {
/* 282 */ condition = " where status = '" + status + "' and " + condition; condition = " where status = '" + status + "' and " + condition;
/* */ } else { } else {
/* 284 */ condition = " where status = '" + status + "' "; condition = " where status = '" + status + "' ";
/* */ } }
/* */ } }
/* */
/* */
/* */
/* 290 */ PhysicalTableColumn physicalTableColumn2 = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn2 = new PhysicalTableColumn();
/* 291 */ physicalTableColumn2.setTableId(physicalTable.getId()); physicalTableColumn2.setTableId(physicalTable.getId());
/* 292 */ physicalTableColumn2.setLbx(Long.valueOf(1L)); physicalTableColumn2.setLbx(Long.valueOf(1L));
/* 293 */ List<PhysicalTableColumn> columnsList2 = new ArrayList<>(); List<PhysicalTableColumn> columnsList2 = new ArrayList<>();
/* 294 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 295 */ columnsList2 = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn2); columnsList2 = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn2);
/* */ } }
/* 297 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 298 */ columnsList2 = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn2); columnsList2 = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn2);
/* */ } }
/* */
/* 301 */ if (columnsList2 != null && columnsList2.size() > 0) { if (columnsList2 != null && columnsList2.size() > 0) {
/* 302 */ String sql = "select id,"; String sql = "select id,";
/* 303 */ for (PhysicalTableColumn tableColumn : columnsList2) { for (PhysicalTableColumn tableColumn : columnsList2) {
/* 304 */ sql = sql + tableColumn.getColumnCode() + ","; sql = sql + tableColumn.getColumnCode() + ",";
/* */ } }
/* 306 */ sql = sql.substring(0, sql.lastIndexOf(",")); sql = sql.substring(0, sql.lastIndexOf(","));
/* 307 */ sql = sql + " from " + physicalTable.getTablename() + condition; sql = sql + " from " + physicalTable.getTablename() + condition;
/* 308 */ if (StringUtils.isNotEmpty(orderByColumn)) if (StringUtils.isNotEmpty(orderByColumn))
/* */ { {
/* 310 */ sql = sql + " order by " + orderByColumn; sql = sql + " order by " + orderByColumn;
/* */ } }
/* 312 */ sql = sql + " limit " + beginNum + " , " + pageSize; sql = sql + " limit " + beginNum + " , " + pageSize;
/* 313 */ resultList = this.executeSqlService.queryList(sql); resultList = this.executeSqlService.queryList(sql);
/* */
/* 315 */ String countSql = "SELECT COUNT(*) FROM " + physicalTable.getTablename() + condition; String countSql = "SELECT COUNT(*) FROM " + physicalTable.getTablename() + condition;
/* 316 */ count = this.executeSqlService.jdbcTemplateQueryCount(countSql); count = this.executeSqlService.jdbcTemplateQueryCount(countSql);
/* */ } }
/* */ } }
/* 319 */ resultMap.put("list", resultList); resultMap.put("list", resultList);
/* 320 */ resultMap.put("count", count); resultMap.put("count", count);
/* 321 */ return resultMap; return resultMap;
/* */ } }
/* */
/* */
/* */ public String getSearchHtml(String id, String code) { public String getSearchHtml(String id, String code) {
/* 326 */ String html = ""; String html = "";
/* 327 */ PhysicalTable physicalTable = new PhysicalTable(); PhysicalTable physicalTable = new PhysicalTable();
/* 328 */ physicalTable.setArchivetypeid(id); physicalTable.setArchivetypeid(id);
/* 329 */ physicalTable.setTableCode(code); physicalTable.setTableCode(code);
/* 330 */ List<PhysicalTable> physicalTableList = this.physicalTableMapper.selectPhysicalTableList(physicalTable); List<PhysicalTable> physicalTableList = this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* 331 */ if (physicalTableList != null && physicalTableList.size() > 0) { if (physicalTableList != null && physicalTableList.size() > 0) {
/* 332 */ Long tableId = ((PhysicalTable)physicalTableList.get(0)).getId(); Long tableId = ((PhysicalTable)physicalTableList.get(0)).getId();
/* 333 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
/* 334 */ physicalTableColumn.setTableId(tableId); physicalTableColumn.setTableId(tableId);
/* 335 */ physicalTableColumn.setJsx(Long.valueOf(1L)); physicalTableColumn.setJsx(Long.valueOf(1L));
/* 336 */ List<PhysicalTableColumn> tableColumnsList = new ArrayList<>(); List<PhysicalTableColumn> tableColumnsList = new ArrayList<>();
/* 337 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 338 */ tableColumnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); tableColumnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
/* */ } }
/* 340 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 341 */ tableColumnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); tableColumnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
/* */ } }
/* 343 */ if (tableColumnsList != null && tableColumnsList.size() > 0) { if (tableColumnsList != null && tableColumnsList.size() > 0) {
/* 344 */ StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
/* 345 */ sb.append("<div class='col-sm-12 search-collapse'>"); sb.append("<div class='col-sm-12 search-collapse'>");
/* 346 */ sb.append("<form id='archive-search-form'>"); sb.append("<form id='archive-search-form'>");
/* 347 */ sb.append("<div class='select-list'>"); sb.append("<div class='select-list'>");
/* 348 */ sb.append("<ul>"); sb.append("<ul>");
/* 349 */ for (int i = 0; i < tableColumnsList.size(); i++) { for (int i = 0; i < tableColumnsList.size(); i++) {
/* 350 */ PhysicalTableColumn tableColumns = tableColumnsList.get(i); PhysicalTableColumn tableColumns = tableColumnsList.get(i);
/* 351 */ String columnName = tableColumns.getColumnName(); String columnName = tableColumns.getColumnName();
/* 352 */ String columnCode = tableColumns.getColumnCode(); String columnCode = tableColumns.getColumnCode();
/* 353 */ String columnCodeType = tableColumns.getColumnCodetype(); String columnCodeType = tableColumns.getColumnCodetype();
/* 354 */ Long jsfs = tableColumns.getJsfs(); Long jsfs = tableColumns.getJsfs();
/* */
/* 356 */ if (StringUtils.isEmpty(columnCodeType)) { if (StringUtils.isEmpty(columnCodeType)) {
/* 357 */ if (jsfs.longValue() == 6L) { if (jsfs.longValue() == 6L) {
/* 358 */ sb.append("<li class='select-time'>"); sb.append("<li class='select-time'>");
/* 359 */ sb.append("<label>" + columnName + "</label><input type='text' class='time-input' name='" + columnCode + "_Qazwsx13579!'/>"); sb.append("<label>" + columnName + "</label><input type='text' class='time-input' name='" + columnCode + "_Qazwsx13579!'/>");
/* 360 */ sb.append("<span>-</span>"); sb.append("<span>-</span>");
/* 361 */ sb.append("<input class='time-input' type='text' name='" + columnCode + "_Qazwsx24680!'/>"); sb.append("<input class='time-input' type='text' name='" + columnCode + "_Qazwsx24680!'/>");
/* 362 */ sb.append("</li>"); sb.append("</li>");
/* */ } else { } else {
/* 364 */ sb.append("<li>"); sb.append("<li>");
/* 365 */ sb.append("<label>" + columnName + "</label><input type='text' name='" + columnCode + "'/>"); sb.append("<label>" + columnName + "</label><input type='text' name='" + columnCode + "'/>");
/* 366 */ sb.append("</li>"); sb.append("</li>");
/* */ } }
/* */
/* */ } else { } else {
/* */
/* 371 */ DictData dictData = new DictData(); DictData dictData = new DictData();
/* 372 */ dictData.setDictType(columnCodeType); dictData.setDictType(columnCodeType);
/* 373 */ List<DictData> dictDataList = this.dictDataMapper.selectDictDataList(dictData); List<DictData> dictDataList = this.dictDataMapper.selectDictDataList(dictData);
/* 374 */ if (jsfs.longValue() == 6L) { if (jsfs.longValue() == 6L) {
/* 375 */ sb.append("<li class='select-time'>"); sb.append("<li class='select-time'>");
/* 376 */ sb.append("<label>" + columnName + "</label><select class='time-input' name='" + columnCode + "_Qazwsx13579!'>"); sb.append("<label>" + columnName + "</label><select class='time-input' name='" + columnCode + "_Qazwsx13579!'>");
/* 377 */ sb.append("<option value=''>所有</option>"); int j; sb.append("<option value=''>所有</option>"); int j;
/* 378 */ for (j = 0; j < dictDataList.size(); j++) { for (j = 0; j < dictDataList.size(); j++) {
/* 379 */ DictData dictDataTemp = dictDataList.get(j); DictData dictDataTemp = dictDataList.get(j);
/* 380 */ sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>"); sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>");
/* */ } }
/* 382 */ sb.append("</select>"); sb.append("</select>");
/* 383 */ sb.append("<span>-</span>"); sb.append("<span>-</span>");
/* 384 */ sb.append("<select class='time-input' name='" + columnCode + "_Qazwsx24680!'>"); sb.append("<select class='time-input' name='" + columnCode + "_Qazwsx24680!'>");
/* 385 */ sb.append("<option value=''>所有</option>"); sb.append("<option value=''>所有</option>");
/* 386 */ for (j = 0; j < dictDataList.size(); j++) { for (j = 0; j < dictDataList.size(); j++) {
/* 387 */ DictData dictDataTemp = dictDataList.get(j); DictData dictDataTemp = dictDataList.get(j);
/* 388 */ sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>"); sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>");
/* */ } }
/* 390 */ sb.append("</select>"); sb.append("</select>");
/* 391 */ sb.append("</li>"); sb.append("</li>");
/* */ } else { } else {
/* 393 */ sb.append("<li>"); sb.append("<li>");
/* 394 */ sb.append("<label>" + columnName + "</label><select name='" + columnCode + "'>"); sb.append("<label>" + columnName + "</label><select name='" + columnCode + "'>");
/* 395 */ sb.append("<option value=''>所有</option>"); sb.append("<option value=''>所有</option>");
/* 396 */ for (int j = 0; j < dictDataList.size(); j++) { for (int j = 0; j < dictDataList.size(); j++) {
/* 397 */ DictData dictDataTemp = dictDataList.get(j); DictData dictDataTemp = dictDataList.get(j);
/* 398 */ sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>"); sb.append("<option value='" + dictDataTemp.getDictValue() + "'>" + dictDataTemp.getDictLabel() + "</option>");
/* */ } }
/* 400 */ sb.append("</select>"); sb.append("</select>");
/* 401 */ sb.append("</li>"); sb.append("</li>");
/* */ } }
/* */ } }
/* */ } }
/* */
/* 406 */ sb.append("<li>"); sb.append("<li>");
/* 407 */ sb.append("<a class='btn btn-primary btn-rounded btn-sm' onclick='archiveSearch()'><i class='fa fa-search'></i>&nbsp;搜索</a>"); sb.append("<a class='btn btn-primary btn-rounded btn-sm' onclick='archiveSearch()'><i class='fa fa-search'></i>&nbsp;搜索</a>");
/* 408 */ sb.append("<a class='btn btn-warning btn-rounded btn-sm' onclick='$.form.reset()'><i class='fa fa-refresh'></i>&nbsp;重置</a>"); sb.append("<a class='btn btn-warning btn-rounded btn-sm' onclick='$.form.reset()'><i class='fa fa-refresh'></i>&nbsp;重置</a>");
/* 409 */ sb.append("</li>"); sb.append("</li>");
/* */
/* 411 */ sb.append("</ul>"); sb.append("</ul>");
/* 412 */ sb.append("</div>"); sb.append("</div>");
/* 413 */ sb.append("</form>"); sb.append("</form>");
/* 414 */ sb.append("</div>"); sb.append("</div>");
/* 415 */ html = sb.toString(); html = sb.toString();
/* */ } }
/* */ } }
/* 418 */ return html; return html;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\service\impl\ArchiveListServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\archivetype\service\impl\ArchiveListServiceImpl.class

Loading…
Cancel
Save