feat:修改文件类型

dev
wangxy 8 months ago
parent 987f0c3622
commit 29cd0f7c3a

@ -1,143 +1,143 @@
/* */ package com.archive.common.utils
package com.archive.common.utils
;
/* */
/* */ import java.io.UnsupportedEncodingException;
/* */ import java.net.URLDecoder;
/* */ import java.net.URLEncoder;
/* */ import javax.servlet.http.Cookie;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class CookieUtils
/* */ {
/* */ public static void setCookie(HttpServletResponse response, String name, String value) {
/* 25 */ setCookie(response, name, value, 86400);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void setCookie(HttpServletResponse response, String name, String value, String path) {
/* 38 */ setCookie(response, name, value, path, 86400);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) {
/* 51 */ setCookie(response, name, value, "/", maxAge);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void setCookie(HttpServletResponse response, String name, String value, String path, int maxAge) {
/* 64 */ Cookie cookie = new Cookie(name, null);
/* 65 */ cookie.setPath(path);
/* 66 */ cookie.setMaxAge(maxAge);
/* */
/* */ try {
/* 69 */ cookie.setValue(URLEncoder.encode(value, "utf-8"));
/* */ }
/* 71 */ catch (UnsupportedEncodingException e) {
/* */
/* 73 */ e.printStackTrace();
/* */ }
/* 75 */ response.addCookie(cookie);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getCookie(HttpServletRequest request, String name) {
/* 86 */ return getCookie(request, null, name, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name) {
/* 97 */ return getCookie(request, response, name, true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name, boolean isRemove) {
/* 112 */ String value = null;
/* 113 */ Cookie[] cookies = request.getCookies();
/* 114 */ if (cookies != null)
/* */ {
/* 116 */ for (Cookie cookie : cookies) {
/* */
/* 118 */ if (cookie.getName().equals(name)) {
/* */
/* */
/* */ try {
/* 122 */ value = URLDecoder.decode(cookie.getValue(), "utf-8");
/* */ }
/* 124 */ catch (UnsupportedEncodingException e) {
/* */
/* 126 */ e.printStackTrace();
/* */ }
/* 128 */ if (isRemove) {
/* */
/* 130 */ cookie.setMaxAge(0);
/* 131 */ response.addCookie(cookie);
/* */ }
/* */ }
/* */ }
/* */ }
/* 136 */ return value;
/* */ }
/* */ }
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CookieUtils
{
public static void setCookie(HttpServletResponse response, String name, String value) {
setCookie(response, name, value, 86400);
}
public static void setCookie(HttpServletResponse response, String name, String value, String path) {
setCookie(response, name, value, path, 86400);
}
public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) {
setCookie(response, name, value, "/", maxAge);
}
public static void setCookie(HttpServletResponse response, String name, String value, String path, int maxAge) {
Cookie cookie = new Cookie(name, null);
cookie.setPath(path);
cookie.setMaxAge(maxAge);
try {
cookie.setValue(URLEncoder.encode(value, "utf-8"));
}
catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
response.addCookie(cookie);
}
public static String getCookie(HttpServletRequest request, String name) {
return getCookie(request, null, name, false);
}
public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name) {
return getCookie(request, response, name, true);
}
public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name, boolean isRemove) {
String value = null;
Cookie[] cookies = request.getCookies();
if (cookies != null)
{
for (Cookie cookie : cookies) {
if (cookie.getName().equals(name)) {
try {
value = URLDecoder.decode(cookie.getValue(), "utf-8");
}
catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
if (isRemove) {
cookie.setMaxAge(0);
response.addCookie(cookie);
}
}
}
}
return value;
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\CookieUtils.class

@ -1,90 +1,90 @@
/* */ package com.archive.common.utils.text;
/* */
/* */ import com.archive.common.utils.StringUtils;
/* */ import java.nio.charset.Charset;
/* */ import java.nio.charset.StandardCharsets;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class CharsetKit
/* */ {
/* */ public static final String ISO_8859_1 = "ISO-8859-1";
/* */ public static final String UTF_8 = "UTF-8";
/* */ public static final String GBK = "GBK";
/* 23 */ public static final Charset CHARSET_ISO_8859_1 = Charset.forName("ISO-8859-1");
/* */
/* 25 */ public static final Charset CHARSET_UTF_8 = Charset.forName("UTF-8");
/* */
/* 27 */ public static final Charset CHARSET_GBK = Charset.forName("GBK");
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Charset charset(String charset) {
/* 37 */ return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String convert(String source, String srcCharset, String destCharset) {
/* 50 */ return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String convert(String source, Charset srcCharset, Charset destCharset) {
/* 63 */ if (null == srcCharset)
/* */ {
/* 65 */ srcCharset = StandardCharsets.ISO_8859_1;
/* */ }
/* */
/* 68 */ if (null == destCharset)
/* */ {
/* 70 */ destCharset = StandardCharsets.UTF_8;
/* */ }
/* */
/* 73 */ if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset))
/* */ {
/* 75 */ return source;
/* */ }
/* 77 */ return new String(source.getBytes(srcCharset), destCharset);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String systemCharset() {
/* 85 */ return Charset.defaultCharset().name();
/* */ }
/* */ }
package com.archive.common.utils.text;
import com.archive.common.utils.StringUtils;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
public class CharsetKit
{
public static final String ISO_8859_1 = "ISO-8859-1";
public static final String UTF_8 = "UTF-8";
public static final String GBK = "GBK";
public static final Charset CHARSET_ISO_8859_1 = Charset.forName("ISO-8859-1");
public static final Charset CHARSET_UTF_8 = Charset.forName("UTF-8");
public static final Charset CHARSET_GBK = Charset.forName("GBK");
public static Charset charset(String charset) {
return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset);
}
public static String convert(String source, String srcCharset, String destCharset) {
return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset));
}
public static String convert(String source, Charset srcCharset, Charset destCharset) {
if (null == srcCharset)
{
srcCharset = StandardCharsets.ISO_8859_1;
}
if (null == destCharset)
{
destCharset = StandardCharsets.UTF_8;
}
if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset))
{
return source;
}
return new String(source.getBytes(srcCharset), destCharset);
}
public static String systemCharset() {
return Charset.defaultCharset().name();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\text\CharsetKit.class

File diff suppressed because it is too large Load Diff

@ -1,168 +1,168 @@
/* */ package com.archive.framework.aspectj.lang.annotation
package com.archive.framework.aspectj.lang.annotation
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum ColumnType
/* */ {
/* 152 */ NUMERIC(0), STRING(1), IMAGE(2);
/* */
/* */ private final int value;
/* */
/* */ ColumnType(int value) {
/* 157 */ this.value = value;
/* */ }
/* */
/* */
/* */ public int value() {
/* 162 */ return this.value;
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
public enum ColumnType
{
NUMERIC(0), STRING(1), IMAGE(2);
private final int value;
ColumnType(int value) {
this.value = value;
}
public int value() {
return this.value;
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\annotation\Excel$ColumnType.class

@ -1,33 +1,33 @@
/* */ package com.archive.framework.web.service
package com.archive.framework.web.service
;
/* */
/* */ import com.archive.project.system.config.service.IConfigService;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service("config")
/* */ public class ConfigService
/* */ {
/* */ @Autowired
/* */ private IConfigService configService;
/* */
/* */ public String getKey(String configKey) {
/* 26 */ return this.configService.selectConfigByKey(configKey);
/* */ }
/* */ }
import com.archive.project.system.config.service.IConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("config")
public class ConfigService
{
@Autowired
private IConfigService configService;
public String getKey(String configKey) {
return this.configService.selectConfigByKey(configKey);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\ConfigService.class

@ -1,125 +1,125 @@
/* */ package com.archive.project.common
package com.archive.project.common
;
/* */
/* */ import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.file.FileUploadUtils;
/* */ import com.archive.common.utils.file.FileUtils;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.config.ServerConfig;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import java.io.OutputStream;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */ import org.springframework.web.multipart.MultipartFile;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ public class CommonController
/* */ {
/* 30 */ private static final Logger log = LoggerFactory.getLogger(com.archive.project.common.CommonController.class);
/* */
/* */
/* */
/* */
/* */
/* */ @Autowired
/* */ private ServerConfig serverConfig;
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"common/download"})
/* */ public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) {
/* */ try {
/* 46 */ if (!FileUtils.checkAllowDownload(fileName))
/* */ {
/* 48 */ throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", new Object[] { fileName }));
/* */ }
/* */
/* 51 */ String filePath = ArchiveConfig.getInstance().getDownloadPath() + fileName;
/* */
/* 53 */ response.setContentType("application/octet-stream");
/* 54 */ FileUtils.setAttachmentResponseHeader(response, fileName);
/* 55 */ FileUtils.writeBytes(filePath, (OutputStream)response.getOutputStream());
/* */
/* */
/* */
/* */
/* */ }
/* 61 */ catch (Exception e) {
/* */
/* 63 */ log.error("下载文件失败", e);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/common/upload"})
/* */ @ResponseBody
/* */ public AjaxResult uploadFile(MultipartFile file) throws Exception {
/* */ try {
/* 77 */ String filePath = ArchiveConfig.getInstance().getUploadPath();
/* */
/* 79 */ String fileName = FileUploadUtils.upload(filePath, file);
/* 80 */ String url = this.serverConfig.getUrl() + fileName;
/* 81 */ AjaxResult ajax = AjaxResult.success();
/* 82 */ ajax.put("fileName", fileName);
/* 83 */ ajax.put("url", url);
/* 84 */ return ajax;
/* */ }
/* 86 */ catch (Exception e) {
/* */
/* 88 */ return AjaxResult.error(e.getMessage());
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/common/download/resource"})
/* */ public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* */ try {
/* 101 */ if (!FileUtils.checkAllowDownload(resource))
/* */ {
/* 103 */ throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", new Object[] { resource }));
/* */ }
/* */
/* 106 */ String localPath = ArchiveConfig.getInstance().getProfile();
/* */
/* 108 */ String downloadPath = localPath + StringUtils.substringAfter(resource, "/profile");
/* */
/* 110 */ String downloadName = StringUtils.substringAfterLast(downloadPath, "/");
/* 111 */ response.setContentType("application/octet-stream");
/* 112 */ FileUtils.setAttachmentResponseHeader(response, downloadName);
/* 113 */ FileUtils.writeBytes(downloadPath, (OutputStream)response.getOutputStream());
/* */ }
/* 115 */ catch (Exception e) {
/* */
/* 117 */ log.error("下载文件失败", e);
/* */ }
/* */ }
/* */ }
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.file.FileUploadUtils;
import com.archive.common.utils.file.FileUtils;
import com.archive.framework.config.ArchiveConfig;
import com.archive.framework.config.ServerConfig;
import com.archive.framework.web.domain.AjaxResult;
import java.io.OutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
@Controller
public class CommonController
{
private static final Logger log = LoggerFactory.getLogger(com.archive.project.common.CommonController.class);
@Autowired
private ServerConfig serverConfig;
@GetMapping({"common/download"})
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) {
try {
if (!FileUtils.checkAllowDownload(fileName))
{
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", new Object[] { fileName }));
}
String filePath = ArchiveConfig.getInstance().getDownloadPath() + fileName;
response.setContentType("application/octet-stream");
FileUtils.setAttachmentResponseHeader(response, fileName);
FileUtils.writeBytes(filePath, (OutputStream)response.getOutputStream());
}
catch (Exception e) {
log.error("下载文件失败", e);
}
}
@PostMapping({"/common/upload"})
@ResponseBody
public AjaxResult uploadFile(MultipartFile file) throws Exception {
try {
String filePath = ArchiveConfig.getInstance().getUploadPath();
String fileName = FileUploadUtils.upload(filePath, file);
String url = this.serverConfig.getUrl() + fileName;
AjaxResult ajax = AjaxResult.success();
ajax.put("fileName", fileName);
ajax.put("url", url);
return ajax;
}
catch (Exception e) {
return AjaxResult.error(e.getMessage());
}
}
@GetMapping({"/common/download/resource"})
public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
if (!FileUtils.checkAllowDownload(resource))
{
throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", new Object[] { resource }));
}
String localPath = ArchiveConfig.getInstance().getProfile();
String downloadPath = localPath + StringUtils.substringAfter(resource, "/profile");
String downloadName = StringUtils.substringAfterLast(downloadPath, "/");
response.setContentType("application/octet-stream");
FileUtils.setAttachmentResponseHeader(response, downloadName);
FileUtils.writeBytes(downloadPath, (OutputStream)response.getOutputStream());
}
catch (Exception e) {
log.error("下载文件失败", e);
}
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\common\CommonController.class

@ -1,148 +1,148 @@
/* */ package com.archive.project.dasz.basecolumn.controller
package com.archive.project.dasz.basecolumn.controller
;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFile;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnFileService;
/* */ import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dasz/basecolumn/columnfile"})
/* */ public class ColumnFileController
/* */ extends BaseController
/* */ {
/* 34 */ private String prefix = "dasz/basecolumn/columnfile";
/* */
/* */ @Autowired
/* */ private IColumnFileService columnFileService;
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:view"})
/* */ @GetMapping
/* */ public String file(ModelMap mmap) {
/* 46 */ DictType dictType = new DictType();
/* 47 */ dictType.setLabel("column_bind");
/* 48 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 49 */ mmap.put("dictList", list);
/* 50 */ return this.prefix + "/file";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(ColumnFile columnFile) {
/* 61 */ startPage();
/* 62 */ List<ColumnFile> list = this.columnFileService.selectColumnFileList(columnFile);
/* 63 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:export"})
/* */ @Log(title = "文件基础字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(ColumnFile columnFile) {
/* 75 */ List<ColumnFile> list = this.columnFileService.selectColumnFileList(columnFile);
/* 76 */ ExcelUtil<ColumnFile> util = new ExcelUtil(ColumnFile.class);
/* 77 */ return util.exportExcel(list, "file");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add(ModelMap mmap) {
/* 86 */ DictType dictType = new DictType();
/* 87 */ dictType.setLabel("column_bind");
/* 88 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 89 */ mmap.put("dictList", list);
/* 90 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:add"})
/* */ @Log(title = "文件基础字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(ColumnFile columnFile) {
/* 102 */ return toAjax(this.columnFileService.insertColumnFile(columnFile));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 111 */ ColumnFile columnFile = this.columnFileService.selectColumnFileById(id);
/* 112 */ mmap.put("columnFile", columnFile);
/* 113 */ DictType dictType = new DictType();
/* 114 */ dictType.setLabel("column_bind");
/* 115 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 116 */ mmap.put("dictList", list);
/* 117 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:edit"})
/* */ @Log(title = "文件基础字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(ColumnFile columnFile) {
/* 129 */ return toAjax(this.columnFileService.updateColumnFile(columnFile));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfile:remove"})
/* */ @Log(title = "文件基础字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 141 */ return toAjax(this.columnFileService.deleteColumnFileByIds(ids));
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dasz.basecolumn.domain.ColumnFile;
import com.archive.project.dasz.basecolumn.service.IColumnFileService;
import com.archive.project.system.dict.domain.DictType;
import com.archive.project.system.dict.service.IDictTypeService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dasz/basecolumn/columnfile"})
public class ColumnFileController
extends BaseController
{
private String prefix = "dasz/basecolumn/columnfile";
@Autowired
private IColumnFileService columnFileService;
@Autowired
private IDictTypeService dictTypeService;
@RequiresPermissions({"dasz:columnfile:view"})
@GetMapping
public String file(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/file";
}
@RequiresPermissions({"dasz:columnfile:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(ColumnFile columnFile) {
startPage();
List<ColumnFile> list = this.columnFileService.selectColumnFileList(columnFile);
return getDataTable(list);
}
@RequiresPermissions({"dasz:columnfile:export"})
@Log(title = "文件基础字段", businessType = BusinessType.EXPORT)
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(ColumnFile columnFile) {
List<ColumnFile> list = this.columnFileService.selectColumnFileList(columnFile);
ExcelUtil<ColumnFile> util = new ExcelUtil(ColumnFile.class);
return util.exportExcel(list, "file");
}
@GetMapping({"/add"})
public String add(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/add";
}
@RequiresPermissions({"dasz:columnfile:add"})
@Log(title = "文件基础字段", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(ColumnFile columnFile) {
return toAjax(this.columnFileService.insertColumnFile(columnFile));
}
@GetMapping({"/edit/{id}"})
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
ColumnFile columnFile = this.columnFileService.selectColumnFileById(id);
mmap.put("columnFile", columnFile);
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/edit";
}
@RequiresPermissions({"dasz:columnfile:edit"})
@Log(title = "文件基础字段", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(ColumnFile columnFile) {
return toAjax(this.columnFileService.updateColumnFile(columnFile));
}
@RequiresPermissions({"dasz:columnfile:remove"})
@Log(title = "文件基础字段", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.columnFileService.deleteColumnFileByIds(ids));
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnFileController.class

@ -1,148 +1,148 @@
/* */ package com.archive.project.dasz.basecolumn.controller
package com.archive.project.dasz.basecolumn.controller
;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFolder;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnFolderService;
/* */ import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dasz/basecolumn/columnfolder"})
/* */ public class ColumnFolderController
/* */ extends BaseController
/* */ {
/* 34 */ private String prefix = "dasz/basecolumn/columnfolder";
/* */
/* */ @Autowired
/* */ private IColumnFolderService columnFolderService;
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:view"})
/* */ @GetMapping
/* */ public String folder(ModelMap mmap) {
/* 46 */ DictType dictType = new DictType();
/* 47 */ dictType.setLabel("column_bind");
/* 48 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 49 */ mmap.put("dictList", list);
/* 50 */ return this.prefix + "/folder";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(ColumnFolder columnFolder) {
/* 61 */ startPage();
/* 62 */ List<ColumnFolder> list = this.columnFolderService.selectColumnFolderList(columnFolder);
/* 63 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:export"})
/* */ @Log(title = "案卷基础字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(ColumnFolder columnFolder) {
/* 75 */ List<ColumnFolder> list = this.columnFolderService.selectColumnFolderList(columnFolder);
/* 76 */ ExcelUtil<ColumnFolder> util = new ExcelUtil(ColumnFolder.class);
/* 77 */ return util.exportExcel(list, "folder");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add(ModelMap mmap) {
/* 86 */ DictType dictType = new DictType();
/* 87 */ dictType.setLabel("column_bind");
/* 88 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 89 */ mmap.put("dictList", list);
/* 90 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:add"})
/* */ @Log(title = "案卷基础字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(ColumnFolder columnFolder) {
/* 102 */ return toAjax(this.columnFolderService.insertColumnFolder(columnFolder));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 111 */ ColumnFolder columnFolder = this.columnFolderService.selectColumnFolderById(id);
/* 112 */ mmap.put("columnFolder", columnFolder);
/* 113 */ DictType dictType = new DictType();
/* 114 */ dictType.setLabel("column_bind");
/* 115 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 116 */ mmap.put("dictList", list);
/* 117 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:edit"})
/* */ @Log(title = "案卷基础字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(ColumnFolder columnFolder) {
/* 129 */ return toAjax(this.columnFolderService.updateColumnFolder(columnFolder));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columnfolder:remove"})
/* */ @Log(title = "案卷基础字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 141 */ return toAjax(this.columnFolderService.deleteColumnFolderByIds(ids));
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dasz.basecolumn.domain.ColumnFolder;
import com.archive.project.dasz.basecolumn.service.IColumnFolderService;
import com.archive.project.system.dict.domain.DictType;
import com.archive.project.system.dict.service.IDictTypeService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dasz/basecolumn/columnfolder"})
public class ColumnFolderController
extends BaseController
{
private String prefix = "dasz/basecolumn/columnfolder";
@Autowired
private IColumnFolderService columnFolderService;
@Autowired
private IDictTypeService dictTypeService;
@RequiresPermissions({"dasz:columnfolder:view"})
@GetMapping
public String folder(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/folder";
}
@RequiresPermissions({"dasz:columnfolder:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(ColumnFolder columnFolder) {
startPage();
List<ColumnFolder> list = this.columnFolderService.selectColumnFolderList(columnFolder);
return getDataTable(list);
}
@RequiresPermissions({"dasz:columnfolder:export"})
@Log(title = "案卷基础字段", businessType = BusinessType.EXPORT)
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(ColumnFolder columnFolder) {
List<ColumnFolder> list = this.columnFolderService.selectColumnFolderList(columnFolder);
ExcelUtil<ColumnFolder> util = new ExcelUtil(ColumnFolder.class);
return util.exportExcel(list, "folder");
}
@GetMapping({"/add"})
public String add(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/add";
}
@RequiresPermissions({"dasz:columnfolder:add"})
@Log(title = "案卷基础字段", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(ColumnFolder columnFolder) {
return toAjax(this.columnFolderService.insertColumnFolder(columnFolder));
}
@GetMapping({"/edit/{id}"})
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
ColumnFolder columnFolder = this.columnFolderService.selectColumnFolderById(id);
mmap.put("columnFolder", columnFolder);
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/edit";
}
@RequiresPermissions({"dasz:columnfolder:edit"})
@Log(title = "案卷基础字段", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(ColumnFolder columnFolder) {
return toAjax(this.columnFolderService.updateColumnFolder(columnFolder));
}
@RequiresPermissions({"dasz:columnfolder:remove"})
@Log(title = "案卷基础字段", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.columnFolderService.deleteColumnFolderByIds(ids));
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnFolderController.class

@ -1,147 +1,147 @@
/* */ package com.archive.project.dasz.basecolumn.controller
package com.archive.project.dasz.basecolumn.controller
;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnInfo;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnInfoService;
/* */ import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dasz/basecolumn/columninfo"})
/* */ public class ColumnInfoController
/* */ extends BaseController
/* */ {
/* 34 */ private String prefix = "dasz/basecolumn/columninfo";
/* */
/* */ @Autowired
/* */ private IColumnInfoService columnInfoService;
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:view"})
/* */ @GetMapping
/* */ public String info(ModelMap mmap) {
/* 46 */ DictType dictType = new DictType();
/* 47 */ dictType.setLabel("column_bind");
/* 48 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 49 */ mmap.put("dictList", list);
/* 50 */ return this.prefix + "/info";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(ColumnInfo columnInfo) {
/* 61 */ startPage();
/* 62 */ List<ColumnInfo> list = this.columnInfoService.selectColumnInfoList(columnInfo);
/* 63 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:export"})
/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(ColumnInfo columnInfo) {
/* 75 */ List<ColumnInfo> list = this.columnInfoService.selectColumnInfoList(columnInfo);
/* 76 */ ExcelUtil<ColumnInfo> util = new ExcelUtil(ColumnInfo.class);
/* 77 */ return util.exportExcel(list, "info");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add(ModelMap mmap) {
/* 86 */ DictType dictType = new DictType();
/* 87 */ dictType.setLabel("column_bind");
/* 88 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 89 */ mmap.put("dictList", list);
/* 90 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:add"})
/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(ColumnInfo columnInfo) {
/* 102 */ return toAjax(this.columnInfoService.insertColumnInfo(columnInfo));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 111 */ ColumnInfo columnInfo = this.columnInfoService.selectColumnInfoById(id);
/* 112 */ mmap.put("columnInfo", columnInfo);
/* 113 */ DictType dictType = new DictType();
/* 114 */ dictType.setLabel("column_bind");
/* 115 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 116 */ mmap.put("dictList", list);
/* 117 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:edit"})
/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(ColumnInfo columnInfo) {
/* 129 */ return toAjax(this.columnInfoService.updateColumnInfo(columnInfo));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columninfo:remove"})
/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 141 */ return toAjax(this.columnInfoService.deleteColumnInfoByIds(ids));
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dasz.basecolumn.domain.ColumnInfo;
import com.archive.project.dasz.basecolumn.service.IColumnInfoService;
import com.archive.project.system.dict.domain.DictType;
import com.archive.project.system.dict.service.IDictTypeService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dasz/basecolumn/columninfo"})
public class ColumnInfoController
extends BaseController
{
private String prefix = "dasz/basecolumn/columninfo";
@Autowired
private IColumnInfoService columnInfoService;
@Autowired
private IDictTypeService dictTypeService;
@RequiresPermissions({"dasz:columninfo:view"})
@GetMapping
public String info(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/info";
}
@RequiresPermissions({"dasz:columninfo:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(ColumnInfo columnInfo) {
startPage();
List<ColumnInfo> list = this.columnInfoService.selectColumnInfoList(columnInfo);
return getDataTable(list);
}
@RequiresPermissions({"dasz:columninfo:export"})
@Log(title = "过程信息基础字段", businessType = BusinessType.EXPORT)
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(ColumnInfo columnInfo) {
List<ColumnInfo> list = this.columnInfoService.selectColumnInfoList(columnInfo);
ExcelUtil<ColumnInfo> util = new ExcelUtil(ColumnInfo.class);
return util.exportExcel(list, "info");
}
@GetMapping({"/add"})
public String add(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/add";
}
@RequiresPermissions({"dasz:columninfo:add"})
@Log(title = "过程信息基础字段", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(ColumnInfo columnInfo) {
return toAjax(this.columnInfoService.insertColumnInfo(columnInfo));
}
@GetMapping({"/edit/{id}"})
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
ColumnInfo columnInfo = this.columnInfoService.selectColumnInfoById(id);
mmap.put("columnInfo", columnInfo);
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/edit";
}
@RequiresPermissions({"dasz:columninfo:edit"})
@Log(title = "过程信息基础字段", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(ColumnInfo columnInfo) {
return toAjax(this.columnInfoService.updateColumnInfo(columnInfo));
}
@RequiresPermissions({"dasz:columninfo:remove"})
@Log(title = "过程信息基础字段", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.columnInfoService.deleteColumnInfoByIds(ids));
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnInfoController.class

@ -1,208 +1,208 @@
/* */ package com.archive.project.dasz.basecolumn.domain
package com.archive.project.dasz.basecolumn.domain
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ColumnFile
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private Long id;
/* */ @Excel(name = "字段显示名称")
/* */ private String columnName;
/* */ @Excel(name = "字段名称")
/* */ private String columnCode;
/* */ @Excel(name = "字段长度")
/* */ private Long columnLength;
/* */ @Excel(name = "字段类型")
/* */ private String columnType;
/* */ @Excel(name = "字段绑定编码")
/* */ private String columnCodetype;
/* */ @Excel(name = "显示类型")
/* */ private String showType;
/* */ @Excel(name = "备注")
/* */ private String bz;
/* */ @Excel(name = "排序项")
/* */ private Long pxx;
/* */ @Excel(name = "列表项")
/* */ private Long lbx;
/* */ @Excel(name = "界面项")
/* */ private Long jmx;
/* */ @Excel(name = "检索项")
/* */ private Long jsx;
/* */ @Excel(name = "默认值")
/* */ private String mrz;
/* */
/* */ public void setId(Long id) {
/* 71 */ this.id = id;
/* */ }
/* */
/* */
/* */ public Long getId() {
/* 76 */ return this.id;
/* */ }
/* */
/* */ public void setColumnName(String columnName) {
/* 80 */ this.columnName = columnName;
/* */ }
/* */
/* */
/* */ public String getColumnName() {
/* 85 */ return this.columnName;
/* */ }
/* */
/* */ public void setColumnCode(String columnCode) {
/* 89 */ this.columnCode = columnCode;
/* */ }
/* */
/* */
/* */ public String getColumnCode() {
/* 94 */ return this.columnCode;
/* */ }
/* */
/* */ public void setColumnLength(Long columnLength) {
/* 98 */ this.columnLength = columnLength;
/* */ }
/* */
/* */
/* */ public Long getColumnLength() {
/* 103 */ return this.columnLength;
/* */ }
/* */
/* */ public void setColumnType(String columnType) {
/* 107 */ this.columnType = columnType;
/* */ }
/* */
/* */
/* */ public String getColumnType() {
/* 112 */ return this.columnType;
/* */ }
/* */
/* */ public void setColumnCodetype(String columnCodetype) {
/* 116 */ this.columnCodetype = columnCodetype;
/* */ }
/* */
/* */
/* */ public String getColumnCodetype() {
/* 121 */ return this.columnCodetype;
/* */ }
/* */
/* */ public void setBz(String bz) {
/* 125 */ this.bz = bz;
/* */ }
/* */
/* */
/* */ public String getBz() {
/* 130 */ return this.bz;
/* */ }
/* */
/* */ public void setPxx(Long pxx) {
/* 134 */ this.pxx = pxx;
/* */ }
/* */
/* */
/* */ public Long getPxx() {
/* 139 */ return this.pxx;
/* */ }
/* */
/* */ public void setLbx(Long lbx) {
/* 143 */ this.lbx = lbx;
/* */ }
/* */
/* */
/* */ public Long getLbx() {
/* 148 */ return this.lbx;
/* */ }
/* */
/* */ public void setJmx(Long jmx) {
/* 152 */ this.jmx = jmx;
/* */ }
/* */
/* */
/* */ public Long getJmx() {
/* 157 */ return this.jmx;
/* */ }
/* */
/* */ public void setJsx(Long jsx) {
/* 161 */ this.jsx = jsx;
/* */ }
/* */
/* */
/* */ public Long getJsx() {
/* 166 */ return this.jsx;
/* */ }
/* */
/* */ public void setMrz(String mrz) {
/* 170 */ this.mrz = mrz;
/* */ }
/* */
/* */
/* */ public String getMrz() {
/* 175 */ return this.mrz;
/* */ }
/* */
/* */ public String getShowType() {
/* 179 */ return this.showType;
/* */ }
/* */
/* */ public void setShowType(String showType) {
/* 183 */ this.showType = showType;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 189 */ .append("id", getId())
/* 190 */ .append("columnName", getColumnName())
/* 191 */ .append("columnCode", getColumnCode())
/* 192 */ .append("columnLength", getColumnLength())
/* 193 */ .append("columnType", getColumnType())
/* 194 */ .append("columnCodetype", getColumnCodetype())
/* 195 */ .append("bz", getBz())
/* 196 */ .append("pxx", getPxx())
/* 197 */ .append("lbx", getLbx())
/* 198 */ .append("jmx", getJmx())
/* 199 */ .append("jsx", getJsx())
/* 200 */ .append("mrz", getMrz())
/* 201 */ .toString();
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
import com.archive.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class ColumnFile
extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
@Excel(name = "字段显示名称")
private String columnName;
@Excel(name = "字段名称")
private String columnCode;
@Excel(name = "字段长度")
private Long columnLength;
@Excel(name = "字段类型")
private String columnType;
@Excel(name = "字段绑定编码")
private String columnCodetype;
@Excel(name = "显示类型")
private String showType;
@Excel(name = "备注")
private String bz;
@Excel(name = "排序项")
private Long pxx;
@Excel(name = "列表项")
private Long lbx;
@Excel(name = "界面项")
private Long jmx;
@Excel(name = "检索项")
private Long jsx;
@Excel(name = "默认值")
private String mrz;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return this.id;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getColumnName() {
return this.columnName;
}
public void setColumnCode(String columnCode) {
this.columnCode = columnCode;
}
public String getColumnCode() {
return this.columnCode;
}
public void setColumnLength(Long columnLength) {
this.columnLength = columnLength;
}
public Long getColumnLength() {
return this.columnLength;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getColumnType() {
return this.columnType;
}
public void setColumnCodetype(String columnCodetype) {
this.columnCodetype = columnCodetype;
}
public String getColumnCodetype() {
return this.columnCodetype;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getBz() {
return this.bz;
}
public void setPxx(Long pxx) {
this.pxx = pxx;
}
public Long getPxx() {
return this.pxx;
}
public void setLbx(Long lbx) {
this.lbx = lbx;
}
public Long getLbx() {
return this.lbx;
}
public void setJmx(Long jmx) {
this.jmx = jmx;
}
public Long getJmx() {
return this.jmx;
}
public void setJsx(Long jsx) {
this.jsx = jsx;
}
public Long getJsx() {
return this.jsx;
}
public void setMrz(String mrz) {
this.mrz = mrz;
}
public String getMrz() {
return this.mrz;
}
public String getShowType() {
return this.showType;
}
public void setShowType(String showType) {
this.showType = showType;
}
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("id", getId())
.append("columnName", getColumnName())
.append("columnCode", getColumnCode())
.append("columnLength", getColumnLength())
.append("columnType", getColumnType())
.append("columnCodetype", getColumnCodetype())
.append("bz", getBz())
.append("pxx", getPxx())
.append("lbx", getLbx())
.append("jmx", getJmx())
.append("jsx", getJsx())
.append("mrz", getMrz())
.toString();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnFile.class

@ -1,208 +1,208 @@
/* */ package com.archive.project.dasz.basecolumn.domain
package com.archive.project.dasz.basecolumn.domain
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ColumnFolder
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private Long id;
/* */ @Excel(name = "字段显示名称")
/* */ private String columnName;
/* */ @Excel(name = "字段名称")
/* */ private String columnCode;
/* */ @Excel(name = "字段长度")
/* */ private Long columnLength;
/* */ @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本")
/* */ private String columnType;
/* */ @Excel(name = "字段绑定编码")
/* */ private String columnCodetype;
/* */ @Excel(name = "显示类型")
/* */ private String showType;
/* */ @Excel(name = "备注")
/* */ private String bz;
/* */ @Excel(name = "排序项(0:否 1:是)")
/* */ private Long pxx;
/* */ @Excel(name = "列表项(0:否 1:是)")
/* */ private Long lbx;
/* */ @Excel(name = "界面项(0:否 1:是)")
/* */ private Long jmx;
/* */ @Excel(name = "检索项(0:否 1:是)")
/* */ private Long jsx;
/* */ @Excel(name = "默认值")
/* */ private String mrz;
/* */
/* */ public void setId(Long id) {
/* 71 */ this.id = id;
/* */ }
/* */
/* */
/* */ public Long getId() {
/* 76 */ return this.id;
/* */ }
/* */
/* */ public void setColumnName(String columnName) {
/* 80 */ this.columnName = columnName;
/* */ }
/* */
/* */
/* */ public String getColumnName() {
/* 85 */ return this.columnName;
/* */ }
/* */
/* */ public void setColumnCode(String columnCode) {
/* 89 */ this.columnCode = columnCode;
/* */ }
/* */
/* */
/* */ public String getColumnCode() {
/* 94 */ return this.columnCode;
/* */ }
/* */
/* */ public void setColumnLength(Long columnLength) {
/* 98 */ this.columnLength = columnLength;
/* */ }
/* */
/* */
/* */ public Long getColumnLength() {
/* 103 */ return this.columnLength;
/* */ }
/* */
/* */ public void setColumnType(String columnType) {
/* 107 */ this.columnType = columnType;
/* */ }
/* */
/* */
/* */ public String getColumnType() {
/* 112 */ return this.columnType;
/* */ }
/* */
/* */ public void setColumnCodetype(String columnCodetype) {
/* 116 */ this.columnCodetype = columnCodetype;
/* */ }
/* */
/* */
/* */ public String getColumnCodetype() {
/* 121 */ return this.columnCodetype;
/* */ }
/* */
/* */ public void setBz(String bz) {
/* 125 */ this.bz = bz;
/* */ }
/* */
/* */
/* */ public String getBz() {
/* 130 */ return this.bz;
/* */ }
/* */
/* */ public void setPxx(Long pxx) {
/* 134 */ this.pxx = pxx;
/* */ }
/* */
/* */
/* */ public Long getPxx() {
/* 139 */ return this.pxx;
/* */ }
/* */
/* */ public void setLbx(Long lbx) {
/* 143 */ this.lbx = lbx;
/* */ }
/* */
/* */
/* */ public Long getLbx() {
/* 148 */ return this.lbx;
/* */ }
/* */
/* */ public void setJmx(Long jmx) {
/* 152 */ this.jmx = jmx;
/* */ }
/* */
/* */
/* */ public Long getJmx() {
/* 157 */ return this.jmx;
/* */ }
/* */
/* */ public void setJsx(Long jsx) {
/* 161 */ this.jsx = jsx;
/* */ }
/* */
/* */
/* */ public Long getJsx() {
/* 166 */ return this.jsx;
/* */ }
/* */
/* */ public void setMrz(String mrz) {
/* 170 */ this.mrz = mrz;
/* */ }
/* */
/* */
/* */ public String getMrz() {
/* 175 */ return this.mrz;
/* */ }
/* */
/* */ public String getShowType() {
/* 179 */ return this.showType;
/* */ }
/* */
/* */ public void setShowType(String showType) {
/* 183 */ this.showType = showType;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 189 */ .append("id", getId())
/* 190 */ .append("columnName", getColumnName())
/* 191 */ .append("columnCode", getColumnCode())
/* 192 */ .append("columnLength", getColumnLength())
/* 193 */ .append("columnType", getColumnType())
/* 194 */ .append("columnCodetype", getColumnCodetype())
/* 195 */ .append("bz", getBz())
/* 196 */ .append("pxx", getPxx())
/* 197 */ .append("lbx", getLbx())
/* 198 */ .append("jmx", getJmx())
/* 199 */ .append("jsx", getJsx())
/* 200 */ .append("mrz", getMrz())
/* 201 */ .toString();
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
import com.archive.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class ColumnFolder
extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
@Excel(name = "字段显示名称")
private String columnName;
@Excel(name = "字段名称")
private String columnCode;
@Excel(name = "字段长度")
private Long columnLength;
@Excel(name = "字段类型", readConverterExp = "数=字、日期、文本")
private String columnType;
@Excel(name = "字段绑定编码")
private String columnCodetype;
@Excel(name = "显示类型")
private String showType;
@Excel(name = "备注")
private String bz;
@Excel(name = "排序项(0:否 1:是)")
private Long pxx;
@Excel(name = "列表项(0:否 1:是)")
private Long lbx;
@Excel(name = "界面项(0:否 1:是)")
private Long jmx;
@Excel(name = "检索项(0:否 1:是)")
private Long jsx;
@Excel(name = "默认值")
private String mrz;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return this.id;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getColumnName() {
return this.columnName;
}
public void setColumnCode(String columnCode) {
this.columnCode = columnCode;
}
public String getColumnCode() {
return this.columnCode;
}
public void setColumnLength(Long columnLength) {
this.columnLength = columnLength;
}
public Long getColumnLength() {
return this.columnLength;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getColumnType() {
return this.columnType;
}
public void setColumnCodetype(String columnCodetype) {
this.columnCodetype = columnCodetype;
}
public String getColumnCodetype() {
return this.columnCodetype;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getBz() {
return this.bz;
}
public void setPxx(Long pxx) {
this.pxx = pxx;
}
public Long getPxx() {
return this.pxx;
}
public void setLbx(Long lbx) {
this.lbx = lbx;
}
public Long getLbx() {
return this.lbx;
}
public void setJmx(Long jmx) {
this.jmx = jmx;
}
public Long getJmx() {
return this.jmx;
}
public void setJsx(Long jsx) {
this.jsx = jsx;
}
public Long getJsx() {
return this.jsx;
}
public void setMrz(String mrz) {
this.mrz = mrz;
}
public String getMrz() {
return this.mrz;
}
public String getShowType() {
return this.showType;
}
public void setShowType(String showType) {
this.showType = showType;
}
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("id", getId())
.append("columnName", getColumnName())
.append("columnCode", getColumnCode())
.append("columnLength", getColumnLength())
.append("columnType", getColumnType())
.append("columnCodetype", getColumnCodetype())
.append("bz", getBz())
.append("pxx", getPxx())
.append("lbx", getLbx())
.append("jmx", getJmx())
.append("jsx", getJsx())
.append("mrz", getMrz())
.toString();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnFolder.class

@ -1,208 +1,208 @@
/* */ package com.archive.project.dasz.basecolumn.domain
package com.archive.project.dasz.basecolumn.domain
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ColumnInfo
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private Long id;
/* */ @Excel(name = "字段显示名称")
/* */ private String columnName;
/* */ @Excel(name = "字段名称")
/* */ private String columnCode;
/* */ @Excel(name = "字段长度")
/* */ private Long columnLength;
/* */ @Excel(name = "字段类型")
/* */ private String columnType;
/* */ @Excel(name = "字段绑定编码")
/* */ private String columnCodetype;
/* */ @Excel(name = "显示类型")
/* */ private String showType;
/* */ @Excel(name = "备注")
/* */ private String bz;
/* */ @Excel(name = "排序项")
/* */ private Long pxx;
/* */ @Excel(name = "列表项")
/* */ private Long lbx;
/* */ @Excel(name = "界面项")
/* */ private Long jmx;
/* */ @Excel(name = "检索项")
/* */ private Long jsx;
/* */ @Excel(name = "默认值")
/* */ private String mrz;
/* */
/* */ public void setId(Long id) {
/* 71 */ this.id = id;
/* */ }
/* */
/* */
/* */ public Long getId() {
/* 76 */ return this.id;
/* */ }
/* */
/* */ public void setColumnName(String columnName) {
/* 80 */ this.columnName = columnName;
/* */ }
/* */
/* */
/* */ public String getColumnName() {
/* 85 */ return this.columnName;
/* */ }
/* */
/* */ public void setColumnCode(String columnCode) {
/* 89 */ this.columnCode = columnCode;
/* */ }
/* */
/* */
/* */ public String getColumnCode() {
/* 94 */ return this.columnCode;
/* */ }
/* */
/* */ public void setColumnLength(Long columnLength) {
/* 98 */ this.columnLength = columnLength;
/* */ }
/* */
/* */
/* */ public Long getColumnLength() {
/* 103 */ return this.columnLength;
/* */ }
/* */
/* */ public void setColumnType(String columnType) {
/* 107 */ this.columnType = columnType;
/* */ }
/* */
/* */
/* */ public String getColumnType() {
/* 112 */ return this.columnType;
/* */ }
/* */
/* */ public void setColumnCodetype(String columnCodetype) {
/* 116 */ this.columnCodetype = columnCodetype;
/* */ }
/* */
/* */
/* */ public String getColumnCodetype() {
/* 121 */ return this.columnCodetype;
/* */ }
/* */
/* */ public void setBz(String bz) {
/* 125 */ this.bz = bz;
/* */ }
/* */
/* */
/* */ public String getBz() {
/* 130 */ return this.bz;
/* */ }
/* */
/* */ public void setPxx(Long pxx) {
/* 134 */ this.pxx = pxx;
/* */ }
/* */
/* */
/* */ public Long getPxx() {
/* 139 */ return this.pxx;
/* */ }
/* */
/* */ public void setLbx(Long lbx) {
/* 143 */ this.lbx = lbx;
/* */ }
/* */
/* */
/* */ public Long getLbx() {
/* 148 */ return this.lbx;
/* */ }
/* */
/* */ public void setJmx(Long jmx) {
/* 152 */ this.jmx = jmx;
/* */ }
/* */
/* */
/* */ public Long getJmx() {
/* 157 */ return this.jmx;
/* */ }
/* */
/* */ public void setJsx(Long jsx) {
/* 161 */ this.jsx = jsx;
/* */ }
/* */
/* */
/* */ public Long getJsx() {
/* 166 */ return this.jsx;
/* */ }
/* */
/* */ public void setMrz(String mrz) {
/* 170 */ this.mrz = mrz;
/* */ }
/* */
/* */
/* */ public String getMrz() {
/* 175 */ return this.mrz;
/* */ }
/* */
/* */ public String getShowType() {
/* 179 */ return this.showType;
/* */ }
/* */
/* */ public void setShowType(String showType) {
/* 183 */ this.showType = showType;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 189 */ .append("id", getId())
/* 190 */ .append("columnName", getColumnName())
/* 191 */ .append("columnCode", getColumnCode())
/* 192 */ .append("columnLength", getColumnLength())
/* 193 */ .append("columnType", getColumnType())
/* 194 */ .append("columnCodetype", getColumnCodetype())
/* 195 */ .append("bz", getBz())
/* 196 */ .append("pxx", getPxx())
/* 197 */ .append("lbx", getLbx())
/* 198 */ .append("jmx", getJmx())
/* 199 */ .append("jsx", getJsx())
/* 200 */ .append("mrz", getMrz())
/* 201 */ .toString();
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
import com.archive.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class ColumnInfo
extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
@Excel(name = "字段显示名称")
private String columnName;
@Excel(name = "字段名称")
private String columnCode;
@Excel(name = "字段长度")
private Long columnLength;
@Excel(name = "字段类型")
private String columnType;
@Excel(name = "字段绑定编码")
private String columnCodetype;
@Excel(name = "显示类型")
private String showType;
@Excel(name = "备注")
private String bz;
@Excel(name = "排序项")
private Long pxx;
@Excel(name = "列表项")
private Long lbx;
@Excel(name = "界面项")
private Long jmx;
@Excel(name = "检索项")
private Long jsx;
@Excel(name = "默认值")
private String mrz;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return this.id;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getColumnName() {
return this.columnName;
}
public void setColumnCode(String columnCode) {
this.columnCode = columnCode;
}
public String getColumnCode() {
return this.columnCode;
}
public void setColumnLength(Long columnLength) {
this.columnLength = columnLength;
}
public Long getColumnLength() {
return this.columnLength;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getColumnType() {
return this.columnType;
}
public void setColumnCodetype(String columnCodetype) {
this.columnCodetype = columnCodetype;
}
public String getColumnCodetype() {
return this.columnCodetype;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getBz() {
return this.bz;
}
public void setPxx(Long pxx) {
this.pxx = pxx;
}
public Long getPxx() {
return this.pxx;
}
public void setLbx(Long lbx) {
this.lbx = lbx;
}
public Long getLbx() {
return this.lbx;
}
public void setJmx(Long jmx) {
this.jmx = jmx;
}
public Long getJmx() {
return this.jmx;
}
public void setJsx(Long jsx) {
this.jsx = jsx;
}
public Long getJsx() {
return this.jsx;
}
public void setMrz(String mrz) {
this.mrz = mrz;
}
public String getMrz() {
return this.mrz;
}
public String getShowType() {
return this.showType;
}
public void setShowType(String showType) {
this.showType = showType;
}
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("id", getId())
.append("columnName", getColumnName())
.append("columnCode", getColumnCode())
.append("columnLength", getColumnLength())
.append("columnType", getColumnType())
.append("columnCodetype", getColumnCodetype())
.append("bz", getBz())
.append("pxx", getPxx())
.append("lbx", getLbx())
.append("jmx", getJmx())
.append("jsx", getJsx())
.append("mrz", getMrz())
.toString();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnInfo.class

@ -1,113 +1,113 @@
/* */ package com.archive.project.dasz.basecolumn.service.impl
package com.archive.project.dasz.basecolumn.service.impl
;
/* */
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnDocument;
/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnDocumentMapper;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnDocumentService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class ColumnDocumentServiceImpl
/* */ implements IColumnDocumentService
/* */ {
/* */ @Autowired
/* */ private ColumnDocumentMapper columnDocumentMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public ColumnDocument selectColumnDocumentById(Long id) {
/* 38 */ return this.columnDocumentMapper.selectColumnDocumentById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<ColumnDocument> selectColumnDocumentList(ColumnDocument columnDocument) {
/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 51 */ return this.columnDocumentMapper.selectColumnDocumentList(columnDocument);
/* */ }
/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 54 */ return this.columnDocumentMapper.selectColumnDocumentListSqlite(columnDocument);
/* */ }
/* 56 */ return this.columnDocumentMapper.selectColumnDocumentList(columnDocument);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertColumnDocument(ColumnDocument columnDocument) {
/* 70 */ return this.columnDocumentMapper.insertColumnDocument(columnDocument);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateColumnDocument(ColumnDocument columnDocument) {
/* 82 */ return this.columnDocumentMapper.updateColumnDocument(columnDocument);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnDocumentByIds(String ids) {
/* 94 */ return this.columnDocumentMapper.deleteColumnDocumentByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnDocumentById(Long id) {
/* 106 */ return this.columnDocumentMapper.deleteColumnDocumentById(id);
/* */ }
/* */ }
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.dasz.basecolumn.domain.ColumnDocument;
import com.archive.project.dasz.basecolumn.mapper.ColumnDocumentMapper;
import com.archive.project.dasz.basecolumn.service.IColumnDocumentService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ColumnDocumentServiceImpl
implements IColumnDocumentService
{
@Autowired
private ColumnDocumentMapper columnDocumentMapper;
@Autowired
private ArchiveConfig archiveConfig;
public ColumnDocument selectColumnDocumentById(Long id) {
return this.columnDocumentMapper.selectColumnDocumentById(id);
}
public List<ColumnDocument> selectColumnDocumentList(ColumnDocument columnDocument) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.columnDocumentMapper.selectColumnDocumentList(columnDocument);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.columnDocumentMapper.selectColumnDocumentListSqlite(columnDocument);
}
return this.columnDocumentMapper.selectColumnDocumentList(columnDocument);
}
public int insertColumnDocument(ColumnDocument columnDocument) {
return this.columnDocumentMapper.insertColumnDocument(columnDocument);
}
public int updateColumnDocument(ColumnDocument columnDocument) {
return this.columnDocumentMapper.updateColumnDocument(columnDocument);
}
public int deleteColumnDocumentByIds(String ids) {
return this.columnDocumentMapper.deleteColumnDocumentByIds(Convert.toStrArray(ids));
}
public int deleteColumnDocumentById(Long id) {
return this.columnDocumentMapper.deleteColumnDocumentById(id);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnDocumentServiceImpl.class

@ -1,113 +1,113 @@
/* */ package com.archive.project.dasz.basecolumn.service.impl
package com.archive.project.dasz.basecolumn.service.impl
;
/* */
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFile;
/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnFileMapper;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnFileService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class ColumnFileServiceImpl
/* */ implements IColumnFileService
/* */ {
/* */ @Autowired
/* */ private ColumnFileMapper columnFileMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public ColumnFile selectColumnFileById(Long id) {
/* 38 */ return this.columnFileMapper.selectColumnFileById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<ColumnFile> selectColumnFileList(ColumnFile columnFile) {
/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 51 */ return this.columnFileMapper.selectColumnFileList(columnFile);
/* */ }
/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 54 */ return this.columnFileMapper.selectColumnFileListSqlite(columnFile);
/* */ }
/* 56 */ return this.columnFileMapper.selectColumnFileList(columnFile);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertColumnFile(ColumnFile columnFile) {
/* 70 */ return this.columnFileMapper.insertColumnFile(columnFile);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateColumnFile(ColumnFile columnFile) {
/* 82 */ return this.columnFileMapper.updateColumnFile(columnFile);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnFileByIds(String ids) {
/* 94 */ return this.columnFileMapper.deleteColumnFileByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnFileById(Long id) {
/* 106 */ return this.columnFileMapper.deleteColumnFileById(id);
/* */ }
/* */ }
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.dasz.basecolumn.domain.ColumnFile;
import com.archive.project.dasz.basecolumn.mapper.ColumnFileMapper;
import com.archive.project.dasz.basecolumn.service.IColumnFileService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ColumnFileServiceImpl
implements IColumnFileService
{
@Autowired
private ColumnFileMapper columnFileMapper;
@Autowired
private ArchiveConfig archiveConfig;
public ColumnFile selectColumnFileById(Long id) {
return this.columnFileMapper.selectColumnFileById(id);
}
public List<ColumnFile> selectColumnFileList(ColumnFile columnFile) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.columnFileMapper.selectColumnFileList(columnFile);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.columnFileMapper.selectColumnFileListSqlite(columnFile);
}
return this.columnFileMapper.selectColumnFileList(columnFile);
}
public int insertColumnFile(ColumnFile columnFile) {
return this.columnFileMapper.insertColumnFile(columnFile);
}
public int updateColumnFile(ColumnFile columnFile) {
return this.columnFileMapper.updateColumnFile(columnFile);
}
public int deleteColumnFileByIds(String ids) {
return this.columnFileMapper.deleteColumnFileByIds(Convert.toStrArray(ids));
}
public int deleteColumnFileById(Long id) {
return this.columnFileMapper.deleteColumnFileById(id);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnFileServiceImpl.class

@ -1,113 +1,113 @@
/* */ package com.archive.project.dasz.basecolumn.service.impl
package com.archive.project.dasz.basecolumn.service.impl
;
/* */
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFolder;
/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnFolderMapper;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnFolderService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class ColumnFolderServiceImpl
/* */ implements IColumnFolderService
/* */ {
/* */ @Autowired
/* */ private ColumnFolderMapper columnFolderMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public ColumnFolder selectColumnFolderById(Long id) {
/* 38 */ return this.columnFolderMapper.selectColumnFolderById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<ColumnFolder> selectColumnFolderList(ColumnFolder columnFolder) {
/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 51 */ return this.columnFolderMapper.selectColumnFolderList(columnFolder);
/* */ }
/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 54 */ return this.columnFolderMapper.selectColumnFolderListSqlite(columnFolder);
/* */ }
/* 56 */ return this.columnFolderMapper.selectColumnFolderList(columnFolder);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertColumnFolder(ColumnFolder columnFolder) {
/* 70 */ return this.columnFolderMapper.insertColumnFolder(columnFolder);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateColumnFolder(ColumnFolder columnFolder) {
/* 82 */ return this.columnFolderMapper.updateColumnFolder(columnFolder);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnFolderByIds(String ids) {
/* 94 */ return this.columnFolderMapper.deleteColumnFolderByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnFolderById(Long id) {
/* 106 */ return this.columnFolderMapper.deleteColumnFolderById(id);
/* */ }
/* */ }
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.dasz.basecolumn.domain.ColumnFolder;
import com.archive.project.dasz.basecolumn.mapper.ColumnFolderMapper;
import com.archive.project.dasz.basecolumn.service.IColumnFolderService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ColumnFolderServiceImpl
implements IColumnFolderService
{
@Autowired
private ColumnFolderMapper columnFolderMapper;
@Autowired
private ArchiveConfig archiveConfig;
public ColumnFolder selectColumnFolderById(Long id) {
return this.columnFolderMapper.selectColumnFolderById(id);
}
public List<ColumnFolder> selectColumnFolderList(ColumnFolder columnFolder) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.columnFolderMapper.selectColumnFolderList(columnFolder);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.columnFolderMapper.selectColumnFolderListSqlite(columnFolder);
}
return this.columnFolderMapper.selectColumnFolderList(columnFolder);
}
public int insertColumnFolder(ColumnFolder columnFolder) {
return this.columnFolderMapper.insertColumnFolder(columnFolder);
}
public int updateColumnFolder(ColumnFolder columnFolder) {
return this.columnFolderMapper.updateColumnFolder(columnFolder);
}
public int deleteColumnFolderByIds(String ids) {
return this.columnFolderMapper.deleteColumnFolderByIds(Convert.toStrArray(ids));
}
public int deleteColumnFolderById(Long id) {
return this.columnFolderMapper.deleteColumnFolderById(id);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnFolderServiceImpl.class

@ -1,112 +1,112 @@
/* */ package com.archive.project.dasz.basecolumn.service.impl
package com.archive.project.dasz.basecolumn.service.impl
;
/* */
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnInfo;
/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnInfoMapper;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnInfoService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class ColumnInfoServiceImpl
/* */ implements IColumnInfoService
/* */ {
/* */ @Autowired
/* */ private ColumnInfoMapper columnInfoMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public ColumnInfo selectColumnInfoById(Long id) {
/* 37 */ return this.columnInfoMapper.selectColumnInfoById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<ColumnInfo> selectColumnInfoList(ColumnInfo columnInfo) {
/* 49 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 50 */ return this.columnInfoMapper.selectColumnInfoList(columnInfo);
/* */ }
/* 52 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 53 */ return this.columnInfoMapper.selectColumnInfoListSqlite(columnInfo);
/* */ }
/* 55 */ return this.columnInfoMapper.selectColumnInfoList(columnInfo);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertColumnInfo(ColumnInfo columnInfo) {
/* 69 */ return this.columnInfoMapper.insertColumnInfo(columnInfo);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateColumnInfo(ColumnInfo columnInfo) {
/* 81 */ return this.columnInfoMapper.updateColumnInfo(columnInfo);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnInfoByIds(String ids) {
/* 93 */ return this.columnInfoMapper.deleteColumnInfoByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteColumnInfoById(Long id) {
/* 105 */ return this.columnInfoMapper.deleteColumnInfoById(id);
/* */ }
/* */ }
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.dasz.basecolumn.domain.ColumnInfo;
import com.archive.project.dasz.basecolumn.mapper.ColumnInfoMapper;
import com.archive.project.dasz.basecolumn.service.IColumnInfoService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ColumnInfoServiceImpl
implements IColumnInfoService
{
@Autowired
private ColumnInfoMapper columnInfoMapper;
@Autowired
private ArchiveConfig archiveConfig;
public ColumnInfo selectColumnInfoById(Long id) {
return this.columnInfoMapper.selectColumnInfoById(id);
}
public List<ColumnInfo> selectColumnInfoList(ColumnInfo columnInfo) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.columnInfoMapper.selectColumnInfoList(columnInfo);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.columnInfoMapper.selectColumnInfoListSqlite(columnInfo);
}
return this.columnInfoMapper.selectColumnInfoList(columnInfo);
}
public int insertColumnInfo(ColumnInfo columnInfo) {
return this.columnInfoMapper.insertColumnInfo(columnInfo);
}
public int updateColumnInfo(ColumnInfo columnInfo) {
return this.columnInfoMapper.updateColumnInfo(columnInfo);
}
public int deleteColumnInfoByIds(String ids) {
return this.columnInfoMapper.deleteColumnInfoByIds(Convert.toStrArray(ids));
}
public int deleteColumnInfoById(Long id) {
return this.columnInfoMapper.deleteColumnInfoById(id);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnInfoServiceImpl.class

@ -1,159 +1,159 @@
/* */ package com.archive.project.system.config.controller
package com.archive.project.system.config.controller
;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.system.config.domain.Config;
/* */ import com.archive.project.system.config.service.IConfigService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.validation.annotation.Validated;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/system/config"})
/* */ public class ConfigController
/* */ extends BaseController
/* */ {
/* 33 */ private String prefix = "system/config";
/* */
/* */ @Autowired
/* */ private IConfigService configService;
/* */
/* */
/* */ @RequiresPermissions({"system:config:view"})
/* */ @GetMapping
/* */ public String config() {
/* 42 */ return this.prefix + "/config";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:config:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(Config config) {
/* 53 */ startPage();
/* 54 */ List<Config> list = this.configService.selectConfigList(config);
/* 55 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */ @Log(title = "参数管理", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"system:config:export"})
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(Config config) {
/* 64 */ List<Config> list = this.configService.selectConfigList(config);
/* 65 */ ExcelUtil<Config> util = new ExcelUtil(Config.class);
/* 66 */ return util.exportExcel(list, "参数数据");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add() {
/* 75 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:config:add"})
/* */ @Log(title = "参数管理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(@Validated Config config) {
/* 87 */ if ("1".equals(this.configService.checkConfigKeyUnique(config)))
/* */ {
/* 89 */ return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
/* */ }
/* 91 */ return toAjax(this.configService.insertConfig(config));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{configId}"})
/* */ public String edit(@PathVariable("configId") Long configId, ModelMap mmap) {
/* 100 */ mmap.put("config", this.configService.selectConfigById(configId));
/* 101 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:config:edit"})
/* */ @Log(title = "参数管理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(@Validated Config config) {
/* 113 */ if ("1".equals(this.configService.checkConfigKeyUnique(config)))
/* */ {
/* 115 */ return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在");
/* */ }
/* 117 */ return toAjax(this.configService.updateConfig(config));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:config:remove"})
/* */ @Log(title = "参数管理", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 129 */ return toAjax(this.configService.deleteConfigByIds(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:config:remove"})
/* */ @Log(title = "参数管理", businessType = BusinessType.CLEAN)
/* */ @GetMapping({"/clearCache"})
/* */ @ResponseBody
/* */ public AjaxResult clearCache() {
/* 141 */ this.configService.clearCache();
/* 142 */ return success();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkConfigKeyUnique"})
/* */ @ResponseBody
/* */ public String checkConfigKeyUnique(Config config) {
/* 152 */ return this.configService.checkConfigKeyUnique(config);
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.system.config.domain.Config;
import com.archive.project.system.config.service.IConfigService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/system/config"})
public class ConfigController
extends BaseController
{
private String prefix = "system/config";
@Autowired
private IConfigService configService;
@RequiresPermissions({"system:config:view"})
@GetMapping
public String config() {
return this.prefix + "/config";
}
@RequiresPermissions({"system:config:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(Config config) {
startPage();
List<Config> list = this.configService.selectConfigList(config);
return getDataTable(list);
}
@Log(title = "参数管理", businessType = BusinessType.EXPORT)
@RequiresPermissions({"system:config:export"})
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(Config config) {
List<Config> list = this.configService.selectConfigList(config);
ExcelUtil<Config> util = new ExcelUtil(Config.class);
return util.exportExcel(list, "参数数据");
}
@GetMapping({"/add"})
public String add() {
return this.prefix + "/add";
}
@RequiresPermissions({"system:config:add"})
@Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(@Validated Config config) {
if ("1".equals(this.configService.checkConfigKeyUnique(config)))
{
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
}
return toAjax(this.configService.insertConfig(config));
}
@GetMapping({"/edit/{configId}"})
public String edit(@PathVariable("configId") Long configId, ModelMap mmap) {
mmap.put("config", this.configService.selectConfigById(configId));
return this.prefix + "/edit";
}
@RequiresPermissions({"system:config:edit"})
@Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(@Validated Config config) {
if ("1".equals(this.configService.checkConfigKeyUnique(config)))
{
return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在");
}
return toAjax(this.configService.updateConfig(config));
}
@RequiresPermissions({"system:config:remove"})
@Log(title = "参数管理", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.configService.deleteConfigByIds(ids));
}
@RequiresPermissions({"system:config:remove"})
@Log(title = "参数管理", businessType = BusinessType.CLEAN)
@GetMapping({"/clearCache"})
@ResponseBody
public AjaxResult clearCache() {
this.configService.clearCache();
return success();
}
@PostMapping({"/checkConfigKeyUnique"})
@ResponseBody
public String checkConfigKeyUnique(Config config) {
return this.configService.checkConfigKeyUnique(config);
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\controller\ConfigController.class

@ -1,116 +1,116 @@
/* */ package com.archive.project.system.config.domain
package com.archive.project.system.config.domain
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType;
import com.archive.framework.aspectj.lang.annotation.ColumnType;
import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity;
/* */ import javax.validation.constraints.NotBlank;
/* */ import javax.validation.constraints.Size;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Config
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ @Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
/* */ private Long configId;
/* */ @Excel(name = "参数名称")
/* */ private String configName;
/* */ @Excel(name = "参数键名")
/* */ private String configKey;
/* */ @Excel(name = "参数键值")
/* */ private String configValue;
/* */ @Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
/* */ private String configType;
/* */
/* */ public Long getConfigId() {
/* 41 */ return this.configId;
/* */ }
/* */
/* */
/* */ public void setConfigId(Long configId) {
/* 46 */ this.configId = configId;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "参数名称不能为空")
/* */ @Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
/* */ public String getConfigName() {
/* 53 */ return this.configName;
/* */ }
/* */
/* */
/* */ public void setConfigName(String configName) {
/* 58 */ this.configName = configName;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "参数键名长度不能为空")
/* */ @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
/* */ public String getConfigKey() {
/* 65 */ return this.configKey;
/* */ }
/* */
/* */
/* */ public void setConfigKey(String configKey) {
/* 70 */ this.configKey = configKey;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "参数键值不能为空")
/* */ @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
/* */ public String getConfigValue() {
/* 77 */ return this.configValue;
/* */ }
/* */
/* */
/* */ public void setConfigValue(String configValue) {
/* 82 */ this.configValue = configValue;
/* */ }
/* */
/* */
/* */ public String getConfigType() {
/* 87 */ return this.configType;
/* */ }
/* */
/* */
/* */ public void setConfigType(String configType) {
/* 92 */ this.configType = configType;
/* */ }
/* */
/* */ @Override
/* */ public String toString() {
/* 97 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 98 */ .append("configId", getConfigId())
/* 99 */ .append("configName", getConfigName())
/* 100 */ .append("configKey", getConfigKey())
/* 101 */ .append("configValue", getConfigValue())
/* 102 */ .append("configType", getConfigType())
/* 103 */ .append("createBy", getCreateBy())
/* 104 */ .append("createTime", getCreateTime())
/* 105 */ .append("updateBy", getUpdateBy())
/* 106 */ .append("updateTime", getUpdateTime())
/* 107 */ .append("remark", getRemark())
/* 108 */ .toString();
/* */ }
/* */ }
import com.archive.framework.web.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class Config
extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
private Long configId;
@Excel(name = "参数名称")
private String configName;
@Excel(name = "参数键名")
private String configKey;
@Excel(name = "参数键值")
private String configValue;
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
private String configType;
public Long getConfigId() {
return this.configId;
}
public void setConfigId(Long configId) {
this.configId = configId;
}
@NotBlank(message = "参数名称不能为空")
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
public String getConfigName() {
return this.configName;
}
public void setConfigName(String configName) {
this.configName = configName;
}
@NotBlank(message = "参数键名长度不能为空")
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
public String getConfigKey() {
return this.configKey;
}
public void setConfigKey(String configKey) {
this.configKey = configKey;
}
@NotBlank(message = "参数键值不能为空")
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
public String getConfigValue() {
return this.configValue;
}
public void setConfigValue(String configValue) {
this.configValue = configValue;
}
public String getConfigType() {
return this.configType;
}
public void setConfigType(String configType) {
this.configType = configType;
}
@Override
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("configId", getConfigId())
.append("configName", getConfigName())
.append("configKey", getConfigKey())
.append("configValue", getConfigValue())
.append("configType", getConfigType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\domain\Config.class

@ -1,233 +1,233 @@
/* */ package com.archive.project.system.config.service
package com.archive.project.system.config.service
;
/* */
/* */ import com.archive.common.exception.BusinessException;
/* */ import com.archive.common.utils.CacheUtils;
/* */ import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.system.config.domain.Config;
/* */ import com.archive.project.system.config.mapper.ConfigMapper;
/* */ import com.archive.project.system.config.service.IConfigService;
/* */ import java.util.List;
/* */ import javax.annotation.PostConstruct;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class ConfigServiceImpl
/* */ implements IConfigService
/* */ {
/* */ @Autowired
/* */ private ConfigMapper configMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ @PostConstruct
/* */ public void init() {
/* 39 */ List<Config> configsList = this.configMapper.selectConfigList(new Config());
/* 40 */ for (Config config : configsList)
/* */ {
/* 42 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Config selectConfigById(Long configId) {
/* 55 */ Config config = new Config();
/* 56 */ config.setConfigId(configId);
/* 57 */ return this.configMapper.selectConfig(config);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String selectConfigByKey(String configKey) {
/* 69 */ String configValue = Convert.toStr(CacheUtils.get(getCacheName(), getCacheKey(configKey)));
/* 70 */ if (StringUtils.isNotEmpty(configValue))
/* */ {
/* 72 */ return configValue;
/* */ }
/* 74 */ Config config = new Config();
/* 75 */ config.setConfigKey(configKey);
/* 76 */ Config retConfig = this.configMapper.selectConfig(config);
/* 77 */ if (StringUtils.isNotNull(retConfig)) {
/* */
/* 79 */ CacheUtils.put(getCacheName(), getCacheKey(configKey), retConfig.getConfigValue());
/* 80 */ return retConfig.getConfigValue();
/* */ }
/* 82 */ return "";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Config> selectConfigList(Config config) {
/* 94 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 95 */ return this.configMapper.selectConfigList(config);
/* */ }
/* 97 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 98 */ return this.configMapper.selectConfigListSqlite(config);
/* */ }
/* 100 */ return this.configMapper.selectConfigList(config);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertConfig(Config config) {
/* 114 */ config.setCreateBy(ShiroUtils.getLoginName());
/* */
/* 116 */ int row = 0;
/* 117 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 118 */ row = this.configMapper.insertConfig(config);
/* 119 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 120 */ row = this.configMapper.insertConfigSqlite(config);
/* */ }
/* */
/* 123 */ if (row > 0)
/* */ {
/* 125 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
/* */ }
/* 127 */ return row;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateConfig(Config config) {
/* 139 */ config.setUpdateBy(ShiroUtils.getLoginName());
/* 140 */ int row = 0;
/* 141 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 142 */ row = this.configMapper.updateConfig(config);
/* 143 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 144 */ row = this.configMapper.updateConfigSqlite(config);
/* */ }
/* */
/* 147 */ if (row > 0)
/* */ {
/* 149 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
/* */ }
/* 151 */ return row;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteConfigByIds(String ids) {
/* 163 */ Long[] configIds = Convert.toLongArray(ids);
/* 164 */ for (Long configId : configIds) {
/* */
/* 166 */ Config config = selectConfigById(configId);
/* 167 */ if (StringUtils.equals("Y", config.getConfigType()))
/* */ {
/* 169 */ throw new BusinessException(String.format("内置参数【%1$s】不能删除 ", new Object[] { config.getConfigKey() }));
/* */ }
/* */ }
/* 172 */ int count = this.configMapper.deleteConfigByIds(Convert.toStrArray(ids));
/* 173 */ if (count > 0)
/* */ {
/* */
/* 176 */ CacheUtils.removeAll(getCacheName());
/* */ }
/* 178 */ return count;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void clearCache() {
/* 187 */ CacheUtils.removeAll(getCacheName());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkConfigKeyUnique(Config config) {
/* 199 */ Long configId = Long.valueOf(StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId().longValue());
/* 200 */ Config info = this.configMapper.checkConfigKeyUnique(config.getConfigKey());
/* 201 */ if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue())
/* */ {
/* 203 */ return "1";
/* */ }
/* 205 */ return "0";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private String getCacheName() {
/* 215 */ return "sys-config";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private String getCacheKey(String configKey) {
/* 226 */ return "sys_config:" + configKey;
/* */ }
/* */ }
import com.archive.common.exception.BusinessException;
import com.archive.common.utils.CacheUtils;
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.security.ShiroUtils;
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.system.config.domain.Config;
import com.archive.project.system.config.mapper.ConfigMapper;
import com.archive.project.system.config.service.IConfigService;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ConfigServiceImpl
implements IConfigService
{
@Autowired
private ConfigMapper configMapper;
@Autowired
private ArchiveConfig archiveConfig;
@PostConstruct
public void init() {
List<Config> configsList = this.configMapper.selectConfigList(new Config());
for (Config config : configsList)
{
CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
}
}
public Config selectConfigById(Long configId) {
Config config = new Config();
config.setConfigId(configId);
return this.configMapper.selectConfig(config);
}
public String selectConfigByKey(String configKey) {
String configValue = Convert.toStr(CacheUtils.get(getCacheName(), getCacheKey(configKey)));
if (StringUtils.isNotEmpty(configValue))
{
return configValue;
}
Config config = new Config();
config.setConfigKey(configKey);
Config retConfig = this.configMapper.selectConfig(config);
if (StringUtils.isNotNull(retConfig)) {
CacheUtils.put(getCacheName(), getCacheKey(configKey), retConfig.getConfigValue());
return retConfig.getConfigValue();
}
return "";
}
public List<Config> selectConfigList(Config config) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.configMapper.selectConfigList(config);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.configMapper.selectConfigListSqlite(config);
}
return this.configMapper.selectConfigList(config);
}
public int insertConfig(Config config) {
config.setCreateBy(ShiroUtils.getLoginName());
int row = 0;
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
row = this.configMapper.insertConfig(config);
} else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
row = this.configMapper.insertConfigSqlite(config);
}
if (row > 0)
{
CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
}
return row;
}
public int updateConfig(Config config) {
config.setUpdateBy(ShiroUtils.getLoginName());
int row = 0;
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
row = this.configMapper.updateConfig(config);
} else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
row = this.configMapper.updateConfigSqlite(config);
}
if (row > 0)
{
CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue());
}
return row;
}
public int deleteConfigByIds(String ids) {
Long[] configIds = Convert.toLongArray(ids);
for (Long configId : configIds) {
Config config = selectConfigById(configId);
if (StringUtils.equals("Y", config.getConfigType()))
{
throw new BusinessException(String.format("内置参数【%1$s】不能删除 ", new Object[] { config.getConfigKey() }));
}
}
int count = this.configMapper.deleteConfigByIds(Convert.toStrArray(ids));
if (count > 0)
{
CacheUtils.removeAll(getCacheName());
}
return count;
}
public void clearCache() {
CacheUtils.removeAll(getCacheName());
}
public String checkConfigKeyUnique(Config config) {
Long configId = Long.valueOf(StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId().longValue());
Config info = this.configMapper.checkConfigKeyUnique(config.getConfigKey());
if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue())
{
return "1";
}
return "0";
}
private String getCacheName() {
return "sys-config";
}
private String getCacheKey(String configKey) {
return "sys_config:" + configKey;
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\service\ConfigServiceImpl.class

Loading…
Cancel
Save