feat:修改文件栏目传输

dev
wangxy 8 months ago
parent a54694671a
commit 987f0c3622

@ -1,33 +1,33 @@
/* */ package com.archive.common.exception; package com.archive.common.exception;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class BusinessException public class BusinessException
/* */ extends RuntimeException extends RuntimeException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ protected final String message; protected final String message;
/* */
/* */ public BusinessException(String message) { public BusinessException(String message) {
/* 16 */ this.message = message; this.message = message;
/* */ } }
/* */
/* */
/* */ public BusinessException(String message, Throwable e) { public BusinessException(String message, Throwable e) {
/* 21 */ super(message, e); super(message, e);
/* 22 */ this.message = message; this.message = message;
/* */ } }
/* */
/* */
/* */
/* */ public String getMessage() { public String getMessage() {
/* 28 */ return this.message; return this.message;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\BusinessException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\BusinessException.class

@ -1,36 +1,36 @@
/* */ package com.archive.common.exception.job; package com.archive.common.exception.job;
/* */
/* */ import com.archive.common.exception.job.TaskException; import com.archive.common.exception.job.TaskException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum Code public enum Code
/* */ { {
/* 32 */ TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE; TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE;
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\job\TaskException$Code.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\job\TaskException$Code.class

@ -1,19 +1,19 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.user.UserException; import com.archive.common.exception.user.UserException;
/* */
/* */
/* */
/* */
/* */ public class CaptchaException public class CaptchaException
/* */ extends UserException extends UserException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public CaptchaException() { public CaptchaException() {
/* 14 */ super("user.jcaptcha.error", null); super("user.jcaptcha.error", null);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\CaptchaException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\CaptchaException.class

@ -1,202 +1,202 @@
/* */ package com.archive.common.utils package com.archive.common.utils
; ;
/* */
/* */ import com.archive.common.utils.spring.SpringUtils; import com.archive.common.utils.spring.SpringUtils;
/* */ import java.util.Iterator; import java.util.Iterator;
/* */ import java.util.Set; import java.util.Set;
/* */ import org.apache.shiro.cache.Cache; import org.apache.shiro.cache.Cache;
/* */ import org.apache.shiro.cache.CacheManager; import org.apache.shiro.cache.CacheManager;
/* */ import org.apache.shiro.cache.ehcache.EhCacheManager; import org.apache.shiro.cache.ehcache.EhCacheManager;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class CacheUtils public class CacheUtils
/* */ { {
/* 19 */ private static Logger logger = LoggerFactory.getLogger(com.archive.common.utils.CacheUtils.class); private static Logger logger = LoggerFactory.getLogger(com.archive.common.utils.CacheUtils.class);
/* */
/* 21 */ private static CacheManager cacheManager = (CacheManager)SpringUtils.getBean(CacheManager.class); private static CacheManager cacheManager = (CacheManager)SpringUtils.getBean(CacheManager.class);
/* */
/* */
/* */
/* */
/* */ private static final String SYS_CACHE = "sys-cache"; private static final String SYS_CACHE = "sys-cache";
/* */
/* */
/* */
/* */
/* */
/* */ public static Object get(String key) { public static Object get(String key) {
/* 33 */ return get("sys-cache", key); return get("sys-cache", key);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Object get(String key, Object defaultValue) { public static Object get(String key, Object defaultValue) {
/* 45 */ Object value = get(key); Object value = get(key);
/* 46 */ return (value != null) ? value : defaultValue; return (value != null) ? value : defaultValue;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void put(String key, Object value) { public static void put(String key, Object value) {
/* 57 */ put("sys-cache", key, value); put("sys-cache", key, value);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void remove(String key) { public static void remove(String key) {
/* 68 */ remove("sys-cache", key); remove("sys-cache", key);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Object get(String cacheName, String key) { public static Object get(String cacheName, String key) {
/* 80 */ return getCache(cacheName).get(getKey(key)); return getCache(cacheName).get(getKey(key));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Object get(String cacheName, String key, Object defaultValue) { public static Object get(String cacheName, String key, Object defaultValue) {
/* 93 */ Object value = get(cacheName, getKey(key)); Object value = get(cacheName, getKey(key));
/* 94 */ return (value != null) ? value : defaultValue; return (value != null) ? value : defaultValue;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void put(String cacheName, String key, Object value) { public static void put(String cacheName, String key, Object value) {
/* 106 */ getCache(cacheName).put(getKey(key), value); getCache(cacheName).put(getKey(key), value);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void remove(String cacheName, String key) { public static void remove(String cacheName, String key) {
/* 117 */ getCache(cacheName).remove(getKey(key)); getCache(cacheName).remove(getKey(key));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void removeAll(String cacheName) { public static void removeAll(String cacheName) {
/* 127 */ Cache<String, Object> cache = getCache(cacheName); Cache<String, Object> cache = getCache(cacheName);
/* 128 */ Set<String> keys = cache.keys(); Set<String> keys = cache.keys();
/* 129 */ for (Iterator<String> it = keys.iterator(); it.hasNext();) for (Iterator<String> it = keys.iterator(); it.hasNext();)
/* */ { {
/* 131 */ cache.remove(it.next()); cache.remove(it.next());
/* */ } }
/* 133 */ logger.info("清理缓存: {} => {}", cacheName, keys); logger.info("清理缓存: {} => {}", cacheName, keys);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void removeByKeys(Set<String> keys) { public static void removeByKeys(Set<String> keys) {
/* 143 */ removeByKeys("sys-cache", keys); removeByKeys("sys-cache", keys);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void removeByKeys(String cacheName, Set<String> keys) { public static void removeByKeys(String cacheName, Set<String> keys) {
/* 154 */ for (Iterator<String> it = keys.iterator(); it.hasNext();) for (Iterator<String> it = keys.iterator(); it.hasNext();)
/* */ { {
/* 156 */ remove(it.next()); remove(it.next());
/* */ } }
/* 158 */ logger.info("清理缓存: {} => {}", cacheName, keys); logger.info("清理缓存: {} => {}", cacheName, keys);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static String getKey(String key) { private static String getKey(String key) {
/* 169 */ return key; return key;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Cache<String, Object> getCache(String cacheName) { public static Cache<String, Object> getCache(String cacheName) {
/* 180 */ Cache<String, Object> cache = cacheManager.getCache(cacheName); Cache<String, Object> cache = cacheManager.getCache(cacheName);
/* 181 */ if (cache == null) if (cache == null)
/* */ { {
/* 183 */ throw new RuntimeException("当前系统中没有定义“" + cacheName + "”这个缓存。"); throw new RuntimeException("当前系统中没有定义“" + cacheName + "”这个缓存。");
/* */ } }
/* 185 */ return cache; return cache;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String[] getCacheNames() { public static String[] getCacheNames() {
/* 195 */ return ((EhCacheManager)cacheManager).getCacheManager().getCacheNames(); return ((EhCacheManager)cacheManager).getCacheManager().getCacheNames();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\CacheUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\CacheUtils.class

@ -1,23 +1,23 @@
/* */ package com.archive.framework.aspectj.lang.enums; package com.archive.framework.aspectj.lang.enums;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum BusinessStatus public enum BusinessStatus
/* */ { {
/* 14 */ SUCCESS, SUCCESS,
/* */
/* */
/* */
/* */
/* 19 */ FAIL; FAIL;
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessStatus.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessStatus.class

@ -1,79 +1,79 @@
/* */ package com.archive.framework.aspectj.lang.enums; package com.archive.framework.aspectj.lang.enums;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum BusinessType public enum BusinessType
/* */ { {
/* 14 */ OTHER, OTHER,
/* */
/* */
/* */
/* */
/* 19 */ INSERT, INSERT,
/* */
/* */
/* */
/* */
/* 24 */ UPDATE, UPDATE,
/* */
/* */
/* */
/* */
/* 29 */ DELETE, DELETE,
/* */
/* */
/* */
/* 33 */ RESEST, RESEST,
/* */
/* */
/* */
/* */
/* 38 */ GRANT, GRANT,
/* */
/* */
/* */
/* */
/* 43 */ EXPORT, EXPORT,
/* */
/* */
/* */
/* */
/* 48 */ IMPORT, IMPORT,
/* */
/* */
/* */
/* */
/* 53 */ FORCE, FORCE,
/* */
/* */
/* */
/* */
/* 58 */ GENCODE, GENCODE,
/* */
/* */
/* */
/* */
/* 63 */ CLEAN, CLEAN,
/* */
/* */
/* */
/* 67 */ ZLRK, ZLRK,
/* */
/* */
/* */
/* 71 */ THJSK, THJSK,
/* */
/* */
/* */
/* 75 */ BMDY; BMDY;
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessType.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessType.class

@ -1,88 +1,88 @@
/* */ package com.archive.framework.config package com.archive.framework.config
; ;
/* */
/* */ import com.google.code.kaptcha.impl.DefaultKaptcha; import com.google.code.kaptcha.impl.DefaultKaptcha;
/* */ import com.google.code.kaptcha.util.Config; import com.google.code.kaptcha.util.Config;
/* */ import java.util.Properties; import java.util.Properties;
/* */ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
/* */ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Configuration @Configuration
/* */ public class CaptchaConfig public class CaptchaConfig
/* */ { {
/* */ @Bean(name = {"captchaProducer"}) @Bean(name = {"captchaProducer"})
/* */ public DefaultKaptcha getKaptchaBean() { public DefaultKaptcha getKaptchaBean() {
/* 21 */ DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
/* 22 */ Properties properties = new Properties(); Properties properties = new Properties();
/* */
/* 24 */ properties.setProperty("kaptcha.border", "yes"); properties.setProperty("kaptcha.border", "yes");
/* */
/* 26 */ properties.setProperty("kaptcha.textproducer.font.color", "black"); properties.setProperty("kaptcha.textproducer.font.color", "black");
/* */
/* 28 */ properties.setProperty("kaptcha.image.width", "160"); properties.setProperty("kaptcha.image.width", "160");
/* */
/* 30 */ properties.setProperty("kaptcha.image.height", "60"); properties.setProperty("kaptcha.image.height", "60");
/* */
/* 32 */ properties.setProperty("kaptcha.textproducer.font.size", "38"); properties.setProperty("kaptcha.textproducer.font.size", "38");
/* */
/* 34 */ properties.setProperty("kaptcha.session.key", "kaptchaCode"); properties.setProperty("kaptcha.session.key", "kaptchaCode");
/* */
/* 36 */ properties.setProperty("kaptcha.textproducer.char.length", "4"); properties.setProperty("kaptcha.textproducer.char.length", "4");
/* */
/* 38 */ properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier");
/* */
/* 40 */ properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy");
/* 41 */ Config config = new Config(properties); Config config = new Config(properties);
/* 42 */ defaultKaptcha.setConfig(config); defaultKaptcha.setConfig(config);
/* 43 */ return defaultKaptcha; return defaultKaptcha;
/* */ } }
/* */
/* */
/* */ @Bean(name = {"captchaProducerMath"}) @Bean(name = {"captchaProducerMath"})
/* */ public DefaultKaptcha getKaptchaBeanMath() { public DefaultKaptcha getKaptchaBeanMath() {
/* 49 */ DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
/* 50 */ Properties properties = new Properties(); Properties properties = new Properties();
/* */
/* 52 */ properties.setProperty("kaptcha.border", "yes"); properties.setProperty("kaptcha.border", "yes");
/* */
/* 54 */ properties.setProperty("kaptcha.border.color", "105,179,90"); properties.setProperty("kaptcha.border.color", "105,179,90");
/* */
/* 56 */ properties.setProperty("kaptcha.textproducer.font.color", "blue"); properties.setProperty("kaptcha.textproducer.font.color", "blue");
/* */
/* 58 */ properties.setProperty("kaptcha.image.width", "160"); properties.setProperty("kaptcha.image.width", "160");
/* */
/* 60 */ properties.setProperty("kaptcha.image.height", "60"); properties.setProperty("kaptcha.image.height", "60");
/* */
/* 62 */ properties.setProperty("kaptcha.textproducer.font.size", "35"); properties.setProperty("kaptcha.textproducer.font.size", "35");
/* */
/* 64 */ properties.setProperty("kaptcha.session.key", "kaptchaCodeMath"); properties.setProperty("kaptcha.session.key", "kaptchaCodeMath");
/* */
/* 66 */ properties.setProperty("kaptcha.textproducer.impl", "com.archive.framework.config.KaptchaTextCreator"); properties.setProperty("kaptcha.textproducer.impl", "com.archive.framework.config.KaptchaTextCreator");
/* */
/* 68 */ properties.setProperty("kaptcha.textproducer.char.space", "3"); properties.setProperty("kaptcha.textproducer.char.space", "3");
/* */
/* 70 */ properties.setProperty("kaptcha.textproducer.char.length", "6"); properties.setProperty("kaptcha.textproducer.char.length", "6");
/* */
/* 72 */ properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier");
/* */
/* 74 */ properties.setProperty("kaptcha.noise.color", "white"); properties.setProperty("kaptcha.noise.color", "white");
/* */
/* 76 */ properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise"); properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise");
/* */
/* 78 */ properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy");
/* 79 */ Config config = new Config(properties); Config config = new Config(properties);
/* 80 */ defaultKaptcha.setConfig(config); defaultKaptcha.setConfig(config);
/* 81 */ return defaultKaptcha; return defaultKaptcha;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\CaptchaConfig.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\CaptchaConfig.class

@ -1,82 +1,82 @@
/* */ package com.archive.framework.shiro.web.filter.captcha; package com.archive.framework.shiro.web.filter.captcha;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import javax.servlet.ServletRequest; import javax.servlet.ServletRequest;
/* */ import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */ import org.apache.shiro.web.filter.AccessControlFilter; import org.apache.shiro.web.filter.AccessControlFilter;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class CaptchaValidateFilter public class CaptchaValidateFilter
/* */ extends AccessControlFilter extends AccessControlFilter
/* */ { {
/* */ private boolean captchaEnabled = true; private boolean captchaEnabled = true;
/* 27 */ private String captchaType = "math"; private String captchaType = "math";
/* */
/* */
/* */ public void setCaptchaEnabled(boolean captchaEnabled) { public void setCaptchaEnabled(boolean captchaEnabled) {
/* 31 */ this.captchaEnabled = captchaEnabled; this.captchaEnabled = captchaEnabled;
/* */ } }
/* */
/* */
/* */ public void setCaptchaType(String captchaType) { public void setCaptchaType(String captchaType) {
/* 36 */ this.captchaType = captchaType; this.captchaType = captchaType;
/* */ } }
/* */
/* */
/* */
/* */ public boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { public boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception {
/* 42 */ request.setAttribute("captchaEnabled", Boolean.valueOf(this.captchaEnabled)); request.setAttribute("captchaEnabled", Boolean.valueOf(this.captchaEnabled));
/* 43 */ request.setAttribute("captchaType", this.captchaType); request.setAttribute("captchaType", this.captchaType);
/* 44 */ return super.onPreHandle(request, response, mappedValue); return super.onPreHandle(request, response, mappedValue);
/* */ } }
/* */
/* */
/* */
/* */
/* */ protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception {
/* 51 */ HttpServletRequest httpServletRequest = (HttpServletRequest)request; HttpServletRequest httpServletRequest = (HttpServletRequest)request;
/* */
/* 53 */ if (!this.captchaEnabled || !"post".equals(httpServletRequest.getMethod().toLowerCase())) if (!this.captchaEnabled || !"post".equals(httpServletRequest.getMethod().toLowerCase()))
/* */ { {
/* 55 */ return true; return true;
/* */ } }
/* 57 */ return validateResponse(httpServletRequest, httpServletRequest.getParameter("validateCode")); return validateResponse(httpServletRequest, httpServletRequest.getParameter("validateCode"));
/* */ } }
/* */
/* */
/* */ public boolean validateResponse(HttpServletRequest request, String validateCode) { public boolean validateResponse(HttpServletRequest request, String validateCode) {
/* 62 */ Object obj = ShiroUtils.getSession().getAttribute("KAPTCHA_SESSION_KEY"); Object obj = ShiroUtils.getSession().getAttribute("KAPTCHA_SESSION_KEY");
/* 63 */ String code = String.valueOf((obj != null) ? obj : ""); String code = String.valueOf((obj != null) ? obj : "");
/* */
/* 65 */ request.getSession().removeAttribute("KAPTCHA_SESSION_KEY"); request.getSession().removeAttribute("KAPTCHA_SESSION_KEY");
/* 66 */ if (StringUtils.isEmpty(validateCode) || !validateCode.equalsIgnoreCase(code)) if (StringUtils.isEmpty(validateCode) || !validateCode.equalsIgnoreCase(code))
/* */ { {
/* 68 */ return false; return false;
/* */ } }
/* 70 */ return true; return true;
/* */ } }
/* */
/* */
/* */
/* */ protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
/* 76 */ request.setAttribute("captcha", "captchaError"); request.setAttribute("captcha", "captchaError");
/* 77 */ return true; return true;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\captcha\CaptchaValidateFilter.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\captcha\CaptchaValidateFilter.class

@ -1,88 +1,88 @@
/* */ package com.archive.framework.web.service package com.archive.framework.web.service
; ;
/* */
/* */ import com.archive.common.utils.CacheUtils; import com.archive.common.utils.CacheUtils;
/* */ import java.util.Set; import java.util.Set;
/* */ import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class CacheService public class CacheService
/* */ { {
/* */ public String[] getCacheNames() { public String[] getCacheNames() {
/* 24 */ String[] cacheNames = CacheUtils.getCacheNames(); String[] cacheNames = CacheUtils.getCacheNames();
/* 25 */ return (String[])ArrayUtils.removeElement((Object[])cacheNames, "sys-authCache"); return (String[])ArrayUtils.removeElement((Object[])cacheNames, "sys-authCache");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Set<String> getCacheKeys(String cacheName) { public Set<String> getCacheKeys(String cacheName) {
/* 36 */ return CacheUtils.getCache(cacheName).keys(); return CacheUtils.getCache(cacheName).keys();
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Object getCacheValue(String cacheName, String cacheKey) { public Object getCacheValue(String cacheName, String cacheKey) {
/* 48 */ return CacheUtils.get(cacheName, cacheKey); return CacheUtils.get(cacheName, cacheKey);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void clearCacheName(String cacheName) { public void clearCacheName(String cacheName) {
/* 58 */ CacheUtils.removeAll(cacheName); CacheUtils.removeAll(cacheName);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void clearCacheKey(String cacheName, String cacheKey) { public void clearCacheKey(String cacheName, String cacheKey) {
/* 69 */ CacheUtils.remove(cacheName, cacheKey); CacheUtils.remove(cacheName, cacheKey);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ public void clearAll() { public void clearAll() {
/* 77 */ String[] cacheNames = getCacheNames(); String[] cacheNames = getCacheNames();
/* 78 */ for (String cacheName : cacheNames) for (String cacheName : cacheNames)
/* */ { {
/* 80 */ CacheUtils.removeAll(cacheName); CacheUtils.removeAll(cacheName);
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\CacheService.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\CacheService.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.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnDocument; import com.archive.project.dasz.basecolumn.domain.ColumnDocument;
/* */ import com.archive.project.dasz.basecolumn.service.IColumnDocumentService; import com.archive.project.dasz.basecolumn.service.IColumnDocumentService;
/* */ import com.archive.project.system.dict.domain.DictType; import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dasz/basecolumn/columndocument"}) @RequestMapping({"/dasz/basecolumn/columndocument"})
/* */ public class ColumnDocumentController public class ColumnDocumentController
/* */ extends BaseController extends BaseController
/* */ { {
/* 34 */ private String prefix = "dasz/basecolumn/columndocument"; private String prefix = "dasz/basecolumn/columndocument";
/* */
/* */ @Autowired @Autowired
/* */ private IColumnDocumentService columnDocumentService; private IColumnDocumentService columnDocumentService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:view"}) @RequiresPermissions({"dasz:columndocument:view"})
/* */ @GetMapping @GetMapping
/* */ public String document(ModelMap mmap) { public String document(ModelMap mmap) {
/* 46 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 47 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 48 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 49 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 50 */ return this.prefix + "/document"; return this.prefix + "/document";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:list"}) @RequiresPermissions({"dasz:columndocument:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(ColumnDocument columnDocument) { public TableDataInfo list(ColumnDocument columnDocument) {
/* 61 */ startPage(); startPage();
/* 62 */ List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument); List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
/* 63 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:export"}) @RequiresPermissions({"dasz:columndocument:export"})
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT) @Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(ColumnDocument columnDocument) { public AjaxResult export(ColumnDocument columnDocument) {
/* 75 */ List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument); List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
/* 76 */ ExcelUtil<ColumnDocument> util = new ExcelUtil(ColumnDocument.class); ExcelUtil<ColumnDocument> util = new ExcelUtil(ColumnDocument.class);
/* 77 */ return util.exportExcel(list, "document"); return util.exportExcel(list, "document");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add(ModelMap mmap) { public String add(ModelMap mmap) {
/* 86 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 87 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 88 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 89 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 90 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:add"}) @RequiresPermissions({"dasz:columndocument:add"})
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.INSERT) @Log(title = "电子文件基础字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(ColumnDocument columnDocument) { public AjaxResult addSave(ColumnDocument columnDocument) {
/* 102 */ return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument)); return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 111 */ ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id); ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id);
/* 112 */ mmap.put("columnDocument", columnDocument); mmap.put("columnDocument", columnDocument);
/* 113 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 114 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 115 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 116 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 117 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:edit"}) @RequiresPermissions({"dasz:columndocument:edit"})
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE) @Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(ColumnDocument columnDocument) { public AjaxResult editSave(ColumnDocument columnDocument) {
/* 129 */ return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument)); return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:columndocument:remove"}) @RequiresPermissions({"dasz:columndocument:remove"})
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.DELETE) @Log(title = "电子文件基础字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* 141 */ return toAjax(this.columnDocumentService.deleteColumnDocumentByIds(ids)); return toAjax(this.columnDocumentService.deleteColumnDocumentByIds(ids));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnDocumentController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnDocumentController.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.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class ColumnDocument public class ColumnDocument
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ @Excel(name = "字段显示名称") @Excel(name = "字段显示名称")
/* */ private String columnName; private String columnName;
/* */ @Excel(name = "字段名称") @Excel(name = "字段名称")
/* */ private String columnCode; private String columnCode;
/* */ @Excel(name = "字段长度") @Excel(name = "字段长度")
/* */ private Long columnLength; private Long columnLength;
/* */ @Excel(name = "字段类型") @Excel(name = "字段类型")
/* */ private String columnType; private String columnType;
/* */ @Excel(name = "字段绑定编码") @Excel(name = "字段绑定编码")
/* */ private String columnCodetype; private String columnCodetype;
/* */ @Excel(name = "显示类型") @Excel(name = "显示类型")
/* */ private String showType; private String showType;
/* */ @Excel(name = "备注") @Excel(name = "备注")
/* */ private String bz; private String bz;
/* */ @Excel(name = "排序项") @Excel(name = "排序项")
/* */ private Long pxx; private Long pxx;
/* */ @Excel(name = "列表项") @Excel(name = "列表项")
/* */ private Long lbx; private Long lbx;
/* */ @Excel(name = "界面项") @Excel(name = "界面项")
/* */ private Long jmx; private Long jmx;
/* */ @Excel(name = "检索项") @Excel(name = "检索项")
/* */ private Long jsx; private Long jsx;
/* */ @Excel(name = "默认值") @Excel(name = "默认值")
/* */ private String mrz; private String mrz;
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 71 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getId() { public Long getId() {
/* 76 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setColumnName(String columnName) { public void setColumnName(String columnName) {
/* 80 */ this.columnName = columnName; this.columnName = columnName;
/* */ } }
/* */
/* */
/* */ public String getColumnName() { public String getColumnName() {
/* 85 */ return this.columnName; return this.columnName;
/* */ } }
/* */
/* */ public void setColumnCode(String columnCode) { public void setColumnCode(String columnCode) {
/* 89 */ this.columnCode = columnCode; this.columnCode = columnCode;
/* */ } }
/* */
/* */
/* */ public String getColumnCode() { public String getColumnCode() {
/* 94 */ return this.columnCode; return this.columnCode;
/* */ } }
/* */
/* */ public void setColumnLength(Long columnLength) { public void setColumnLength(Long columnLength) {
/* 98 */ this.columnLength = columnLength; this.columnLength = columnLength;
/* */ } }
/* */
/* */
/* */ public Long getColumnLength() { public Long getColumnLength() {
/* 103 */ return this.columnLength; return this.columnLength;
/* */ } }
/* */
/* */ public void setColumnType(String columnType) { public void setColumnType(String columnType) {
/* 107 */ this.columnType = columnType; this.columnType = columnType;
/* */ } }
/* */
/* */
/* */ public String getColumnType() { public String getColumnType() {
/* 112 */ return this.columnType; return this.columnType;
/* */ } }
/* */
/* */ public void setColumnCodetype(String columnCodetype) { public void setColumnCodetype(String columnCodetype) {
/* 116 */ this.columnCodetype = columnCodetype; this.columnCodetype = columnCodetype;
/* */ } }
/* */
/* */
/* */ public String getColumnCodetype() { public String getColumnCodetype() {
/* 121 */ return this.columnCodetype; return this.columnCodetype;
/* */ } }
/* */
/* */ public void setBz(String bz) { public void setBz(String bz) {
/* 125 */ this.bz = bz; this.bz = bz;
/* */ } }
/* */
/* */
/* */ public String getBz() { public String getBz() {
/* 130 */ return this.bz; return this.bz;
/* */ } }
/* */
/* */ public void setPxx(Long pxx) { public void setPxx(Long pxx) {
/* 134 */ this.pxx = pxx; this.pxx = pxx;
/* */ } }
/* */
/* */
/* */ public Long getPxx() { public Long getPxx() {
/* 139 */ return this.pxx; return this.pxx;
/* */ } }
/* */
/* */ public void setLbx(Long lbx) { public void setLbx(Long lbx) {
/* 143 */ this.lbx = lbx; this.lbx = lbx;
/* */ } }
/* */
/* */
/* */ public Long getLbx() { public Long getLbx() {
/* 148 */ return this.lbx; return this.lbx;
/* */ } }
/* */
/* */ public void setJmx(Long jmx) { public void setJmx(Long jmx) {
/* 152 */ this.jmx = jmx; this.jmx = jmx;
/* */ } }
/* */
/* */
/* */ public Long getJmx() { public Long getJmx() {
/* 157 */ return this.jmx; return this.jmx;
/* */ } }
/* */
/* */ public void setJsx(Long jsx) { public void setJsx(Long jsx) {
/* 161 */ this.jsx = jsx; this.jsx = jsx;
/* */ } }
/* */
/* */
/* */ public Long getJsx() { public Long getJsx() {
/* 166 */ return this.jsx; return this.jsx;
/* */ } }
/* */
/* */ public void setMrz(String mrz) { public void setMrz(String mrz) {
/* 170 */ this.mrz = mrz; this.mrz = mrz;
/* */ } }
/* */
/* */
/* */ public String getMrz() { public String getMrz() {
/* 175 */ return this.mrz; return this.mrz;
/* */ } }
/* */
/* */ public String getShowType() { public String getShowType() {
/* 179 */ return this.showType; return this.showType;
/* */ } }
/* */
/* */ public void setShowType(String showType) { public void setShowType(String showType) {
/* 183 */ this.showType = showType; this.showType = showType;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 189 */ .append("id", getId()) .append("id", getId())
/* 190 */ .append("columnName", getColumnName()) .append("columnName", getColumnName())
/* 191 */ .append("columnCode", getColumnCode()) .append("columnCode", getColumnCode())
/* 192 */ .append("columnLength", getColumnLength()) .append("columnLength", getColumnLength())
/* 193 */ .append("columnType", getColumnType()) .append("columnType", getColumnType())
/* 194 */ .append("columnCodetype", getColumnCodetype()) .append("columnCodetype", getColumnCodetype())
/* 195 */ .append("bz", getBz()) .append("bz", getBz())
/* 196 */ .append("pxx", getPxx()) .append("pxx", getPxx())
/* 197 */ .append("lbx", getLbx()) .append("lbx", getLbx())
/* 198 */ .append("jmx", getJmx()) .append("jmx", getJmx())
/* 199 */ .append("jsx", getJsx()) .append("jsx", getJsx())
/* 200 */ .append("mrz", getMrz()) .append("mrz", getMrz())
/* 201 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnDocument.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnDocument.class

@ -1,153 +1,153 @@
/* */ package com.archive.project.dasz.ccgl.controller package com.archive.project.dasz.ccgl.controller
; ;
/* */
/* */ import com.archive.common.utils.poi.ExcelUtil; import com.archive.common.utils.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.ccgl.domain.Ccgl; import com.archive.project.dasz.ccgl.domain.Ccgl;
/* */ import com.archive.project.dasz.ccgl.service.ICcglService; import com.archive.project.dasz.ccgl.service.ICcglService;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dasz/ccgl"}) @RequestMapping({"/dasz/ccgl"})
/* */ public class CcglController public class CcglController
/* */ extends BaseController extends BaseController
/* */ { {
/* 32 */ private String prefix = "dasz/ccgl"; private String prefix = "dasz/ccgl";
/* */
/* */ @Autowired @Autowired
/* */ private ICcglService ccglService; private ICcglService ccglService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:view"}) @RequiresPermissions({"dasz:ccgl:view"})
/* */ @GetMapping @GetMapping
/* */ public String ccgl() { public String ccgl() {
/* 41 */ return this.prefix + "/ccgl"; return this.prefix + "/ccgl";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:list"}) @RequiresPermissions({"dasz:ccgl:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(Ccgl ccgl) { public TableDataInfo list(Ccgl ccgl) {
/* 52 */ startPage(); startPage();
/* 53 */ List<Ccgl> list = this.ccglService.selectCcglList(ccgl); List<Ccgl> list = this.ccglService.selectCcglList(ccgl);
/* 54 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:export"}) @RequiresPermissions({"dasz:ccgl:export"})
/* */ @Log(title = "存储管理", businessType = BusinessType.EXPORT) @Log(title = "存储管理", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(Ccgl ccgl) { public AjaxResult export(Ccgl ccgl) {
/* 66 */ List<Ccgl> list = this.ccglService.selectCcglList(ccgl); List<Ccgl> list = this.ccglService.selectCcglList(ccgl);
/* 67 */ ExcelUtil<Ccgl> util = new ExcelUtil(Ccgl.class); ExcelUtil<Ccgl> util = new ExcelUtil(Ccgl.class);
/* 68 */ return util.exportExcel(list, "ccgl"); return util.exportExcel(list, "ccgl");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 77 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:add"}) @RequiresPermissions({"dasz:ccgl:add"})
/* */ @Log(title = "存储管理", businessType = BusinessType.INSERT) @Log(title = "存储管理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(Ccgl ccgl) { public AjaxResult addSave(Ccgl ccgl) {
/* 89 */ return toAjax(this.ccglService.insertCcgl(ccgl)); return toAjax(this.ccglService.insertCcgl(ccgl));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 98 */ Ccgl ccgl = this.ccglService.selectCcglById(id); Ccgl ccgl = this.ccglService.selectCcglById(id);
/* 99 */ mmap.put("ccgl", ccgl); mmap.put("ccgl", ccgl);
/* 100 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:edit"}) @RequiresPermissions({"dasz:ccgl:edit"})
/* */ @Log(title = "存储管理", businessType = BusinessType.UPDATE) @Log(title = "存储管理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(Ccgl ccgl) { public AjaxResult editSave(Ccgl ccgl) {
/* 112 */ return toAjax(this.ccglService.updateCcgl(ccgl)); return toAjax(this.ccglService.updateCcgl(ccgl));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:ccgl:remove"}) @RequiresPermissions({"dasz:ccgl:remove"})
/* */ @Log(title = "存储管理", businessType = BusinessType.DELETE) @Log(title = "存储管理", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* 124 */ return toAjax(this.ccglService.deleteCcglByIds(ids)); return toAjax(this.ccglService.deleteCcglByIds(ids));
/* */ } }
/* */
/* */
/* */
/* */ @GetMapping({"/ljbsIsExit"}) @GetMapping({"/ljbsIsExit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult ljbsIsExit(String ljbs, String ljmc) { public AjaxResult ljbsIsExit(String ljbs, String ljmc) {
/* 132 */ Ccgl ccgl = new Ccgl(); Ccgl ccgl = new Ccgl();
/* 133 */ ccgl.setLJMC(ljmc); ccgl.setLJMC(ljmc);
/* 134 */ List<Ccgl> list1 = this.ccglService.selectCcglList(ccgl); List<Ccgl> list1 = this.ccglService.selectCcglList(ccgl);
/* */
/* 136 */ Ccgl ccgl2 = new Ccgl(); Ccgl ccgl2 = new Ccgl();
/* 137 */ ccgl2.setLJBS(ljbs); ccgl2.setLJBS(ljbs);
/* 138 */ List<Ccgl> list2 = this.ccglService.selectCcglList(ccgl2); List<Ccgl> list2 = this.ccglService.selectCcglList(ccgl2);
/* 139 */ int res = 0; int res = 0;
/* 140 */ if (list1.size() > 0) { if (list1.size() > 0) {
/* 141 */ res = 1; res = 1;
/* */ } }
/* 143 */ if (list2.size() > 0) { if (list2.size() > 0) {
/* 144 */ res = 2; res = 2;
/* */ } }
/* 146 */ return AjaxResult.success(Integer.valueOf(res)); return AjaxResult.success(Integer.valueOf(res));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\controller\CcglController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\controller\CcglController.class

@ -1,98 +1,98 @@
/* */ package com.archive.project.dasz.ccgl.domain package com.archive.project.dasz.ccgl.domain
; ;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.Excel; import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Ccgl public class Ccgl
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ @Excel(name = "路径名称") @Excel(name = "路径名称")
/* */ private String LJMC; private String LJMC;
/* */ @Excel(name = "路径地址") @Excel(name = "路径地址")
/* */ private String LJDZ; private String LJDZ;
/* */ @Excel(name = "路径标识") @Excel(name = "路径标识")
/* */ private String LJBS; private String LJBS;
/* */ @Excel(name = "备注") @Excel(name = "备注")
/* */ private String REMARK; private String REMARK;
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 39 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getId() { public Long getId() {
/* 44 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setLJMC(String LJMC) { public void setLJMC(String LJMC) {
/* 48 */ this.LJMC = LJMC; this.LJMC = LJMC;
/* */ } }
/* */
/* */
/* */ public String getLJMC() { public String getLJMC() {
/* 53 */ return this.LJMC; return this.LJMC;
/* */ } }
/* */
/* */ public void setLJDZ(String LJDZ) { public void setLJDZ(String LJDZ) {
/* 57 */ this.LJDZ = LJDZ; this.LJDZ = LJDZ;
/* */ } }
/* */
/* */
/* */ public String getLJDZ() { public String getLJDZ() {
/* 62 */ return this.LJDZ; return this.LJDZ;
/* */ } }
/* */
/* */ public void setLJBS(String LJBS) { public void setLJBS(String LJBS) {
/* 66 */ this.LJBS = LJBS; this.LJBS = LJBS;
/* */ } }
/* */
/* */
/* */ public String getLJBS() { public String getLJBS() {
/* 71 */ return this.LJBS; return this.LJBS;
/* */ } }
/* */
/* */ public void setREMARK(String REMARK) { public void setREMARK(String REMARK) {
/* 75 */ this.REMARK = REMARK; this.REMARK = REMARK;
/* */ } }
/* */
/* */
/* */ public String getREMARK() { public String getREMARK() {
/* 80 */ return this.REMARK; return this.REMARK;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 85 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 86 */ .append("id", getId()) .append("id", getId())
/* 87 */ .append("LJMC", getLJMC()) .append("LJMC", getLJMC())
/* 88 */ .append("LJDZ", getLJDZ()) .append("LJDZ", getLJDZ())
/* 89 */ .append("REMARK", getREMARK()) .append("REMARK", getREMARK())
/* 90 */ .append("LJBS", getLJBS()) .append("LJBS", getLJBS())
/* 91 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\domain\Ccgl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\domain\Ccgl.class

@ -1,181 +1,181 @@
/* */ package com.archive.project.dasz.ccgl.service.impl package com.archive.project.dasz.ccgl.service.impl
; ;
/* */
/* */ import com.archive.common.archiveUtil.TableUtil; import com.archive.common.archiveUtil.TableUtil;
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.project.common.service.IExecuteSqlService; import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveType; import com.archive.project.dasz.archivetype.domain.ArchiveType;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
/* */ import com.archive.project.dasz.ccgl.domain.Ccgl; import com.archive.project.dasz.ccgl.domain.Ccgl;
/* */ import com.archive.project.dasz.ccgl.mapper.CcglMapper; import com.archive.project.dasz.ccgl.mapper.CcglMapper;
/* */ import com.archive.project.dasz.ccgl.service.ICcglService; import com.archive.project.dasz.ccgl.service.ICcglService;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import java.io.File; import java.io.File;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.List; import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class CcglServiceImpl public class CcglServiceImpl
/* */ implements ICcglService implements ICcglService
/* */ { {
/* */ @Autowired @Autowired
/* */ private CcglMapper ccglMapper; private CcglMapper ccglMapper;
/* */ @Autowired @Autowired
/* */ private IArchiveTypeService archiveTypeService; private IArchiveTypeService archiveTypeService;
/* */ @Autowired @Autowired
/* */ private IPhysicalTableColumnService physicalTableColumnService; private IPhysicalTableColumnService physicalTableColumnService;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */
/* */ public Ccgl selectCcglById(Long id) { public Ccgl selectCcglById(Long id) {
/* 49 */ return this.ccglMapper.selectCcglById(id); return this.ccglMapper.selectCcglById(id);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Ccgl> selectCcglList(Ccgl ccgl) { public List<Ccgl> selectCcglList(Ccgl ccgl) {
/* 61 */ return this.ccglMapper.selectCcglList(ccgl); return this.ccglMapper.selectCcglList(ccgl);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertCcgl(Ccgl ccgl) { public int insertCcgl(Ccgl ccgl) {
/* 73 */ return this.ccglMapper.insertCcgl(ccgl); return this.ccglMapper.insertCcgl(ccgl);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateCcgl(Ccgl ccgl) { public int updateCcgl(Ccgl ccgl) {
/* 85 */ return this.ccglMapper.updateCcgl(ccgl); return this.ccglMapper.updateCcgl(ccgl);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteCcglByIds(String ids) { public int deleteCcglByIds(String ids) {
/* 97 */ return this.ccglMapper.deleteCcglByIds(Convert.toStrArray(ids)); return this.ccglMapper.deleteCcglByIds(Convert.toStrArray(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteCcglById(Long id) { public int deleteCcglById(Long id) {
/* 109 */ return this.ccglMapper.deleteCcglById(id); return this.ccglMapper.deleteCcglById(id);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getPathByLjbs(String ljbs) { public String getPathByLjbs(String ljbs) {
/* 120 */ String path = ""; String path = "";
/* 121 */ Ccgl ccgl = new Ccgl(); Ccgl ccgl = new Ccgl();
/* 122 */ ccgl.setLJBS(ljbs); ccgl.setLJBS(ljbs);
/* 123 */ List<Ccgl> list = selectCcglList(ccgl); List<Ccgl> list = selectCcglList(ccgl);
/* 124 */ if (list.size() > 0 && list.get(0) != null) { if (list.size() > 0 && list.get(0) != null) {
/* 125 */ path = ((Ccgl)list.get(0)).getLJDZ(); path = ((Ccgl)list.get(0)).getLJDZ();
/* */ } }
/* 127 */ return path; return path;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getCreateDocumentPathByFile(long id, long tableId) { public String getCreateDocumentPathByFile(long id, long tableId) {
/* 140 */ String resPath = ""; String resPath = "";
/* */
/* 142 */ String cj = getPathByLjbs("archive.documentPath"); String cj = getPathByLjbs("archive.documentPath");
/* 143 */ String tableName = TableUtil.getTableName(Long.valueOf(tableId)); String tableName = TableUtil.getTableName(Long.valueOf(tableId));
/* */
/* 145 */ long archiveTypeId = TableUtil.getArchiveTypeIdByTableId(tableId); long archiveTypeId = TableUtil.getArchiveTypeIdByTableId(tableId);
/* 146 */ ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(archiveTypeId)); ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(archiveTypeId));
/* 147 */ resPath = resPath + File.separator + archiveType.getArhciveCode(); resPath = resPath + File.separator + archiveType.getArhciveCode();
/* */
/* 149 */ String[] attr = cj.split("/"); String[] attr = cj.split("/");
/* 150 */ String columns = ""; String columns = "";
/* 151 */ for (int i = 0; i < attr.length; i++) { for (int i = 0; i < attr.length; i++) {
/* 152 */ if (StringUtils.isNotEmpty(attr[i])) { if (StringUtils.isNotEmpty(attr[i])) {
/* */
/* 154 */ String name = this.physicalTableColumnService.getColumnCodeByTableIdAndShowName(attr[i], tableId); String name = this.physicalTableColumnService.getColumnCodeByTableIdAndShowName(attr[i], tableId);
/* 155 */ if (!name.equals("")) { if (!name.equals("")) {
/* 156 */ columns = columns + name + ","; columns = columns + name + ",";
/* */ } else { } else {
/* 158 */ columns = columns + "'" + attr[i] + "',"; columns = columns + "'" + attr[i] + "',";
/* 159 */ System.out.println("第" + i + "层级" + attr[i] + "没有找到对应字段,请检查!"); System.out.println("第" + i + "层级" + attr[i] + "没有找到对应字段,请检查!");
/* */ } }
/* */ } }
/* */ } }
/* 163 */ columns = columns.substring(0, columns.length() - 1); columns = columns.substring(0, columns.length() - 1);
/* */
/* 165 */ String sql = "select " + columns + " from " + tableName + " where id=" + id; String sql = "select " + columns + " from " + tableName + " where id=" + id;
/* 166 */ List<LinkedHashMap<String, Object>> list = this.executeSqlService.queryList(sql); List<LinkedHashMap<String, Object>> list = this.executeSqlService.queryList(sql);
/* 167 */ if (list.size() > 0 && list.get(0) != null) { if (list.size() > 0 && list.get(0) != null) {
/* 168 */ String[] columnSttr = columns.split(","); String[] columnSttr = columns.split(",");
/* 169 */ for (int j = 0; j < columnSttr.length; j++) { for (int j = 0; j < columnSttr.length; j++) {
/* 170 */ String value = (((LinkedHashMap)list.get(0)).get(columnSttr[j]) == null) ? "" : ((LinkedHashMap)list.get(0)).get(columnSttr[j]).toString(); String value = (((LinkedHashMap)list.get(0)).get(columnSttr[j]) == null) ? "" : ((LinkedHashMap)list.get(0)).get(columnSttr[j]).toString();
/* 171 */ resPath = resPath + File.separator + value; resPath = resPath + File.separator + value;
/* */ } }
/* */ } }
/* 174 */ return resPath; return resPath;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\service\impl\CcglServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\service\impl\CcglServiceImpl.class

@ -1,87 +1,87 @@
/* */ package com.archive.project.monitor.cache package com.archive.project.monitor.cache
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.service.CacheService; import com.archive.framework.web.service.CacheService;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/monitor/cache"}) @RequestMapping({"/monitor/cache"})
/* */ public class CacheController public class CacheController
/* */ extends BaseController extends BaseController
/* */ { {
/* 23 */ private String prefix = "monitor/cache"; private String prefix = "monitor/cache";
/* */
/* */ @Autowired @Autowired
/* */ private CacheService cacheService; private CacheService cacheService;
/* */
/* */
/* */ @GetMapping @GetMapping
/* */ public String cache(ModelMap mmap) { public String cache(ModelMap mmap) {
/* 31 */ mmap.put("cacheNames", this.cacheService.getCacheNames()); mmap.put("cacheNames", this.cacheService.getCacheNames());
/* 32 */ return this.prefix + "/cache"; return this.prefix + "/cache";
/* */ } }
/* */
/* */
/* */ @PostMapping({"/getNames"}) @PostMapping({"/getNames"})
/* */ public String getCacheNames(String fragment, ModelMap mmap) { public String getCacheNames(String fragment, ModelMap mmap) {
/* 38 */ mmap.put("cacheNames", this.cacheService.getCacheNames()); mmap.put("cacheNames", this.cacheService.getCacheNames());
/* 39 */ return this.prefix + "/cache::" + fragment; return this.prefix + "/cache::" + fragment;
/* */ } }
/* */
/* */
/* */ @PostMapping({"/getKeys"}) @PostMapping({"/getKeys"})
/* */ public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) { public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) {
/* 45 */ mmap.put("cacheName", cacheName); mmap.put("cacheName", cacheName);
/* 46 */ mmap.put("cacheKyes", this.cacheService.getCacheKeys(cacheName)); mmap.put("cacheKyes", this.cacheService.getCacheKeys(cacheName));
/* 47 */ return this.prefix + "/cache::" + fragment; return this.prefix + "/cache::" + fragment;
/* */ } }
/* */
/* */
/* */ @PostMapping({"/getValue"}) @PostMapping({"/getValue"})
/* */ public String getCacheValue(String fragment, String cacheName, String cacheKey, ModelMap mmap) { public String getCacheValue(String fragment, String cacheName, String cacheKey, ModelMap mmap) {
/* 53 */ mmap.put("cacheName", cacheName); mmap.put("cacheName", cacheName);
/* 54 */ mmap.put("cacheKey", cacheKey); mmap.put("cacheKey", cacheKey);
/* 55 */ mmap.put("cacheValue", this.cacheService.getCacheValue(cacheName, cacheKey)); mmap.put("cacheValue", this.cacheService.getCacheValue(cacheName, cacheKey));
/* 56 */ return this.prefix + "/cache::" + fragment; return this.prefix + "/cache::" + fragment;
/* */ } }
/* */
/* */
/* */ @PostMapping({"/clearCacheName"}) @PostMapping({"/clearCacheName"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clearCacheName(String cacheName, ModelMap mmap) { public AjaxResult clearCacheName(String cacheName, ModelMap mmap) {
/* 63 */ this.cacheService.clearCacheName(cacheName); this.cacheService.clearCacheName(cacheName);
/* 64 */ return AjaxResult.success(); return AjaxResult.success();
/* */ } }
/* */
/* */
/* */ @PostMapping({"/clearCacheKey"}) @PostMapping({"/clearCacheKey"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clearCacheKey(String cacheName, String cacheKey, ModelMap mmap) { public AjaxResult clearCacheKey(String cacheName, String cacheKey, ModelMap mmap) {
/* 71 */ this.cacheService.clearCacheKey(cacheName, cacheKey); this.cacheService.clearCacheKey(cacheName, cacheKey);
/* 72 */ return AjaxResult.success(); return AjaxResult.success();
/* */ } }
/* */
/* */
/* */ @GetMapping({"/clearAll"}) @GetMapping({"/clearAll"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clearAll(ModelMap mmap) { public AjaxResult clearAll(ModelMap mmap) {
/* 79 */ this.cacheService.clearAll(); this.cacheService.clearAll();
/* 80 */ return AjaxResult.success(); return AjaxResult.success();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\cache\CacheController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\cache\CacheController.class

@ -1,97 +1,97 @@
/* */ package com.archive.project.system.user.controller package com.archive.project.system.user.controller
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.google.code.kaptcha.Producer; import com.google.code.kaptcha.Producer;
/* */ import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.io.OutputStream; import java.io.OutputStream;
/* */ import javax.annotation.Resource; import javax.annotation.Resource;
/* */ import javax.imageio.ImageIO; import javax.imageio.ImageIO;
/* */ import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/* */ import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/captcha"}) @RequestMapping({"/captcha"})
/* */ public class CaptchaController public class CaptchaController
/* */ extends BaseController extends BaseController
/* */ { {
/* */ @Resource(name = "captchaProducer") @Resource(name = "captchaProducer")
/* */ private Producer captchaProducer; private Producer captchaProducer;
/* */ @Resource(name = "captchaProducerMath") @Resource(name = "captchaProducerMath")
/* */ private Producer captchaProducerMath; private Producer captchaProducerMath;
/* */
/* */ @GetMapping({"/captchaImage"}) @GetMapping({"/captchaImage"})
/* */ public ModelAndView getKaptchaImage(HttpServletRequest request, HttpServletResponse response) { public ModelAndView getKaptchaImage(HttpServletRequest request, HttpServletResponse response) {
/* 40 */ ServletOutputStream out = null; ServletOutputStream out = null;
/* */
/* */ try { try {
/* 43 */ HttpSession session = request.getSession(); HttpSession session = request.getSession();
/* 44 */ response.setDateHeader("Expires", 0L); response.setDateHeader("Expires", 0L);
/* 45 */ response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
/* 46 */ response.addHeader("Cache-Control", "post-check=0, pre-check=0"); response.addHeader("Cache-Control", "post-check=0, pre-check=0");
/* 47 */ response.setHeader("Pragma", "no-cache"); response.setHeader("Pragma", "no-cache");
/* 48 */ response.setContentType("image/jpeg"); response.setContentType("image/jpeg");
/* */
/* 50 */ String type = request.getParameter("type"); String type = request.getParameter("type");
/* 51 */ String capStr = null; String capStr = null;
/* 52 */ String code = null; String code = null;
/* 53 */ BufferedImage bi = null; BufferedImage bi = null;
/* 54 */ if ("math".equals(type)) { if ("math".equals(type)) {
/* */
/* 56 */ String capText = this.captchaProducerMath.createText(); String capText = this.captchaProducerMath.createText();
/* 57 */ capStr = capText.substring(0, capText.lastIndexOf("@")); capStr = capText.substring(0, capText.lastIndexOf("@"));
/* 58 */ code = capText.substring(capText.lastIndexOf("@") + 1); code = capText.substring(capText.lastIndexOf("@") + 1);
/* 59 */ bi = this.captchaProducerMath.createImage(capStr); bi = this.captchaProducerMath.createImage(capStr);
/* */ } }
/* 61 */ else if ("char".equals(type)) { else if ("char".equals(type)) {
/* */
/* 63 */ capStr = code = this.captchaProducer.createText(); capStr = code = this.captchaProducer.createText();
/* 64 */ bi = this.captchaProducer.createImage(capStr); bi = this.captchaProducer.createImage(capStr);
/* */ } }
/* 66 */ session.setAttribute("KAPTCHA_SESSION_KEY", code); session.setAttribute("KAPTCHA_SESSION_KEY", code);
/* 67 */ out = response.getOutputStream(); out = response.getOutputStream();
/* 68 */ ImageIO.write(bi, "jpg", (OutputStream)out); ImageIO.write(bi, "jpg", (OutputStream)out);
/* 69 */ out.flush(); out.flush();
/* */
/* */ } }
/* 72 */ catch (Exception e) { catch (Exception e) {
/* */
/* 74 */ e.printStackTrace(); e.printStackTrace();
/* */ } finally { } finally {
/* */
/* */
/* */ try { try {
/* */
/* 80 */ if (out != null) if (out != null)
/* */ { {
/* 82 */ out.close(); out.close();
/* */ } }
/* */ } }
/* 85 */ catch (IOException e) { catch (IOException e) {
/* */
/* 87 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* */ } }
/* 90 */ return null; return null;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\CaptchaController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\CaptchaController.class

Loading…
Cancel
Save