feat:修改通知

dev
wangxy 8 months ago
parent 5a2c947b0c
commit 9454e8418d

@ -1,139 +1,139 @@
/* */ package com.archive.common.utils package com.archive.common.utils
; ;
/* */
/* */ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
/* */ import com.archive.common.utils.IpUtils; import com.archive.common.utils.IpUtils;
/* */ import java.io.PrintWriter; import java.io.PrintWriter;
/* */ import java.io.StringWriter; import java.io.StringWriter;
/* */ import java.util.Map; import java.util.Map;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */ import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */ public class LogUtils public class LogUtils
/* */ { {
/* 19 */ public static final Logger ERROR_LOG = LoggerFactory.getLogger("sys-error"); public static final Logger ERROR_LOG = LoggerFactory.getLogger("sys-error");
/* 20 */ public static final Logger ACCESS_LOG = LoggerFactory.getLogger("sys-access"); public static final Logger ACCESS_LOG = LoggerFactory.getLogger("sys-access");
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void logAccess(HttpServletRequest request) { public static void logAccess(HttpServletRequest request) {
/* 29 */ String username = getUsername(); String username = getUsername();
/* 30 */ String jsessionId = request.getRequestedSessionId(); String jsessionId = request.getRequestedSessionId();
/* 31 */ String ip = IpUtils.getIpAddr(request); String ip = IpUtils.getIpAddr(request);
/* 32 */ String accept = request.getHeader("accept"); String accept = request.getHeader("accept");
/* 33 */ String userAgent = request.getHeader("User-Agent"); String userAgent = request.getHeader("User-Agent");
/* 34 */ String url = request.getRequestURI(); String url = request.getRequestURI();
/* 35 */ String params = getParams(request); String params = getParams(request);
/* */
/* 37 */ StringBuilder s = new StringBuilder(); StringBuilder s = new StringBuilder();
/* 38 */ s.append(getBlock(username)); s.append(getBlock(username));
/* 39 */ s.append(getBlock(jsessionId)); s.append(getBlock(jsessionId));
/* 40 */ s.append(getBlock(ip)); s.append(getBlock(ip));
/* 41 */ s.append(getBlock(accept)); s.append(getBlock(accept));
/* 42 */ s.append(getBlock(userAgent)); s.append(getBlock(userAgent));
/* 43 */ s.append(getBlock(url)); s.append(getBlock(url));
/* 44 */ s.append(getBlock(params)); s.append(getBlock(params));
/* 45 */ s.append(getBlock(request.getHeader("Referer"))); s.append(getBlock(request.getHeader("Referer")));
/* 46 */ getAccessLog().info(s.toString()); getAccessLog().info(s.toString());
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void logError(String message, Throwable e) { public static void logError(String message, Throwable e) {
/* 57 */ String username = getUsername(); String username = getUsername();
/* 58 */ StringBuilder s = new StringBuilder(); StringBuilder s = new StringBuilder();
/* 59 */ s.append(getBlock("exception")); s.append(getBlock("exception"));
/* 60 */ s.append(getBlock(username)); s.append(getBlock(username));
/* 61 */ s.append(getBlock(message)); s.append(getBlock(message));
/* 62 */ ERROR_LOG.error(s.toString(), e); ERROR_LOG.error(s.toString(), e);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void logPageError(HttpServletRequest request) { public static void logPageError(HttpServletRequest request) {
/* 72 */ String username = getUsername(); String username = getUsername();
/* */
/* 74 */ Integer statusCode = (Integer)request.getAttribute("javax.servlet.error.status_code"); Integer statusCode = (Integer)request.getAttribute("javax.servlet.error.status_code");
/* 75 */ String message = (String)request.getAttribute("javax.servlet.error.message"); String message = (String)request.getAttribute("javax.servlet.error.message");
/* 76 */ String uri = (String)request.getAttribute("javax.servlet.error.request_uri"); String uri = (String)request.getAttribute("javax.servlet.error.request_uri");
/* 77 */ Throwable t = (Throwable)request.getAttribute("javax.servlet.error.exception"); Throwable t = (Throwable)request.getAttribute("javax.servlet.error.exception");
/* */
/* 79 */ if (statusCode == null) if (statusCode == null)
/* */ { {
/* 81 */ statusCode = Integer.valueOf(0); statusCode = Integer.valueOf(0);
/* */ } }
/* */
/* 84 */ StringBuilder s = new StringBuilder(); StringBuilder s = new StringBuilder();
/* 85 */ s.append(getBlock((t == null) ? "page" : "exception")); s.append(getBlock((t == null) ? "page" : "exception"));
/* 86 */ s.append(getBlock(username)); s.append(getBlock(username));
/* 87 */ s.append(getBlock(statusCode)); s.append(getBlock(statusCode));
/* 88 */ s.append(getBlock(message)); s.append(getBlock(message));
/* 89 */ s.append(getBlock(IpUtils.getIpAddr(request))); s.append(getBlock(IpUtils.getIpAddr(request)));
/* */
/* 91 */ s.append(getBlock(uri)); s.append(getBlock(uri));
/* 92 */ s.append(getBlock(request.getHeader("Referer"))); s.append(getBlock(request.getHeader("Referer")));
/* 93 */ StringWriter sw = new StringWriter(); StringWriter sw = new StringWriter();
/* */
/* 95 */ while (t != null) { while (t != null) {
/* */
/* 97 */ t.printStackTrace(new PrintWriter(sw)); t.printStackTrace(new PrintWriter(sw));
/* 98 */ t = t.getCause(); t = t.getCause();
/* */ } }
/* 100 */ s.append(getBlock(sw.toString())); s.append(getBlock(sw.toString()));
/* 101 */ getErrorLog().error(s.toString()); getErrorLog().error(s.toString());
/* */ } }
/* */
/* */
/* */
/* */ public static String getBlock(Object msg) { public static String getBlock(Object msg) {
/* 107 */ if (msg == null) if (msg == null)
/* */ { {
/* 109 */ msg = ""; msg = "";
/* */ } }
/* 111 */ return "[" + msg.toString() + "]"; return "[" + msg.toString() + "]";
/* */ } }
/* */
/* */
/* */ protected static String getParams(HttpServletRequest request) { protected static String getParams(HttpServletRequest request) {
/* 116 */ Map<String, String[]> params = request.getParameterMap(); Map<String, String[]> params = request.getParameterMap();
/* 117 */ return JSON.toJSONString(params); return JSON.toJSONString(params);
/* */ } }
/* */
/* */
/* */ protected static String getUsername() { protected static String getUsername() {
/* 122 */ return (String)SecurityUtils.getSubject().getPrincipal(); return (String)SecurityUtils.getSubject().getPrincipal();
/* */ } }
/* */
/* */
/* */ public static Logger getAccessLog() { public static Logger getAccessLog() {
/* 127 */ return ACCESS_LOG; return ACCESS_LOG;
/* */ } }
/* */
/* */
/* */ public static Logger getErrorLog() { public static Logger getErrorLog() {
/* 132 */ return ERROR_LOG; return ERROR_LOG;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\LogUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\LogUtils.class

@ -1,59 +1,59 @@
/* */ package com.archive.common.utils package com.archive.common.utils
; ;
/* */
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.Iterator; import java.util.Iterator;
/* */ import java.util.Map; import java.util.Map;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class MapDataUtil public class MapDataUtil
/* */ { {
/* */ public static Map<String, Object> convertDataMap(HttpServletRequest request) { public static Map<String, Object> convertDataMap(HttpServletRequest request) {
/* 18 */ Map<String, String[]> properties = request.getParameterMap(); Map<String, String[]> properties = request.getParameterMap();
/* 19 */ Map<String, Object> returnMap = new HashMap<>(); Map<String, Object> returnMap = new HashMap<>();
/* 20 */ Iterator<?> entries = properties.entrySet().iterator(); Iterator<?> entries = properties.entrySet().iterator();
/* */
/* 22 */ String name = ""; String name = "";
/* 23 */ String value = ""; String value = "";
/* 24 */ while (entries.hasNext()) { while (entries.hasNext()) {
/* */
/* 26 */ Map.Entry<?, ?> entry = (Map.Entry<?, ?>)entries.next(); Map.Entry<?, ?> entry = (Map.Entry<?, ?>)entries.next();
/* 27 */ name = (String)entry.getKey(); name = (String)entry.getKey();
/* 28 */ Object valueObj = entry.getValue(); Object valueObj = entry.getValue();
/* 29 */ if (null == valueObj) { if (null == valueObj) {
/* */
/* 31 */ value = ""; value = "";
/* */ } }
/* 33 */ else if (valueObj instanceof String[]) { else if (valueObj instanceof String[]) {
/* */
/* 35 */ String[] values = (String[])valueObj; String[] values = (String[])valueObj;
/* 36 */ value = ""; value = "";
/* 37 */ for (int i = 0; i < values.length; i++) for (int i = 0; i < values.length; i++)
/* */ { {
/* 39 */ value = value + values[i] + ","; value = value + values[i] + ",";
/* */ } }
/* 41 */ if (value.length() > 0) if (value.length() > 0)
/* */ { {
/* 43 */ value = value.substring(0, value.length() - 1); value = value.substring(0, value.length() - 1);
/* */ } }
/* */ } }
/* */ else { else {
/* */
/* 48 */ value = valueObj.toString(); value = valueObj.toString();
/* */ } }
/* 50 */ returnMap.put(name, value); returnMap.put(name, value);
/* */ } }
/* 52 */ return returnMap; return returnMap;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\MapDataUtil.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\MapDataUtil.class

@ -1,71 +1,71 @@
/* */ package com.archive.common.utils package com.archive.common.utils
; ;
/* */
/* */ import java.security.MessageDigest; import java.security.MessageDigest;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Md5Utils public class Md5Utils
/* */ { {
/* 14 */ private static final Logger log = LoggerFactory.getLogger(com.archive.common.utils.Md5Utils.class); private static final Logger log = LoggerFactory.getLogger(com.archive.common.utils.Md5Utils.class);
/* */
/* */
/* */
/* */
/* */ private static byte[] md5(String s) { private static byte[] md5(String s) {
/* */ try { try {
/* 21 */ MessageDigest algorithm = MessageDigest.getInstance("MD5"); MessageDigest algorithm = MessageDigest.getInstance("MD5");
/* 22 */ algorithm.reset(); algorithm.reset();
/* 23 */ algorithm.update(s.getBytes("UTF-8")); algorithm.update(s.getBytes("UTF-8"));
/* 24 */ byte[] messageDigest = algorithm.digest(); byte[] messageDigest = algorithm.digest();
/* 25 */ return messageDigest; return messageDigest;
/* */ } }
/* 27 */ catch (Exception e) { catch (Exception e) {
/* */
/* 29 */ log.error("MD5 Error...", e); log.error("MD5 Error...", e);
/* */
/* 31 */ return null; return null;
/* */ } }
/* */ } }
/* */
/* */ private static final String toHex(byte[] hash) { private static final String toHex(byte[] hash) {
/* 36 */ if (hash == null) if (hash == null)
/* */ { {
/* 38 */ return null; return null;
/* */ } }
/* 40 */ StringBuffer buf = new StringBuffer(hash.length * 2); StringBuffer buf = new StringBuffer(hash.length * 2);
/* */
/* */
/* 43 */ for (int i = 0; i < hash.length; i++) { for (int i = 0; i < hash.length; i++) {
/* */
/* 45 */ if ((hash[i] & 0xFF) < 16) if ((hash[i] & 0xFF) < 16)
/* */ { {
/* 47 */ buf.append("0"); buf.append("0");
/* */ } }
/* 49 */ buf.append(Long.toString((hash[i] & 0xFF), 16)); buf.append(Long.toString((hash[i] & 0xFF), 16));
/* */ } }
/* 51 */ return buf.toString(); return buf.toString();
/* */ } }
/* */
/* */
/* */
/* */ public static String hash(String s) { public static String hash(String s) {
/* */ try { try {
/* 58 */ return new String(toHex(md5(s)).getBytes("UTF-8"), "UTF-8"); return new String(toHex(md5(s)).getBytes("UTF-8"), "UTF-8");
/* */ } }
/* 60 */ catch (Exception e) { catch (Exception e) {
/* */
/* 62 */ log.error("not supported charset...{}", e); log.error("not supported charset...{}", e);
/* 63 */ return s; return s;
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\Md5Utils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\Md5Utils.class

@ -1,30 +1,30 @@
/* */ 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 org.springframework.context.MessageSource; import org.springframework.context.MessageSource;
/* */ import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.context.i18n.LocaleContextHolder;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class MessageUtils public class MessageUtils
/* */ { {
/* */ public static String message(String code, Object... args) { public static String message(String code, Object... args) {
/* 23 */ MessageSource messageSource = (MessageSource)SpringUtils.getBean(MessageSource.class); MessageSource messageSource = (MessageSource)SpringUtils.getBean(MessageSource.class);
/* 24 */ return messageSource.getMessage(code, args, LocaleContextHolder.getLocale()); return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\MessageUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\MessageUtils.class

@ -1,61 +1,61 @@
/* */ package com.archive.common.utils.file; package com.archive.common.utils.file;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class MimeTypeUtils public class MimeTypeUtils
/* */ { {
/* */ public static final String IMAGE_PNG = "image/png"; public static final String IMAGE_PNG = "image/png";
/* */ public static final String IMAGE_JPG = "image/jpg"; public static final String IMAGE_JPG = "image/jpg";
/* */ public static final String IMAGE_JPEG = "image/jpeg"; public static final String IMAGE_JPEG = "image/jpeg";
/* */ public static final String IMAGE_BMP = "image/bmp"; public static final String IMAGE_BMP = "image/bmp";
/* */ public static final String IMAGE_GIF = "image/gif"; public static final String IMAGE_GIF = "image/gif";
/* 20 */ public static final String[] IMAGE_EXTENSION = new String[] { "bmp", "gif", "jpg", "jpeg", "png" }; public static final String[] IMAGE_EXTENSION = new String[] { "bmp", "gif", "jpg", "jpeg", "png" };
/* */
/* 22 */ public static final String[] FLASH_EXTENSION = new String[] { "swf", "flv" }; public static final String[] FLASH_EXTENSION = new String[] { "swf", "flv" };
/* */
/* 24 */ public static final String[] MEDIA_EXTENSION = new String[] { "swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", "asf", "rm", "rmvb" }; public static final String[] MEDIA_EXTENSION = new String[] { "swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", "asf", "rm", "rmvb" };
/* */
/* */
/* 27 */ public static final String[] VIDEO_EXTENSION = new String[] { "mp4", "avi", "rmvb" }; public static final String[] VIDEO_EXTENSION = new String[] { "mp4", "avi", "rmvb" };
/* */
/* 29 */ public static final String[] DEFAULT_ALLOWED_EXTENSION = new String[] { "bmp", "gif", "jpg", "jpeg", "png", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt", "rar", "zip", "gz", "bz2", "mp4", "avi", "rmvb", "pdf" }; public static final String[] DEFAULT_ALLOWED_EXTENSION = new String[] { "bmp", "gif", "jpg", "jpeg", "png", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt", "rar", "zip", "gz", "bz2", "mp4", "avi", "rmvb", "pdf" };
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getExtension(String prefix) { public static String getExtension(String prefix) {
/* 43 */ switch (prefix) { switch (prefix) {
/* */
/* */ case "image/png": case "image/png":
/* 46 */ return "png"; return "png";
/* */ case "image/jpg": case "image/jpg":
/* 48 */ return "jpg"; return "jpg";
/* */ case "image/jpeg": case "image/jpeg":
/* 50 */ return "jpeg"; return "jpeg";
/* */ case "image/bmp": case "image/bmp":
/* 52 */ return "bmp"; return "bmp";
/* */ case "image/gif": case "image/gif":
/* 54 */ return "gif"; return "gif";
/* */ } }
/* 56 */ return ""; return "";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\file\MimeTypeUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\file\MimeTypeUtils.class

@ -1,137 +1,137 @@
/* */ package com.archive.framework.config package com.archive.framework.config
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.Arrays; import java.util.Arrays;
/* */ import java.util.HashSet; import java.util.HashSet;
/* */ import java.util.List; import java.util.List;
/* */ import javax.sql.DataSource; import javax.sql.DataSource;
/* */ import org.apache.ibatis.io.VFS; import org.apache.ibatis.io.VFS;
/* */ import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactory;
/* */ import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionFactoryBean;
/* */ import org.mybatis.spring.boot.autoconfigure.SpringBootVFS; import org.mybatis.spring.boot.autoconfigure.SpringBootVFS;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
/* */ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/* */ import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
/* */ import org.springframework.core.io.DefaultResourceLoader; import org.springframework.core.io.DefaultResourceLoader;
/* */ import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
/* */ import org.springframework.core.io.ResourceLoader; import org.springframework.core.io.ResourceLoader;
/* */ import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
/* */ import org.springframework.core.type.classreading.CachingMetadataReaderFactory; import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
/* */ import org.springframework.core.type.classreading.MetadataReader; import org.springframework.core.type.classreading.MetadataReader;
/* */ import org.springframework.util.ClassUtils; import org.springframework.util.ClassUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Configuration @Configuration
/* */ public class MyBatisConfig public class MyBatisConfig
/* */ { {
/* */ @Autowired @Autowired
/* */ private Environment env; private Environment env;
/* */ static final String DEFAULT_RESOURCE_PATTERN = "**/*.class"; static final String DEFAULT_RESOURCE_PATTERN = "**/*.class";
/* */
/* */ public static String setTypeAliasesPackage(String typeAliasesPackage) { public static String setTypeAliasesPackage(String typeAliasesPackage) {
/* 42 */ PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver(); PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver();
/* 43 */ CachingMetadataReaderFactory cachingMetadataReaderFactory = new CachingMetadataReaderFactory((ResourceLoader)pathMatchingResourcePatternResolver); CachingMetadataReaderFactory cachingMetadataReaderFactory = new CachingMetadataReaderFactory((ResourceLoader)pathMatchingResourcePatternResolver);
/* 44 */ List<String> allResult = new ArrayList<>(); List<String> allResult = new ArrayList<>();
/* */
/* */ try { try {
/* 47 */ for (String aliasesPackage : typeAliasesPackage.split(",")) { for (String aliasesPackage : typeAliasesPackage.split(",")) {
/* */
/* 49 */ List<String> result = new ArrayList<>(); List<String> result = new ArrayList<>();
/* */
/* 51 */ aliasesPackage = "classpath*:" + ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + "**/*.class"; aliasesPackage = "classpath*:" + ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + "**/*.class";
/* 52 */ Resource[] resources = pathMatchingResourcePatternResolver.getResources(aliasesPackage); Resource[] resources = pathMatchingResourcePatternResolver.getResources(aliasesPackage);
/* 53 */ if (resources != null && resources.length > 0) { if (resources != null && resources.length > 0) {
/* */
/* 55 */ MetadataReader metadataReader = null; MetadataReader metadataReader = null;
/* 56 */ for (Resource resource : resources) { for (Resource resource : resources) {
/* */
/* 58 */ if (resource.isReadable()) { if (resource.isReadable()) {
/* */
/* 60 */ metadataReader = cachingMetadataReaderFactory.getMetadataReader(resource); metadataReader = cachingMetadataReaderFactory.getMetadataReader(resource);
/* */
/* */ try { try {
/* 63 */ result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName()); result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName());
/* */ } }
/* 65 */ catch (ClassNotFoundException e) { catch (ClassNotFoundException e) {
/* */
/* 67 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* */ } }
/* */ } }
/* */ } }
/* 72 */ if (result.size() > 0) { if (result.size() > 0) {
/* */
/* 74 */ HashSet<String> hashResult = new HashSet<>(result); HashSet<String> hashResult = new HashSet<>(result);
/* 75 */ allResult.addAll(hashResult); allResult.addAll(hashResult);
/* */ } }
/* */ } }
/* 78 */ if (allResult.size() > 0) if (allResult.size() > 0)
/* */ { {
/* 80 */ typeAliasesPackage = String.join(",", (CharSequence[])allResult.<String>toArray(new String[0])); typeAliasesPackage = String.join(",", (CharSequence[])allResult.<String>toArray(new String[0]));
/* */ } }
/* */ else else
/* */ { {
/* 84 */ throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包"); throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包");
/* */ } }
/* */
/* 87 */ } catch (IOException e) { } catch (IOException e) {
/* */
/* 89 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 91 */ return typeAliasesPackage; return typeAliasesPackage;
/* */ } }
/* */
/* */
/* */ public Resource[] resolveMapperLocations(String[] mapperLocations) { public Resource[] resolveMapperLocations(String[] mapperLocations) {
/* 96 */ PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver(); PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver();
/* 97 */ List<Resource> resources = new ArrayList<>(); List<Resource> resources = new ArrayList<>();
/* 98 */ if (mapperLocations != null) if (mapperLocations != null)
/* */ { {
/* 100 */ for (String mapperLocation : mapperLocations) { for (String mapperLocation : mapperLocations) {
/* */
/* */
/* */ try { try {
/* 104 */ Resource[] mappers = pathMatchingResourcePatternResolver.getResources(mapperLocation); Resource[] mappers = pathMatchingResourcePatternResolver.getResources(mapperLocation);
/* 105 */ resources.addAll(Arrays.asList(mappers)); resources.addAll(Arrays.asList(mappers));
/* */ } }
/* 107 */ catch (IOException iOException) {} catch (IOException iOException) {}
/* */ } }
/* */ } }
/* */
/* */
/* */
/* 113 */ return resources.<Resource>toArray(new Resource[resources.size()]); return resources.<Resource>toArray(new Resource[resources.size()]);
/* */ } }
/* */
/* */
/* */ @Bean @Bean
/* */ public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception { public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
/* 119 */ String typeAliasesPackage = this.env.getProperty("mybatis.typeAliasesPackage"); String typeAliasesPackage = this.env.getProperty("mybatis.typeAliasesPackage");
/* 120 */ String mapperLocations = this.env.getProperty("mybatis.mapperLocations"); String mapperLocations = this.env.getProperty("mybatis.mapperLocations");
/* 121 */ String configLocation = this.env.getProperty("mybatis.configLocation"); String configLocation = this.env.getProperty("mybatis.configLocation");
/* 122 */ typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage); typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage);
/* 123 */ VFS.addImplClass(SpringBootVFS.class); VFS.addImplClass(SpringBootVFS.class);
/* */
/* 125 */ SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean(); SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
/* 126 */ sessionFactory.setDataSource(dataSource); sessionFactory.setDataSource(dataSource);
/* 127 */ sessionFactory.setTypeAliasesPackage(typeAliasesPackage); sessionFactory.setTypeAliasesPackage(typeAliasesPackage);
/* 128 */ sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ","))); sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ",")));
/* 129 */ sessionFactory.setConfigLocation((new DefaultResourceLoader()).getResource(configLocation)); sessionFactory.setConfigLocation((new DefaultResourceLoader()).getResource(configLocation));
/* 130 */ return sessionFactory.getObject(); return sessionFactory.getObject();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\MyBatisConfig.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\MyBatisConfig.class

@ -1,145 +1,145 @@
/* */ package com.archive.framework.shiro.service package com.archive.framework.shiro.service
; ;
/* */
/* */ import com.archive.common.exception.user.CaptchaException; import com.archive.common.exception.user.CaptchaException;
/* */ import com.archive.common.exception.user.UserBlockedException; import com.archive.common.exception.user.UserBlockedException;
/* */ import com.archive.common.exception.user.UserDeleteException; import com.archive.common.exception.user.UserDeleteException;
/* */ import com.archive.common.exception.user.UserNotExistsException; import com.archive.common.exception.user.UserNotExistsException;
/* */ import com.archive.common.exception.user.UserPasswordNotMatchException; import com.archive.common.exception.user.UserPasswordNotMatchException;
/* */ import com.archive.common.utils.DateUtils; import com.archive.common.utils.DateUtils;
/* */ import com.archive.common.utils.MessageUtils; import com.archive.common.utils.MessageUtils;
/* */ import com.archive.common.utils.ServletUtils; import com.archive.common.utils.ServletUtils;
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.framework.manager.AsyncManager; import com.archive.framework.manager.AsyncManager;
/* */ import com.archive.framework.manager.factory.AsyncFactory; import com.archive.framework.manager.factory.AsyncFactory;
/* */ import com.archive.framework.shiro.service.PasswordService; import com.archive.framework.shiro.service.PasswordService;
/* */ import com.archive.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import com.archive.project.system.user.domain.UserStatus; import com.archive.project.system.user.domain.UserStatus;
/* */ import com.archive.project.system.user.service.IUserService; import com.archive.project.system.user.service.IUserService;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/* */ import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Component @Component
/* */ public class LoginService public class LoginService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PasswordService passwordService; private PasswordService passwordService;
/* */ @Autowired @Autowired
/* */ private IUserService userService; private IUserService userService;
/* */
/* */ public User login(String username, String password) { public User login(String username, String password) {
/* 44 */ if ("captchaError".equals(ServletUtils.getRequest().getAttribute("captcha"))) { if ("captchaError".equals(ServletUtils.getRequest().getAttribute("captcha"))) {
/* */
/* 46 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.jcaptcha.error", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.jcaptcha.error", new Object[0]), new Object[0]));
/* 47 */ throw new CaptchaException(); throw new CaptchaException();
/* */ } }
/* */
/* 50 */ if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) { if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) {
/* */
/* 52 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("not.null", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("not.null", new Object[0]), new Object[0]));
/* 53 */ throw new UserNotExistsException(); throw new UserNotExistsException();
/* */ } }
/* */
/* 56 */ if (password.length() < 5 || password if (password.length() < 5 || password
/* 57 */ .length() > 20) { .length() > 20) {
/* */
/* 59 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.not.match", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.not.match", new Object[0]), new Object[0]));
/* 60 */ throw new UserPasswordNotMatchException(); throw new UserPasswordNotMatchException();
/* */ } }
/* */
/* */
/* 64 */ if (username.length() < 2 || username if (username.length() < 2 || username
/* 65 */ .length() > 20) { .length() > 20) {
/* */
/* 67 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.not.match", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.not.match", new Object[0]), new Object[0]));
/* 68 */ throw new UserPasswordNotMatchException(); throw new UserPasswordNotMatchException();
/* */ } }
/* */
/* */
/* 72 */ User user = this.userService.selectUserByLoginName(username); User user = this.userService.selectUserByLoginName(username);
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 86 */ if (user == null) { if (user == null) {
/* */
/* 88 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.not.exists", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.not.exists", new Object[0]), new Object[0]));
/* 89 */ throw new UserNotExistsException(); throw new UserNotExistsException();
/* */ } }
/* */
/* 92 */ if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) { if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) {
/* */
/* 94 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.delete", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.password.delete", new Object[0]), new Object[0]));
/* 95 */ throw new UserDeleteException(); throw new UserDeleteException();
/* */ } }
/* */
/* 98 */ if (UserStatus.DISABLE.getCode().equals(user.getStatus())) { if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
/* */
/* 100 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.blocked", new Object[] { user.getRemark() }), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.blocked", new Object[] { user.getRemark() }), new Object[0]));
/* 101 */ throw new UserBlockedException(); throw new UserBlockedException();
/* */ } }
/* */
/* 104 */ this.passwordService.validate(user, password); this.passwordService.validate(user, password);
/* */
/* 106 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Success", MessageUtils.message("user.login.success", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Success", MessageUtils.message("user.login.success", new Object[0]), new Object[0]));
/* 107 */ recordLoginInfo(user); recordLoginInfo(user);
/* 108 */ return user; return user;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void recordLoginInfo(User user) { public void recordLoginInfo(User user) {
/* 136 */ user.setLoginIp(ShiroUtils.getIp()); user.setLoginIp(ShiroUtils.getIp());
/* 137 */ user.setLoginDate(DateUtils.getNowDate()); user.setLoginDate(DateUtils.getNowDate());
/* 138 */ this.userService.updateUserInfo(user); this.userService.updateUserInfo(user);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\service\LoginService.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\service\LoginService.class

@ -1,95 +1,95 @@
/* */ package com.archive.framework.shiro.web.filter package com.archive.framework.shiro.web.filter
; ;
/* */
/* */ import com.archive.common.utils.MessageUtils; import com.archive.common.utils.MessageUtils;
/* */ 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 com.archive.common.utils.spring.SpringUtils; import com.archive.common.utils.spring.SpringUtils;
/* */ import com.archive.framework.manager.AsyncManager; import com.archive.framework.manager.AsyncManager;
/* */ import com.archive.framework.manager.factory.AsyncFactory; import com.archive.framework.manager.factory.AsyncFactory;
/* */ import com.archive.project.monitor.online.service.UserOnlineServiceImpl; import com.archive.project.monitor.online.service.UserOnlineServiceImpl;
/* */ import com.archive.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import javax.servlet.ServletRequest; import javax.servlet.ServletRequest;
/* */ import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
/* */ import org.apache.shiro.session.SessionException; import org.apache.shiro.session.SessionException;
/* */ import org.apache.shiro.subject.Subject; import org.apache.shiro.subject.Subject;
/* */
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */ public class LogoutFilter public class LogoutFilter
/* */ extends org.apache.shiro.web.filter.authc.LogoutFilter extends org.apache.shiro.web.filter.authc.LogoutFilter
/* */ { {
/* 26 */ private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.web.filter.LogoutFilter.class); private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.web.filter.LogoutFilter.class);
/* */
/* */
/* */
/* */ private String loginUrl; private String loginUrl;
/* */
/* */
/* */
/* */ public String getLoginUrl() { public String getLoginUrl() {
/* 35 */ return this.loginUrl; return this.loginUrl;
/* */ } }
/* */
/* */
/* */ public void setLoginUrl(String loginUrl) { public void setLoginUrl(String loginUrl) {
/* 40 */ this.loginUrl = loginUrl; this.loginUrl = loginUrl;
/* */ } }
/* */
/* */
/* */
/* */ @Override @Override
/* */ protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception { protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
/* */ try { try {
/* 48 */ Subject subject = getSubject(request, response); Subject subject = getSubject(request, response);
/* 49 */ String redirectUrl = getRedirectUrl(request, response, subject); String redirectUrl = getRedirectUrl(request, response, subject);
/* */
/* */ try { try {
/* 52 */ User user = ShiroUtils.getSysUser(); User user = ShiroUtils.getSysUser();
/* 53 */ if (StringUtils.isNotNull(user)) { if (StringUtils.isNotNull(user)) {
/* */
/* 55 */ String loginName = user.getLoginName(); String loginName = user.getLoginName();
/* */
/* 57 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Logout", MessageUtils.message("user.logout.success", new Object[0]), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Logout", MessageUtils.message("user.logout.success", new Object[0]), new Object[0]));
/* */
/* 59 */ ((UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class)).removeUserCache(loginName, ShiroUtils.getSessionId()); ((UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class)).removeUserCache(loginName, ShiroUtils.getSessionId());
/* */ } }
/* */
/* 62 */ subject.logout(); subject.logout();
/* */ } }
/* 64 */ catch (SessionException ise) { catch (SessionException ise) {
/* */
/* 66 */ log.error("logout fail.", (Throwable)ise); log.error("logout fail.", (Throwable)ise);
/* */ } }
/* 68 */ issueRedirect(request, response, redirectUrl); issueRedirect(request, response, redirectUrl);
/* */ } }
/* 70 */ catch (Exception e) { catch (Exception e) {
/* */
/* 72 */ log.error("Encountered session exception during logout. This can generally safely be ignored.", e); log.error("Encountered session exception during logout. This can generally safely be ignored.", e);
/* */ } }
/* 74 */ return false; return false;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Override @Override
/* */ protected String getRedirectUrl(ServletRequest request, ServletResponse response, Subject subject) { protected String getRedirectUrl(ServletRequest request, ServletResponse response, Subject subject) {
/* 83 */ String url = getLoginUrl(); String url = getLoginUrl();
/* 84 */ if (StringUtils.isNotEmpty(url)) if (StringUtils.isNotEmpty(url))
/* */ { {
/* 86 */ return url; return url;
/* */ } }
/* 88 */ return super.getRedirectUrl(request, response, subject); return super.getRedirectUrl(request, response, subject);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\LogoutFilter.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\LogoutFilter.class

@ -1,104 +1,104 @@
/* */ package com.archive.framework.shiro.web.filter.online package com.archive.framework.shiro.web.filter.online
; ;
/* */
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.framework.shiro.session.OnlineSessionDAO; import com.archive.framework.shiro.session.OnlineSessionDAO;
/* */ import com.archive.project.monitor.online.domain.OnlineSession; import com.archive.project.monitor.online.domain.OnlineSession;
/* */ import com.archive.project.monitor.online.domain.OnlineStatus; import com.archive.project.monitor.online.domain.OnlineStatus;
import com.archive.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import javax.servlet.ServletRequest; import javax.servlet.ServletRequest;
/* */ import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
/* */ import org.apache.shiro.session.Session; import org.apache.shiro.session.Session;
/* */ import org.apache.shiro.subject.Subject; import org.apache.shiro.subject.Subject;
/* */ import org.apache.shiro.web.filter.AccessControlFilter; import org.apache.shiro.web.filter.AccessControlFilter;
/* */ import org.apache.shiro.web.util.WebUtils; import org.apache.shiro.web.util.WebUtils;
/* */ import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class OnlineSessionFilter public class OnlineSessionFilter
/* */ extends AccessControlFilter extends AccessControlFilter
/* */ { {
/* */ @Value("${shiro.user.loginUrl}") @Value("${shiro.user.loginUrl}")
/* */ private String loginUrl; private String loginUrl;
/* */ private OnlineSessionDAO onlineSessionDAO; private OnlineSessionDAO onlineSessionDAO;
/* */ @Override @Override
/* */ protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception {
/* 39 */ Subject subject = getSubject(request, response); Subject subject = getSubject(request, response);
/* 40 */ if (subject == null || subject.getSession() == null) if (subject == null || subject.getSession() == null)
/* */ { {
/* 42 */ return true; return true;
/* */ } }
/* 44 */ Session session = this.onlineSessionDAO.readSession(subject.getSession().getId()); Session session = this.onlineSessionDAO.readSession(subject.getSession().getId());
/* 45 */ if (session != null && session instanceof OnlineSession) { if (session != null && session instanceof OnlineSession) {
/* */
/* 47 */ OnlineSession onlineSession = (OnlineSession)session; OnlineSession onlineSession = (OnlineSession)session;
/* 48 */ request.setAttribute("online_session", onlineSession); request.setAttribute("online_session", onlineSession);
/* */
/* 50 */ boolean isGuest = (onlineSession.getUserId() == null || onlineSession.getUserId().longValue() == 0L); boolean isGuest = (onlineSession.getUserId() == null || onlineSession.getUserId().longValue() == 0L);
/* 51 */ if (isGuest == true) { if (isGuest == true) {
/* */
/* 53 */ User user = ShiroUtils.getSysUser(); User user = ShiroUtils.getSysUser();
/* 54 */ if (user != null) { if (user != null) {
/* */
/* 56 */ onlineSession.setUserId(user.getUserId()); onlineSession.setUserId(user.getUserId());
/* 57 */ onlineSession.setLoginName(user.getLoginName()); onlineSession.setLoginName(user.getLoginName());
/* 58 */ onlineSession.setAvatar(user.getAvatar()); onlineSession.setAvatar(user.getAvatar());
/* 59 */ onlineSession.setDeptName(user.getDept().getDeptName()); onlineSession.setDeptName(user.getDept().getDeptName());
/* 60 */ onlineSession.markAttributeChanged(); onlineSession.markAttributeChanged();
/* */ } }
/* */ } }
/* */
/* 64 */ if (onlineSession.getStatus() == OnlineStatus.off_line) if (onlineSession.getStatus() == OnlineStatus.off_line)
/* */ { {
/* 66 */ return false; return false;
/* */ } }
/* */ } }
/* 69 */ return true; return true;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Override @Override
/* */ protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
/* 78 */ Subject subject = getSubject(request, response); Subject subject = getSubject(request, response);
/* 79 */ if (subject != null) if (subject != null)
/* */ { {
/* 81 */ subject.logout(); subject.logout();
/* */ } }
/* 83 */ saveRequestAndRedirectToLogin(request, response); saveRequestAndRedirectToLogin(request, response);
/* 84 */ return false; return false;
/* */ } }
/* */
/* */
/* */
/* */ @Override @Override
/* */ protected void redirectToLogin(ServletRequest request, ServletResponse response) throws IOException { protected void redirectToLogin(ServletRequest request, ServletResponse response) throws IOException {
/* 91 */ WebUtils.issueRedirect(request, response, this.loginUrl); WebUtils.issueRedirect(request, response, this.loginUrl);
/* */ } }
/* */
/* */
/* */ public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) { public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) {
/* 96 */ this.onlineSessionDAO = onlineSessionDAO; this.onlineSessionDAO = onlineSessionDAO;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\online\OnlineSessionFilter.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\online\OnlineSessionFilter.class

@ -1,88 +1,88 @@
/* */ package com.archive.project.dajs.mldr.controller package com.archive.project.dajs.mldr.controller
; ;
/* */
/* */ 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.dajs.mldr.service.IMldrService; import com.archive.project.dajs.mldr.service.IMldrService;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ 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.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
/* */ 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({"/dajs/mldr"}) @RequestMapping({"/dajs/mldr"})
/* */ public class MldrController public class MldrController
/* */ extends BaseController extends BaseController
/* */ { {
/* 35 */ private String prefix = "dajs/mldr"; private String prefix = "dajs/mldr";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IMldrService mldrService; private IMldrService mldrService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dajs:mldr"}) @RequiresPermissions({"dajs:mldr"})
/* */ @GetMapping @GetMapping
/* */ public String mldr(ModelMap mmap) { public String mldr(ModelMap mmap) {
/* 48 */ return this.prefix + "/mldr"; return this.prefix + "/mldr";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/list"}) @GetMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(String key, int page, int size) throws IOException { public TableDataInfo list(String key, int page, int size) throws IOException {
/* 60 */ startPage(); startPage();
/* */
/* 62 */ List<Object> list = new ArrayList(); List<Object> list = new ArrayList();
/* 63 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */ @Log(title = "目录导入-案卷卷内关联", businessType = BusinessType.ZLRK) @Log(title = "目录导入-案卷卷内关联", businessType = BusinessType.ZLRK)
/* */ @PostMapping({"/dhgl"}) @PostMapping({"/dhgl"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult dhgl(@Validated String id) { public AjaxResult dhgl(@Validated String id) {
/* 71 */ boolean flag = false; boolean flag = false;
/* */ try { try {
/* 73 */ flag = this.mldrService.dhgl(id); flag = this.mldrService.dhgl(id);
/* 74 */ } catch (Exception ex) { } catch (Exception ex) {
/* 75 */ System.out.println("关联出现异常:" + ex.getMessage()); System.out.println("关联出现异常:" + ex.getMessage());
/* 76 */ return error("关联失败!"); return error("关联失败!");
/* */ } }
/* 78 */ if (flag) { if (flag) {
/* 79 */ return success("关联成功!"); return success("关联成功!");
/* */ } }
/* 81 */ return error("关联失败!"); return error("关联失败!");
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\mldr\controller\MldrController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\mldr\controller\MldrController.class

@ -1,69 +1,69 @@
/* */ package com.archive.project.dajs.mldr.service.impl package com.archive.project.dajs.mldr.service.impl
; ;
/* */
/* */ import com.archive.project.common.service.IExecuteSqlService; import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dajs.archiveimportbatch.domain.ArchiveImportBatch; import com.archive.project.dajs.archiveimportbatch.domain.ArchiveImportBatch;
/* */ import com.archive.project.dajs.archiveimportbatch.service.IArchiveImportBatchService; import com.archive.project.dajs.archiveimportbatch.service.IArchiveImportBatchService;
/* */ import com.archive.project.dajs.mldr.service.IMldrService; import com.archive.project.dajs.mldr.service.IMldrService;
/* */ import com.archive.project.dasz.archivetype.mapper.ArchiveTypeMapper; import com.archive.project.dasz.archivetype.mapper.ArchiveTypeMapper;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper; import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import java.util.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 MldrServiceImpl public class MldrServiceImpl
/* */ implements IMldrService implements IMldrService
/* */ { {
/* */ @Autowired @Autowired
/* */ private ArchiveTypeMapper archiveTypeMapper; private ArchiveTypeMapper archiveTypeMapper;
/* */ @Autowired @Autowired
/* */ private PhysicalTableMapper physicalTableMapper; private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */ @Autowired @Autowired
/* */ private IArchiveImportBatchService archiveImportBatchService; private IArchiveImportBatchService archiveImportBatchService;
/* */
/* */ public boolean dhgl(String id) { public boolean dhgl(String id) {
/* 40 */ boolean res = false; boolean res = false;
/* 41 */ ArchiveImportBatch archiveImportBatch = new ArchiveImportBatch(); ArchiveImportBatch archiveImportBatch = new ArchiveImportBatch();
/* 42 */ archiveImportBatch.setId(Long.valueOf(Long.parseLong(id))); archiveImportBatch.setId(Long.valueOf(Long.parseLong(id)));
/* 43 */ List<ArchiveImportBatch> list = this.archiveImportBatchService.selectArchiveImportBatchList(archiveImportBatch); List<ArchiveImportBatch> list = this.archiveImportBatchService.selectArchiveImportBatchList(archiveImportBatch);
/* 44 */ if (list.size() > 0 && list.get(0) != null) { if (list.size() > 0 && list.get(0) != null) {
/* 45 */ String batchNo = ((ArchiveImportBatch)list.get(0)).getBatchno(); String batchNo = ((ArchiveImportBatch)list.get(0)).getBatchno();
/* 46 */ String code = ((ArchiveImportBatch)list.get(0)).getBatcharchivetypecode(); String code = ((ArchiveImportBatch)list.get(0)).getBatcharchivetypecode();
/* */
/* */
/* */
/* */
/* 51 */ String sql2 = "select id,dh from t_ar_" + code + "_folder where batchNo='" + batchNo + "'"; String sql2 = "select id,dh from t_ar_" + code + "_folder where batchNo='" + batchNo + "'";
/* 52 */ List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql2); List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql2);
/* 53 */ for (int i = 0; i < datalist.size(); i++) { for (int i = 0; i < datalist.size(); i++) {
/* 54 */ String folderid = (((LinkedHashMap)datalist.get(i)).get("id") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("id").toString(); String folderid = (((LinkedHashMap)datalist.get(i)).get("id") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("id").toString();
/* 55 */ String folderdh = (((LinkedHashMap)datalist.get(i)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("dh").toString(); String folderdh = (((LinkedHashMap)datalist.get(i)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("dh").toString();
/* 56 */ folderdh = folderdh.trim(); folderdh = folderdh.trim();
/* */
/* 58 */ String updatesql = "update t_ar_" + code + "_file set ownerid=" + folderid + " where dh like '" + folderdh + "%'"; String updatesql = "update t_ar_" + code + "_file set ownerid=" + folderid + " where dh like '" + folderdh + "%'";
/* 59 */ this.executeSqlService.update(updatesql); this.executeSqlService.update(updatesql);
/* */ } }
/* */ } }
/* 62 */ return res; return res;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\mldr\service\impl\MldrServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\mldr\service\impl\MldrServiceImpl.class

@ -1,131 +1,131 @@
/* */ package com.archive.project.dasz.mgc.controller package com.archive.project.dasz.mgc.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.mgc.domain.Mgc; import com.archive.project.dasz.mgc.domain.Mgc;
/* */ import com.archive.project.dasz.mgc.service.IMgcService; import com.archive.project.dasz.mgc.service.IMgcService;
/* */ 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/mgc"}) @RequestMapping({"/dasz/mgc"})
/* */ public class MgcController public class MgcController
/* */ extends BaseController extends BaseController
/* */ { {
/* 32 */ private String prefix = "dasz/mgc"; private String prefix = "dasz/mgc";
/* */
/* */ @Autowired @Autowired
/* */ private IMgcService mgcService; private IMgcService mgcService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:view"}) @RequiresPermissions({"dasz:mgc:view"})
/* */ @GetMapping @GetMapping
/* */ public String mgc() { public String mgc() {
/* 41 */ return this.prefix + "/mgc"; return this.prefix + "/mgc";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:list"}) @RequiresPermissions({"dasz:mgc:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(Mgc mgc) { public TableDataInfo list(Mgc mgc) {
/* 52 */ startPage(); startPage();
/* 53 */ List<Mgc> list = this.mgcService.selectMgcList(mgc); List<Mgc> list = this.mgcService.selectMgcList(mgc);
/* 54 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:export"}) @RequiresPermissions({"dasz:mgc:export"})
/* */ @Log(title = "敏感词管理", businessType = BusinessType.EXPORT) @Log(title = "敏感词管理", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(Mgc mgc) { public AjaxResult export(Mgc mgc) {
/* 66 */ List<Mgc> list = this.mgcService.selectMgcList(mgc); List<Mgc> list = this.mgcService.selectMgcList(mgc);
/* 67 */ ExcelUtil<Mgc> util = new ExcelUtil(Mgc.class); ExcelUtil<Mgc> util = new ExcelUtil(Mgc.class);
/* 68 */ return util.exportExcel(list, "mgc"); return util.exportExcel(list, "mgc");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 77 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:add"}) @RequiresPermissions({"dasz:mgc:add"})
/* */ @Log(title = "敏感词管理", businessType = BusinessType.INSERT) @Log(title = "敏感词管理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(Mgc mgc) { public AjaxResult addSave(Mgc mgc) {
/* 89 */ return toAjax(this.mgcService.insertMgc(mgc)); return toAjax(this.mgcService.insertMgc(mgc));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Integer id, ModelMap mmap) { public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
/* 98 */ Mgc mgc = this.mgcService.selectMgcById(id); Mgc mgc = this.mgcService.selectMgcById(id);
/* 99 */ mmap.put("mgc", mgc); mmap.put("mgc", mgc);
/* 100 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:edit"}) @RequiresPermissions({"dasz:mgc:edit"})
/* */ @Log(title = "敏感词管理", businessType = BusinessType.UPDATE) @Log(title = "敏感词管理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(Mgc mgc) { public AjaxResult editSave(Mgc mgc) {
/* 112 */ return toAjax(this.mgcService.updateMgc(mgc)); return toAjax(this.mgcService.updateMgc(mgc));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:mgc:remove"}) @RequiresPermissions({"dasz:mgc: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.mgcService.deleteMgcByIds(ids)); return toAjax(this.mgcService.deleteMgcByIds(ids));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\controller\MgcController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\controller\MgcController.class

@ -1,71 +1,71 @@
/* */ package com.archive.project.dasz.mgc.domain package com.archive.project.dasz.mgc.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 Mgc public class Mgc
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Integer id; private Integer id;
/* */ @Excel(name = "敏感词类型") @Excel(name = "敏感词类型")
/* */ private String mgc; private String mgc;
/* */ @Excel(name = "敏感词类型") @Excel(name = "敏感词类型")
/* */ private String mgclx; private String mgclx;
/* */
/* */ public void setId(Integer id) { public void setId(Integer id) {
/* 31 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Integer getId() { public Integer getId() {
/* 36 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setMgc(String mgc) { public void setMgc(String mgc) {
/* 40 */ this.mgc = mgc; this.mgc = mgc;
/* */ } }
/* */
/* */
/* */ public String getMgc() { public String getMgc() {
/* 45 */ return this.mgc; return this.mgc;
/* */ } }
/* */
/* */ public void setMgclx(String mgclx) { public void setMgclx(String mgclx) {
/* 49 */ this.mgclx = mgclx; this.mgclx = mgclx;
/* */ } }
/* */
/* */
/* */ public String getMgclx() { public String getMgclx() {
/* 54 */ return this.mgclx; return this.mgclx;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 59 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 60 */ .append("id", getId()) .append("id", getId())
/* 61 */ .append("mgc", getMgc()) .append("mgc", getMgc())
/* 62 */ .append("remark", getRemark()) .append("remark", getRemark())
/* 63 */ .append("mgclx", getMgclx()) .append("mgclx", getMgclx())
/* 64 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\domain\Mgc.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\domain\Mgc.class

@ -1,99 +1,99 @@
/* */ package com.archive.project.dasz.mgc.service.impl package com.archive.project.dasz.mgc.service.impl
; ;
/* */
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.project.dasz.mgc.domain.Mgc; import com.archive.project.dasz.mgc.domain.Mgc;
/* */ import com.archive.project.dasz.mgc.mapper.MgcMapper; import com.archive.project.dasz.mgc.mapper.MgcMapper;
/* */ import com.archive.project.dasz.mgc.service.IMgcService; import com.archive.project.dasz.mgc.service.IMgcService;
/* */ 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 MgcServiceImpl public class MgcServiceImpl
/* */ implements IMgcService implements IMgcService
/* */ { {
/* */ @Autowired @Autowired
/* */ private MgcMapper mgcMapper; private MgcMapper mgcMapper;
/* */
/* */ public Mgc selectMgcById(Integer id) { public Mgc selectMgcById(Integer id) {
/* 32 */ return this.mgcMapper.selectMgcById(id); return this.mgcMapper.selectMgcById(id);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Mgc> selectMgcList(Mgc mgc) { public List<Mgc> selectMgcList(Mgc mgc) {
/* 44 */ return this.mgcMapper.selectMgcList(mgc); return this.mgcMapper.selectMgcList(mgc);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertMgc(Mgc mgc) { public int insertMgc(Mgc mgc) {
/* 56 */ return this.mgcMapper.insertMgc(mgc); return this.mgcMapper.insertMgc(mgc);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateMgc(Mgc mgc) { public int updateMgc(Mgc mgc) {
/* 68 */ return this.mgcMapper.updateMgc(mgc); return this.mgcMapper.updateMgc(mgc);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteMgcByIds(String ids) { public int deleteMgcByIds(String ids) {
/* 80 */ return this.mgcMapper.deleteMgcByIds(Convert.toStrArray(ids)); return this.mgcMapper.deleteMgcByIds(Convert.toStrArray(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteMgcById(Integer id) { public int deleteMgcById(Integer id) {
/* 92 */ return this.mgcMapper.deleteMgcById(id); return this.mgcMapper.deleteMgcById(id);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\service\impl\MgcServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\mgc\service\impl\MgcServiceImpl.class

@ -1,99 +1,99 @@
/* */ package com.archive.project.monitor.logininfor.controller package com.archive.project.monitor.logininfor.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.shiro.service.PasswordService; import com.archive.framework.shiro.service.PasswordService;
/* */ 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.monitor.logininfor.domain.Logininfor; import com.archive.project.monitor.logininfor.domain.Logininfor;
/* */ import com.archive.project.monitor.logininfor.service.ILogininforService; import com.archive.project.monitor.logininfor.service.ILogininforService;
/* */ 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.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/logininfor"}) @RequestMapping({"/monitor/logininfor"})
/* */ public class LogininforController public class LogininforController
/* */ extends BaseController extends BaseController
/* */ { {
/* 30 */ private String prefix = "monitor/logininfor"; private String prefix = "monitor/logininfor";
/* */
/* */ @Autowired @Autowired
/* */ private ILogininforService logininforService; private ILogininforService logininforService;
/* */
/* */ @Autowired @Autowired
/* */ private PasswordService passwordService; private PasswordService passwordService;
/* */
/* */
/* */ @RequiresPermissions({"monitor:logininfor:view"}) @RequiresPermissions({"monitor:logininfor:view"})
/* */ @GetMapping @GetMapping
/* */ public String logininfor() { public String logininfor() {
/* 42 */ return this.prefix + "/logininfor"; return this.prefix + "/logininfor";
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:logininfor:list"}) @RequiresPermissions({"monitor:logininfor:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(Logininfor logininfor) { public TableDataInfo list(Logininfor logininfor) {
/* 50 */ startPage(); startPage();
/* 51 */ List<Logininfor> list = this.logininforService.selectLogininforList(logininfor); List<Logininfor> list = this.logininforService.selectLogininforList(logininfor);
/* 52 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */ @Log(title = "登录日志", businessType = BusinessType.EXPORT) @Log(title = "登录日志", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"monitor:logininfor:export"}) @RequiresPermissions({"monitor:logininfor:export"})
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(Logininfor logininfor) { public AjaxResult export(Logininfor logininfor) {
/* 61 */ List<Logininfor> list = this.logininforService.selectLogininforList(logininfor); List<Logininfor> list = this.logininforService.selectLogininforList(logininfor);
/* 62 */ ExcelUtil<Logininfor> util = new ExcelUtil(Logininfor.class); ExcelUtil<Logininfor> util = new ExcelUtil(Logininfor.class);
/* 63 */ return util.exportExcel(list, "登录日志"); return util.exportExcel(list, "登录日志");
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:logininfor:remove"}) @RequiresPermissions({"monitor:logininfor: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) {
/* 72 */ return toAjax(this.logininforService.deleteLogininforByIds(ids)); return toAjax(this.logininforService.deleteLogininforByIds(ids));
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:logininfor:remove"}) @RequiresPermissions({"monitor:logininfor:remove"})
/* */ @Log(title = "登录日志", businessType = BusinessType.CLEAN) @Log(title = "登录日志", businessType = BusinessType.CLEAN)
/* */ @PostMapping({"/clean"}) @PostMapping({"/clean"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clean() { public AjaxResult clean() {
/* 81 */ this.logininforService.cleanLogininfor(); this.logininforService.cleanLogininfor();
/* 82 */ return success(); return success();
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:logininfor:unlock"}) @RequiresPermissions({"monitor:logininfor:unlock"})
/* */ @Log(title = "账户解锁", businessType = BusinessType.OTHER) @Log(title = "账户解锁", businessType = BusinessType.OTHER)
/* */ @PostMapping({"/unlock"}) @PostMapping({"/unlock"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult unlock(String loginName) { public AjaxResult unlock(String loginName) {
/* 91 */ this.passwordService.clearLoginRecordCache(loginName); this.passwordService.clearLoginRecordCache(loginName);
/* 92 */ return success(); return success();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\logininfor\controller\LogininforController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\logininfor\controller\LogininforController.class

@ -1,90 +1,90 @@
/* */ package com.archive.project.monitor.logininfor.service package com.archive.project.monitor.logininfor.service
; ;
/* */
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.monitor.logininfor.domain.Logininfor; import com.archive.project.monitor.logininfor.domain.Logininfor;
/* */ import com.archive.project.monitor.logininfor.mapper.LogininforMapper; import com.archive.project.monitor.logininfor.mapper.LogininforMapper;
/* */ import com.archive.project.monitor.logininfor.service.ILogininforService; import com.archive.project.monitor.logininfor.service.ILogininforService;
/* */ 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 LogininforServiceImpl public class LogininforServiceImpl
/* */ implements ILogininforService implements ILogininforService
/* */ { {
/* */ @Autowired @Autowired
/* */ private LogininforMapper logininforMapper; private LogininforMapper logininforMapper;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public void insertLogininfor(Logininfor logininfor) { public void insertLogininfor(Logininfor logininfor) {
/* 35 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 36 */ this.logininforMapper.insertLogininfor(logininfor); this.logininforMapper.insertLogininfor(logininfor);
/* */ } }
/* 38 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 39 */ this.logininforMapper.insertLogininforSqlite(logininfor); this.logininforMapper.insertLogininforSqlite(logininfor);
/* */ } else { } else {
/* 41 */ this.logininforMapper.insertLogininfor(logininfor); this.logininforMapper.insertLogininfor(logininfor);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Logininfor> selectLogininforList(Logininfor logininfor) { public List<Logininfor> selectLogininforList(Logininfor logininfor) {
/* 54 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 55 */ return this.logininforMapper.selectLogininforList(logininfor); return this.logininforMapper.selectLogininforList(logininfor);
/* */ } }
/* 57 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 58 */ return this.logininforMapper.selectLogininforListSqlite(logininfor); return this.logininforMapper.selectLogininforListSqlite(logininfor);
/* */ } }
/* 60 */ return this.logininforMapper.selectLogininforList(logininfor); return this.logininforMapper.selectLogininforList(logininfor);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteLogininforByIds(String ids) { public int deleteLogininforByIds(String ids) {
/* 74 */ return this.logininforMapper.deleteLogininforByIds(Convert.toStrArray(ids)); return this.logininforMapper.deleteLogininforByIds(Convert.toStrArray(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void cleanLogininfor() { public void cleanLogininfor() {
/* 83 */ this.logininforMapper.cleanLogininfor(); this.logininforMapper.cleanLogininfor();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\logininfor\service\LogininforServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\logininfor\service\LogininforServiceImpl.class

@ -1,171 +1,171 @@
/* */ package com.archive.project.monitor.online.domain package com.archive.project.monitor.online.domain
; ;
/* */
/* */ 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;
/* */ import org.apache.shiro.session.mgt.SimpleSession; import org.apache.shiro.session.mgt.SimpleSession;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class OnlineSession public class OnlineSession
/* */ extends SimpleSession extends SimpleSession
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long userId; private Long userId;
/* */ private String loginName; private String loginName;
/* */ private String deptName; private String deptName;
/* */ private String avatar; private String avatar;
/* */ private String host; private String host;
/* */ private String browser; private String browser;
/* */ private String os; private String os;
/* 38 */ private OnlineStatus status = OnlineStatus.on_line; private OnlineStatus status = OnlineStatus.on_line;
/* */
/* */
/* */ private transient boolean attributeChanged = false; private transient boolean attributeChanged = false;
/* */
/* */
/* */
/* */ public String getHost() { public String getHost() {
/* 46 */ return this.host; return this.host;
/* */ } }
/* */
/* */
/* */
/* */ public void setHost(String host) { public void setHost(String host) {
/* 52 */ this.host = host; this.host = host;
/* */ } }
/* */
/* */
/* */ public String getBrowser() { public String getBrowser() {
/* 57 */ return this.browser; return this.browser;
/* */ } }
/* */
/* */
/* */ public void setBrowser(String browser) { public void setBrowser(String browser) {
/* 62 */ this.browser = browser; this.browser = browser;
/* */ } }
/* */
/* */
/* */ public String getOs() { public String getOs() {
/* 67 */ return this.os; return this.os;
/* */ } }
/* */
/* */
/* */ public void setOs(String os) { public void setOs(String os) {
/* 72 */ this.os = os; this.os = os;
/* */ } }
/* */
/* */
/* */ public Long getUserId() { public Long getUserId() {
/* 77 */ return this.userId; return this.userId;
/* */ } }
/* */
/* */
/* */ public void setUserId(Long userId) { public void setUserId(Long userId) {
/* 82 */ this.userId = userId; this.userId = userId;
/* */ } }
/* */
/* */
/* */ public String getLoginName() { public String getLoginName() {
/* 87 */ return this.loginName; return this.loginName;
/* */ } }
/* */
/* */
/* */ public void setLoginName(String loginName) { public void setLoginName(String loginName) {
/* 92 */ this.loginName = loginName; this.loginName = loginName;
/* */ } }
/* */
/* */
/* */ public String getDeptName() { public String getDeptName() {
/* 97 */ return this.deptName; return this.deptName;
/* */ } }
/* */
/* */
/* */ public void setDeptName(String deptName) { public void setDeptName(String deptName) {
/* 102 */ this.deptName = deptName; this.deptName = deptName;
/* */ } }
/* */
/* */
/* */ public OnlineStatus getStatus() { public OnlineStatus getStatus() {
/* 107 */ return this.status; return this.status;
/* */ } }
/* */
/* */
/* */ public void setStatus(OnlineStatus status) { public void setStatus(OnlineStatus status) {
/* 112 */ this.status = status; this.status = status;
/* */ } }
/* */
/* */
/* */ public void markAttributeChanged() { public void markAttributeChanged() {
/* 117 */ this.attributeChanged = true; this.attributeChanged = true;
/* */ } }
/* */
/* */
/* */ public void resetAttributeChanged() { public void resetAttributeChanged() {
/* 122 */ this.attributeChanged = false; this.attributeChanged = false;
/* */ } }
/* */
/* */
/* */ public boolean isAttributeChanged() { public boolean isAttributeChanged() {
/* 127 */ return this.attributeChanged; return this.attributeChanged;
/* */ } }
/* */
/* */
/* */ public String getAvatar() { public String getAvatar() {
/* 132 */ return this.avatar; return this.avatar;
/* */ } }
/* */
/* */
/* */ public void setAvatar(String avatar) { public void setAvatar(String avatar) {
/* 137 */ this.avatar = avatar; this.avatar = avatar;
/* */ } }
/* */
/* */
/* */
/* */ public void setAttribute(Object key, Object value) { public void setAttribute(Object key, Object value) {
/* 143 */ super.setAttribute(key, value); super.setAttribute(key, value);
/* */ } }
/* */
/* */
/* */
/* */ public Object removeAttribute(Object key) { public Object removeAttribute(Object key) {
/* 149 */ return super.removeAttribute(key); return super.removeAttribute(key);
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 154 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 155 */ .append("userId", getUserId()) .append("userId", getUserId())
/* 156 */ .append("loginName", getLoginName()) .append("loginName", getLoginName())
/* 157 */ .append("deptName", getDeptName()) .append("deptName", getDeptName())
/* 158 */ .append("avatar", getAvatar()) .append("avatar", getAvatar())
/* 159 */ .append("host", getHost()) .append("host", getHost())
/* 160 */ .append("browser", getBrowser()) .append("browser", getBrowser())
/* 161 */ .append("os", getOs()) .append("os", getOs())
/* 162 */ .append("status", getStatus()) .append("status", getStatus())
/* 163 */ .append("attributeChanged", isAttributeChanged()) .append("attributeChanged", isAttributeChanged())
/* 164 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\OnlineSession.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\OnlineSession.class

@ -1,187 +1,187 @@
/* */ package com.archive.project.monitor.online.domain package com.archive.project.monitor.online.domain
; ;
/* */
/* */ import com.archive.project.monitor.online.domain.OnlineSession; import com.archive.project.monitor.online.domain.OnlineSession;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum OnlineStatus public enum OnlineStatus
/* */ { {
/* 170 */ on_line("在线"), off_line("离线"); on_line("在线"), off_line("离线");
/* */
/* */ private final String info; private final String info;
/* */
/* */ OnlineStatus(String info) { OnlineStatus(String info) {
/* 175 */ this.info = info; this.info = info;
/* */ } }
/* */
/* */
/* */ public String getInfo() { public String getInfo() {
/* 180 */ return this.info; return this.info;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\OnlineSession$OnlineStatus.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\OnlineSession$OnlineStatus.class

@ -1,66 +1,66 @@
/* */ package com.archive.project.monitor.server.domain package com.archive.project.monitor.server.domain
; ;
/* */
/* */ import com.archive.common.utils.Arith; import com.archive.common.utils.Arith;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Mem public class Mem
/* */ { {
/* */ private double total; private double total;
/* */ private double used; private double used;
/* */ private double free; private double free;
/* */
/* */ public double getTotal() { public double getTotal() {
/* 29 */ return Arith.div(this.total, 1.073741824E9D, 2); return Arith.div(this.total, 1.073741824E9D, 2);
/* */ } }
/* */
/* */
/* */ public void setTotal(long total) { public void setTotal(long total) {
/* 34 */ this.total = total; this.total = total;
/* */ } }
/* */
/* */
/* */ public double getUsed() { public double getUsed() {
/* 39 */ return Arith.div(this.used, 1.073741824E9D, 2); return Arith.div(this.used, 1.073741824E9D, 2);
/* */ } }
/* */
/* */
/* */ public void setUsed(long used) { public void setUsed(long used) {
/* 44 */ this.used = used; this.used = used;
/* */ } }
/* */
/* */
/* */ public double getFree() { public double getFree() {
/* 49 */ return Arith.div(this.free, 1.073741824E9D, 2); return Arith.div(this.free, 1.073741824E9D, 2);
/* */ } }
/* */
/* */
/* */ public void setFree(long free) { public void setFree(long free) {
/* 54 */ this.free = free; this.free = free;
/* */ } }
/* */
/* */
/* */ public double getUsage() { public double getUsage() {
/* 59 */ return Arith.mul(Arith.div(this.used, this.total, 4), 100.0D); return Arith.mul(Arith.div(this.used, this.total, 4), 100.0D);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\server\domain\Mem.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\server\domain\Mem.class

@ -1,196 +1,196 @@
/* */ package com.archive.project.system.menu.controller package com.archive.project.system.menu.controller
; ;
/* */
/* */ import com.archive.common.utils.security.AuthorizationUtils; import com.archive.common.utils.security.AuthorizationUtils;
/* */ 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.domain.Ztree; import com.archive.framework.web.domain.Ztree;
/* */ import com.archive.project.system.menu.domain.Menu; import com.archive.project.system.menu.domain.Menu;
/* */ import com.archive.project.system.menu.service.IMenuService; import com.archive.project.system.menu.service.IMenuService;
/* */ import com.archive.project.system.role.domain.Role; import com.archive.project.system.role.domain.Role;
/* */ 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.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
/* */ 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({"/system/menu"}) @RequestMapping({"/system/menu"})
/* */ public class MenuController public class MenuController
/* */ extends BaseController extends BaseController
/* */ { {
/* 34 */ private String prefix = "system/menu"; private String prefix = "system/menu";
/* */
/* */ @Autowired @Autowired
/* */ private IMenuService menuService; private IMenuService menuService;
/* */
/* */
/* */ @RequiresPermissions({"system:menu:view"}) @RequiresPermissions({"system:menu:view"})
/* */ @GetMapping @GetMapping
/* */ public String menu() { public String menu() {
/* 43 */ return this.prefix + "/menu"; return this.prefix + "/menu";
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"system:menu:list"}) @RequiresPermissions({"system:menu:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public List<Menu> list(Menu menu) { public List<Menu> list(Menu menu) {
/* 51 */ List<Menu> menuList = this.menuService.selectMenuList(menu); List<Menu> menuList = this.menuService.selectMenuList(menu);
/* 52 */ return menuList; return menuList;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "菜单管理", businessType = BusinessType.DELETE) @Log(title = "菜单管理", businessType = BusinessType.DELETE)
/* */ @RequiresPermissions({"system:menu:remove"}) @RequiresPermissions({"system:menu:remove"})
/* */ @GetMapping({"/remove/{menuId}"}) @GetMapping({"/remove/{menuId}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(@PathVariable("menuId") Long menuId) { public AjaxResult remove(@PathVariable("menuId") Long menuId) {
/* 64 */ if (this.menuService.selectCountMenuByParentId(menuId) > 0) if (this.menuService.selectCountMenuByParentId(menuId) > 0)
/* */ { {
/* 66 */ return AjaxResult.warn("存在子菜单,不允许删除"); return AjaxResult.warn("存在子菜单,不允许删除");
/* */ } }
/* 68 */ if (this.menuService.selectCountRoleMenuByMenuId(menuId) > 0) if (this.menuService.selectCountRoleMenuByMenuId(menuId) > 0)
/* */ { {
/* 70 */ return AjaxResult.warn("菜单已分配,不允许删除"); return AjaxResult.warn("菜单已分配,不允许删除");
/* */ } }
/* 72 */ AuthorizationUtils.clearAllCachedAuthorizationInfo(); AuthorizationUtils.clearAllCachedAuthorizationInfo();
/* 73 */ return toAjax(this.menuService.deleteMenuById(menuId)); return toAjax(this.menuService.deleteMenuById(menuId));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add/{parentId}"}) @GetMapping({"/add/{parentId}"})
/* */ public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) { public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) {
/* 82 */ Menu menu = null; Menu menu = null;
/* 83 */ if (0L != parentId.longValue()) { if (0L != parentId.longValue()) {
/* */
/* 85 */ menu = this.menuService.selectMenuById(parentId); menu = this.menuService.selectMenuById(parentId);
/* */ } }
/* */ else { else {
/* */
/* 89 */ menu = new Menu(); menu = new Menu();
/* 90 */ menu.setMenuId(Long.valueOf(0L)); menu.setMenuId(Long.valueOf(0L));
/* 91 */ menu.setMenuName("主目录"); menu.setMenuName("主目录");
/* */ } }
/* 93 */ mmap.put("menu", menu); mmap.put("menu", menu);
/* 94 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "菜单管理", businessType = BusinessType.INSERT) @Log(title = "菜单管理", businessType = BusinessType.INSERT)
/* */ @RequiresPermissions({"system:menu:add"}) @RequiresPermissions({"system:menu:add"})
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(@Validated Menu menu) { public AjaxResult addSave(@Validated Menu menu) {
/* 106 */ if ("1".equals(this.menuService.checkMenuNameUnique(menu))) if ("1".equals(this.menuService.checkMenuNameUnique(menu)))
/* */ { {
/* 108 */ return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
/* */ } }
/* 110 */ AuthorizationUtils.clearAllCachedAuthorizationInfo(); AuthorizationUtils.clearAllCachedAuthorizationInfo();
/* 111 */ return toAjax(this.menuService.insertMenu(menu)); return toAjax(this.menuService.insertMenu(menu));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{menuId}"}) @GetMapping({"/edit/{menuId}"})
/* */ public String edit(@PathVariable("menuId") Long menuId, ModelMap mmap) { public String edit(@PathVariable("menuId") Long menuId, ModelMap mmap) {
/* 120 */ mmap.put("menu", this.menuService.selectMenuById(menuId)); mmap.put("menu", this.menuService.selectMenuById(menuId));
/* 121 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "菜单管理", businessType = BusinessType.UPDATE) @Log(title = "菜单管理", businessType = BusinessType.UPDATE)
/* */ @RequiresPermissions({"system:menu:edit"}) @RequiresPermissions({"system:menu:edit"})
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(@Validated Menu menu) { public AjaxResult editSave(@Validated Menu menu) {
/* 133 */ if ("1".equals(this.menuService.checkMenuNameUnique(menu))) if ("1".equals(this.menuService.checkMenuNameUnique(menu)))
/* */ { {
/* 135 */ return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
/* */ } }
/* 137 */ AuthorizationUtils.clearAllCachedAuthorizationInfo(); AuthorizationUtils.clearAllCachedAuthorizationInfo();
/* 138 */ return toAjax(this.menuService.updateMenu(menu)); return toAjax(this.menuService.updateMenu(menu));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/icon"}) @GetMapping({"/icon"})
/* */ public String icon() { public String icon() {
/* 147 */ return this.prefix + "/icon"; return this.prefix + "/icon";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkMenuNameUnique"}) @PostMapping({"/checkMenuNameUnique"})
/* */ @ResponseBody @ResponseBody
/* */ public String checkMenuNameUnique(Menu menu) { public String checkMenuNameUnique(Menu menu) {
/* 157 */ return this.menuService.checkMenuNameUnique(menu); return this.menuService.checkMenuNameUnique(menu);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/roleMenuTreeData"}) @GetMapping({"/roleMenuTreeData"})
/* */ @ResponseBody @ResponseBody
/* */ public List<Ztree> roleMenuTreeData(Role role) { public List<Ztree> roleMenuTreeData(Role role) {
/* 167 */ List<Ztree> ztrees = this.menuService.roleMenuTreeData(role); List<Ztree> ztrees = this.menuService.roleMenuTreeData(role);
/* 168 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/menuTreeData"}) @GetMapping({"/menuTreeData"})
/* */ @ResponseBody @ResponseBody
/* */ public List<Ztree> menuTreeData(Role role) { public List<Ztree> menuTreeData(Role role) {
/* 178 */ List<Ztree> ztrees = this.menuService.menuTreeData(); List<Ztree> ztrees = this.menuService.menuTreeData();
/* 179 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/selectMenuTree/{menuId}"}) @GetMapping({"/selectMenuTree/{menuId}"})
/* */ public String selectMenuTree(@PathVariable("menuId") Long menuId, ModelMap mmap) { public String selectMenuTree(@PathVariable("menuId") Long menuId, ModelMap mmap) {
/* 188 */ mmap.put("menu", this.menuService.selectMenuById(menuId)); mmap.put("menu", this.menuService.selectMenuById(menuId));
/* 189 */ return this.prefix + "/tree"; return this.prefix + "/tree";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\controller\MenuController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\controller\MenuController.class

@ -1,219 +1,219 @@
/* */ package com.archive.project.system.menu.domain package com.archive.project.system.menu.domain
; ;
/* */
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.List; import java.util.List;
/* */ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
/* */ import javax.validation.constraints.Size; import javax.validation.constraints.Size;
/* */ 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 Menu public class Menu
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long menuId; private Long menuId;
/* */ private String menuName; private String menuName;
/* */ private String parentName; private String parentName;
/* */ private Long parentId; private Long parentId;
/* */ private String orderNum; private String orderNum;
/* */ private String url; private String url;
/* */ private String target; private String target;
/* */ private String menuType; private String menuType;
/* */ private String visible; private String visible;
/* */ private String isRefresh; private String isRefresh;
/* */ private String perms; private String perms;
/* */ private String icon; private String icon;
/* 56 */ private List<Menu> children = new ArrayList<>(); private List<Menu> children = new ArrayList<>();
/* */
/* */
/* */ public Long getMenuId() { public Long getMenuId() {
/* 60 */ return this.menuId; return this.menuId;
/* */ } }
/* */
/* */
/* */ public void setMenuId(Long menuId) { public void setMenuId(Long menuId) {
/* 65 */ this.menuId = menuId; this.menuId = menuId;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "菜单名称不能为空") @NotBlank(message = "菜单名称不能为空")
/* */ @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符") @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符")
/* */ public String getMenuName() { public String getMenuName() {
/* 72 */ return this.menuName; return this.menuName;
/* */ } }
/* */
/* */
/* */ public void setMenuName(String menuName) { public void setMenuName(String menuName) {
/* 77 */ this.menuName = menuName; this.menuName = menuName;
/* */ } }
/* */
/* */
/* */ public String getParentName() { public String getParentName() {
/* 82 */ return this.parentName; return this.parentName;
/* */ } }
/* */
/* */
/* */ public void setParentName(String parentName) { public void setParentName(String parentName) {
/* 87 */ this.parentName = parentName; this.parentName = parentName;
/* */ } }
/* */
/* */
/* */ public Long getParentId() { public Long getParentId() {
/* 92 */ return this.parentId; return this.parentId;
/* */ } }
/* */
/* */
/* */ public void setParentId(Long parentId) { public void setParentId(Long parentId) {
/* 97 */ this.parentId = parentId; this.parentId = parentId;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "显示顺序不能为空") @NotBlank(message = "显示顺序不能为空")
/* */ public String getOrderNum() { public String getOrderNum() {
/* 103 */ return this.orderNum; return this.orderNum;
/* */ } }
/* */
/* */
/* */ public void setOrderNum(String orderNum) { public void setOrderNum(String orderNum) {
/* 108 */ this.orderNum = orderNum; this.orderNum = orderNum;
/* */ } }
/* */
/* */
/* */ @Size(min = 0, max = 200, message = "请求地址不能超过200个字符") @Size(min = 0, max = 200, message = "请求地址不能超过200个字符")
/* */ public String getUrl() { public String getUrl() {
/* 114 */ return this.url; return this.url;
/* */ } }
/* */
/* */
/* */ public void setUrl(String url) { public void setUrl(String url) {
/* 119 */ this.url = url; this.url = url;
/* */ } }
/* */
/* */
/* */ public String getTarget() { public String getTarget() {
/* 124 */ return this.target; return this.target;
/* */ } }
/* */
/* */
/* */ public void setTarget(String target) { public void setTarget(String target) {
/* 129 */ this.target = target; this.target = target;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "菜单类型不能为空") @NotBlank(message = "菜单类型不能为空")
/* */ public String getMenuType() { public String getMenuType() {
/* 135 */ return this.menuType; return this.menuType;
/* */ } }
/* */
/* */
/* */ public void setMenuType(String menuType) { public void setMenuType(String menuType) {
/* 140 */ this.menuType = menuType; this.menuType = menuType;
/* */ } }
/* */
/* */
/* */ public String getVisible() { public String getVisible() {
/* 145 */ return this.visible; return this.visible;
/* */ } }
/* */
/* */
/* */ public void setVisible(String visible) { public void setVisible(String visible) {
/* 150 */ this.visible = visible; this.visible = visible;
/* */ } }
/* */
/* */
/* */ public String getIsRefresh() { public String getIsRefresh() {
/* 155 */ return this.isRefresh; return this.isRefresh;
/* */ } }
/* */
/* */
/* */ public void setIsRefresh(String isRefresh) { public void setIsRefresh(String isRefresh) {
/* 160 */ this.isRefresh = isRefresh; this.isRefresh = isRefresh;
/* */ } }
/* */
/* */
/* */ @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符") @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符")
/* */ public String getPerms() { public String getPerms() {
/* 166 */ return this.perms; return this.perms;
/* */ } }
/* */
/* */
/* */ public void setPerms(String perms) { public void setPerms(String perms) {
/* 171 */ this.perms = perms; this.perms = perms;
/* */ } }
/* */
/* */
/* */ public String getIcon() { public String getIcon() {
/* 176 */ return this.icon; return this.icon;
/* */ } }
/* */
/* */
/* */ public void setIcon(String icon) { public void setIcon(String icon) {
/* 181 */ this.icon = icon; this.icon = icon;
/* */ } }
/* */
/* */
/* */ public List<Menu> getChildren() { public List<Menu> getChildren() {
/* 186 */ return this.children; return this.children;
/* */ } }
/* */
/* */
/* */ public void setChildren(List<Menu> children) { public void setChildren(List<Menu> children) {
/* 191 */ this.children = children; this.children = children;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 196 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 197 */ .append("menuId", getMenuId()) .append("menuId", getMenuId())
/* 198 */ .append("menuName", getMenuName()) .append("menuName", getMenuName())
/* 199 */ .append("parentId", getParentId()) .append("parentId", getParentId())
/* 200 */ .append("orderNum", getOrderNum()) .append("orderNum", getOrderNum())
/* 201 */ .append("url", getUrl()) .append("url", getUrl())
/* 202 */ .append("target", getTarget()) .append("target", getTarget())
/* 203 */ .append("menuType", getMenuType()) .append("menuType", getMenuType())
/* 204 */ .append("visible", getVisible()) .append("visible", getVisible())
/* 205 */ .append("perms", getPerms()) .append("perms", getPerms())
/* 206 */ .append("icon", getIcon()) .append("icon", getIcon())
/* 207 */ .append("createBy", getCreateBy()) .append("createBy", getCreateBy())
/* 208 */ .append("createTime", getCreateTime()) .append("createTime", getCreateTime())
/* 209 */ .append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
/* 210 */ .append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
/* 211 */ .append("remark", getRemark()) .append("remark", getRemark())
/* 212 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\domain\Menu.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\domain\Menu.class

@ -1,329 +1,329 @@
/* */ package com.archive.project.system.menu.service package com.archive.project.system.menu.service
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.TreeUtils; import com.archive.common.utils.TreeUtils;
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.framework.web.domain.Ztree; import com.archive.framework.web.domain.Ztree;
/* */ import com.archive.project.system.menu.domain.Menu; import com.archive.project.system.menu.domain.Menu;
/* */ import com.archive.project.system.menu.mapper.MenuMapper; import com.archive.project.system.menu.mapper.MenuMapper;
/* */ import com.archive.project.system.menu.service.IMenuService; import com.archive.project.system.menu.service.IMenuService;
/* */ import com.archive.project.system.role.domain.Role; import com.archive.project.system.role.domain.Role;
/* */ import com.archive.project.system.role.mapper.RoleMenuMapper; import com.archive.project.system.role.mapper.RoleMenuMapper;
/* */ import com.archive.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import java.text.MessageFormat; import java.text.MessageFormat;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.Arrays; import java.util.Arrays;
/* */ import java.util.HashSet; import java.util.HashSet;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.LinkedList; import java.util.LinkedList;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import java.util.Set; import java.util.Set;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class MenuServiceImpl public class MenuServiceImpl
/* */ implements IMenuService implements IMenuService
/* */ { {
/* */ public static final String PREMISSION_STRING = "perms[\"{0}\"]"; public static final String PREMISSION_STRING = "perms[\"{0}\"]";
/* */ @Autowired @Autowired
/* */ private MenuMapper menuMapper; private MenuMapper menuMapper;
/* */ @Autowired @Autowired
/* */ private RoleMenuMapper roleMenuMapper; private RoleMenuMapper roleMenuMapper;
/* */
/* */ public List<Menu> selectMenusByUser(User user) { public List<Menu> selectMenusByUser(User user) {
/* 49 */ List<Menu> menus = new LinkedList<>(); List<Menu> menus = new LinkedList<>();
/* */
/* 51 */ if (user.isAdmin()) { if (user.isAdmin()) {
/* */
/* 53 */ menus = this.menuMapper.selectMenuNormalAll(); menus = this.menuMapper.selectMenuNormalAll();
/* */ } }
/* */ else { else {
/* */
/* 57 */ menus = this.menuMapper.selectMenusByUserId(user.getUserId()); menus = this.menuMapper.selectMenusByUserId(user.getUserId());
/* */ } }
/* 59 */ return TreeUtils.getChildPerms(menus, 0); return TreeUtils.getChildPerms(menus, 0);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Menu> selectMenuList(Menu menu) { public List<Menu> selectMenuList(Menu menu) {
/* 70 */ List<Menu> menuList = null; List<Menu> menuList = null;
/* 71 */ User user = ShiroUtils.getSysUser(); User user = ShiroUtils.getSysUser();
/* 72 */ if (user.isAdmin()) { if (user.isAdmin()) {
/* */
/* 74 */ menuList = this.menuMapper.selectMenuList(menu); menuList = this.menuMapper.selectMenuList(menu);
/* */ } }
/* */ else { else {
/* */
/* 78 */ menu.getParams().put("userId", user.getUserId()); menu.getParams().put("userId", user.getUserId());
/* 79 */ menuList = this.menuMapper.selectMenuListByUserId(menu); menuList = this.menuMapper.selectMenuListByUserId(menu);
/* */ } }
/* 81 */ return menuList; return menuList;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Menu> selectMenuAll() { public List<Menu> selectMenuAll() {
/* 92 */ List<Menu> menuList = null; List<Menu> menuList = null;
/* 93 */ User user = ShiroUtils.getSysUser(); User user = ShiroUtils.getSysUser();
/* 94 */ if (user.isAdmin()) { if (user.isAdmin()) {
/* */
/* 96 */ menuList = this.menuMapper.selectMenuAll(); menuList = this.menuMapper.selectMenuAll();
/* */ } }
/* */ else { else {
/* */
/* 100 */ menuList = this.menuMapper.selectMenuAllByUserId(user.getUserId()); menuList = this.menuMapper.selectMenuAllByUserId(user.getUserId());
/* */ } }
/* 102 */ return menuList; return menuList;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Set<String> selectPermsByUserId(Long userId) { public Set<String> selectPermsByUserId(Long userId) {
/* 114 */ List<String> perms = this.menuMapper.selectPermsByUserId(userId); List<String> perms = this.menuMapper.selectPermsByUserId(userId);
/* 115 */ Set<String> permsSet = new HashSet<>(); Set<String> permsSet = new HashSet<>();
/* 116 */ for (String perm : perms) { for (String perm : perms) {
/* */
/* 118 */ if (StringUtils.isNotEmpty(perm)) if (StringUtils.isNotEmpty(perm))
/* */ { {
/* 120 */ permsSet.addAll(Arrays.asList(perm.trim().split(","))); permsSet.addAll(Arrays.asList(perm.trim().split(",")));
/* */ } }
/* */ } }
/* 123 */ return permsSet; return permsSet;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Ztree> roleMenuTreeData(Role role) { public List<Ztree> roleMenuTreeData(Role role) {
/* 135 */ Long roleId = role.getRoleId(); Long roleId = role.getRoleId();
/* 136 */ List<Ztree> ztrees = new ArrayList<>(); List<Ztree> ztrees = new ArrayList<>();
/* 137 */ List<Menu> menuList = selectMenuAll(); List<Menu> menuList = selectMenuAll();
/* 138 */ if (StringUtils.isNotNull(roleId)) { if (StringUtils.isNotNull(roleId)) {
/* */
/* 140 */ List<String> roleMenuList = this.menuMapper.selectMenuTree(roleId); List<String> roleMenuList = this.menuMapper.selectMenuTree(roleId);
/* 141 */ ztrees = initZtree(menuList, roleMenuList, true); ztrees = initZtree(menuList, roleMenuList, true);
/* */ } }
/* */ else { else {
/* */
/* 145 */ ztrees = initZtree(menuList, null, true); ztrees = initZtree(menuList, null, true);
/* */ } }
/* 147 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Ztree> menuTreeData() { public List<Ztree> menuTreeData() {
/* 158 */ List<Menu> menuList = selectMenuAll(); List<Menu> menuList = selectMenuAll();
/* 159 */ List<Ztree> ztrees = initZtree(menuList); List<Ztree> ztrees = initZtree(menuList);
/* 160 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public LinkedHashMap<String, String> selectPermsAll() { public LinkedHashMap<String, String> selectPermsAll() {
/* 171 */ LinkedHashMap<String, String> section = new LinkedHashMap<>(); LinkedHashMap<String, String> section = new LinkedHashMap<>();
/* 172 */ List<Menu> permissions = selectMenuAll(); List<Menu> permissions = selectMenuAll();
/* 173 */ if (StringUtils.isNotEmpty(permissions)) if (StringUtils.isNotEmpty(permissions))
/* */ { {
/* 175 */ for (Menu menu : permissions) { for (Menu menu : permissions) {
/* */
/* 177 */ section.put(menu.getUrl(), MessageFormat.format("perms[\"{0}\"]", new Object[] { menu.getPerms() })); section.put(menu.getUrl(), MessageFormat.format("perms[\"{0}\"]", new Object[] { menu.getPerms() }));
/* */ } }
/* */ } }
/* 180 */ return section; return section;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Ztree> initZtree(List<Menu> menuList) { public List<Ztree> initZtree(List<Menu> menuList) {
/* 191 */ return initZtree(menuList, null, false); return initZtree(menuList, null, false);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Ztree> initZtree(List<Menu> menuList, List<String> roleMenuList, boolean permsFlag) { public List<Ztree> initZtree(List<Menu> menuList, List<String> roleMenuList, boolean permsFlag) {
/* 204 */ List<Ztree> ztrees = new ArrayList<>(); List<Ztree> ztrees = new ArrayList<>();
/* 205 */ boolean isCheck = StringUtils.isNotNull(roleMenuList); boolean isCheck = StringUtils.isNotNull(roleMenuList);
/* 206 */ for (Menu menu : menuList) { for (Menu menu : menuList) {
/* */
/* 208 */ Ztree ztree = new Ztree(); Ztree ztree = new Ztree();
/* 209 */ ztree.setId(menu.getMenuId()); ztree.setId(menu.getMenuId());
/* 210 */ ztree.setpId(menu.getParentId()); ztree.setpId(menu.getParentId());
/* 211 */ ztree.setName(transMenuName(menu, permsFlag)); ztree.setName(transMenuName(menu, permsFlag));
/* 212 */ ztree.setTitle(menu.getMenuName()); ztree.setTitle(menu.getMenuName());
/* 213 */ if (isCheck) if (isCheck)
/* */ { {
/* 215 */ ztree.setChecked(roleMenuList.contains(menu.getMenuId() + menu.getPerms())); ztree.setChecked(roleMenuList.contains(menu.getMenuId() + menu.getPerms()));
/* */ } }
/* 217 */ ztrees.add(ztree); ztrees.add(ztree);
/* */ } }
/* 219 */ return ztrees; return ztrees;
/* */ } }
/* */
/* */
/* */ public String transMenuName(Menu menu, boolean permsFlag) { public String transMenuName(Menu menu, boolean permsFlag) {
/* 224 */ StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
/* 225 */ sb.append(menu.getMenuName()); sb.append(menu.getMenuName());
/* 226 */ if (permsFlag) if (permsFlag)
/* */ { {
/* 228 */ sb.append("<font color=\"#888\">&nbsp;&nbsp;&nbsp;" + menu.getPerms() + "</font>"); sb.append("<font color=\"#888\">&nbsp;&nbsp;&nbsp;" + menu.getPerms() + "</font>");
/* */ } }
/* 230 */ return sb.toString(); return sb.toString();
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteMenuById(Long menuId) { public int deleteMenuById(Long menuId) {
/* 242 */ return this.menuMapper.deleteMenuById(menuId); return this.menuMapper.deleteMenuById(menuId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Menu selectMenuById(Long menuId) { public Menu selectMenuById(Long menuId) {
/* 254 */ return this.menuMapper.selectMenuById(menuId); return this.menuMapper.selectMenuById(menuId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int selectCountMenuByParentId(Long parentId) { public int selectCountMenuByParentId(Long parentId) {
/* 266 */ return this.menuMapper.selectCountMenuByParentId(parentId); return this.menuMapper.selectCountMenuByParentId(parentId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int selectCountRoleMenuByMenuId(Long menuId) { public int selectCountRoleMenuByMenuId(Long menuId) {
/* 278 */ return this.roleMenuMapper.selectCountRoleMenuByMenuId(menuId); return this.roleMenuMapper.selectCountRoleMenuByMenuId(menuId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertMenu(Menu menu) { public int insertMenu(Menu menu) {
/* 290 */ menu.setCreateBy(ShiroUtils.getLoginName()); menu.setCreateBy(ShiroUtils.getLoginName());
/* 291 */ return this.menuMapper.insertMenu(menu); return this.menuMapper.insertMenu(menu);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateMenu(Menu menu) { public int updateMenu(Menu menu) {
/* 303 */ menu.setUpdateBy(ShiroUtils.getLoginName()); menu.setUpdateBy(ShiroUtils.getLoginName());
/* 304 */ return this.menuMapper.updateMenu(menu); return this.menuMapper.updateMenu(menu);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkMenuNameUnique(Menu menu) { public String checkMenuNameUnique(Menu menu) {
/* 316 */ Long menuId = Long.valueOf(StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId().longValue()); Long menuId = Long.valueOf(StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId().longValue());
/* 317 */ Menu info = this.menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId()); Menu info = this.menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId());
/* 318 */ if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue()) if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue())
/* */ { {
/* 320 */ return "1"; return "1";
/* */ } }
/* 322 */ return "0"; return "0";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\service\MenuServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\menu\service\MenuServiceImpl.class

@ -1,114 +1,114 @@
/* */ package com.archive.project.system.notice.controller package com.archive.project.system.notice.controller
; ;
/* */
/* */ 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.system.notice.domain.Notice; import com.archive.project.system.notice.domain.Notice;
/* */ import com.archive.project.system.notice.service.INoticeService; import com.archive.project.system.notice.service.INoticeService;
/* */ 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({"/system/notice"}) @RequestMapping({"/system/notice"})
/* */ public class NoticeController public class NoticeController
/* */ extends BaseController extends BaseController
/* */ { {
/* 30 */ private String prefix = "system/notice"; private String prefix = "system/notice";
/* */
/* */ @Autowired @Autowired
/* */ private INoticeService noticeService; private INoticeService noticeService;
/* */
/* */
/* */ @RequiresPermissions({"system:notice:view"}) @RequiresPermissions({"system:notice:view"})
/* */ @GetMapping @GetMapping
/* */ public String notice() { public String notice() {
/* 39 */ return this.prefix + "/notice"; return this.prefix + "/notice";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:notice:list"}) @RequiresPermissions({"system:notice:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(Notice notice) { public TableDataInfo list(Notice notice) {
/* 50 */ startPage(); startPage();
/* 51 */ List<Notice> list = this.noticeService.selectNoticeList(notice); List<Notice> list = this.noticeService.selectNoticeList(notice);
/* 52 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 61 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:notice:add"}) @RequiresPermissions({"system:notice:add"})
/* */ @Log(title = "通知公告", businessType = BusinessType.INSERT) @Log(title = "通知公告", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(Notice notice) { public AjaxResult addSave(Notice notice) {
/* 73 */ return toAjax(this.noticeService.insertNotice(notice)); return toAjax(this.noticeService.insertNotice(notice));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{noticeId}"}) @GetMapping({"/edit/{noticeId}"})
/* */ public String edit(@PathVariable("noticeId") Long noticeId, ModelMap mmap) { public String edit(@PathVariable("noticeId") Long noticeId, ModelMap mmap) {
/* 82 */ mmap.put("notice", this.noticeService.selectNoticeById(noticeId)); mmap.put("notice", this.noticeService.selectNoticeById(noticeId));
/* 83 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:notice:edit"}) @RequiresPermissions({"system:notice:edit"})
/* */ @Log(title = "通知公告", businessType = BusinessType.UPDATE) @Log(title = "通知公告", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(Notice notice) { public AjaxResult editSave(Notice notice) {
/* 95 */ return toAjax(this.noticeService.updateNotice(notice)); return toAjax(this.noticeService.updateNotice(notice));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:notice:remove"}) @RequiresPermissions({"system:notice: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) {
/* 107 */ return toAjax(this.noticeService.deleteNoticeByIds(ids)); return toAjax(this.noticeService.deleteNoticeByIds(ids));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\controller\NoticeController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\controller\NoticeController.class

@ -1,105 +1,105 @@
/* */ package com.archive.project.system.notice.domain package com.archive.project.system.notice.domain
; ;
/* */
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
/* */ import javax.validation.constraints.Size; import javax.validation.constraints.Size;
/* */ 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 Notice public class Notice
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long noticeId; private Long noticeId;
/* */ private String noticeTitle; private String noticeTitle;
/* */ private String noticeType; private String noticeType;
/* */ private String noticeContent; private String noticeContent;
/* */ private String status; private String status;
/* */
/* */ public Long getNoticeId() { public Long getNoticeId() {
/* 35 */ return this.noticeId; return this.noticeId;
/* */ } }
/* */
/* */
/* */ public void setNoticeId(Long noticeId) { public void setNoticeId(Long noticeId) {
/* 40 */ this.noticeId = noticeId; this.noticeId = noticeId;
/* */ } }
/* */
/* */
/* */ public void setNoticeTitle(String noticeTitle) { public void setNoticeTitle(String noticeTitle) {
/* 45 */ this.noticeTitle = noticeTitle; this.noticeTitle = noticeTitle;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "公告标题不能为空") @NotBlank(message = "公告标题不能为空")
/* */ @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
/* */ public String getNoticeTitle() { public String getNoticeTitle() {
/* 52 */ return this.noticeTitle; return this.noticeTitle;
/* */ } }
/* */
/* */
/* */ public void setNoticeType(String noticeType) { public void setNoticeType(String noticeType) {
/* 57 */ this.noticeType = noticeType; this.noticeType = noticeType;
/* */ } }
/* */
/* */
/* */ public String getNoticeType() { public String getNoticeType() {
/* 62 */ return this.noticeType; return this.noticeType;
/* */ } }
/* */
/* */
/* */ public void setNoticeContent(String noticeContent) { public void setNoticeContent(String noticeContent) {
/* 67 */ this.noticeContent = noticeContent; this.noticeContent = noticeContent;
/* */ } }
/* */
/* */
/* */ public String getNoticeContent() { public String getNoticeContent() {
/* 72 */ return this.noticeContent; return this.noticeContent;
/* */ } }
/* */
/* */
/* */ public void setStatus(String status) { public void setStatus(String status) {
/* 77 */ this.status = status; this.status = status;
/* */ } }
/* */
/* */
/* */ public String getStatus() { public String getStatus() {
/* 82 */ return this.status; return this.status;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 87 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 88 */ .append("noticeId", getNoticeId()) .append("noticeId", getNoticeId())
/* 89 */ .append("noticeTitle", getNoticeTitle()) .append("noticeTitle", getNoticeTitle())
/* 90 */ .append("noticeType", getNoticeType()) .append("noticeType", getNoticeType())
/* 91 */ .append("noticeContent", getNoticeContent()) .append("noticeContent", getNoticeContent())
/* 92 */ .append("status", getStatus()) .append("status", getStatus())
/* 93 */ .append("createBy", getCreateBy()) .append("createBy", getCreateBy())
/* 94 */ .append("createTime", getCreateTime()) .append("createTime", getCreateTime())
/* 95 */ .append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
/* 96 */ .append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
/* 97 */ .append("remark", getRemark()) .append("remark", getRemark())
/* 98 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\domain\Notice.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\domain\Notice.class

@ -1,120 +1,120 @@
/* */ package com.archive.project.system.notice.service package com.archive.project.system.notice.service
; ;
/* */
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.system.notice.domain.Notice; import com.archive.project.system.notice.domain.Notice;
/* */ import com.archive.project.system.notice.mapper.NoticeMapper; import com.archive.project.system.notice.mapper.NoticeMapper;
/* */ import com.archive.project.system.notice.service.INoticeService; import com.archive.project.system.notice.service.INoticeService;
/* */ 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 NoticeServiceImpl public class NoticeServiceImpl
/* */ implements INoticeService implements INoticeService
/* */ { {
/* */ @Autowired @Autowired
/* */ private NoticeMapper noticeMapper; private NoticeMapper noticeMapper;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public Notice selectNoticeById(Long noticeId) { public Notice selectNoticeById(Long noticeId) {
/* 39 */ return this.noticeMapper.selectNoticeById(noticeId); return this.noticeMapper.selectNoticeById(noticeId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Notice> selectNoticeList(Notice notice) { public List<Notice> selectNoticeList(Notice notice) {
/* 51 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 52 */ return this.noticeMapper.selectNoticeList(notice); return this.noticeMapper.selectNoticeList(notice);
/* */ } }
/* 54 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 55 */ return this.noticeMapper.selectNoticeListSqlite(notice); return this.noticeMapper.selectNoticeListSqlite(notice);
/* */ } }
/* 57 */ return this.noticeMapper.selectNoticeList(notice); return this.noticeMapper.selectNoticeList(notice);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertNotice(Notice notice) { public int insertNotice(Notice notice) {
/* 71 */ notice.setCreateBy(ShiroUtils.getLoginName()); notice.setCreateBy(ShiroUtils.getLoginName());
/* 72 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 73 */ return this.noticeMapper.insertNotice(notice); return this.noticeMapper.insertNotice(notice);
/* */ } }
/* 75 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 76 */ return this.noticeMapper.insertNoticeSqlite(notice); return this.noticeMapper.insertNoticeSqlite(notice);
/* */ } }
/* 78 */ return this.noticeMapper.insertNotice(notice); return this.noticeMapper.insertNotice(notice);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updateNotice(Notice notice) { public int updateNotice(Notice notice) {
/* 92 */ notice.setUpdateBy(ShiroUtils.getLoginName()); notice.setUpdateBy(ShiroUtils.getLoginName());
/* 93 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 94 */ return this.noticeMapper.updateNotice(notice); return this.noticeMapper.updateNotice(notice);
/* */ } }
/* 96 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 97 */ return this.noticeMapper.updateNoticeSqlite(notice); return this.noticeMapper.updateNoticeSqlite(notice);
/* */ } }
/* 99 */ return this.noticeMapper.updateNotice(notice); return this.noticeMapper.updateNotice(notice);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteNoticeByIds(String ids) { public int deleteNoticeByIds(String ids) {
/* 113 */ return this.noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids)); return this.noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\service\NoticeServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\notice\service\NoticeServiceImpl.class

@ -1,186 +1,186 @@
/* */ package com.archive.project.zhtj.lytj.controller package com.archive.project.zhtj.lytj.controller
; ;
/* */
/* */ 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.project.jyly.borrow.domain.TArchiveBorrow; import com.archive.project.jyly.borrow.domain.TArchiveBorrow;
/* */ import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; import com.archive.project.jyly.borrow.service.ITArchiveBorrowService;
/* */ import com.archive.project.zhtj.lytj.service.ILytjService; import com.archive.project.zhtj.lytj.service.ILytjService;
/* */ import java.text.ParseException; import java.text.ParseException;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.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({"/zhtj/lytj"}) @RequestMapping({"/zhtj/lytj"})
/* */ public class LytjController extends BaseController { public class LytjController extends BaseController {
/* 24 */ private String prefix = "zhtj/lytj"; private String prefix = "zhtj/lytj";
/* */
/* */ @Autowired @Autowired
/* */ private ILytjService lytjService; private ILytjService lytjService;
/* */
/* */ @Autowired @Autowired
/* */ private ITArchiveBorrowService tArchiveBorrowService; private ITArchiveBorrowService tArchiveBorrowService;
/* */
/* */
/* */ @RequiresPermissions({"zhtj:lytj:view"}) @RequiresPermissions({"zhtj:lytj:view"})
/* */ @GetMapping @GetMapping
/* */ public String archivesearch(ModelMap mmap) { public String archivesearch(ModelMap mmap) {
/* 36 */ return this.prefix + "/lytj"; return this.prefix + "/lytj";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"zhtj:datj:view"}) @RequiresPermissions({"zhtj:datj:view"})
/* */ @GetMapping({"/lyrcndtj"}) @GetMapping({"/lyrcndtj"})
/* */ public String lyrcndtj(ModelMap mmap) { public String lyrcndtj(ModelMap mmap) {
/* 48 */ return this.prefix + "/lyrcndtj"; return this.prefix + "/lyrcndtj";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"zhtj:datj:view"}) @RequiresPermissions({"zhtj:datj:view"})
/* */ @GetMapping({"/lymxtj"}) @GetMapping({"/lymxtj"})
/* */ public String lymxtj(ModelMap mmap) { public String lymxtj(ModelMap mmap) {
/* 60 */ return this.prefix + "/lymxtj"; return this.prefix + "/lymxtj";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"zhtj:datj:view"}) @RequiresPermissions({"zhtj:datj:view"})
/* */ @GetMapping({"/mydtj"}) @GetMapping({"/mydtj"})
/* */ public String mydtj(ModelMap mmap) { public String mydtj(ModelMap mmap) {
/* 72 */ return this.prefix + "/mydtj"; return this.prefix + "/mydtj";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getRctjTableData"}) @GetMapping({"/getRctjTableData"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getRctjTableData() { public AjaxResult getRctjTableData() {
/* 83 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* */ try { try {
/* 85 */ list = this.lytjService.getRctjTableData(); list = this.lytjService.getRctjTableData();
/* 86 */ } catch (Exception e) { } catch (Exception e) {
/* 87 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 89 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getLymxtjTableData"}) @GetMapping({"/getLymxtjTableData"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getLymxtjTableData() { public AjaxResult getLymxtjTableData() {
/* 100 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* */ try { try {
/* 102 */ list = this.lytjService.getLymxtjTableData(); list = this.lytjService.getLymxtjTableData();
/* 103 */ } catch (Exception e) { } catch (Exception e) {
/* 104 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 106 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getLymxtjTxData"}) @GetMapping({"/getLymxtjTxData"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getLymxtjTxData() { public AjaxResult getLymxtjTxData() {
/* 116 */ Map<String, Object> list = new HashMap<>(); Map<String, Object> list = new HashMap<>();
/* */ try { try {
/* 118 */ list = this.lytjService.getLymxtjTxData(); list = this.lytjService.getLymxtjTxData();
/* 119 */ } catch (Exception e) { } catch (Exception e) {
/* 120 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 122 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getMydTableData"}) @GetMapping({"/getMydTableData"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getMydTableData() { public AjaxResult getMydTableData() {
/* 133 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* */ try { try {
/* 135 */ list = this.lytjService.getMydTableData(); list = this.lytjService.getMydTableData();
/* 136 */ } catch (Exception e) { } catch (Exception e) {
/* 137 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 139 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getMydTxData"}) @GetMapping({"/getMydTxData"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getMydTxData() { public AjaxResult getMydTxData() {
/* 149 */ List<Map<String, Object>> list = new ArrayList<>(); List<Map<String, Object>> list = new ArrayList<>();
/* */ try { try {
/* 151 */ list = this.lytjService.getMydTxData(); list = this.lytjService.getMydTxData();
/* 152 */ } catch (Exception e) { } catch (Exception e) {
/* 153 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* 155 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/getLyjl"}) @GetMapping({"/getLyjl"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult getLyjl() throws ParseException { public AjaxResult getLyjl() throws ParseException {
/* 165 */ TArchiveBorrow tArchiveBorrow = new TArchiveBorrow(); TArchiveBorrow tArchiveBorrow = new TArchiveBorrow();
/* 166 */ List<TArchiveBorrow> list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow); List<TArchiveBorrow> list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow);
/* 167 */ if (list.size() > 15) { if (list.size() > 15) {
/* 168 */ for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
/* 169 */ if (list.size() - i > 15) { if (list.size() - i > 15) {
/* 170 */ list.remove(i); list.remove(i);
/* */ } }
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* 179 */ return AjaxResult.success(list); return AjaxResult.success(list);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\lytj\controller\LytjController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\lytj\controller\LytjController.class

@ -1,322 +1,322 @@
/* */ package com.archive.project.zhtj.lytj.service.impl package com.archive.project.zhtj.lytj.service.impl
; ;
/* */
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.common.service.IExecuteSqlService; import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper; import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper; import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import com.archive.project.system.config.service.IConfigService; import com.archive.project.system.config.service.IConfigService;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import com.archive.project.zhtj.lytj.service.ILytjService; import com.archive.project.zhtj.lytj.service.ILytjService;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.LinkedHashMap; import java.util.LinkedHashMap;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class LytjServiceImpl public class LytjServiceImpl
/* */ implements ILytjService implements ILytjService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PhysicalTableMapper physicalTableMapper; private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper; private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */ @Autowired @Autowired
/* */ private IConfigService configService; private IConfigService configService;
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public List<Map<String, String>> getRctjTableData() { public List<Map<String, String>> getRctjTableData() {
/* 53 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* 54 */ String sql = ""; String sql = "";
/* 55 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 56 */ sql = "SELECT SUBSTRING(borrow_data,1,4) as nd,SUBSTRING(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2) ORDER BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2)"; sql = "SELECT SUBSTRING(borrow_data,1,4) as nd,SUBSTRING(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2) ORDER BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2)";
/* */ } }
/* 58 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 59 */ sql = "SELECT SUBSTR(borrow_data,1,4) as nd,SUBSTR(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2) ORDER BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2)"; sql = "SELECT SUBSTR(borrow_data,1,4) as nd,SUBSTR(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2) ORDER BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2)";
/* */ } }
/* */
/* */
/* 63 */ List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql); List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql);
/* 64 */ for (int i = 0; i < datalist.size(); i++) { for (int i = 0; i < datalist.size(); i++) {
/* 65 */ String nd = (((LinkedHashMap)datalist.get(i)).get("nd") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("nd").toString(); String nd = (((LinkedHashMap)datalist.get(i)).get("nd") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("nd").toString();
/* 66 */ String yf = (((LinkedHashMap)datalist.get(i)).get("yf") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("yf").toString(); String yf = (((LinkedHashMap)datalist.get(i)).get("yf") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("yf").toString();
/* 67 */ Map<String, String> map1 = new HashMap<>(); Map<String, String> map1 = new HashMap<>();
/* 68 */ map1.put("nd", nd); map1.put("nd", nd);
/* 69 */ map1.put("yf", yf); map1.put("yf", yf);
/* */
/* 71 */ String str1 = ""; String str1 = "";
/* 72 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 73 */ str1 = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' "; str1 = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' ";
/* 74 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 75 */ str1 = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' "; str1 = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' ";
/* */ } }
/* 77 */ String str2 = this.executeSqlService.getSingle(str1); String str2 = this.executeSqlService.getSingle(str1);
/* 78 */ if (str2.equals("")) { if (str2.equals("")) {
/* 79 */ str2 = "0"; str2 = "0";
/* */ } }
/* 81 */ map1.put("rc", str2); map1.put("rc", str2);
/* */
/* 83 */ String str3 = ""; String str3 = "";
/* 84 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 85 */ str3 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='1'"; str3 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='1'";
/* 86 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 87 */ str3 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='1'"; str3 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='1'";
/* */ } }
/* 89 */ String str4 = this.executeSqlService.getSingle(str3); String str4 = this.executeSqlService.getSingle(str3);
/* 90 */ map1.put("dzjy", str4); map1.put("dzjy", str4);
/* */
/* 92 */ String str5 = ""; String str5 = "";
/* 93 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 94 */ str5 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='2'"; str5 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='2'";
/* 95 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 96 */ str5 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='2'"; str5 = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.borrow_type='2'";
/* */ } }
/* 98 */ String str6 = this.executeSqlService.getSingle(str5); String str6 = this.executeSqlService.getSingle(str5);
/* 99 */ map1.put("stjy", str6); map1.put("stjy", str6);
/* 100 */ list.add(map1); list.add(map1);
/* */ } }
/* */
/* 103 */ Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
/* 104 */ map.put("nd", "合计"); map.put("nd", "合计");
/* 105 */ map.put("yf", ""); map.put("yf", "");
/* */
/* 107 */ String rcsql = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id "; String rcsql = "select SUM(pborrow_state) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id ";
/* 108 */ String rc = this.executeSqlService.getSingle(rcsql); String rc = this.executeSqlService.getSingle(rcsql);
/* 109 */ if (rc.equals("")) { if (rc.equals("")) {
/* 110 */ rc = "0"; rc = "0";
/* */ } }
/* 112 */ map.put("rc", rc); map.put("rc", rc);
/* */
/* 114 */ String dzsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='1'"; String dzsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='1'";
/* 115 */ String dzjy = this.executeSqlService.getSingle(dzsql); String dzjy = this.executeSqlService.getSingle(dzsql);
/* 116 */ map.put("dzjy", dzjy); map.put("dzjy", dzjy);
/* */
/* 118 */ String stsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='2'"; String stsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='2'";
/* 119 */ String stjy = this.executeSqlService.getSingle(stsql); String stjy = this.executeSqlService.getSingle(stsql);
/* 120 */ map.put("stjy", stjy); map.put("stjy", stjy);
/* 121 */ list.add(map); list.add(map);
/* 122 */ return list; return list;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Map<String, String>> getLymxtjTableData() { public List<Map<String, String>> getLymxtjTableData() {
/* 132 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* 133 */ String sql = "select b.table_name as name,count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id group by b.table_name"; String sql = "select b.table_name as name,count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id group by b.table_name";
/* 134 */ List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql); List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql);
/* 135 */ for (int i = 0; i < datalist.size(); i++) { for (int i = 0; i < datalist.size(); i++) {
/* 136 */ String name = (((LinkedHashMap)datalist.get(i)).get("name") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("name").toString(); String name = (((LinkedHashMap)datalist.get(i)).get("name") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("name").toString();
/* 137 */ String str1 = (((LinkedHashMap)datalist.get(i)).get("zs") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("zs").toString(); String str1 = (((LinkedHashMap)datalist.get(i)).get("zs") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("zs").toString();
/* 138 */ Map<String, String> map1 = new HashMap<>(); Map<String, String> map1 = new HashMap<>();
/* 139 */ map1.put("name", name); map1.put("name", name);
/* 140 */ map1.put("zs", str1); map1.put("zs", str1);
/* */
/* */
/* 143 */ String str2 = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where b.table_name='" + name + "' and a.borrow_type='1'"; String str2 = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where b.table_name='" + name + "' and a.borrow_type='1'";
/* 144 */ String str3 = this.executeSqlService.getSingle(str2); String str3 = this.executeSqlService.getSingle(str2);
/* 145 */ map1.put("dzjy", str3); map1.put("dzjy", str3);
/* */
/* 147 */ String str4 = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where b.table_name='" + name + "' and a.borrow_type='2'"; String str4 = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where b.table_name='" + name + "' and a.borrow_type='2'";
/* 148 */ String str5 = this.executeSqlService.getSingle(str4); String str5 = this.executeSqlService.getSingle(str4);
/* 149 */ map1.put("stjy", str5); map1.put("stjy", str5);
/* 150 */ list.add(map1); list.add(map1);
/* */ } }
/* */
/* 153 */ Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
/* 154 */ map.put("name", "合计"); map.put("name", "合计");
/* */
/* 156 */ String rcsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id "; String rcsql = "select count(1) from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id ";
/* 157 */ String zs = this.executeSqlService.getSingle(rcsql); String zs = this.executeSqlService.getSingle(rcsql);
/* 158 */ map.put("zs", zs); map.put("zs", zs);
/* */
/* */
/* 161 */ String dzsql = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='1'"; String dzsql = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='1'";
/* 162 */ String dzjy = this.executeSqlService.getSingle(dzsql); String dzjy = this.executeSqlService.getSingle(dzsql);
/* 163 */ map.put("dzjy", dzjy); map.put("dzjy", dzjy);
/* */
/* 165 */ String stsql = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='2'"; String stsql = "select count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id where a.borrow_type='2'";
/* 166 */ String stjy = this.executeSqlService.getSingle(stsql); String stjy = this.executeSqlService.getSingle(stsql);
/* 167 */ map.put("stjy", stjy); map.put("stjy", stjy);
/* 168 */ list.add(map); list.add(map);
/* 169 */ return list; return list;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Map<String, Object> getLymxtjTxData() { public Map<String, Object> getLymxtjTxData() {
/* 179 */ Map<String, Object> res = new HashMap<>(); Map<String, Object> res = new HashMap<>();
/* 180 */ List<String> nameList = new ArrayList<>(); List<String> nameList = new ArrayList<>();
/* 181 */ List<Map<String, Object>> list = new ArrayList<>(); List<Map<String, Object>> list = new ArrayList<>();
/* 182 */ String sql = "select b.table_name as name,count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id group by b.table_name"; String sql = "select b.table_name as name,count(1) as zs from t_archive_borrow a inner join t_archive_borrow_detail b on a.id=b.owner_id group by b.table_name";
/* 183 */ List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql); List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql);
/* 184 */ for (int i = 0; i < datalist.size(); i++) { for (int i = 0; i < datalist.size(); i++) {
/* 185 */ String name = (((LinkedHashMap)datalist.get(i)).get("name") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("name").toString(); String name = (((LinkedHashMap)datalist.get(i)).get("name") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("name").toString();
/* 186 */ String zs = (((LinkedHashMap)datalist.get(i)).get("zs") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("zs").toString(); String zs = (((LinkedHashMap)datalist.get(i)).get("zs") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("zs").toString();
/* 187 */ Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
/* 188 */ map.put("name", name); map.put("name", name);
/* 189 */ map.put("value", Integer.valueOf(Integer.parseInt(zs))); map.put("value", Integer.valueOf(Integer.parseInt(zs)));
/* 190 */ nameList.add(name); nameList.add(name);
/* 191 */ list.add(map); list.add(map);
/* */ } }
/* 193 */ res.put("names", nameList); res.put("names", nameList);
/* 194 */ res.put("mapData", list); res.put("mapData", list);
/* 195 */ return res; return res;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Map<String, String>> getMydTableData() { public List<Map<String, String>> getMydTableData() {
/* 205 */ List<Map<String, String>> list = new ArrayList<>(); List<Map<String, String>> list = new ArrayList<>();
/* */
/* 207 */ String sql = ""; String sql = "";
/* 208 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 209 */ sql = "SELECT SUBSTRING(borrow_data,1,4) as nd,SUBSTRING(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2) ORDER BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2)"; sql = "SELECT SUBSTRING(borrow_data,1,4) as nd,SUBSTRING(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2) ORDER BY SUBSTRING(borrow_data,1,4),SUBSTRING(borrow_data,6,2)";
/* */ } }
/* 211 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 212 */ sql = "SELECT SUBSTR(borrow_data,1,4) as nd,SUBSTR(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2) ORDER BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2)"; sql = "SELECT SUBSTR(borrow_data,1,4) as nd,SUBSTR(borrow_data,6,2) as yf FROM t_archive_borrow GROUP BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2) ORDER BY SUBSTR(borrow_data,1,4),SUBSTR(borrow_data,6,2)";
/* */ } }
/* 214 */ List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql); List<LinkedHashMap<String, Object>> datalist = this.executeSqlService.queryList(sql);
/* 215 */ for (int i = 0; i < datalist.size(); i++) { for (int i = 0; i < datalist.size(); i++) {
/* 216 */ String nd = (((LinkedHashMap)datalist.get(i)).get("nd") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("nd").toString(); String nd = (((LinkedHashMap)datalist.get(i)).get("nd") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("nd").toString();
/* 217 */ String yf = (((LinkedHashMap)datalist.get(i)).get("yf") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("yf").toString(); String yf = (((LinkedHashMap)datalist.get(i)).get("yf") == null) ? "" : ((LinkedHashMap)datalist.get(i)).get("yf").toString();
/* 218 */ Map<String, String> map1 = new HashMap<>(); Map<String, String> map1 = new HashMap<>();
/* 219 */ map1.put("nd", nd); map1.put("nd", nd);
/* 220 */ map1.put("yf", yf); map1.put("yf", yf);
/* */
/* */
/* 223 */ String str1 = ""; String str1 = "";
/* 224 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 225 */ str1 = "select SUM(pborrow_state) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' "; str1 = "select SUM(pborrow_state) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' ";
/* 226 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 227 */ str1 = "select SUM(pborrow_state) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' "; str1 = "select SUM(pborrow_state) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' ";
/* */ } }
/* 229 */ String str2 = this.executeSqlService.getSingle(str1); String str2 = this.executeSqlService.getSingle(str1);
/* 230 */ map1.put("rc", str2); map1.put("rc", str2);
/* */
/* 232 */ String str3 = ""; String str3 = "";
/* 233 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 234 */ str3 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and (a.using_effect='1' or a.using_effect='' or a.using_effect is null)"; str3 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and (a.using_effect='1' or a.using_effect='' or a.using_effect is null)";
/* 235 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 236 */ str3 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and (a.using_effect='1' or a.using_effect='' or a.using_effect is null)"; str3 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and (a.using_effect='1' or a.using_effect='' or a.using_effect is null)";
/* */ } }
/* 238 */ String str4 = this.executeSqlService.getSingle(str3); String str4 = this.executeSqlService.getSingle(str3);
/* 239 */ map1.put("fcmy", str4); map1.put("fcmy", str4);
/* */
/* 241 */ String str5 = ""; String str5 = "";
/* 242 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 243 */ str5 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.using_effect='2'"; str5 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.using_effect='2'";
/* 244 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 245 */ str5 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.using_effect='2'"; str5 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.using_effect='2'";
/* */ } }
/* 247 */ String str6 = this.executeSqlService.getSingle(str5); String str6 = this.executeSqlService.getSingle(str5);
/* 248 */ map1.put("my", str6); map1.put("my", str6);
/* */
/* 250 */ String str7 = ""; String str7 = "";
/* 251 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 252 */ str7 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.using_effect='3'"; str7 = "select count(1) from t_archive_borrow a where SUBSTRING(a.borrow_data,1,4)='" + nd + "' and SUBSTRING(a.borrow_data,6,2)='" + yf + "' and a.using_effect='3'";
/* 253 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 254 */ str7 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.using_effect='3'"; str7 = "select count(1) from t_archive_borrow a where SUBSTR(a.borrow_data,1,4)='" + nd + "' and SUBSTR(a.borrow_data,6,2)='" + yf + "' and a.using_effect='3'";
/* */ } }
/* 256 */ String str8 = this.executeSqlService.getSingle(str7); String str8 = this.executeSqlService.getSingle(str7);
/* 257 */ map1.put("bmy", str8); map1.put("bmy", str8);
/* 258 */ list.add(map1); list.add(map1);
/* */ } }
/* */
/* 261 */ Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
/* 262 */ map.put("nd", "合计"); map.put("nd", "合计");
/* 263 */ map.put("yf", ""); map.put("yf", "");
/* */
/* 265 */ String rcsql = "select SUM(pborrow_state) from t_archive_borrow "; String rcsql = "select SUM(pborrow_state) from t_archive_borrow ";
/* 266 */ String rc = this.executeSqlService.getSingle(rcsql); String rc = this.executeSqlService.getSingle(rcsql);
/* 267 */ if (rc.equals("")) { if (rc.equals("")) {
/* 268 */ rc = "0"; rc = "0";
/* */ } }
/* 270 */ map.put("rc", rc); map.put("rc", rc);
/* */
/* 272 */ String fcmysql = "select count(1) from t_archive_borrow a where (a.using_effect='1' or a.using_effect='' or a.using_effect is null)"; String fcmysql = "select count(1) from t_archive_borrow a where (a.using_effect='1' or a.using_effect='' or a.using_effect is null)";
/* 273 */ String fcmy = this.executeSqlService.getSingle(fcmysql); String fcmy = this.executeSqlService.getSingle(fcmysql);
/* 274 */ map.put("fcmy", fcmy); map.put("fcmy", fcmy);
/* */
/* 276 */ String mysql = "select count(1) from t_archive_borrow a where a.using_effect='2'"; String mysql = "select count(1) from t_archive_borrow a where a.using_effect='2'";
/* 277 */ String my = this.executeSqlService.getSingle(mysql); String my = this.executeSqlService.getSingle(mysql);
/* 278 */ map.put("my", my); map.put("my", my);
/* */
/* 280 */ String bmysql = "select count(1) from t_archive_borrow a where a.using_effect='3'"; String bmysql = "select count(1) from t_archive_borrow a where a.using_effect='3'";
/* 281 */ String bmy = this.executeSqlService.getSingle(bmysql); String bmy = this.executeSqlService.getSingle(bmysql);
/* 282 */ map.put("bmy", bmy); map.put("bmy", bmy);
/* 283 */ list.add(map); list.add(map);
/* 284 */ return list; return list;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Map<String, Object>> getMydTxData() { public List<Map<String, Object>> getMydTxData() {
/* 293 */ List<Map<String, Object>> list = new ArrayList<>(); List<Map<String, Object>> list = new ArrayList<>();
/* */
/* 295 */ Map<String, Object> fcmymap = new HashMap<>(); Map<String, Object> fcmymap = new HashMap<>();
/* 296 */ String fcmysql = "select count(1) from t_archive_borrow a where (a.using_effect='1' or a.using_effect='' or a.using_effect is null)"; String fcmysql = "select count(1) from t_archive_borrow a where (a.using_effect='1' or a.using_effect='' or a.using_effect is null)";
/* 297 */ String fcmy = this.executeSqlService.getSingle(fcmysql); String fcmy = this.executeSqlService.getSingle(fcmysql);
/* 298 */ fcmymap.put("name", "非常满意"); fcmymap.put("name", "非常满意");
/* 299 */ fcmymap.put("value", Integer.valueOf(Integer.parseInt(fcmy))); fcmymap.put("value", Integer.valueOf(Integer.parseInt(fcmy)));
/* 300 */ list.add(fcmymap); list.add(fcmymap);
/* */
/* 302 */ Map<String, Object> mymap = new HashMap<>(); Map<String, Object> mymap = new HashMap<>();
/* 303 */ String mysql = "select count(1) from t_archive_borrow a where a.using_effect='2'"; String mysql = "select count(1) from t_archive_borrow a where a.using_effect='2'";
/* 304 */ String my = this.executeSqlService.getSingle(mysql); String my = this.executeSqlService.getSingle(mysql);
/* 305 */ mymap.put("name", "满意"); mymap.put("name", "满意");
/* 306 */ mymap.put("value", Integer.valueOf(Integer.parseInt(my))); mymap.put("value", Integer.valueOf(Integer.parseInt(my)));
/* 307 */ list.add(mymap); list.add(mymap);
/* */
/* 309 */ Map<String, Object> bmymap = new HashMap<>(); Map<String, Object> bmymap = new HashMap<>();
/* 310 */ String bmysql = "select count(1) from t_archive_borrow a where a.using_effect='3'"; String bmysql = "select count(1) from t_archive_borrow a where a.using_effect='3'";
/* 311 */ String bmy = this.executeSqlService.getSingle(bmysql); String bmy = this.executeSqlService.getSingle(bmysql);
/* 312 */ bmymap.put("name", "不满意"); bmymap.put("name", "不满意");
/* 313 */ bmymap.put("value", Integer.valueOf(Integer.parseInt(bmy))); bmymap.put("value", Integer.valueOf(Integer.parseInt(bmy)));
/* 314 */ list.add(bmymap); list.add(bmymap);
/* 315 */ return list; return list;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\lytj\service\impl\LytjServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\lytj\service\impl\LytjServiceImpl.class

@ -1,36 +1,36 @@
/* */ package com.archive.project.zhtj.nbtj.controller package com.archive.project.zhtj.nbtj.controller
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ 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.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/zhtj/nbtj"}) @RequestMapping({"/zhtj/nbtj"})
/* */ public class NbtjController public class NbtjController
/* */ extends BaseController extends BaseController
/* */ { {
/* 23 */ private String prefix = "zhtj/nbtj"; private String prefix = "zhtj/nbtj";
/* */
/* */
/* */ @RequiresPermissions({"zhtj:nbtj:view"}) @RequiresPermissions({"zhtj:nbtj:view"})
/* */ @GetMapping @GetMapping
/* */ public String nbtj(ModelMap mmap) { public String nbtj(ModelMap mmap) {
/* 29 */ return this.prefix + "/nbtj"; return this.prefix + "/nbtj";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\nbtj\controller\NbtjController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\zhtj\nbtj\controller\NbtjController.class

Loading…
Cancel
Save