From 987f0c3622ffe6ba0a794c220420a5a3202b14e0 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 21 May 2025 08:52:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=8F=E7=9B=AE=E4=BC=A0=E8=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/exception/BusinessException.java | 60 +-- .../archive/common/exception/job/Code.java | 66 +-- .../exception/user/CaptchaException.java | 32 +- .../com/archive/common/utils/CacheUtils.java | 394 ++++++++--------- .../aspectj/lang/enums/BusinessStatus.java | 40 +- .../aspectj/lang/enums/BusinessType.java | 152 +++---- .../framework/config/CaptchaConfig.java | 166 +++---- .../filter/captcha/CaptchaValidateFilter.java | 158 +++---- .../framework/web/service/CacheService.java | 166 +++---- .../controller/ColumnDocumentController.java | 286 ++++++------ .../basecolumn/domain/ColumnDocument.java | 406 +++++++++--------- .../dasz/ccgl/controller/CcglController.java | 296 ++++++------- .../project/dasz/ccgl/domain/Ccgl.java | 186 ++++---- .../ccgl/service/impl/CcglServiceImpl.java | 352 +++++++-------- .../monitor/cache/CacheController.java | 164 +++---- .../user/controller/CaptchaController.java | 184 ++++---- 16 files changed, 1554 insertions(+), 1554 deletions(-) diff --git a/src/main/java/com/archive/common/exception/BusinessException.java b/src/main/java/com/archive/common/exception/BusinessException.java index ad29cd6..c34ff9d 100644 --- a/src/main/java/com/archive/common/exception/BusinessException.java +++ b/src/main/java/com/archive/common/exception/BusinessException.java @@ -1,33 +1,33 @@ -/* */ package com.archive.common.exception; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class BusinessException -/* */ extends RuntimeException -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ protected final String message; -/* */ -/* */ public BusinessException(String message) { -/* 16 */ this.message = message; -/* */ } -/* */ -/* */ -/* */ public BusinessException(String message, Throwable e) { -/* 21 */ super(message, e); -/* 22 */ this.message = message; -/* */ } -/* */ -/* */ -/* */ -/* */ public String getMessage() { -/* 28 */ return this.message; -/* */ } -/* */ } + package com.archive.common.exception; + + + + + + + + public class BusinessException + extends RuntimeException + { + private static final long serialVersionUID = 1L; + protected final String message; + + public BusinessException(String message) { + this.message = message; + } + + + public BusinessException(String message, Throwable e) { + super(message, e); + this.message = message; + } + + + + public String getMessage() { + return this.message; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\BusinessException.class diff --git a/src/main/java/com/archive/common/exception/job/Code.java b/src/main/java/com/archive/common/exception/job/Code.java index 7cc0c16..938a3a1 100644 --- a/src/main/java/com/archive/common/exception/job/Code.java +++ b/src/main/java/com/archive/common/exception/job/Code.java @@ -1,36 +1,36 @@ -/* */ package com.archive.common.exception.job; -/* */ -/* */ import com.archive.common.exception.job.TaskException; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum Code -/* */ { -/* 32 */ TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE; -/* */ } + package com.archive.common.exception.job; + + import com.archive.common.exception.job.TaskException; + + + + + + + + + + + + + + + + + + + + + + + + + + + public enum Code + { + 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 diff --git a/src/main/java/com/archive/common/exception/user/CaptchaException.java b/src/main/java/com/archive/common/exception/user/CaptchaException.java index 70f2f4b..c85d7d5 100644 --- a/src/main/java/com/archive/common/exception/user/CaptchaException.java +++ b/src/main/java/com/archive/common/exception/user/CaptchaException.java @@ -1,19 +1,19 @@ -/* */ package com.archive.common.exception.user; -/* */ -/* */ import com.archive.common.exception.user.UserException; -/* */ -/* */ -/* */ -/* */ -/* */ public class CaptchaException -/* */ extends UserException -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ -/* */ public CaptchaException() { -/* 14 */ super("user.jcaptcha.error", null); -/* */ } -/* */ } + package com.archive.common.exception.user; + + import com.archive.common.exception.user.UserException; + + + + + public class CaptchaException + extends UserException + { + private static final long serialVersionUID = 1L; + + public CaptchaException() { + super("user.jcaptcha.error", null); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\CaptchaException.class diff --git a/src/main/java/com/archive/common/utils/CacheUtils.java b/src/main/java/com/archive/common/utils/CacheUtils.java index 15cacfe..8a72e90 100644 --- a/src/main/java/com/archive/common/utils/CacheUtils.java +++ b/src/main/java/com/archive/common/utils/CacheUtils.java @@ -1,202 +1,202 @@ -/* */ package com.archive.common.utils + package com.archive.common.utils ; -/* */ -/* */ import com.archive.common.utils.spring.SpringUtils; -/* */ import java.util.Iterator; -/* */ import java.util.Set; -/* */ import org.apache.shiro.cache.Cache; -/* */ import org.apache.shiro.cache.CacheManager; -/* */ import org.apache.shiro.cache.ehcache.EhCacheManager; -/* */ import org.slf4j.Logger; -/* */ import org.slf4j.LoggerFactory; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class CacheUtils -/* */ { -/* 19 */ private static Logger logger = LoggerFactory.getLogger(com.archive.common.utils.CacheUtils.class); -/* */ -/* 21 */ private static CacheManager cacheManager = (CacheManager)SpringUtils.getBean(CacheManager.class); -/* */ -/* */ -/* */ -/* */ -/* */ private static final String SYS_CACHE = "sys-cache"; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Object get(String key) { -/* 33 */ return get("sys-cache", key); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Object get(String key, Object defaultValue) { -/* 45 */ Object value = get(key); -/* 46 */ return (value != null) ? value : defaultValue; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void put(String key, Object value) { -/* 57 */ put("sys-cache", key, value); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void remove(String key) { -/* 68 */ remove("sys-cache", key); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Object get(String cacheName, String key) { -/* 80 */ return getCache(cacheName).get(getKey(key)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Object get(String cacheName, String key, Object defaultValue) { -/* 93 */ Object value = get(cacheName, getKey(key)); -/* 94 */ return (value != null) ? value : defaultValue; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void put(String cacheName, String key, Object value) { -/* 106 */ getCache(cacheName).put(getKey(key), value); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void remove(String cacheName, String key) { -/* 117 */ getCache(cacheName).remove(getKey(key)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void removeAll(String cacheName) { -/* 127 */ Cache cache = getCache(cacheName); -/* 128 */ Set keys = cache.keys(); -/* 129 */ for (Iterator it = keys.iterator(); it.hasNext();) -/* */ { -/* 131 */ cache.remove(it.next()); -/* */ } -/* 133 */ logger.info("清理缓存: {} => {}", cacheName, keys); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void removeByKeys(Set keys) { -/* 143 */ removeByKeys("sys-cache", keys); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void removeByKeys(String cacheName, Set keys) { -/* 154 */ for (Iterator it = keys.iterator(); it.hasNext();) -/* */ { -/* 156 */ remove(it.next()); -/* */ } -/* 158 */ logger.info("清理缓存: {} => {}", cacheName, keys); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private static String getKey(String key) { -/* 169 */ return key; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Cache getCache(String cacheName) { -/* 180 */ Cache cache = cacheManager.getCache(cacheName); -/* 181 */ if (cache == null) -/* */ { -/* 183 */ throw new RuntimeException("当前系统中没有定义“" + cacheName + "”这个缓存。"); -/* */ } -/* 185 */ return cache; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String[] getCacheNames() { -/* 195 */ return ((EhCacheManager)cacheManager).getCacheManager().getCacheNames(); -/* */ } -/* */ } + + import com.archive.common.utils.spring.SpringUtils; + import java.util.Iterator; + import java.util.Set; + import org.apache.shiro.cache.Cache; + import org.apache.shiro.cache.CacheManager; + import org.apache.shiro.cache.ehcache.EhCacheManager; + import org.slf4j.Logger; + import org.slf4j.LoggerFactory; + + + + + + + public class CacheUtils + { + private static Logger logger = LoggerFactory.getLogger(com.archive.common.utils.CacheUtils.class); + + private static CacheManager cacheManager = (CacheManager)SpringUtils.getBean(CacheManager.class); + + + + + private static final String SYS_CACHE = "sys-cache"; + + + + + + public static Object get(String key) { + return get("sys-cache", key); + } + + + + + + + + + + public static Object get(String key, Object defaultValue) { + Object value = get(key); + return (value != null) ? value : defaultValue; + } + + + + + + + + + public static void put(String key, Object value) { + put("sys-cache", key, value); + } + + + + + + + + + public static void remove(String key) { + remove("sys-cache", key); + } + + + + + + + + + + public static Object get(String cacheName, String key) { + return getCache(cacheName).get(getKey(key)); + } + + + + + + + + + + + public static Object get(String cacheName, String key, Object defaultValue) { + Object value = get(cacheName, getKey(key)); + return (value != null) ? value : defaultValue; + } + + + + + + + + + + public static void put(String cacheName, String key, Object value) { + getCache(cacheName).put(getKey(key), value); + } + + + + + + + + + public static void remove(String cacheName, String key) { + getCache(cacheName).remove(getKey(key)); + } + + + + + + + + public static void removeAll(String cacheName) { + Cache cache = getCache(cacheName); + Set keys = cache.keys(); + for (Iterator it = keys.iterator(); it.hasNext();) + { + cache.remove(it.next()); + } + logger.info("清理缓存: {} => {}", cacheName, keys); + } + + + + + + + + public static void removeByKeys(Set keys) { + removeByKeys("sys-cache", keys); + } + + + + + + + + + public static void removeByKeys(String cacheName, Set keys) { + for (Iterator it = keys.iterator(); it.hasNext();) + { + remove(it.next()); + } + logger.info("清理缓存: {} => {}", cacheName, keys); + } + + + + + + + + + private static String getKey(String key) { + return key; + } + + + + + + + + + public static Cache getCache(String cacheName) { + Cache cache = cacheManager.getCache(cacheName); + if (cache == null) + { + throw new RuntimeException("当前系统中没有定义“" + cacheName + "”这个缓存。"); + } + return cache; + } + + + + + + + + public static String[] getCacheNames() { + return ((EhCacheManager)cacheManager).getCacheManager().getCacheNames(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\CacheUtils.class diff --git a/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessStatus.java b/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessStatus.java index 367b754..b7eadf4 100644 --- a/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessStatus.java +++ b/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessStatus.java @@ -1,23 +1,23 @@ -/* */ package com.archive.framework.aspectj.lang.enums; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum BusinessStatus -/* */ { -/* 14 */ SUCCESS, -/* */ -/* */ -/* */ -/* */ -/* 19 */ FAIL; -/* */ } + package com.archive.framework.aspectj.lang.enums; + + + + + + + + + + + public enum BusinessStatus + { + SUCCESS, + + + + + FAIL; + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessStatus.class diff --git a/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessType.java b/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessType.java index 1058da5..a0868a2 100644 --- a/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessType.java +++ b/src/main/java/com/archive/framework/aspectj/lang/enums/BusinessType.java @@ -1,79 +1,79 @@ -/* */ package com.archive.framework.aspectj.lang.enums; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum BusinessType -/* */ { -/* 14 */ OTHER, -/* */ -/* */ -/* */ -/* */ -/* 19 */ INSERT, -/* */ -/* */ -/* */ -/* */ -/* 24 */ UPDATE, -/* */ -/* */ -/* */ -/* */ -/* 29 */ DELETE, -/* */ -/* */ -/* */ -/* 33 */ RESEST, -/* */ -/* */ -/* */ -/* */ -/* 38 */ GRANT, -/* */ -/* */ -/* */ -/* */ -/* 43 */ EXPORT, -/* */ -/* */ -/* */ -/* */ -/* 48 */ IMPORT, -/* */ -/* */ -/* */ -/* */ -/* 53 */ FORCE, -/* */ -/* */ -/* */ -/* */ -/* 58 */ GENCODE, -/* */ -/* */ -/* */ -/* */ -/* 63 */ CLEAN, -/* */ -/* */ -/* */ -/* 67 */ ZLRK, -/* */ -/* */ -/* */ -/* 71 */ THJSK, -/* */ -/* */ -/* */ -/* 75 */ BMDY; -/* */ } + package com.archive.framework.aspectj.lang.enums; + + + + + + + + + + + public enum BusinessType + { + OTHER, + + + + + INSERT, + + + + + UPDATE, + + + + + DELETE, + + + + RESEST, + + + + + GRANT, + + + + + EXPORT, + + + + + IMPORT, + + + + + FORCE, + + + + + GENCODE, + + + + + CLEAN, + + + + ZLRK, + + + + THJSK, + + + + BMDY; + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\BusinessType.class diff --git a/src/main/java/com/archive/framework/config/CaptchaConfig.java b/src/main/java/com/archive/framework/config/CaptchaConfig.java index 436796a..ed3478c 100644 --- a/src/main/java/com/archive/framework/config/CaptchaConfig.java +++ b/src/main/java/com/archive/framework/config/CaptchaConfig.java @@ -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.util.Config; -/* */ import java.util.Properties; -/* */ import org.springframework.context.annotation.Bean; -/* */ import org.springframework.context.annotation.Configuration; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Configuration -/* */ public class CaptchaConfig -/* */ { -/* */ @Bean(name = {"captchaProducer"}) -/* */ public DefaultKaptcha getKaptchaBean() { -/* 21 */ DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); -/* 22 */ Properties properties = new Properties(); -/* */ -/* 24 */ properties.setProperty("kaptcha.border", "yes"); -/* */ -/* 26 */ properties.setProperty("kaptcha.textproducer.font.color", "black"); -/* */ -/* 28 */ properties.setProperty("kaptcha.image.width", "160"); -/* */ -/* 30 */ properties.setProperty("kaptcha.image.height", "60"); -/* */ -/* 32 */ properties.setProperty("kaptcha.textproducer.font.size", "38"); -/* */ -/* 34 */ properties.setProperty("kaptcha.session.key", "kaptchaCode"); -/* */ -/* 36 */ properties.setProperty("kaptcha.textproducer.char.length", "4"); -/* */ -/* 38 */ properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); -/* */ -/* 40 */ properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); -/* 41 */ Config config = new Config(properties); -/* 42 */ defaultKaptcha.setConfig(config); -/* 43 */ return defaultKaptcha; -/* */ } -/* */ -/* */ -/* */ @Bean(name = {"captchaProducerMath"}) -/* */ public DefaultKaptcha getKaptchaBeanMath() { -/* 49 */ DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); -/* 50 */ Properties properties = new Properties(); -/* */ -/* 52 */ properties.setProperty("kaptcha.border", "yes"); -/* */ -/* 54 */ properties.setProperty("kaptcha.border.color", "105,179,90"); -/* */ -/* 56 */ properties.setProperty("kaptcha.textproducer.font.color", "blue"); -/* */ -/* 58 */ properties.setProperty("kaptcha.image.width", "160"); -/* */ -/* 60 */ properties.setProperty("kaptcha.image.height", "60"); -/* */ -/* 62 */ properties.setProperty("kaptcha.textproducer.font.size", "35"); -/* */ -/* 64 */ properties.setProperty("kaptcha.session.key", "kaptchaCodeMath"); -/* */ -/* 66 */ properties.setProperty("kaptcha.textproducer.impl", "com.archive.framework.config.KaptchaTextCreator"); -/* */ -/* 68 */ properties.setProperty("kaptcha.textproducer.char.space", "3"); -/* */ -/* 70 */ properties.setProperty("kaptcha.textproducer.char.length", "6"); -/* */ -/* 72 */ properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); -/* */ -/* 74 */ properties.setProperty("kaptcha.noise.color", "white"); -/* */ -/* 76 */ properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise"); -/* */ -/* 78 */ properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); -/* 79 */ Config config = new Config(properties); -/* 80 */ defaultKaptcha.setConfig(config); -/* 81 */ return defaultKaptcha; -/* */ } -/* */ } + + import com.google.code.kaptcha.impl.DefaultKaptcha; + import com.google.code.kaptcha.util.Config; + import java.util.Properties; + import org.springframework.context.annotation.Bean; + import org.springframework.context.annotation.Configuration; + + + + + + + + + @Configuration + public class CaptchaConfig + { + @Bean(name = {"captchaProducer"}) + public DefaultKaptcha getKaptchaBean() { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + + properties.setProperty("kaptcha.border", "yes"); + + properties.setProperty("kaptcha.textproducer.font.color", "black"); + + properties.setProperty("kaptcha.image.width", "160"); + + properties.setProperty("kaptcha.image.height", "60"); + + properties.setProperty("kaptcha.textproducer.font.size", "38"); + + properties.setProperty("kaptcha.session.key", "kaptchaCode"); + + properties.setProperty("kaptcha.textproducer.char.length", "4"); + + properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); + + properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } + + + @Bean(name = {"captchaProducerMath"}) + public DefaultKaptcha getKaptchaBeanMath() { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + + properties.setProperty("kaptcha.border", "yes"); + + properties.setProperty("kaptcha.border.color", "105,179,90"); + + properties.setProperty("kaptcha.textproducer.font.color", "blue"); + + properties.setProperty("kaptcha.image.width", "160"); + + properties.setProperty("kaptcha.image.height", "60"); + + properties.setProperty("kaptcha.textproducer.font.size", "35"); + + properties.setProperty("kaptcha.session.key", "kaptchaCodeMath"); + + properties.setProperty("kaptcha.textproducer.impl", "com.archive.framework.config.KaptchaTextCreator"); + + properties.setProperty("kaptcha.textproducer.char.space", "3"); + + properties.setProperty("kaptcha.textproducer.char.length", "6"); + + properties.setProperty("kaptcha.textproducer.font.names", "Arial,Courier"); + + properties.setProperty("kaptcha.noise.color", "white"); + + properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise"); + + properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\CaptchaConfig.class diff --git a/src/main/java/com/archive/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java b/src/main/java/com/archive/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java index ab35052..4ad67bf 100644 --- a/src/main/java/com/archive/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java +++ b/src/main/java/com/archive/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java @@ -1,82 +1,82 @@ -/* */ package com.archive.framework.shiro.web.filter.captcha; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.security.ShiroUtils; -/* */ import javax.servlet.ServletRequest; -/* */ import javax.servlet.ServletResponse; -/* */ import javax.servlet.http.HttpServletRequest; -/* */ import org.apache.shiro.web.filter.AccessControlFilter; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class CaptchaValidateFilter -/* */ extends AccessControlFilter -/* */ { -/* */ private boolean captchaEnabled = true; -/* 27 */ private String captchaType = "math"; -/* */ -/* */ -/* */ public void setCaptchaEnabled(boolean captchaEnabled) { -/* 31 */ this.captchaEnabled = captchaEnabled; -/* */ } -/* */ -/* */ -/* */ public void setCaptchaType(String captchaType) { -/* 36 */ this.captchaType = captchaType; -/* */ } -/* */ -/* */ -/* */ -/* */ public boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { -/* 42 */ request.setAttribute("captchaEnabled", Boolean.valueOf(this.captchaEnabled)); -/* 43 */ request.setAttribute("captchaType", this.captchaType); -/* 44 */ return super.onPreHandle(request, response, mappedValue); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { -/* 51 */ HttpServletRequest httpServletRequest = (HttpServletRequest)request; -/* */ -/* 53 */ if (!this.captchaEnabled || !"post".equals(httpServletRequest.getMethod().toLowerCase())) -/* */ { -/* 55 */ return true; -/* */ } -/* 57 */ return validateResponse(httpServletRequest, httpServletRequest.getParameter("validateCode")); -/* */ } -/* */ -/* */ -/* */ public boolean validateResponse(HttpServletRequest request, String validateCode) { -/* 62 */ Object obj = ShiroUtils.getSession().getAttribute("KAPTCHA_SESSION_KEY"); -/* 63 */ String code = String.valueOf((obj != null) ? obj : ""); -/* */ -/* 65 */ request.getSession().removeAttribute("KAPTCHA_SESSION_KEY"); -/* 66 */ if (StringUtils.isEmpty(validateCode) || !validateCode.equalsIgnoreCase(code)) -/* */ { -/* 68 */ return false; -/* */ } -/* 70 */ return true; -/* */ } -/* */ -/* */ -/* */ -/* */ protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { -/* 76 */ request.setAttribute("captcha", "captchaError"); -/* 77 */ return true; -/* */ } -/* */ } + package com.archive.framework.shiro.web.filter.captcha; + + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.security.ShiroUtils; + import javax.servlet.ServletRequest; + import javax.servlet.ServletResponse; + import javax.servlet.http.HttpServletRequest; + import org.apache.shiro.web.filter.AccessControlFilter; + + + + + + + + + + + + + + + public class CaptchaValidateFilter + extends AccessControlFilter + { + private boolean captchaEnabled = true; + private String captchaType = "math"; + + + public void setCaptchaEnabled(boolean captchaEnabled) { + this.captchaEnabled = captchaEnabled; + } + + + public void setCaptchaType(String captchaType) { + this.captchaType = captchaType; + } + + + + public boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { + request.setAttribute("captchaEnabled", Boolean.valueOf(this.captchaEnabled)); + request.setAttribute("captchaType", this.captchaType); + return super.onPreHandle(request, response, mappedValue); + } + + + + + protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { + HttpServletRequest httpServletRequest = (HttpServletRequest)request; + + if (!this.captchaEnabled || !"post".equals(httpServletRequest.getMethod().toLowerCase())) + { + return true; + } + return validateResponse(httpServletRequest, httpServletRequest.getParameter("validateCode")); + } + + + public boolean validateResponse(HttpServletRequest request, String validateCode) { + Object obj = ShiroUtils.getSession().getAttribute("KAPTCHA_SESSION_KEY"); + String code = String.valueOf((obj != null) ? obj : ""); + + request.getSession().removeAttribute("KAPTCHA_SESSION_KEY"); + if (StringUtils.isEmpty(validateCode) || !validateCode.equalsIgnoreCase(code)) + { + return false; + } + return true; + } + + + + protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { + request.setAttribute("captcha", "captchaError"); + return true; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\captcha\CaptchaValidateFilter.class diff --git a/src/main/java/com/archive/framework/web/service/CacheService.java b/src/main/java/com/archive/framework/web/service/CacheService.java index 712fd19..6fe9460 100644 --- a/src/main/java/com/archive/framework/web/service/CacheService.java +++ b/src/main/java/com/archive/framework/web/service/CacheService.java @@ -1,88 +1,88 @@ -/* */ package com.archive.framework.web.service + package com.archive.framework.web.service ; -/* */ -/* */ import com.archive.common.utils.CacheUtils; -/* */ import java.util.Set; -/* */ import org.apache.commons.lang3.ArrayUtils; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class CacheService -/* */ { -/* */ public String[] getCacheNames() { -/* 24 */ String[] cacheNames = CacheUtils.getCacheNames(); -/* 25 */ return (String[])ArrayUtils.removeElement((Object[])cacheNames, "sys-authCache"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public Set getCacheKeys(String cacheName) { -/* 36 */ return CacheUtils.getCache(cacheName).keys(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public Object getCacheValue(String cacheName, String cacheKey) { -/* 48 */ return CacheUtils.get(cacheName, cacheKey); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void clearCacheName(String cacheName) { -/* 58 */ CacheUtils.removeAll(cacheName); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void clearCacheKey(String cacheName, String cacheKey) { -/* 69 */ CacheUtils.remove(cacheName, cacheKey); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void clearAll() { -/* 77 */ String[] cacheNames = getCacheNames(); -/* 78 */ for (String cacheName : cacheNames) -/* */ { -/* 80 */ CacheUtils.removeAll(cacheName); -/* */ } -/* */ } -/* */ } + + import com.archive.common.utils.CacheUtils; + import java.util.Set; + import org.apache.commons.lang3.ArrayUtils; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + @Service + public class CacheService + { + public String[] getCacheNames() { + String[] cacheNames = CacheUtils.getCacheNames(); + return (String[])ArrayUtils.removeElement((Object[])cacheNames, "sys-authCache"); + } + + + + + + + + + public Set getCacheKeys(String cacheName) { + return CacheUtils.getCache(cacheName).keys(); + } + + + + + + + + + + public Object getCacheValue(String cacheName, String cacheKey) { + return CacheUtils.get(cacheName, cacheKey); + } + + + + + + + + public void clearCacheName(String cacheName) { + CacheUtils.removeAll(cacheName); + } + + + + + + + + + public void clearCacheKey(String cacheName, String cacheKey) { + CacheUtils.remove(cacheName, cacheKey); + } + + + + + + public void clearAll() { + String[] cacheNames = getCacheNames(); + for (String cacheName : cacheNames) + { + CacheUtils.removeAll(cacheName); + } + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\CacheService.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnDocumentController.java b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnDocumentController.java index 8bb7244..6c5fc7b 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnDocumentController.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnDocumentController.java @@ -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.ColumnDocument; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnDocumentService; -/* */ 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/columndocument"}) -/* */ public class ColumnDocumentController -/* */ extends BaseController -/* */ { -/* 34 */ private String prefix = "dasz/basecolumn/columndocument"; -/* */ -/* */ @Autowired -/* */ private IColumnDocumentService columnDocumentService; -/* */ -/* */ @Autowired -/* */ private IDictTypeService dictTypeService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:view"}) -/* */ @GetMapping -/* */ public String document(ModelMap mmap) { -/* 46 */ DictType dictType = new DictType(); -/* 47 */ dictType.setLabel("column_bind"); -/* 48 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 49 */ mmap.put("dictList", list); -/* 50 */ return this.prefix + "/document"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(ColumnDocument columnDocument) { -/* 61 */ startPage(); -/* 62 */ List list = this.columnDocumentService.selectColumnDocumentList(columnDocument); -/* 63 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:export"}) -/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(ColumnDocument columnDocument) { -/* 75 */ List list = this.columnDocumentService.selectColumnDocumentList(columnDocument); -/* 76 */ ExcelUtil util = new ExcelUtil(ColumnDocument.class); -/* 77 */ return util.exportExcel(list, "document"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 86 */ DictType dictType = new DictType(); -/* 87 */ dictType.setLabel("column_bind"); -/* 88 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 89 */ mmap.put("dictList", list); -/* 90 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:add"}) -/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(ColumnDocument columnDocument) { -/* 102 */ return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 111 */ ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id); -/* 112 */ mmap.put("columnDocument", columnDocument); -/* 113 */ DictType dictType = new DictType(); -/* 114 */ dictType.setLabel("column_bind"); -/* 115 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 116 */ mmap.put("dictList", list); -/* 117 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:edit"}) -/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(ColumnDocument columnDocument) { -/* 129 */ return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columndocument:remove"}) -/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 141 */ return toAjax(this.columnDocumentService.deleteColumnDocumentByIds(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.ColumnDocument; + import com.archive.project.dasz.basecolumn.service.IColumnDocumentService; + 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/columndocument"}) + public class ColumnDocumentController + extends BaseController + { + private String prefix = "dasz/basecolumn/columndocument"; + + @Autowired + private IColumnDocumentService columnDocumentService; + + @Autowired + private IDictTypeService dictTypeService; + + + @RequiresPermissions({"dasz:columndocument:view"}) + @GetMapping + public String document(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/document"; + } + + + + + + @RequiresPermissions({"dasz:columndocument:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(ColumnDocument columnDocument) { + startPage(); + List list = this.columnDocumentService.selectColumnDocumentList(columnDocument); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:columndocument:export"}) + @Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(ColumnDocument columnDocument) { + List list = this.columnDocumentService.selectColumnDocumentList(columnDocument); + ExcelUtil util = new ExcelUtil(ColumnDocument.class); + return util.exportExcel(list, "document"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:columndocument:add"}) + @Log(title = "电子文件基础字段", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(ColumnDocument columnDocument) { + return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id); + mmap.put("columnDocument", columnDocument); + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:columndocument:edit"}) + @Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(ColumnDocument columnDocument) { + return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument)); + } + + + + + + @RequiresPermissions({"dasz:columndocument:remove"}) + @Log(title = "电子文件基础字段", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String 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 diff --git a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnDocument.java b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnDocument.java index b469d9c..fb6d192 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnDocument.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnDocument.java @@ -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 ColumnDocument -/* */ 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 ColumnDocument + 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\ColumnDocument.class diff --git a/src/main/java/com/archive/project/dasz/ccgl/controller/CcglController.java b/src/main/java/com/archive/project/dasz/ccgl/controller/CcglController.java index 985b523..51bb159 100644 --- a/src/main/java/com/archive/project/dasz/ccgl/controller/CcglController.java +++ b/src/main/java/com/archive/project/dasz/ccgl/controller/CcglController.java @@ -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.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.ccgl.domain.Ccgl; -/* */ import com.archive.project.dasz.ccgl.service.ICcglService; -/* */ 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/ccgl"}) -/* */ public class CcglController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "dasz/ccgl"; -/* */ -/* */ @Autowired -/* */ private ICcglService ccglService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:view"}) -/* */ @GetMapping -/* */ public String ccgl() { -/* 41 */ return this.prefix + "/ccgl"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(Ccgl ccgl) { -/* 52 */ startPage(); -/* 53 */ List list = this.ccglService.selectCcglList(ccgl); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:export"}) -/* */ @Log(title = "存储管理", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(Ccgl ccgl) { -/* 66 */ List list = this.ccglService.selectCcglList(ccgl); -/* 67 */ ExcelUtil util = new ExcelUtil(Ccgl.class); -/* 68 */ return util.exportExcel(list, "ccgl"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:add"}) -/* */ @Log(title = "存储管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(Ccgl ccgl) { -/* 89 */ return toAjax(this.ccglService.insertCcgl(ccgl)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ Ccgl ccgl = this.ccglService.selectCcglById(id); -/* 99 */ mmap.put("ccgl", ccgl); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:edit"}) -/* */ @Log(title = "存储管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(Ccgl ccgl) { -/* 112 */ return toAjax(this.ccglService.updateCcgl(ccgl)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:ccgl:remove"}) -/* */ @Log(title = "存储管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.ccglService.deleteCcglByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ @GetMapping({"/ljbsIsExit"}) -/* */ @ResponseBody -/* */ public AjaxResult ljbsIsExit(String ljbs, String ljmc) { -/* 132 */ Ccgl ccgl = new Ccgl(); -/* 133 */ ccgl.setLJMC(ljmc); -/* 134 */ List list1 = this.ccglService.selectCcglList(ccgl); -/* */ -/* 136 */ Ccgl ccgl2 = new Ccgl(); -/* 137 */ ccgl2.setLJBS(ljbs); -/* 138 */ List list2 = this.ccglService.selectCcglList(ccgl2); -/* 139 */ int res = 0; -/* 140 */ if (list1.size() > 0) { -/* 141 */ res = 1; -/* */ } -/* 143 */ if (list2.size() > 0) { -/* 144 */ res = 2; -/* */ } -/* 146 */ return AjaxResult.success(Integer.valueOf(res)); -/* */ } -/* */ } + + 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.ccgl.domain.Ccgl; + import com.archive.project.dasz.ccgl.service.ICcglService; + 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/ccgl"}) + public class CcglController + extends BaseController + { + private String prefix = "dasz/ccgl"; + + @Autowired + private ICcglService ccglService; + + + @RequiresPermissions({"dasz:ccgl:view"}) + @GetMapping + public String ccgl() { + return this.prefix + "/ccgl"; + } + + + + + + @RequiresPermissions({"dasz:ccgl:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(Ccgl ccgl) { + startPage(); + List list = this.ccglService.selectCcglList(ccgl); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:ccgl:export"}) + @Log(title = "存储管理", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(Ccgl ccgl) { + List list = this.ccglService.selectCcglList(ccgl); + ExcelUtil util = new ExcelUtil(Ccgl.class); + return util.exportExcel(list, "ccgl"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:ccgl:add"}) + @Log(title = "存储管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(Ccgl ccgl) { + return toAjax(this.ccglService.insertCcgl(ccgl)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + Ccgl ccgl = this.ccglService.selectCcglById(id); + mmap.put("ccgl", ccgl); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:ccgl:edit"}) + @Log(title = "存储管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(Ccgl ccgl) { + return toAjax(this.ccglService.updateCcgl(ccgl)); + } + + + + + + @RequiresPermissions({"dasz:ccgl:remove"}) + @Log(title = "存储管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.ccglService.deleteCcglByIds(ids)); + } + + + + @GetMapping({"/ljbsIsExit"}) + @ResponseBody + public AjaxResult ljbsIsExit(String ljbs, String ljmc) { + Ccgl ccgl = new Ccgl(); + ccgl.setLJMC(ljmc); + List list1 = this.ccglService.selectCcglList(ccgl); + + Ccgl ccgl2 = new Ccgl(); + ccgl2.setLJBS(ljbs); + List list2 = this.ccglService.selectCcglList(ccgl2); + int res = 0; + if (list1.size() > 0) { + res = 1; + } + if (list2.size() > 0) { + res = 2; + } + 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 diff --git a/src/main/java/com/archive/project/dasz/ccgl/domain/Ccgl.java b/src/main/java/com/archive/project/dasz/ccgl/domain/Ccgl.java index aa8e977..b88c13d 100644 --- a/src/main/java/com/archive/project/dasz/ccgl/domain/Ccgl.java +++ b/src/main/java/com/archive/project/dasz/ccgl/domain/Ccgl.java @@ -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.web.domain.BaseEntity; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class Ccgl -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "路径名称") -/* */ private String LJMC; -/* */ @Excel(name = "路径地址") -/* */ private String LJDZ; -/* */ @Excel(name = "路径标识") -/* */ private String LJBS; -/* */ @Excel(name = "备注") -/* */ private String REMARK; -/* */ -/* */ public void setId(Long id) { -/* 39 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 44 */ return this.id; -/* */ } -/* */ -/* */ public void setLJMC(String LJMC) { -/* 48 */ this.LJMC = LJMC; -/* */ } -/* */ -/* */ -/* */ public String getLJMC() { -/* 53 */ return this.LJMC; -/* */ } -/* */ -/* */ public void setLJDZ(String LJDZ) { -/* 57 */ this.LJDZ = LJDZ; -/* */ } -/* */ -/* */ -/* */ public String getLJDZ() { -/* 62 */ return this.LJDZ; -/* */ } -/* */ -/* */ public void setLJBS(String LJBS) { -/* 66 */ this.LJBS = LJBS; -/* */ } -/* */ -/* */ -/* */ public String getLJBS() { -/* 71 */ return this.LJBS; -/* */ } -/* */ -/* */ public void setREMARK(String REMARK) { -/* 75 */ this.REMARK = REMARK; -/* */ } -/* */ -/* */ -/* */ public String getREMARK() { -/* 80 */ return this.REMARK; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 85 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 86 */ .append("id", getId()) -/* 87 */ .append("LJMC", getLJMC()) -/* 88 */ .append("LJDZ", getLJDZ()) -/* 89 */ .append("REMARK", getREMARK()) -/* 90 */ .append("LJBS", getLJBS()) -/* 91 */ .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 Ccgl + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "路径名称") + private String LJMC; + @Excel(name = "路径地址") + private String LJDZ; + @Excel(name = "路径标识") + private String LJBS; + @Excel(name = "备注") + private String REMARK; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setLJMC(String LJMC) { + this.LJMC = LJMC; + } + + + public String getLJMC() { + return this.LJMC; + } + + public void setLJDZ(String LJDZ) { + this.LJDZ = LJDZ; + } + + + public String getLJDZ() { + return this.LJDZ; + } + + public void setLJBS(String LJBS) { + this.LJBS = LJBS; + } + + + public String getLJBS() { + return this.LJBS; + } + + public void setREMARK(String REMARK) { + this.REMARK = REMARK; + } + + + public String getREMARK() { + return this.REMARK; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("LJMC", getLJMC()) + .append("LJDZ", getLJDZ()) + .append("REMARK", getREMARK()) + .append("LJBS", getLJBS()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\domain\Ccgl.class diff --git a/src/main/java/com/archive/project/dasz/ccgl/service/impl/CcglServiceImpl.java b/src/main/java/com/archive/project/dasz/ccgl/service/impl/CcglServiceImpl.java index 9f9003a..361ab8a 100644 --- a/src/main/java/com/archive/project/dasz/ccgl/service/impl/CcglServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/ccgl/service/impl/CcglServiceImpl.java @@ -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.utils.StringUtils; -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.common.service.IExecuteSqlService; -/* */ import com.archive.project.dasz.archivetype.domain.ArchiveType; -/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; -/* */ import com.archive.project.dasz.ccgl.domain.Ccgl; -/* */ import com.archive.project.dasz.ccgl.mapper.CcglMapper; -/* */ import com.archive.project.dasz.ccgl.service.ICcglService; -/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; -/* */ import java.io.File; -/* */ import java.util.LinkedHashMap; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class CcglServiceImpl -/* */ implements ICcglService -/* */ { -/* */ @Autowired -/* */ private CcglMapper ccglMapper; -/* */ @Autowired -/* */ private IArchiveTypeService archiveTypeService; -/* */ @Autowired -/* */ private IPhysicalTableColumnService physicalTableColumnService; -/* */ @Autowired -/* */ private IExecuteSqlService executeSqlService; -/* */ -/* */ public Ccgl selectCcglById(Long id) { -/* 49 */ return this.ccglMapper.selectCcglById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectCcglList(Ccgl ccgl) { -/* 61 */ return this.ccglMapper.selectCcglList(ccgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertCcgl(Ccgl ccgl) { -/* 73 */ return this.ccglMapper.insertCcgl(ccgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateCcgl(Ccgl ccgl) { -/* 85 */ return this.ccglMapper.updateCcgl(ccgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteCcglByIds(String ids) { -/* 97 */ return this.ccglMapper.deleteCcglByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteCcglById(Long id) { -/* 109 */ return this.ccglMapper.deleteCcglById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public String getPathByLjbs(String ljbs) { -/* 120 */ String path = ""; -/* 121 */ Ccgl ccgl = new Ccgl(); -/* 122 */ ccgl.setLJBS(ljbs); -/* 123 */ List list = selectCcglList(ccgl); -/* 124 */ if (list.size() > 0 && list.get(0) != null) { -/* 125 */ path = ((Ccgl)list.get(0)).getLJDZ(); -/* */ } -/* 127 */ return path; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public String getCreateDocumentPathByFile(long id, long tableId) { -/* 140 */ String resPath = ""; -/* */ -/* 142 */ String cj = getPathByLjbs("archive.documentPath"); -/* 143 */ String tableName = TableUtil.getTableName(Long.valueOf(tableId)); -/* */ -/* 145 */ long archiveTypeId = TableUtil.getArchiveTypeIdByTableId(tableId); -/* 146 */ ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(archiveTypeId)); -/* 147 */ resPath = resPath + File.separator + archiveType.getArhciveCode(); -/* */ -/* 149 */ String[] attr = cj.split("/"); -/* 150 */ String columns = ""; -/* 151 */ for (int i = 0; i < attr.length; i++) { -/* 152 */ if (StringUtils.isNotEmpty(attr[i])) { -/* */ -/* 154 */ String name = this.physicalTableColumnService.getColumnCodeByTableIdAndShowName(attr[i], tableId); -/* 155 */ if (!name.equals("")) { -/* 156 */ columns = columns + name + ","; -/* */ } else { -/* 158 */ columns = columns + "'" + attr[i] + "',"; -/* 159 */ System.out.println("第" + i + "层级" + attr[i] + "没有找到对应字段,请检查!"); -/* */ } -/* */ } -/* */ } -/* 163 */ columns = columns.substring(0, columns.length() - 1); -/* */ -/* 165 */ String sql = "select " + columns + " from " + tableName + " where id=" + id; -/* 166 */ List> list = this.executeSqlService.queryList(sql); -/* 167 */ if (list.size() > 0 && list.get(0) != null) { -/* 168 */ String[] columnSttr = columns.split(","); -/* 169 */ 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(); -/* 171 */ resPath = resPath + File.separator + value; -/* */ } -/* */ } -/* 174 */ return resPath; -/* */ } -/* */ } + + import com.archive.common.archiveUtil.TableUtil; + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.text.Convert; + import com.archive.project.common.service.IExecuteSqlService; + import com.archive.project.dasz.archivetype.domain.ArchiveType; + import com.archive.project.dasz.archivetype.service.IArchiveTypeService; + import com.archive.project.dasz.ccgl.domain.Ccgl; + import com.archive.project.dasz.ccgl.mapper.CcglMapper; + import com.archive.project.dasz.ccgl.service.ICcglService; + import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; + import java.io.File; + import java.util.LinkedHashMap; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class CcglServiceImpl + implements ICcglService + { + @Autowired + private CcglMapper ccglMapper; + @Autowired + private IArchiveTypeService archiveTypeService; + @Autowired + private IPhysicalTableColumnService physicalTableColumnService; + @Autowired + private IExecuteSqlService executeSqlService; + + public Ccgl selectCcglById(Long id) { + return this.ccglMapper.selectCcglById(id); + } + + + + + + + + + + public List selectCcglList(Ccgl ccgl) { + return this.ccglMapper.selectCcglList(ccgl); + } + + + + + + + + + + public int insertCcgl(Ccgl ccgl) { + return this.ccglMapper.insertCcgl(ccgl); + } + + + + + + + + + + public int updateCcgl(Ccgl ccgl) { + return this.ccglMapper.updateCcgl(ccgl); + } + + + + + + + + + + public int deleteCcglByIds(String ids) { + return this.ccglMapper.deleteCcglByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteCcglById(Long id) { + return this.ccglMapper.deleteCcglById(id); + } + + + + + + + + + public String getPathByLjbs(String ljbs) { + String path = ""; + Ccgl ccgl = new Ccgl(); + ccgl.setLJBS(ljbs); + List list = selectCcglList(ccgl); + if (list.size() > 0 && list.get(0) != null) { + path = ((Ccgl)list.get(0)).getLJDZ(); + } + return path; + } + + + + + + + + + + + public String getCreateDocumentPathByFile(long id, long tableId) { + String resPath = ""; + + String cj = getPathByLjbs("archive.documentPath"); + String tableName = TableUtil.getTableName(Long.valueOf(tableId)); + + long archiveTypeId = TableUtil.getArchiveTypeIdByTableId(tableId); + ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(archiveTypeId)); + resPath = resPath + File.separator + archiveType.getArhciveCode(); + + String[] attr = cj.split("/"); + String columns = ""; + for (int i = 0; i < attr.length; i++) { + if (StringUtils.isNotEmpty(attr[i])) { + + String name = this.physicalTableColumnService.getColumnCodeByTableIdAndShowName(attr[i], tableId); + if (!name.equals("")) { + columns = columns + name + ","; + } else { + columns = columns + "'" + attr[i] + "',"; + System.out.println("第" + i + "层级" + attr[i] + "没有找到对应字段,请检查!"); + } + } + } + columns = columns.substring(0, columns.length() - 1); + + String sql = "select " + columns + " from " + tableName + " where id=" + id; + List> list = this.executeSqlService.queryList(sql); + if (list.size() > 0 && list.get(0) != null) { + String[] columnSttr = columns.split(","); + for (int j = 0; j < columnSttr.length; j++) { + String value = (((LinkedHashMap)list.get(0)).get(columnSttr[j]) == null) ? "" : ((LinkedHashMap)list.get(0)).get(columnSttr[j]).toString(); + resPath = resPath + File.separator + value; + } + } + return resPath; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\ccgl\service\impl\CcglServiceImpl.class diff --git a/src/main/java/com/archive/project/monitor/cache/CacheController.java b/src/main/java/com/archive/project/monitor/cache/CacheController.java index 199aaa5..a8ef36b 100644 --- a/src/main/java/com/archive/project/monitor/cache/CacheController.java +++ b/src/main/java/com/archive/project/monitor/cache/CacheController.java @@ -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.domain.AjaxResult; -/* */ import com.archive.framework.web.service.CacheService; -/* */ 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.PostMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/monitor/cache"}) -/* */ public class CacheController -/* */ extends BaseController -/* */ { -/* 23 */ private String prefix = "monitor/cache"; -/* */ -/* */ @Autowired -/* */ private CacheService cacheService; -/* */ -/* */ -/* */ @GetMapping -/* */ public String cache(ModelMap mmap) { -/* 31 */ mmap.put("cacheNames", this.cacheService.getCacheNames()); -/* 32 */ return this.prefix + "/cache"; -/* */ } -/* */ -/* */ -/* */ @PostMapping({"/getNames"}) -/* */ public String getCacheNames(String fragment, ModelMap mmap) { -/* 38 */ mmap.put("cacheNames", this.cacheService.getCacheNames()); -/* 39 */ return this.prefix + "/cache::" + fragment; -/* */ } -/* */ -/* */ -/* */ @PostMapping({"/getKeys"}) -/* */ public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) { -/* 45 */ mmap.put("cacheName", cacheName); -/* 46 */ mmap.put("cacheKyes", this.cacheService.getCacheKeys(cacheName)); -/* 47 */ return this.prefix + "/cache::" + fragment; -/* */ } -/* */ -/* */ -/* */ @PostMapping({"/getValue"}) -/* */ public String getCacheValue(String fragment, String cacheName, String cacheKey, ModelMap mmap) { -/* 53 */ mmap.put("cacheName", cacheName); -/* 54 */ mmap.put("cacheKey", cacheKey); -/* 55 */ mmap.put("cacheValue", this.cacheService.getCacheValue(cacheName, cacheKey)); -/* 56 */ return this.prefix + "/cache::" + fragment; -/* */ } -/* */ -/* */ -/* */ @PostMapping({"/clearCacheName"}) -/* */ @ResponseBody -/* */ public AjaxResult clearCacheName(String cacheName, ModelMap mmap) { -/* 63 */ this.cacheService.clearCacheName(cacheName); -/* 64 */ return AjaxResult.success(); -/* */ } -/* */ -/* */ -/* */ @PostMapping({"/clearCacheKey"}) -/* */ @ResponseBody -/* */ public AjaxResult clearCacheKey(String cacheName, String cacheKey, ModelMap mmap) { -/* 71 */ this.cacheService.clearCacheKey(cacheName, cacheKey); -/* 72 */ return AjaxResult.success(); -/* */ } -/* */ -/* */ -/* */ @GetMapping({"/clearAll"}) -/* */ @ResponseBody -/* */ public AjaxResult clearAll(ModelMap mmap) { -/* 79 */ this.cacheService.clearAll(); -/* 80 */ return AjaxResult.success(); -/* */ } -/* */ } + + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.service.CacheService; + 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.PostMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.ResponseBody; + + + + + + @Controller + @RequestMapping({"/monitor/cache"}) + public class CacheController + extends BaseController + { + private String prefix = "monitor/cache"; + + @Autowired + private CacheService cacheService; + + + @GetMapping + public String cache(ModelMap mmap) { + mmap.put("cacheNames", this.cacheService.getCacheNames()); + return this.prefix + "/cache"; + } + + + @PostMapping({"/getNames"}) + public String getCacheNames(String fragment, ModelMap mmap) { + mmap.put("cacheNames", this.cacheService.getCacheNames()); + return this.prefix + "/cache::" + fragment; + } + + + @PostMapping({"/getKeys"}) + public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) { + mmap.put("cacheName", cacheName); + mmap.put("cacheKyes", this.cacheService.getCacheKeys(cacheName)); + return this.prefix + "/cache::" + fragment; + } + + + @PostMapping({"/getValue"}) + public String getCacheValue(String fragment, String cacheName, String cacheKey, ModelMap mmap) { + mmap.put("cacheName", cacheName); + mmap.put("cacheKey", cacheKey); + mmap.put("cacheValue", this.cacheService.getCacheValue(cacheName, cacheKey)); + return this.prefix + "/cache::" + fragment; + } + + + @PostMapping({"/clearCacheName"}) + @ResponseBody + public AjaxResult clearCacheName(String cacheName, ModelMap mmap) { + this.cacheService.clearCacheName(cacheName); + return AjaxResult.success(); + } + + + @PostMapping({"/clearCacheKey"}) + @ResponseBody + public AjaxResult clearCacheKey(String cacheName, String cacheKey, ModelMap mmap) { + this.cacheService.clearCacheKey(cacheName, cacheKey); + return AjaxResult.success(); + } + + + @GetMapping({"/clearAll"}) + @ResponseBody + public AjaxResult clearAll(ModelMap mmap) { + this.cacheService.clearAll(); + return AjaxResult.success(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\cache\CacheController.class diff --git a/src/main/java/com/archive/project/system/user/controller/CaptchaController.java b/src/main/java/com/archive/project/system/user/controller/CaptchaController.java index a2f18c9..eb82ef8 100644 --- a/src/main/java/com/archive/project/system/user/controller/CaptchaController.java +++ b/src/main/java/com/archive/project/system/user/controller/CaptchaController.java @@ -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.google.code.kaptcha.Producer; -/* */ import java.awt.image.BufferedImage; -/* */ import java.io.IOException; -/* */ import java.io.OutputStream; -/* */ import javax.annotation.Resource; -/* */ import javax.imageio.ImageIO; -/* */ import javax.servlet.ServletOutputStream; -/* */ import javax.servlet.http.HttpServletRequest; -/* */ import javax.servlet.http.HttpServletResponse; -/* */ import javax.servlet.http.HttpSession; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.servlet.ModelAndView; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/captcha"}) -/* */ public class CaptchaController -/* */ extends BaseController -/* */ { -/* */ @Resource(name = "captchaProducer") -/* */ private Producer captchaProducer; -/* */ @Resource(name = "captchaProducerMath") -/* */ private Producer captchaProducerMath; -/* */ -/* */ @GetMapping({"/captchaImage"}) -/* */ public ModelAndView getKaptchaImage(HttpServletRequest request, HttpServletResponse response) { -/* 40 */ ServletOutputStream out = null; -/* */ -/* */ try { -/* 43 */ HttpSession session = request.getSession(); -/* 44 */ response.setDateHeader("Expires", 0L); -/* 45 */ response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); -/* 46 */ response.addHeader("Cache-Control", "post-check=0, pre-check=0"); -/* 47 */ response.setHeader("Pragma", "no-cache"); -/* 48 */ response.setContentType("image/jpeg"); -/* */ -/* 50 */ String type = request.getParameter("type"); -/* 51 */ String capStr = null; -/* 52 */ String code = null; -/* 53 */ BufferedImage bi = null; -/* 54 */ if ("math".equals(type)) { -/* */ -/* 56 */ String capText = this.captchaProducerMath.createText(); -/* 57 */ capStr = capText.substring(0, capText.lastIndexOf("@")); -/* 58 */ code = capText.substring(capText.lastIndexOf("@") + 1); -/* 59 */ bi = this.captchaProducerMath.createImage(capStr); -/* */ } -/* 61 */ else if ("char".equals(type)) { -/* */ -/* 63 */ capStr = code = this.captchaProducer.createText(); -/* 64 */ bi = this.captchaProducer.createImage(capStr); -/* */ } -/* 66 */ session.setAttribute("KAPTCHA_SESSION_KEY", code); -/* 67 */ out = response.getOutputStream(); -/* 68 */ ImageIO.write(bi, "jpg", (OutputStream)out); -/* 69 */ out.flush(); -/* */ -/* */ } -/* 72 */ catch (Exception e) { -/* */ -/* 74 */ e.printStackTrace(); -/* */ } finally { -/* */ -/* */ -/* */ try { -/* */ -/* 80 */ if (out != null) -/* */ { -/* 82 */ out.close(); -/* */ } -/* */ } -/* 85 */ catch (IOException e) { -/* */ -/* 87 */ e.printStackTrace(); -/* */ } -/* */ } -/* 90 */ return null; -/* */ } -/* */ } + + import com.archive.framework.web.controller.BaseController; + import com.google.code.kaptcha.Producer; + import java.awt.image.BufferedImage; + import java.io.IOException; + import java.io.OutputStream; + import javax.annotation.Resource; + import javax.imageio.ImageIO; + import javax.servlet.ServletOutputStream; + import javax.servlet.http.HttpServletRequest; + import javax.servlet.http.HttpServletResponse; + import javax.servlet.http.HttpSession; + import org.springframework.stereotype.Controller; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.servlet.ModelAndView; + + + + + + + + + + + @Controller + @RequestMapping({"/captcha"}) + public class CaptchaController + extends BaseController + { + @Resource(name = "captchaProducer") + private Producer captchaProducer; + @Resource(name = "captchaProducerMath") + private Producer captchaProducerMath; + + @GetMapping({"/captchaImage"}) + public ModelAndView getKaptchaImage(HttpServletRequest request, HttpServletResponse response) { + ServletOutputStream out = null; + + try { + HttpSession session = request.getSession(); + response.setDateHeader("Expires", 0L); + response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); + response.addHeader("Cache-Control", "post-check=0, pre-check=0"); + response.setHeader("Pragma", "no-cache"); + response.setContentType("image/jpeg"); + + String type = request.getParameter("type"); + String capStr = null; + String code = null; + BufferedImage bi = null; + if ("math".equals(type)) { + + String capText = this.captchaProducerMath.createText(); + capStr = capText.substring(0, capText.lastIndexOf("@")); + code = capText.substring(capText.lastIndexOf("@") + 1); + bi = this.captchaProducerMath.createImage(capStr); + } + else if ("char".equals(type)) { + + capStr = code = this.captchaProducer.createText(); + bi = this.captchaProducer.createImage(capStr); + } + session.setAttribute("KAPTCHA_SESSION_KEY", code); + out = response.getOutputStream(); + ImageIO.write(bi, "jpg", (OutputStream)out); + out.flush(); + + } + catch (Exception e) { + + e.printStackTrace(); + } finally { + + + try { + + if (out != null) + { + out.close(); + } + } + catch (IOException e) { + + e.printStackTrace(); + } + } + return null; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\CaptchaController.class