feat:修改pdf处理

dev
wangxy 8 months ago
parent 9454e8418d
commit 9f0222e0a8

@ -1,93 +1,93 @@
/* */ package com.archive.common.ocr; package com.archive.common.ocr;
/* */
/* */ import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
/* */ import java.io.File; import java.io.File;
/* */ import javax.imageio.ImageIO; import javax.imageio.ImageIO;
/* */ import net.sourceforge.tess4j.Tesseract; import net.sourceforge.tess4j.Tesseract;
/* */ import net.sourceforge.tess4j.util.LoadLibs; import net.sourceforge.tess4j.util.LoadLibs;
/* */ import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDDocument;
/* */ import org.apache.pdfbox.rendering.PDFRenderer; import org.apache.pdfbox.rendering.PDFRenderer;
/* */ import org.apache.pdfbox.text.PDFTextStripper; import org.apache.pdfbox.text.PDFTextStripper;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PdfOcr public class PdfOcr
/* */ { {
/* */ public static String getTextFromPdf(String pdfPath, String pdfSpiltImagePath) throws Exception { public static String getTextFromPdf(String pdfPath, String pdfSpiltImagePath) throws Exception {
/* 29 */ File pdffile = new File(pdfPath); File pdffile = new File(pdfPath);
/* 30 */ PDDocument doc = PDDocument.load(pdffile); PDDocument doc = PDDocument.load(pdffile);
/* 31 */ String text = (new PDFTextStripper()).getText(doc); String text = (new PDFTextStripper()).getText(doc);
/* 32 */ String result = text.replace("\n", ""); String result = text.replace("\n", "");
/* 33 */ result = result.replace("\r", ""); result = result.replace("\r", "");
/* 34 */ if (result.equals("")) { if (result.equals("")) {
/* */
/* */
/* */
/* 38 */ String name = pdffile.getName().substring(0, pdffile.getName().lastIndexOf(".")); String name = pdffile.getName().substring(0, pdffile.getName().lastIndexOf("."));
/* */
/* 40 */ String hz = pdffile.getName().substring(pdffile.getName().lastIndexOf(".") + 1); String hz = pdffile.getName().substring(pdffile.getName().lastIndexOf(".") + 1);
/* 41 */ String imageRootPath = pdfSpiltImagePath + File.separator + name; String imageRootPath = pdfSpiltImagePath + File.separator + name;
/* 42 */ File imagePathFile = new File(imageRootPath); File imagePathFile = new File(imageRootPath);
/* 43 */ if (!imagePathFile.exists()) { if (!imagePathFile.exists()) {
/* 44 */ imagePathFile.mkdirs(); imagePathFile.mkdirs();
/* */ } }
/* */
/* 47 */ pdfToImg(pdffile, imageRootPath, name); pdfToImg(pdffile, imageRootPath, name);
/* 48 */ String res = ""; String res = "";
/* 49 */ for (int i = 0; i < (imagePathFile.listFiles()).length; i++) { for (int i = 0; i < (imagePathFile.listFiles()).length; i++) {
/* 50 */ Tesseract tesseract = new Tesseract(); Tesseract tesseract = new Tesseract();
/* */
/* 52 */ File tessDataFolder = LoadLibs.extractTessResources("tessdata"); File tessDataFolder = LoadLibs.extractTessResources("tessdata");
/* 53 */ tesseract.setDatapath(tessDataFolder.getAbsolutePath()); tesseract.setDatapath(tessDataFolder.getAbsolutePath());
/* */
/* 55 */ tesseract.setLanguage("chi_sim"); tesseract.setLanguage("chi_sim");
/* */
/* 57 */ String context = tesseract.doOCR(imagePathFile.listFiles()[i]); String context = tesseract.doOCR(imagePathFile.listFiles()[i]);
/* */
/* 59 */ context = context.replaceAll("\\r|\\n", "-").replaceAll(" ", ""); context = context.replaceAll("\\r|\\n", "-").replaceAll(" ", "");
/* 60 */ res = res + context + "\n"; res = res + context + "\n";
/* */ } }
/* */
/* 63 */ imagePathFile.setWritable(true, false); imagePathFile.setWritable(true, false);
/* 64 */ imagePathFile.delete(); imagePathFile.delete();
/* 65 */ text = res; text = res;
/* */ } }
/* 67 */ return text; return text;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ public static void pdfToImg(File file, String imagePath, String fileName) { public static void pdfToImg(File file, String imagePath, String fileName) {
/* */ try { try {
/* 76 */ PDDocument doc = PDDocument.load(file); PDDocument doc = PDDocument.load(file);
/* 77 */ PDFRenderer renderer = new PDFRenderer(doc); PDFRenderer renderer = new PDFRenderer(doc);
/* 78 */ int pageCount = doc.getNumberOfPages(); int pageCount = doc.getNumberOfPages();
/* */
/* 80 */ for (int i = 0; i < pageCount; i++) { for (int i = 0; i < pageCount; i++) {
/* */
/* 82 */ BufferedImage image = renderer.renderImageWithDPI(i, 144.0F); BufferedImage image = renderer.renderImageWithDPI(i, 144.0F);
/* */
/* 84 */ ImageIO.write(image, "png", new File(imagePath + File.separator + fileName + i + ".png")); ImageIO.write(image, "png", new File(imagePath + File.separator + fileName + i + ".png"));
/* */ } }
/* 86 */ } catch (Exception e) { } catch (Exception e) {
/* 87 */ e.printStackTrace(); e.printStackTrace();
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\ocr\PdfOcr.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\ocr\PdfOcr.class

@ -1,80 +1,80 @@
/* */ package com.archive.common.utils.security; package com.archive.common.utils.security;
/* */
/* */ import com.archive.common.utils.MessageUtils; import com.archive.common.utils.MessageUtils;
/* */ import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PermissionUtils public class PermissionUtils
/* */ { {
/* */ public static final String VIEW_PERMISSION = "no.view.permission"; public static final String VIEW_PERMISSION = "no.view.permission";
/* */ public static final String CREATE_PERMISSION = "no.create.permission"; public static final String CREATE_PERMISSION = "no.create.permission";
/* */ public static final String UPDATE_PERMISSION = "no.update.permission"; public static final String UPDATE_PERMISSION = "no.update.permission";
/* */ public static final String DELETE_PERMISSION = "no.delete.permission"; public static final String DELETE_PERMISSION = "no.delete.permission";
/* */ public static final String EXPORT_PERMISSION = "no.export.permission"; public static final String EXPORT_PERMISSION = "no.export.permission";
/* */ public static final String PERMISSION = "no.permission"; public static final String PERMISSION = "no.permission";
/* */
/* */ public static String getMsg(String permissionsStr) { public static String getMsg(String permissionsStr) {
/* 52 */ String permission = StringUtils.substringBetween(permissionsStr, "[", "]"); String permission = StringUtils.substringBetween(permissionsStr, "[", "]");
/* 53 */ String msg = MessageUtils.message("no.permission", new Object[] { permission }); String msg = MessageUtils.message("no.permission", new Object[] { permission });
/* 54 */ if (StringUtils.endsWithIgnoreCase(permission, "add")) { if (StringUtils.endsWithIgnoreCase(permission, "add")) {
/* */
/* 56 */ msg = MessageUtils.message("no.create.permission", new Object[] { permission }); msg = MessageUtils.message("no.create.permission", new Object[] { permission });
/* */ } }
/* 58 */ else if (StringUtils.endsWithIgnoreCase(permission, "edit")) { else if (StringUtils.endsWithIgnoreCase(permission, "edit")) {
/* */
/* 60 */ msg = MessageUtils.message("no.update.permission", new Object[] { permission }); msg = MessageUtils.message("no.update.permission", new Object[] { permission });
/* */ } }
/* 62 */ else if (StringUtils.endsWithIgnoreCase(permission, "remove")) { else if (StringUtils.endsWithIgnoreCase(permission, "remove")) {
/* */
/* 64 */ msg = MessageUtils.message("no.delete.permission", new Object[] { permission }); msg = MessageUtils.message("no.delete.permission", new Object[] { permission });
/* */ } }
/* 66 */ else if (StringUtils.endsWithIgnoreCase(permission, "export")) { else if (StringUtils.endsWithIgnoreCase(permission, "export")) {
/* */
/* 68 */ msg = MessageUtils.message("no.export.permission", new Object[] { permission }); msg = MessageUtils.message("no.export.permission", new Object[] { permission });
/* */ } }
/* 70 */ else if (StringUtils.endsWithAny(permission, (CharSequence[])new String[] { "view", "list" })) { else if (StringUtils.endsWithAny(permission, (CharSequence[])new String[] { "view", "list" })) {
/* */
/* */
/* 73 */ msg = MessageUtils.message("no.view.permission", new Object[] { permission }); msg = MessageUtils.message("no.view.permission", new Object[] { permission });
/* */ } }
/* 75 */ return msg; return msg;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\security\PermissionUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\security\PermissionUtils.class

@ -1,28 +1,28 @@
/* */ package com.archive.framework.aspectj.lang.enums; package com.archive.framework.aspectj.lang.enums;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum OperatorType public enum OperatorType
/* */ { {
/* 14 */ OTHER, OTHER,
/* */
/* */
/* */
/* */
/* 19 */ MANAGE, MANAGE,
/* */
/* */
/* */
/* */
/* 24 */ MOBILE; MOBILE;
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\OperatorType.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\enums\OperatorType.class

@ -1,96 +1,96 @@
/* */ package com.archive.framework.shiro.service package com.archive.framework.shiro.service
; ;
/* */
/* */ import com.archive.common.exception.user.UserPasswordNotMatchException; import com.archive.common.exception.user.UserPasswordNotMatchException;
/* */ import com.archive.common.exception.user.UserPasswordRetryLimitExceedException; import com.archive.common.exception.user.UserPasswordRetryLimitExceedException;
/* */ import com.archive.common.utils.MessageUtils; import com.archive.common.utils.MessageUtils;
/* */ 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.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/* */ import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
/* */ import org.apache.shiro.cache.Cache; import org.apache.shiro.cache.Cache;
/* */ import org.apache.shiro.cache.CacheManager; import org.apache.shiro.cache.CacheManager;
/* */ import org.apache.shiro.crypto.hash.Md5Hash; import org.apache.shiro.crypto.hash.Md5Hash;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
/* */ import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Component @Component
/* */ public class PasswordService public class PasswordService
/* */ { {
/* */ @Autowired @Autowired
/* */ private CacheManager cacheManager; private CacheManager cacheManager;
/* */ private Cache<String, AtomicInteger> loginRecordCache; private Cache<String, AtomicInteger> loginRecordCache;
/* */ @Value("${user.password.maxRetryCount}") @Value("${user.password.maxRetryCount}")
/* */ private String maxRetryCount; private String maxRetryCount;
/* */
/* */ @PostConstruct @PostConstruct
/* */ public void init() { public void init() {
/* 39 */ this.loginRecordCache = this.cacheManager.getCache("loginRecordCache"); this.loginRecordCache = this.cacheManager.getCache("loginRecordCache");
/* */ } }
/* */
/* */
/* */ public void validate(User user, String password) { public void validate(User user, String password) {
/* 44 */ String loginName = user.getLoginName(); String loginName = user.getLoginName();
/* */
/* 46 */ AtomicInteger retryCount = (AtomicInteger)this.loginRecordCache.get(loginName); AtomicInteger retryCount = (AtomicInteger)this.loginRecordCache.get(loginName);
/* */
/* 48 */ if (retryCount == null) { if (retryCount == null) {
/* */
/* 50 */ retryCount = new AtomicInteger(0); retryCount = new AtomicInteger(0);
/* 51 */ this.loginRecordCache.put(loginName, retryCount); this.loginRecordCache.put(loginName, retryCount);
/* */ } }
/* 53 */ if (retryCount.incrementAndGet() > Integer.valueOf(this.maxRetryCount).intValue()) { if (retryCount.incrementAndGet() > Integer.valueOf(this.maxRetryCount).intValue()) {
/* */
/* 55 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.exceed", new Object[] { this.maxRetryCount }), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.exceed", new Object[] { this.maxRetryCount }), new Object[0]));
/* 56 */ throw new UserPasswordRetryLimitExceedException(Integer.valueOf(this.maxRetryCount).intValue()); throw new UserPasswordRetryLimitExceedException(Integer.valueOf(this.maxRetryCount).intValue());
/* */ } }
/* */
/* 59 */ if (!matches(user, password)) { if (!matches(user, password)) {
/* */
/* 61 */ AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.count", new Object[] { retryCount }), new Object[0])); AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.count", new Object[] { retryCount }), new Object[0]));
/* 62 */ this.loginRecordCache.put(loginName, retryCount); this.loginRecordCache.put(loginName, retryCount);
/* 63 */ throw new UserPasswordNotMatchException(); throw new UserPasswordNotMatchException();
/* */ } }
/* */
/* */
/* 67 */ clearLoginRecordCache(loginName); clearLoginRecordCache(loginName);
/* */ } }
/* */
/* */
/* */
/* */ public boolean matches(User user, String newPassword) { public boolean matches(User user, String newPassword) {
/* 73 */ return user.getPassword().equals(encryptPassword(user.getLoginName(), newPassword, user.getSalt())); return user.getPassword().equals(encryptPassword(user.getLoginName(), newPassword, user.getSalt()));
/* */ } }
/* */
/* */
/* */ public void clearLoginRecordCache(String loginName) { public void clearLoginRecordCache(String loginName) {
/* 78 */ this.loginRecordCache.remove(loginName); this.loginRecordCache.remove(loginName);
/* */ } }
/* */
/* */
/* */ public String encryptPassword(String loginName, String password, String salt) { public String encryptPassword(String loginName, String password, String salt) {
/* 83 */ return (new Md5Hash(loginName + password + salt)).toHex(); return (new Md5Hash(loginName + password + salt)).toHex();
/* */ } }
/* */
/* */
/* */ public static void main(String[] args) { public static void main(String[] args) {
/* 88 */ System.out.println((new com.archive.framework.shiro.service.PasswordService()).encryptPassword("admin", "admin123", "111111")); System.out.println((new com.archive.framework.shiro.service.PasswordService()).encryptPassword("admin", "admin123", "111111"));
/* 89 */ System.out.println((new com.archive.framework.shiro.service.PasswordService()).encryptPassword("ry", "admin123", "222222")); System.out.println((new com.archive.framework.shiro.service.PasswordService()).encryptPassword("ry", "admin123", "222222"));
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\service\PasswordService.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\service\PasswordService.class

@ -1,179 +1,179 @@
/* */ package com.archive.framework.shiro.web.session package com.archive.framework.shiro.web.session
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.bean.BeanUtils; import com.archive.common.utils.bean.BeanUtils;
/* */ import com.archive.common.utils.spring.SpringUtils; import com.archive.common.utils.spring.SpringUtils;
/* */ import com.archive.project.monitor.online.domain.OnlineSession; import com.archive.project.monitor.online.domain.OnlineSession;
/* */ import com.archive.project.monitor.online.domain.UserOnline; import com.archive.project.monitor.online.domain.UserOnline;
/* */ import com.archive.project.monitor.online.service.UserOnlineServiceImpl; import com.archive.project.monitor.online.service.UserOnlineServiceImpl;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.Collection; import java.util.Collection;
/* */ import java.util.Date; import java.util.Date;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.commons.lang3.time.DateUtils; import org.apache.commons.lang3.time.DateUtils;
/* */ import org.apache.shiro.session.InvalidSessionException; import org.apache.shiro.session.InvalidSessionException;
/* */ import org.apache.shiro.session.Session; import org.apache.shiro.session.Session;
/* */ import org.apache.shiro.session.mgt.DefaultSessionKey; import org.apache.shiro.session.mgt.DefaultSessionKey;
/* */ import org.apache.shiro.session.mgt.SessionKey; import org.apache.shiro.session.mgt.SessionKey;
/* */ import org.apache.shiro.web.session.mgt.DefaultWebSessionManager; import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class OnlineWebSessionManager public class OnlineWebSessionManager
/* */ extends DefaultWebSessionManager extends DefaultWebSessionManager
/* */ { {
/* 31 */ private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.web.session.OnlineWebSessionManager.class); private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.web.session.OnlineWebSessionManager.class);
/* */
/* */
/* */
/* */ public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException { public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException {
/* 36 */ super.setAttribute(sessionKey, attributeKey, value); super.setAttribute(sessionKey, attributeKey, value);
/* 37 */ if (value != null && needMarkAttributeChanged(attributeKey)) { if (value != null && needMarkAttributeChanged(attributeKey)) {
/* */
/* 39 */ OnlineSession session = getOnlineSession(sessionKey); OnlineSession session = getOnlineSession(sessionKey);
/* 40 */ session.markAttributeChanged(); session.markAttributeChanged();
/* */ } }
/* */ } }
/* */
/* */
/* */ private boolean needMarkAttributeChanged(Object attributeKey) { private boolean needMarkAttributeChanged(Object attributeKey) {
/* 46 */ if (attributeKey == null) if (attributeKey == null)
/* */ { {
/* 48 */ return false; return false;
/* */ } }
/* 50 */ String attributeKeyStr = attributeKey.toString(); String attributeKeyStr = attributeKey.toString();
/* */
/* 52 */ if (attributeKeyStr.startsWith("org.springframework")) if (attributeKeyStr.startsWith("org.springframework"))
/* */ { {
/* 54 */ return false; return false;
/* */ } }
/* 56 */ if (attributeKeyStr.startsWith("javax.servlet")) if (attributeKeyStr.startsWith("javax.servlet"))
/* */ { {
/* 58 */ return false; return false;
/* */ } }
/* 60 */ if (attributeKeyStr.equals("username")) if (attributeKeyStr.equals("username"))
/* */ { {
/* 62 */ return false; return false;
/* */ } }
/* 64 */ return true; return true;
/* */ } }
/* */
/* */
/* */
/* */ public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException { public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException {
/* 70 */ Object removed = super.removeAttribute(sessionKey, attributeKey); Object removed = super.removeAttribute(sessionKey, attributeKey);
/* 71 */ if (removed != null) { if (removed != null) {
/* */
/* 73 */ OnlineSession s = getOnlineSession(sessionKey); OnlineSession s = getOnlineSession(sessionKey);
/* 74 */ s.markAttributeChanged(); s.markAttributeChanged();
/* */ } }
/* */
/* 77 */ return removed; return removed;
/* */ } }
/* */
/* */
/* */ public OnlineSession getOnlineSession(SessionKey sessionKey) { public OnlineSession getOnlineSession(SessionKey sessionKey) {
/* 82 */ OnlineSession session = null; OnlineSession session = null;
/* 83 */ Object obj = doGetSession(sessionKey); Object obj = doGetSession(sessionKey);
/* 84 */ if (StringUtils.isNotNull(obj)) { if (StringUtils.isNotNull(obj)) {
/* */
/* 86 */ session = new OnlineSession(); session = new OnlineSession();
/* 87 */ BeanUtils.copyBeanProp(session, obj); BeanUtils.copyBeanProp(session, obj);
/* */ } }
/* 89 */ return session; return session;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void validateSessions() { public void validateSessions() {
/* 98 */ if (log.isInfoEnabled()) if (log.isInfoEnabled())
/* */ { {
/* 100 */ log.info("invalidation sessions..."); log.info("invalidation sessions...");
/* */ } }
/* */
/* 103 */ int invalidCount = 0; int invalidCount = 0;
/* */
/* 105 */ int timeout = (int)getGlobalSessionTimeout(); int timeout = (int)getGlobalSessionTimeout();
/* 106 */ if (timeout < 0) { if (timeout < 0) {
/* */ return; return;
/* */ } }
/* */
/* */
/* 111 */ Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout); Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout);
/* 112 */ UserOnlineServiceImpl userOnlineService = (UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class); UserOnlineServiceImpl userOnlineService = (UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class);
/* 113 */ List<UserOnline> userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate); List<UserOnline> userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate);
/* */
/* 115 */ List<String> needOfflineIdList = new ArrayList<>(); List<String> needOfflineIdList = new ArrayList<>();
/* 116 */ for (UserOnline userOnline : userOnlineList) { for (UserOnline userOnline : userOnlineList) {
/* */
/* */
/* */ try { try {
/* 120 */ DefaultSessionKey defaultSessionKey = new DefaultSessionKey(userOnline.getSessionId()); DefaultSessionKey defaultSessionKey = new DefaultSessionKey(userOnline.getSessionId());
/* 121 */ Session session = retrieveSession((SessionKey)defaultSessionKey); Session session = retrieveSession((SessionKey)defaultSessionKey);
/* 122 */ if (session != null) if (session != null)
/* */ { {
/* 124 */ throw new InvalidSessionException(); throw new InvalidSessionException();
/* */ } }
/* */ } }
/* 127 */ catch (InvalidSessionException e) { catch (InvalidSessionException e) {
/* */
/* 129 */ if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
/* */
/* 131 */ boolean expired = e instanceof org.apache.shiro.session.ExpiredSessionException; boolean expired = e instanceof org.apache.shiro.session.ExpiredSessionException;
/* 132 */ String msg = "Invalidated session with id [" + userOnline.getSessionId() + "]" + (expired ? " (expired)" : " (stopped)"); String msg = "Invalidated session with id [" + userOnline.getSessionId() + "]" + (expired ? " (expired)" : " (stopped)");
/* */
/* 134 */ log.debug(msg); log.debug(msg);
/* */ } }
/* 136 */ invalidCount++; invalidCount++;
/* 137 */ needOfflineIdList.add(userOnline.getSessionId()); needOfflineIdList.add(userOnline.getSessionId());
/* 138 */ userOnlineService.removeUserCache(userOnline.getLoginName(), userOnline.getSessionId()); userOnlineService.removeUserCache(userOnline.getLoginName(), userOnline.getSessionId());
/* */ } }
/* */ } }
/* */
/* 142 */ if (needOfflineIdList.size() > 0) { if (needOfflineIdList.size() > 0) {
/* */
/* */ try { try {
/* */
/* 146 */ userOnlineService.batchDeleteOnline(needOfflineIdList); userOnlineService.batchDeleteOnline(needOfflineIdList);
/* */ } }
/* 148 */ catch (Exception e) { catch (Exception e) {
/* */
/* 150 */ log.error("batch delete db session error.", e); log.error("batch delete db session error.", e);
/* */ } }
/* */ } }
/* */
/* 154 */ if (log.isInfoEnabled()) { if (log.isInfoEnabled()) {
/* */
/* 156 */ String msg = "Finished invalidation session."; String msg = "Finished invalidation session.";
/* 157 */ if (invalidCount > 0) { if (invalidCount > 0) {
/* */
/* 159 */ msg = msg + " [" + invalidCount + "] sessions were stopped."; msg = msg + " [" + invalidCount + "] sessions were stopped.";
/* */ } }
/* */ else { else {
/* */
/* 163 */ msg = msg + " No sessions were stopped."; msg = msg + " No sessions were stopped.";
/* */ } }
/* 165 */ log.info(msg); log.info(msg);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */ protected Collection<Session> getActiveSessions() { protected Collection<Session> getActiveSessions() {
/* 173 */ throw new UnsupportedOperationException("getActiveSessions method not supported"); throw new UnsupportedOperationException("getActiveSessions method not supported");
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\session\OnlineWebSessionManager.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\session\OnlineWebSessionManager.class

@ -1,76 +1,76 @@
/* */ package com.archive.framework.web.page package com.archive.framework.web.page
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PageDomain public class PageDomain
/* */ { {
/* */ private Integer pageNum; private Integer pageNum;
/* */ private Integer pageSize; private Integer pageSize;
/* */ private String orderByColumn; private String orderByColumn;
/* 22 */ private String isAsc = "asc"; private String isAsc = "asc";
/* */
/* */
/* */ public String getOrderBy() { public String getOrderBy() {
/* 26 */ if (StringUtils.isEmpty(this.orderByColumn)) if (StringUtils.isEmpty(this.orderByColumn))
/* */ { {
/* 28 */ return ""; return "";
/* */ } }
/* 30 */ return StringUtils.toUnderScoreCase(this.orderByColumn) + " " + this.isAsc; return StringUtils.toUnderScoreCase(this.orderByColumn) + " " + this.isAsc;
/* */ } }
/* */
/* */
/* */ public Integer getPageNum() { public Integer getPageNum() {
/* 35 */ return this.pageNum; return this.pageNum;
/* */ } }
/* */
/* */
/* */ public void setPageNum(Integer pageNum) { public void setPageNum(Integer pageNum) {
/* 40 */ this.pageNum = pageNum; this.pageNum = pageNum;
/* */ } }
/* */
/* */
/* */ public Integer getPageSize() { public Integer getPageSize() {
/* 45 */ return this.pageSize; return this.pageSize;
/* */ } }
/* */
/* */
/* */ public void setPageSize(Integer pageSize) { public void setPageSize(Integer pageSize) {
/* 50 */ this.pageSize = pageSize; this.pageSize = pageSize;
/* */ } }
/* */
/* */
/* */ public String getOrderByColumn() { public String getOrderByColumn() {
/* 55 */ return this.orderByColumn; return this.orderByColumn;
/* */ } }
/* */
/* */
/* */ public void setOrderByColumn(String orderByColumn) { public void setOrderByColumn(String orderByColumn) {
/* 60 */ this.orderByColumn = orderByColumn; this.orderByColumn = orderByColumn;
/* */ } }
/* */
/* */
/* */ public String getIsAsc() { public String getIsAsc() {
/* 65 */ return this.isAsc; return this.isAsc;
/* */ } }
/* */
/* */
/* */ public void setIsAsc(String isAsc) { public void setIsAsc(String isAsc) {
/* 70 */ this.isAsc = isAsc; this.isAsc = isAsc;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\page\PageDomain.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\page\PageDomain.class

@ -1,267 +1,267 @@
/* */ package com.archive.framework.web.service package com.archive.framework.web.service
; ;
/* */
/* */ import java.beans.BeanInfo; import java.beans.BeanInfo;
/* */ import java.beans.Introspector; import java.beans.Introspector;
/* */ import java.beans.PropertyDescriptor; import java.beans.PropertyDescriptor;
/* */ import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
/* */ 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;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service("permission") @Service("permission")
/* */ public class PermissionService public class PermissionService
/* */ { {
/* 21 */ private static final Logger log = LoggerFactory.getLogger(com.archive.framework.web.service.PermissionService.class); private static final Logger log = LoggerFactory.getLogger(com.archive.framework.web.service.PermissionService.class);
/* */
/* */
/* */
/* */ public static final String NOACCESS = "hidden"; public static final String NOACCESS = "hidden";
/* */
/* */
/* */
/* */ private static final String ROLE_DELIMETER = ","; private static final String ROLE_DELIMETER = ",";
/* */
/* */
/* */
/* */ private static final String PERMISSION_DELIMETER = ","; private static final String PERMISSION_DELIMETER = ",";
/* */
/* */
/* */
/* */ public String hasPermi(String permission) { public String hasPermi(String permission) {
/* 38 */ return isPermitted(permission) ? "" : "hidden"; return isPermitted(permission) ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String lacksPermi(String permission) { public String lacksPermi(String permission) {
/* 49 */ return isLacksPermitted(permission) ? "" : "hidden"; return isLacksPermitted(permission) ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasAnyPermi(String permissions) { public String hasAnyPermi(String permissions) {
/* 60 */ return hasAnyPermissions(permissions, ",") ? "" : "hidden"; return hasAnyPermissions(permissions, ",") ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasRole(String role) { public String hasRole(String role) {
/* 71 */ return isRole(role) ? "" : "hidden"; return isRole(role) ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String lacksRole(String role) { public String lacksRole(String role) {
/* 82 */ return isLacksRole(role) ? "" : "hidden"; return isLacksRole(role) ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasAnyRoles(String roles) { public String hasAnyRoles(String roles) {
/* 93 */ return isAnyRoles(roles, ",") ? "" : "hidden"; return isAnyRoles(roles, ",") ? "" : "hidden";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isUser() { public boolean isUser() {
/* 103 */ Subject subject = SecurityUtils.getSubject(); Subject subject = SecurityUtils.getSubject();
/* 104 */ return (subject != null && subject.getPrincipal() != null); return (subject != null && subject.getPrincipal() != null);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isPermitted(String permission) { public boolean isPermitted(String permission) {
/* 115 */ return SecurityUtils.getSubject().isPermitted(permission); return SecurityUtils.getSubject().isPermitted(permission);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isLacksPermitted(String permission) { public boolean isLacksPermitted(String permission) {
/* 126 */ return (isPermitted(permission) != true); return (isPermitted(permission) != true);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean hasAnyPermissions(String permissions) { public boolean hasAnyPermissions(String permissions) {
/* 137 */ return hasAnyPermissions(permissions, ","); return hasAnyPermissions(permissions, ",");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean hasAnyPermissions(String permissions, String delimeter) { public boolean hasAnyPermissions(String permissions, String delimeter) {
/* 149 */ Subject subject = SecurityUtils.getSubject(); Subject subject = SecurityUtils.getSubject();
/* */
/* 151 */ if (subject != null) { if (subject != null) {
/* */
/* 153 */ if (delimeter == null || delimeter.length() == 0) if (delimeter == null || delimeter.length() == 0)
/* */ { {
/* 155 */ delimeter = ","; delimeter = ",";
/* */ } }
/* */
/* 158 */ for (String permission : permissions.split(delimeter)) { for (String permission : permissions.split(delimeter)) {
/* */
/* 160 */ if (permission != null && subject.isPermitted(permission.trim()) == true) if (permission != null && subject.isPermitted(permission.trim()) == true)
/* */ { {
/* 162 */ return true; return true;
/* */ } }
/* */ } }
/* */ } }
/* */
/* 167 */ return false; return false;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isRole(String role) { public boolean isRole(String role) {
/* 178 */ return SecurityUtils.getSubject().hasRole(role); return SecurityUtils.getSubject().hasRole(role);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isLacksRole(String role) { public boolean isLacksRole(String role) {
/* 189 */ return (isRole(role) != true); return (isRole(role) != true);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isAnyRoles(String roles) { public boolean isAnyRoles(String roles) {
/* 200 */ return isAnyRoles(roles, ","); return isAnyRoles(roles, ",");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isAnyRoles(String roles, String delimeter) { public boolean isAnyRoles(String roles, String delimeter) {
/* 212 */ Subject subject = SecurityUtils.getSubject(); Subject subject = SecurityUtils.getSubject();
/* 213 */ if (subject != null) { if (subject != null) {
/* */
/* 215 */ if (delimeter == null || delimeter.length() == 0) if (delimeter == null || delimeter.length() == 0)
/* */ { {
/* 217 */ delimeter = ","; delimeter = ",";
/* */ } }
/* */
/* 220 */ for (String role : roles.split(delimeter)) { for (String role : roles.split(delimeter)) {
/* */
/* 222 */ if (subject.hasRole(role.trim()) == true) if (subject.hasRole(role.trim()) == true)
/* */ { {
/* 224 */ return true; return true;
/* */ } }
/* */ } }
/* */ } }
/* */
/* 229 */ return false; return false;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Object getPrincipalProperty(String property) { public Object getPrincipalProperty(String property) {
/* 240 */ Subject subject = SecurityUtils.getSubject(); Subject subject = SecurityUtils.getSubject();
/* 241 */ if (subject != null) { if (subject != null) {
/* */
/* 243 */ Object principal = subject.getPrincipal(); Object principal = subject.getPrincipal();
/* */
/* */ try { try {
/* 246 */ BeanInfo bi = Introspector.getBeanInfo(principal.getClass()); BeanInfo bi = Introspector.getBeanInfo(principal.getClass());
/* 247 */ for (PropertyDescriptor pd : bi.getPropertyDescriptors()) for (PropertyDescriptor pd : bi.getPropertyDescriptors())
/* */ { {
/* 249 */ if (pd.getName().equals(property) == true) if (pd.getName().equals(property) == true)
/* */ { {
/* 251 */ return pd.getReadMethod().invoke(principal, (Object[])null); return pd.getReadMethod().invoke(principal, (Object[])null);
/* */ } }
/* */ } }
/* */
/* 255 */ } catch (Exception e) { } catch (Exception e) {
/* */
/* 257 */ log.error("Error reading property [{}] from principal of type [{}]", property, principal.getClass().getName()); log.error("Error reading property [{}] from principal of type [{}]", property, principal.getClass().getName());
/* */ } }
/* */ } }
/* 260 */ return null; return null;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\PermissionService.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\PermissionService.class

@ -1,65 +1,65 @@
/* */ package com.archive.project.dajs.qwgj.controller package com.archive.project.dajs.qwgj.controller
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ 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.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({"/dajs/qwgj"}) @RequestMapping({"/dajs/qwgj"})
/* */ public class QwgjController public class QwgjController
/* */ extends BaseController extends BaseController
/* */ { {
/* 30 */ private String prefix = "dajs/qwgj"; private String prefix = "dajs/qwgj";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IMldrService mldrService; private IMldrService mldrService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dajs:qwgj"}) @RequiresPermissions({"dajs:qwgj"})
/* */ @GetMapping @GetMapping
/* */ public String mldr(ModelMap mmap) { public String mldr(ModelMap mmap) {
/* 43 */ return this.prefix + "/qwgj"; return this.prefix + "/qwgj";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @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 {
/* 55 */ startPage(); startPage();
/* */
/* 57 */ List<Object> list = new ArrayList(); List<Object> list = new ArrayList();
/* 58 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\qwgj\controller\QwgjController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\qwgj\controller\QwgjController.class

@ -1,223 +1,223 @@
/* */ package com.archive.project.dajs.recycle.controller package com.archive.project.dajs.recycle.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.project.dajs.jsgl.service.IJsglService; import com.archive.project.dajs.jsgl.service.IJsglService;
/* */ import com.archive.project.dajs.recycle.service.IRecycleService; import com.archive.project.dajs.recycle.service.IRecycleService;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree; import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
/* */ import com.archive.project.system.config.service.IConfigService; import com.archive.project.system.config.service.IConfigService;
/* */ import com.archive.project.system.dict.domain.DictData; import com.archive.project.system.dict.domain.DictData;
/* */ import com.archive.project.system.dict.domain.DictType; import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.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.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({"/dajs/recycle"}) @RequestMapping({"/dajs/recycle"})
/* */ public class RecycleController public class RecycleController
/* */ extends BaseController extends BaseController
/* */ { {
/* 38 */ private String prefix = "dajs/recycle"; private String prefix = "dajs/recycle";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IArchiveTypeService archiveTypeService; private IArchiveTypeService archiveTypeService;
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */ @Autowired @Autowired
/* */ private IJsglService jsglService; private IJsglService jsglService;
/* */
/* */ @Autowired @Autowired
/* */ private IRecycleService recycleService; private IRecycleService recycleService;
/* */
/* */ @Autowired @Autowired
/* */ private IConfigService configService; private IConfigService configService;
/* */
/* */
/* */ @RequiresPermissions({"dajs:recycle"}) @RequiresPermissions({"dajs:recycle"})
/* */ @GetMapping @GetMapping
/* */ public String recycle(ModelMap mmap) { public String recycle(ModelMap mmap) {
/* 61 */ List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData(); List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData();
/* 62 */ if (ztrees != null && ztrees.size() > 2) { if (ztrees != null && ztrees.size() > 2) {
/* 63 */ mmap.put("firstNode", ztrees.get(1)); mmap.put("firstNode", ztrees.get(1));
/* */ } else { } else {
/* 65 */ mmap.put("firstNode", null); mmap.put("firstNode", null);
/* */ } }
/* */
/* */
/* 69 */ DictType dictType = new DictType(); dictType.setLabel("column_bind"); DictType dictType = new DictType(); dictType.setLabel("column_bind");
/* 70 */ List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType); List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
/* 71 */ Map<String, List<DictData>> dictDataMap = new HashMap<>(); Map<String, List<DictData>> dictDataMap = new HashMap<>();
/* 72 */ for (DictType dictTypeTemp : dictTypeList) { for (DictType dictTypeTemp : dictTypeList) {
/* 73 */ List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType()); List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
/* 74 */ dictDataMap.put(dictTypeTemp.getDictType(), dictDatas); dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
/* */ } }
/* 76 */ mmap.put("dictDataMap", dictDataMap); mmap.put("dictDataMap", dictDataMap);
/* 77 */ return this.prefix + "/recycle"; return this.prefix + "/recycle";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/detail/{archiveId}/{type}/{id}"}) @GetMapping({"/detail/{archiveId}/{type}/{id}"})
/* */ public String detail(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type, @PathVariable("id") String id, ModelMap mmap) { public String detail(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type, @PathVariable("id") String id, ModelMap mmap) {
/* 90 */ mmap.put("archiveTypeId", archiveId); mmap.put("archiveTypeId", archiveId);
/* 91 */ mmap.put("type", type); mmap.put("type", type);
/* 92 */ mmap.put("id", id); mmap.put("id", id);
/* 93 */ return this.prefix + "/detail"; return this.prefix + "/detail";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/appendAddForm/{archiveId}/{type}"}) @GetMapping({"/appendAddForm/{archiveId}/{type}"})
/* */ @ResponseBody @ResponseBody
/* */ public String appendAddForm(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type) { public String appendAddForm(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type) {
/* 109 */ return this.jsglService.appendAddForm(archiveId, type); return this.jsglService.appendAddForm(archiveId, type);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "回收站-档案删除", businessType = BusinessType.DELETE) @Log(title = "回收站-档案删除", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/delete"}) @PostMapping({"/delete"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult delete(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) { public AjaxResult delete(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
/* 127 */ boolean flag = false; boolean flag = false;
/* */
/* */
/* */ try { try {
/* 131 */ flag = this.jsglService.archivePhysicalDelete(query, archiveTypeId, type, ids); flag = this.jsglService.archivePhysicalDelete(query, archiveTypeId, type, ids);
/* 132 */ } catch (Exception ex) { } catch (Exception ex) {
/* 133 */ System.out.println("档案删除出现异常:" + ex.getMessage()); System.out.println("档案删除出现异常:" + ex.getMessage());
/* 134 */ return error("删除失败!"); return error("删除失败!");
/* */ } }
/* 136 */ if (flag) { if (flag) {
/* 137 */ return success("删除成功!"); return success("删除成功!");
/* */ } }
/* 139 */ return error("删除失败!"); return error("删除失败!");
/* */ } }
/* */
/* */
/* */ @Log(title = "回收站-档案恢复", businessType = BusinessType.RESEST) @Log(title = "回收站-档案恢复", businessType = BusinessType.RESEST)
/* */ @PostMapping({"/hf"}) @PostMapping({"/hf"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult hf(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) { public AjaxResult hf(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
/* 147 */ boolean flag = false; boolean flag = false;
/* */ try { try {
/* 149 */ flag = this.jsglService.archivePhysicalHf(query, archiveTypeId, type, ids); flag = this.jsglService.archivePhysicalHf(query, archiveTypeId, type, ids);
/* 150 */ } catch (Exception ex) { } catch (Exception ex) {
/* 151 */ System.out.println("档案恢复出现异常:" + ex.getMessage()); System.out.println("档案恢复出现异常:" + ex.getMessage());
/* 152 */ return error("恢复失败!"); return error("恢复失败!");
/* */ } }
/* 154 */ if (flag) { if (flag) {
/* 155 */ return success("恢复成功!"); return success("恢复成功!");
/* */ } }
/* 157 */ return error("恢复失败!"); return error("恢复失败!");
/* */ } }
/* */
/* */
/* */ @Log(title = "回收站-档案清空", businessType = BusinessType.DELETE) @Log(title = "回收站-档案清空", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/clearAll"}) @PostMapping({"/clearAll"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clearAll(@Validated String archiveTypeId, @Validated String type) { public AjaxResult clearAll(@Validated String archiveTypeId, @Validated String type) {
/* 165 */ boolean flag = false; boolean flag = false;
/* */
/* */
/* */ try { try {
/* 169 */ flag = this.recycleService.archivePhysicalDelete(archiveTypeId, type); flag = this.recycleService.archivePhysicalDelete(archiveTypeId, type);
/* 170 */ } catch (Exception ex) { } catch (Exception ex) {
/* 171 */ System.out.println("档案清空出现异常:" + ex.getMessage()); System.out.println("档案清空出现异常:" + ex.getMessage());
/* 172 */ return error("清空失败!"); return error("清空失败!");
/* */ } }
/* 174 */ if (flag) { if (flag) {
/* 175 */ return success("清空成功!"); return success("清空成功!");
/* */ } }
/* 177 */ return error("清空失败!"); return error("清空失败!");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/appendAddFormByDataId/{archiveTypeId}/{type}/{id}/{readOnly}"}) @GetMapping({"/appendAddFormByDataId/{archiveTypeId}/{type}/{id}/{readOnly}"})
/* */ @ResponseBody @ResponseBody
/* */ public String appendAddFormByDataId(@PathVariable("archiveTypeId") String archiveTypeId, @PathVariable("type") String type, @PathVariable("id") String id, @PathVariable("readOnly") String readOnly) { public String appendAddFormByDataId(@PathVariable("archiveTypeId") String archiveTypeId, @PathVariable("type") String type, @PathVariable("id") String id, @PathVariable("readOnly") String readOnly) {
/* 192 */ return this.jsglService.appendAddFormByDataId(archiveTypeId, type, id, readOnly); return this.jsglService.appendAddFormByDataId(archiveTypeId, type, id, readOnly);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/folderFile/{archiveId}/{id}"}) @GetMapping({"/folderFile/{archiveId}/{id}"})
/* */ public String folderFile(@PathVariable("archiveId") String archiveId, @PathVariable("id") String id, ModelMap mmap) { public String folderFile(@PathVariable("archiveId") String archiveId, @PathVariable("id") String id, ModelMap mmap) {
/* 205 */ mmap.put("archiveId", archiveId); mmap.put("archiveId", archiveId);
/* 206 */ mmap.put("folderId", id); mmap.put("folderId", id);
/* */
/* 208 */ DictType dictType = new DictType(); dictType.setLabel("column_bind"); DictType dictType = new DictType(); dictType.setLabel("column_bind");
/* 209 */ List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType); List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
/* 210 */ Map<String, List<DictData>> dictDataMap = new HashMap<>(); Map<String, List<DictData>> dictDataMap = new HashMap<>();
/* 211 */ for (DictType dictTypeTemp : dictTypeList) { for (DictType dictTypeTemp : dictTypeList) {
/* 212 */ List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType()); List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
/* 213 */ dictDataMap.put(dictTypeTemp.getDictType(), dictDatas); dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
/* */ } }
/* 215 */ mmap.put("dictDataMap", dictDataMap); mmap.put("dictDataMap", dictDataMap);
/* 216 */ return this.prefix + "/recyclewj"; return this.prefix + "/recyclewj";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\recycle\controller\RecycleController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dajs\recycle\controller\RecycleController.class

@ -1,177 +1,177 @@
/* */ package com.archive.project.dasz.physicaltable.controller package com.archive.project.dasz.physicaltable.controller
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ 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.physicaltable.domain.PhysicalTable; import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService; import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn; import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import java.util.Arrays; import java.util.Arrays;
/* */ 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/physicaltable"}) @RequestMapping({"/dasz/physicaltable"})
/* */ public class PhysicalTableController public class PhysicalTableController
/* */ extends BaseController extends BaseController
/* */ { {
/* 37 */ private String prefix = "dasz/physicaltable"; private String prefix = "dasz/physicaltable";
/* */
/* */ @Autowired @Autowired
/* */ private IPhysicalTableService physicalTableService; private IPhysicalTableService physicalTableService;
/* */
/* */ @Autowired @Autowired
/* */ private IPhysicalTableColumnService physicalTableColumnService; private IPhysicalTableColumnService physicalTableColumnService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:view"}) @RequiresPermissions({"dasz:physicaltable:view"})
/* */ @GetMapping @GetMapping
/* */ public String physicalTable() { public String physicalTable() {
/* 49 */ return this.prefix + "/physicaltable"; return this.prefix + "/physicaltable";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:list"}) @RequiresPermissions({"dasz:physicaltable:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(PhysicalTable physicalTable) { public TableDataInfo list(PhysicalTable physicalTable) {
/* 60 */ startPage(); startPage();
/* 61 */ List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable); List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
/* 62 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:export"}) @RequiresPermissions({"dasz:physicaltable:export"})
/* */ @Log(title = "物理", businessType = BusinessType.EXPORT) @Log(title = "物理", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(PhysicalTable physicalTable) { public AjaxResult export(PhysicalTable physicalTable) {
/* 74 */ List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable); List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
/* 75 */ ExcelUtil<PhysicalTable> util = new ExcelUtil(PhysicalTable.class); ExcelUtil<PhysicalTable> util = new ExcelUtil(PhysicalTable.class);
/* 76 */ return util.exportExcel(list, "physicalTable"); return util.exportExcel(list, "physicalTable");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 85 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:add"}) @RequiresPermissions({"dasz:physicaltable:add"})
/* */ @Log(title = "物理", businessType = BusinessType.INSERT) @Log(title = "物理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(PhysicalTable physicalTable) { public AjaxResult addSave(PhysicalTable physicalTable) {
/* 97 */ return toAjax(this.physicalTableService.insertPhysicalTable(physicalTable)); return toAjax(this.physicalTableService.insertPhysicalTable(physicalTable));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 106 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(id); PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(id);
/* 107 */ mmap.put("physicalTable", physicalTable); mmap.put("physicalTable", physicalTable);
/* 108 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:edit"}) @RequiresPermissions({"dasz:physicaltable:edit"})
/* */ @Log(title = "物理", businessType = BusinessType.UPDATE) @Log(title = "物理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(PhysicalTable physicalTable) { public AjaxResult editSave(PhysicalTable physicalTable) {
/* 120 */ return toAjax(this.physicalTableService.updatePhysicalTable(physicalTable)); return toAjax(this.physicalTableService.updatePhysicalTable(physicalTable));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:remove"}) @RequiresPermissions({"dasz:physicaltable: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) {
/* 132 */ return toAjax(this.physicalTableService.deletePhysicalTableByIds(ids)); return toAjax(this.physicalTableService.deletePhysicalTableByIds(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/isSetForm/{tableId}/{colId}"}) @GetMapping({"/isSetForm/{tableId}/{colId}"})
/* */ @ResponseBody @ResponseBody
/* */ public boolean isSetForm(@PathVariable("tableId") Long tableId, @PathVariable("colId") Long colId) { public boolean isSetForm(@PathVariable("tableId") Long tableId, @PathVariable("colId") Long colId) {
/* 143 */ boolean flag = false; boolean flag = false;
/* 144 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId); PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId);
/* 145 */ String tableForm = physicalTable.getTableForm(); String tableForm = physicalTable.getTableForm();
/* 146 */ if (StringUtils.isNotEmpty(tableForm)) { if (StringUtils.isNotEmpty(tableForm)) {
/* 147 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(colId); PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(colId);
/* 148 */ String columnCode = physicalTableColumn.getColumnCode(); String columnCode = physicalTableColumn.getColumnCode();
/* 149 */ String[] split = tableForm.split(","); String[] split = tableForm.split(",");
/* 150 */ if (Arrays.<String>asList(split).contains(columnCode)) { if (Arrays.<String>asList(split).contains(columnCode)) {
/* 151 */ flag = true; flag = true;
/* */ } }
/* */ } }
/* 154 */ return flag; return flag;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/cleanTableForm/{tableId}"}) @PostMapping({"/cleanTableForm/{tableId}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult cleanTableForm(@PathVariable("tableId") Long tableId) { public AjaxResult cleanTableForm(@PathVariable("tableId") Long tableId) {
/* 165 */ PhysicalTable physicalTable = new PhysicalTable(); PhysicalTable physicalTable = new PhysicalTable();
/* 166 */ physicalTable.setId(tableId); physicalTable.setId(tableId);
/* 167 */ physicalTable.setTableForm(""); physicalTable.setTableForm("");
/* 168 */ physicalTable.setTableFormDiv(""); physicalTable.setTableFormDiv("");
/* 169 */ this.physicalTableService.updatePhysicalTable(physicalTable); this.physicalTableService.updatePhysicalTable(physicalTable);
/* 170 */ return AjaxResult.success(); return AjaxResult.success();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\controller\PhysicalTableController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\controller\PhysicalTableController.class

@ -1,164 +1,164 @@
/* */ package com.archive.project.dasz.physicaltable.domain package com.archive.project.dasz.physicaltable.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 PhysicalTable public class PhysicalTable
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ @Excel(name = "物理表名") @Excel(name = "物理表名")
/* */ private String tablename; private String tablename;
/* */ @Excel(name = "显示名称") @Excel(name = "显示名称")
/* */ private String showname; private String showname;
/* */ @Excel(name = "表编码") @Excel(name = "表编码")
/* */ private String tableCode; private String tableCode;
/* */ @Excel(name = "排序") @Excel(name = "排序")
/* */ private Long showorder; private Long showorder;
/* */ @Excel(name = "备注") @Excel(name = "备注")
/* */ private String bz; private String bz;
/* */ @Excel(name = "档案类型id") @Excel(name = "档案类型id")
/* */ private String archivetypeid; private String archivetypeid;
/* */ @Excel(name = "档案类型编码") @Excel(name = "档案类型编码")
/* */ private String archivetypecode; private String archivetypecode;
/* */ @Excel(name = "表单字段") @Excel(name = "表单字段")
/* */ private String tableForm; private String tableForm;
/* */ @Excel(name = "表单字段Div") @Excel(name = "表单字段Div")
/* */ private String tableFormDiv; private String tableFormDiv;
/* */
/* */ public String getTableFormDiv() { public String getTableFormDiv() {
/* 58 */ return this.tableFormDiv; return this.tableFormDiv;
/* */ } }
/* */
/* */ public void setTableFormDiv(String tableFormDiv) { public void setTableFormDiv(String tableFormDiv) {
/* 62 */ this.tableFormDiv = tableFormDiv; this.tableFormDiv = tableFormDiv;
/* */ } }
/* */
/* */ public String getTableForm() { public String getTableForm() {
/* 66 */ return this.tableForm; return this.tableForm;
/* */ } }
/* */
/* */ public void setTableForm(String tableForm) { public void setTableForm(String tableForm) {
/* 70 */ this.tableForm = tableForm; this.tableForm = tableForm;
/* */ } }
/* */
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 75 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getId() { public Long getId() {
/* 80 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setTablename(String tablename) { public void setTablename(String tablename) {
/* 84 */ this.tablename = tablename; this.tablename = tablename;
/* */ } }
/* */
/* */
/* */ public String getTablename() { public String getTablename() {
/* 89 */ return this.tablename; return this.tablename;
/* */ } }
/* */
/* */ public void setShowname(String showname) { public void setShowname(String showname) {
/* 93 */ this.showname = showname; this.showname = showname;
/* */ } }
/* */
/* */
/* */ public String getShowname() { public String getShowname() {
/* 98 */ return this.showname; return this.showname;
/* */ } }
/* */
/* */ public void setTableCode(String tableCode) { public void setTableCode(String tableCode) {
/* 102 */ this.tableCode = tableCode; this.tableCode = tableCode;
/* */ } }
/* */
/* */
/* */ public String getTableCode() { public String getTableCode() {
/* 107 */ return this.tableCode; return this.tableCode;
/* */ } }
/* */
/* */ public void setShoworder(Long showorder) { public void setShoworder(Long showorder) {
/* 111 */ this.showorder = showorder; this.showorder = showorder;
/* */ } }
/* */
/* */
/* */ public Long getShoworder() { public Long getShoworder() {
/* 116 */ return this.showorder; return this.showorder;
/* */ } }
/* */
/* */ public void setBz(String bz) { public void setBz(String bz) {
/* 120 */ this.bz = bz; this.bz = bz;
/* */ } }
/* */
/* */
/* */ public String getBz() { public String getBz() {
/* 125 */ return this.bz; return this.bz;
/* */ } }
/* */
/* */ public void setArchivetypeid(String archivetypeid) { public void setArchivetypeid(String archivetypeid) {
/* 129 */ this.archivetypeid = archivetypeid; this.archivetypeid = archivetypeid;
/* */ } }
/* */
/* */
/* */ public String getArchivetypeid() { public String getArchivetypeid() {
/* 134 */ return this.archivetypeid; return this.archivetypeid;
/* */ } }
/* */
/* */ public void setArchivetypecode(String archivetypecode) { public void setArchivetypecode(String archivetypecode) {
/* 138 */ this.archivetypecode = archivetypecode; this.archivetypecode = archivetypecode;
/* */ } }
/* */
/* */
/* */ public String getArchivetypecode() { public String getArchivetypecode() {
/* 143 */ return this.archivetypecode; return this.archivetypecode;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 148 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 149 */ .append("id", getId()) .append("id", getId())
/* 150 */ .append("tablename", getTablename()) .append("tablename", getTablename())
/* 151 */ .append("showname", getShowname()) .append("showname", getShowname())
/* 152 */ .append("tableCode", getTableCode()) .append("tableCode", getTableCode())
/* 153 */ .append("showorder", getShoworder()) .append("showorder", getShoworder())
/* 154 */ .append("bz", getBz()) .append("bz", getBz())
/* 155 */ .append("archivetypeid", getArchivetypeid()) .append("archivetypeid", getArchivetypeid())
/* 156 */ .append("archivetypecode", getArchivetypecode()) .append("archivetypecode", getArchivetypecode())
/* 157 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\domain\PhysicalTable.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\domain\PhysicalTable.class

@ -1,150 +1,150 @@
/* */ package com.archive.project.dasz.physicaltable.service.impl package com.archive.project.dasz.physicaltable.service.impl
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.project.dasz.physicaltable.domain.PhysicalTable; import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper; import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService; import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn; import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper; import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
/* */ 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 PhysicalTableServiceImpl public class PhysicalTableServiceImpl
/* */ implements IPhysicalTableService implements IPhysicalTableService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PhysicalTableMapper physicalTableMapper; private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper; private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */
/* */ public PhysicalTable selectPhysicalTableById(Long id) { public PhysicalTable selectPhysicalTableById(Long id) {
/* 41 */ return this.physicalTableMapper.selectPhysicalTableById(id); return this.physicalTableMapper.selectPhysicalTableById(id);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<PhysicalTable> selectPhysicalTableList(PhysicalTable physicalTable) { public List<PhysicalTable> selectPhysicalTableList(PhysicalTable physicalTable) {
/* 53 */ return this.physicalTableMapper.selectPhysicalTableList(physicalTable); return this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertPhysicalTable(PhysicalTable physicalTable) { public int insertPhysicalTable(PhysicalTable physicalTable) {
/* 65 */ return this.physicalTableMapper.insertPhysicalTable(physicalTable); return this.physicalTableMapper.insertPhysicalTable(physicalTable);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updatePhysicalTable(PhysicalTable physicalTable) { public int updatePhysicalTable(PhysicalTable physicalTable) {
/* 77 */ return this.physicalTableMapper.updatePhysicalTable(physicalTable); return this.physicalTableMapper.updatePhysicalTable(physicalTable);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableByIds(String ids) { public int deletePhysicalTableByIds(String ids) {
/* 89 */ return this.physicalTableMapper.deletePhysicalTableByIds(Convert.toStrArray(ids)); return this.physicalTableMapper.deletePhysicalTableByIds(Convert.toStrArray(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableById(Long id) { public int deletePhysicalTableById(Long id) {
/* 101 */ return this.physicalTableMapper.deletePhysicalTableById(id); return this.physicalTableMapper.deletePhysicalTableById(id);
/* */ } }
/* */
/* */
/* */ public void removeTableFormByColumnId(Long columnId) { public void removeTableFormByColumnId(Long columnId) {
/* 106 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(columnId); PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(columnId);
/* 107 */ if (physicalTableColumn != null) { if (physicalTableColumn != null) {
/* 108 */ Long tableId = physicalTableColumn.getTableId(); Long tableId = physicalTableColumn.getTableId();
/* 109 */ String columnCode = physicalTableColumn.getColumnCode(); String columnCode = physicalTableColumn.getColumnCode();
/* 110 */ PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId); PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
/* 111 */ if (physicalTable == null || StringUtils.isEmpty(physicalTable.getTableForm())) { if (physicalTable == null || StringUtils.isEmpty(physicalTable.getTableForm())) {
/* */ return; return;
/* */ } }
/* 114 */ String tableForm = physicalTable.getTableForm(); String tableForm = physicalTable.getTableForm();
/* 115 */ String[] split = tableForm.split(","); String[] split = tableForm.split(",");
/* 116 */ split = (String[])ArrayUtils.removeElement((Object[])split, columnCode); split = (String[])ArrayUtils.removeElement((Object[])split, columnCode);
/* 117 */ tableForm = StringUtils.join((Object[])split, ","); tableForm = StringUtils.join((Object[])split, ",");
/* 118 */ PhysicalTable physicalTableTemp = new PhysicalTable(); PhysicalTable physicalTableTemp = new PhysicalTable();
/* 119 */ physicalTableTemp.setId(tableId); physicalTableTemp.setId(tableId);
/* 120 */ physicalTableTemp.setTableForm(tableForm); physicalTableTemp.setTableForm(tableForm);
/* 121 */ this.physicalTableMapper.updatePhysicalTable(physicalTableTemp); this.physicalTableMapper.updatePhysicalTable(physicalTableTemp);
/* */ } }
/* */ } }
/* */
/* */
/* */ public List<PhysicalTableColumn> selectTableFormColumns(Long tableId, List<PhysicalTableColumn> tableColumnsList) { public List<PhysicalTableColumn> selectTableFormColumns(Long tableId, List<PhysicalTableColumn> tableColumnsList) {
/* 127 */ PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId); PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
/* 128 */ String tableForm = physicalTable.getTableForm(); String tableForm = physicalTable.getTableForm();
/* 129 */ if (StringUtils.isNotEmpty(tableForm)) { if (StringUtils.isNotEmpty(tableForm)) {
/* 130 */ String[] columns = tableForm.split(","); String[] columns = tableForm.split(",");
/* 131 */ if (columns.length > 0) { if (columns.length > 0) {
/* 132 */ List<PhysicalTableColumn> tableColumnsListTemp = new ArrayList<>(); List<PhysicalTableColumn> tableColumnsListTemp = new ArrayList<>();
/* 133 */ for (String column : columns) { for (String column : columns) {
/* 134 */ for (PhysicalTableColumn physicalTableColumn : tableColumnsList) { for (PhysicalTableColumn physicalTableColumn : tableColumnsList) {
/* 135 */ if (physicalTableColumn.getColumnCode().equals(column)) { if (physicalTableColumn.getColumnCode().equals(column)) {
/* 136 */ tableColumnsListTemp.add(physicalTableColumn); tableColumnsListTemp.add(physicalTableColumn);
/* */ } }
/* */ } }
/* */ } }
/* 140 */ tableColumnsList = tableColumnsListTemp; tableColumnsList = tableColumnsListTemp;
/* */ } }
/* */ } }
/* 143 */ return tableColumnsList; return tableColumnsList;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\service\impl\PhysicalTableServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltable\service\impl\PhysicalTableServiceImpl.class

@ -1,209 +1,209 @@
/* */ package com.archive.project.dasz.physicaltablecolumn.controller package com.archive.project.dasz.physicaltablecolumn.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.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn; import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import com.archive.project.system.dict.domain.DictType; import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService; import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/dasz/physicaltablecolumn"}) @RequestMapping({"/dasz/physicaltablecolumn"})
/* */ public class PhysicalTableColumnController public class PhysicalTableColumnController
/* */ extends BaseController extends BaseController
/* */ { {
/* 37 */ private String prefix = "dasz/physicaltablecolumn"; private String prefix = "dasz/physicaltablecolumn";
/* */
/* */ @Autowired @Autowired
/* */ private IPhysicalTableColumnService physicalTableColumnService; private IPhysicalTableColumnService physicalTableColumnService;
/* */
/* */ @Autowired @Autowired
/* */ private IDictTypeService dictTypeService; private IDictTypeService dictTypeService;
/* */
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:view"}) @RequiresPermissions({"dasz:physicaltablecolumn:view"})
/* */ @GetMapping @GetMapping
/* */ public String physicalTableColumn(ModelMap mmap) { public String physicalTableColumn(ModelMap mmap) {
/* 52 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 53 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 54 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 55 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 56 */ return this.prefix + "/physicaltablecolumn"; return this.prefix + "/physicaltablecolumn";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:list"}) @RequiresPermissions({"dasz:physicaltablecolumn:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(PhysicalTableColumn physicalTableColumn) { public TableDataInfo list(PhysicalTableColumn physicalTableColumn) {
/* 67 */ startPage(); startPage();
/* 68 */ List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn); List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
/* 69 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:export"}) @RequiresPermissions({"dasz:physicaltablecolumn:export"})
/* */ @Log(title = "物理字段", businessType = BusinessType.EXPORT) @Log(title = "物理字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(PhysicalTableColumn physicalTableColumn) { public AjaxResult export(PhysicalTableColumn physicalTableColumn) {
/* 81 */ List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn); List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
/* 82 */ ExcelUtil<PhysicalTableColumn> util = new ExcelUtil(PhysicalTableColumn.class); ExcelUtil<PhysicalTableColumn> util = new ExcelUtil(PhysicalTableColumn.class);
/* 83 */ return util.exportExcel(list, "physicalTableColumn"); return util.exportExcel(list, "physicalTableColumn");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add/{tableId}"}) @GetMapping({"/add/{tableId}"})
/* */ public String add(@PathVariable("tableId") String tableId, ModelMap mmap) { public String add(@PathVariable("tableId") String tableId, ModelMap mmap) {
/* 92 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 93 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 94 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 95 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 96 */ mmap.put("tableId", tableId); mmap.put("tableId", tableId);
/* 97 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:add"}) @RequiresPermissions({"dasz:physicaltablecolumn:add"})
/* */ @Log(title = "物理字段", businessType = BusinessType.INSERT) @Log(title = "物理字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(PhysicalTableColumn physicalTableColumn) { public AjaxResult addSave(PhysicalTableColumn physicalTableColumn) {
/* */ try { try {
/* 110 */ this.physicalTableColumnService.insertPhysicalTableColumn(physicalTableColumn, false); this.physicalTableColumnService.insertPhysicalTableColumn(physicalTableColumn, false);
/* 111 */ return toAjax(true); return toAjax(true);
/* 112 */ } catch (Exception e) { } catch (Exception e) {
/* 113 */ e.printStackTrace(); e.printStackTrace();
/* 114 */ return toAjax(false); return toAjax(false);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"}) @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 124 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(id); PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(id);
/* 125 */ mmap.put("physicalTableColumn", physicalTableColumn); mmap.put("physicalTableColumn", physicalTableColumn);
/* 126 */ DictType dictType = new DictType(); DictType dictType = new DictType();
/* 127 */ dictType.setLabel("column_bind"); dictType.setLabel("column_bind");
/* 128 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType); List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 129 */ mmap.put("dictList", list); mmap.put("dictList", list);
/* 130 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:edit"}) @RequiresPermissions({"dasz:physicaltablecolumn:edit"})
/* */ @Log(title = "物理字段", businessType = BusinessType.UPDATE) @Log(title = "物理字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(PhysicalTableColumn physicalTableColumn) { public AjaxResult editSave(PhysicalTableColumn physicalTableColumn) {
/* */ try { try {
/* 143 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 144 */ this.physicalTableColumnService.updatePhysicalTableColumn(physicalTableColumn); this.physicalTableColumnService.updatePhysicalTableColumn(physicalTableColumn);
/* */ } }
/* 146 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 147 */ this.physicalTableColumnService.updatePhysicalTableColumnSqlite(physicalTableColumn); this.physicalTableColumnService.updatePhysicalTableColumnSqlite(physicalTableColumn);
/* */ } }
/* 149 */ return toAjax(true); return toAjax(true);
/* 150 */ } catch (Exception e) { } catch (Exception e) {
/* 151 */ e.printStackTrace(); e.printStackTrace();
/* 152 */ return toAjax(false); return toAjax(false);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:remove"}) @RequiresPermissions({"dasz:physicaltablecolumn:remove"})
/* */ @Log(title = "物理字段", businessType = BusinessType.DELETE) @Log(title = "物理字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* */ try { try {
/* 167 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 168 */ this.physicalTableColumnService.deletePhysicalTableColumnByIds(ids); this.physicalTableColumnService.deletePhysicalTableColumnByIds(ids);
/* */ } }
/* 170 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 171 */ this.physicalTableColumnService.deletePhysicalTableColumnByIdsSqlLite(ids); this.physicalTableColumnService.deletePhysicalTableColumnByIdsSqlLite(ids);
/* */ } }
/* */
/* 174 */ return toAjax(true); return toAjax(true);
/* 175 */ } catch (Exception e) { } catch (Exception e) {
/* 176 */ e.printStackTrace(); e.printStackTrace();
/* 177 */ return toAjax(false); return toAjax(false);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/updateSetStatus/{id}/{type}/{status}"}) @PostMapping({"/updateSetStatus/{id}/{type}/{status}"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult updateSetStatus(@PathVariable("id") Long id, @PathVariable("type") String type, @PathVariable("status") Long status) { public AjaxResult updateSetStatus(@PathVariable("id") Long id, @PathVariable("type") String type, @PathVariable("status") Long status) {
/* */ try { try {
/* 197 */ this.physicalTableColumnService.updateSetStatus(id, type, status); this.physicalTableColumnService.updateSetStatus(id, type, status);
/* 198 */ return toAjax(true); return toAjax(true);
/* 199 */ } catch (Exception e) { } catch (Exception e) {
/* 200 */ e.printStackTrace(); e.printStackTrace();
/* 201 */ return toAjax(false); return toAjax(false);
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\controller\PhysicalTableColumnController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\controller\PhysicalTableColumnController.class

@ -1,246 +1,246 @@
/* */ package com.archive.project.dasz.physicaltablecolumn.domain package com.archive.project.dasz.physicaltablecolumn.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 PhysicalTableColumn public class PhysicalTableColumn
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ @Excel(name = "字段显示名称") @Excel(name = "字段显示名称")
/* */ private String columnName; private String columnName;
/* */ @Excel(name = "字段名称") @Excel(name = "字段名称")
/* */ private String columnCode; private String columnCode;
/* */ @Excel(name = "字段长度") @Excel(name = "字段长度")
/* */ private Long columnLength; private Long columnLength;
/* */ @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本") @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本")
/* */ private String columnType; private String columnType;
/* */ @Excel(name = "字段绑定编码") @Excel(name = "字段绑定编码")
/* */ private String columnCodetype; private String columnCodetype;
/* */ @Excel(name = "显示类型") @Excel(name = "显示类型")
/* */ private String showType; private String showType;
/* */ @Excel(name = "备注") @Excel(name = "备注")
/* */ private String bz; private String bz;
/* */ @Excel(name = "排序项(0:否 1:是)") @Excel(name = "排序项(0:否 1:是)")
/* */ private Long pxx; private Long pxx;
/* */ @Excel(name = "列表项(0:否 1:是)") @Excel(name = "列表项(0:否 1:是)")
/* */ private Long lbx; private Long lbx;
/* */ @Excel(name = "界面项(0:否 1:是)") @Excel(name = "界面项(0:否 1:是)")
/* */ private Long jmx; private Long jmx;
/* */ @Excel(name = "检索项(0:否 1:是)") @Excel(name = "检索项(0:否 1:是)")
/* */ private Long jsx; private Long jsx;
/* */ @Excel(name = "必输项(0:否 1:是)") @Excel(name = "必输项(0:否 1:是)")
/* */ private Long bsx; private Long bsx;
/* */ @Excel(name = "默认值") @Excel(name = "默认值")
/* */ private String mrz; private String mrz;
/* */ @Excel(name = "所属物理表id") @Excel(name = "所属物理表id")
/* */ private Long tableId; private Long tableId;
/* */ @Excel(name = "检索方式(0:包含 1:等于 2:大于 3:小于 4:大于等于 5:小于等于 6:区间)") @Excel(name = "检索方式(0:包含 1:等于 2:大于 3:小于 4:大于等于 5:小于等于 6:区间)")
/* */ private Long jsfs; private Long jsfs;
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 83 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getId() { public Long getId() {
/* 88 */ return this.id; return this.id;
/* */ } }
/* */
/* */ public void setColumnName(String columnName) { public void setColumnName(String columnName) {
/* 92 */ this.columnName = columnName; this.columnName = columnName;
/* */ } }
/* */
/* */
/* */ public String getColumnName() { public String getColumnName() {
/* 97 */ return this.columnName; return this.columnName;
/* */ } }
/* */
/* */ public void setColumnCode(String columnCode) { public void setColumnCode(String columnCode) {
/* 101 */ this.columnCode = columnCode; this.columnCode = columnCode;
/* */ } }
/* */
/* */
/* */ public String getColumnCode() { public String getColumnCode() {
/* 106 */ return this.columnCode; return this.columnCode;
/* */ } }
/* */
/* */ public void setColumnLength(Long columnLength) { public void setColumnLength(Long columnLength) {
/* 110 */ this.columnLength = columnLength; this.columnLength = columnLength;
/* */ } }
/* */
/* */
/* */ public Long getColumnLength() { public Long getColumnLength() {
/* 115 */ return this.columnLength; return this.columnLength;
/* */ } }
/* */
/* */ public void setColumnType(String columnType) { public void setColumnType(String columnType) {
/* 119 */ this.columnType = columnType; this.columnType = columnType;
/* */ } }
/* */
/* */
/* */ public String getColumnType() { public String getColumnType() {
/* 124 */ return this.columnType; return this.columnType;
/* */ } }
/* */
/* */ public void setColumnCodetype(String columnCodetype) { public void setColumnCodetype(String columnCodetype) {
/* 128 */ this.columnCodetype = columnCodetype; this.columnCodetype = columnCodetype;
/* */ } }
/* */
/* */
/* */ public String getColumnCodetype() { public String getColumnCodetype() {
/* 133 */ return this.columnCodetype; return this.columnCodetype;
/* */ } }
/* */
/* */ public void setBz(String bz) { public void setBz(String bz) {
/* 137 */ this.bz = bz; this.bz = bz;
/* */ } }
/* */
/* */
/* */ public String getBz() { public String getBz() {
/* 142 */ return this.bz; return this.bz;
/* */ } }
/* */
/* */ public void setPxx(Long pxx) { public void setPxx(Long pxx) {
/* 146 */ this.pxx = pxx; this.pxx = pxx;
/* */ } }
/* */
/* */
/* */ public Long getPxx() { public Long getPxx() {
/* 151 */ return this.pxx; return this.pxx;
/* */ } }
/* */
/* */ public void setLbx(Long lbx) { public void setLbx(Long lbx) {
/* 155 */ this.lbx = lbx; this.lbx = lbx;
/* */ } }
/* */
/* */
/* */ public Long getLbx() { public Long getLbx() {
/* 160 */ return this.lbx; return this.lbx;
/* */ } }
/* */
/* */ public void setJmx(Long jmx) { public void setJmx(Long jmx) {
/* 164 */ this.jmx = jmx; this.jmx = jmx;
/* */ } }
/* */
/* */
/* */ public Long getJmx() { public Long getJmx() {
/* 169 */ return this.jmx; return this.jmx;
/* */ } }
/* */
/* */ public void setJsx(Long jsx) { public void setJsx(Long jsx) {
/* 173 */ this.jsx = jsx; this.jsx = jsx;
/* */ } }
/* */
/* */
/* */ public Long getJsx() { public Long getJsx() {
/* 178 */ return this.jsx; return this.jsx;
/* */ } }
/* */
/* */ public void setMrz(String mrz) { public void setMrz(String mrz) {
/* 182 */ this.mrz = mrz; this.mrz = mrz;
/* */ } }
/* */
/* */
/* */ public String getMrz() { public String getMrz() {
/* 187 */ return this.mrz; return this.mrz;
/* */ } }
/* */
/* */ public void setTableId(Long tableId) { public void setTableId(Long tableId) {
/* 191 */ this.tableId = tableId; this.tableId = tableId;
/* */ } }
/* */
/* */
/* */ public Long getTableId() { public Long getTableId() {
/* 196 */ return this.tableId; return this.tableId;
/* */ } }
/* */
/* */ public String getShowType() { public String getShowType() {
/* 200 */ return this.showType; return this.showType;
/* */ } }
/* */
/* */ public void setShowType(String showType) { public void setShowType(String showType) {
/* 204 */ this.showType = showType; this.showType = showType;
/* */ } }
/* */
/* */ public Long getBsx() { public Long getBsx() {
/* 208 */ return this.bsx; return this.bsx;
/* */ } }
/* */
/* */ public void setBsx(Long bsx) { public void setBsx(Long bsx) {
/* 212 */ this.bsx = bsx; this.bsx = bsx;
/* */ } }
/* */
/* */ public Long getJsfs() { public Long getJsfs() {
/* 216 */ return this.jsfs; return this.jsfs;
/* */ } }
/* */
/* */ public void setJsfs(Long jsfs) { public void setJsfs(Long jsfs) {
/* 220 */ this.jsfs = jsfs; this.jsfs = jsfs;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 225 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 226 */ .append("id", getId()) .append("id", getId())
/* 227 */ .append("columnName", getColumnName()) .append("columnName", getColumnName())
/* 228 */ .append("columnCode", getColumnCode()) .append("columnCode", getColumnCode())
/* 229 */ .append("columnLength", getColumnLength()) .append("columnLength", getColumnLength())
/* 230 */ .append("columnType", getColumnType()) .append("columnType", getColumnType())
/* 231 */ .append("columnCodetype", getColumnCodetype()) .append("columnCodetype", getColumnCodetype())
/* 232 */ .append("bz", getBz()) .append("bz", getBz())
/* 233 */ .append("pxx", getPxx()) .append("pxx", getPxx())
/* 234 */ .append("lbx", getLbx()) .append("lbx", getLbx())
/* 235 */ .append("jmx", getJmx()) .append("jmx", getJmx())
/* 236 */ .append("jsx", getJsx()) .append("jsx", getJsx())
/* 237 */ .append("mrz", getMrz()) .append("mrz", getMrz())
/* 238 */ .append("tableId", getTableId()) .append("tableId", getTableId())
/* 239 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\domain\PhysicalTableColumn.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\domain\PhysicalTableColumn.class

@ -1,307 +1,307 @@
/* */ package com.archive.project.dasz.physicaltablecolumn.service.impl; package com.archive.project.dasz.physicaltablecolumn.service.impl;
/* */
/* */ import com.archive.common.archiveUtil.SqlLiteUtil; import com.archive.common.archiveUtil.SqlLiteUtil;
/* */ import com.archive.common.archiveUtil.TableUtil; import com.archive.common.archiveUtil.TableUtil;
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.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.service.IPhysicalTableService; import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn; import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper; import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService; import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ 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;
/* */ import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class PhysicalTableColumnServiceImpl public class PhysicalTableColumnServiceImpl
/* */ implements IPhysicalTableColumnService implements IPhysicalTableColumnService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper; private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */ @Autowired @Autowired
/* */ private IExecuteSqlService executeSqlService; private IExecuteSqlService executeSqlService;
/* */ @Autowired @Autowired
/* */ private IPhysicalTableService physicalTableService; private IPhysicalTableService physicalTableService;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public PhysicalTableColumn selectPhysicalTableColumnById(Long id) { public PhysicalTableColumn selectPhysicalTableColumnById(Long id) {
/* 51 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnById(id); return this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<PhysicalTableColumn> selectPhysicalTableColumnList(PhysicalTableColumn physicalTableColumn) { public List<PhysicalTableColumn> selectPhysicalTableColumnList(PhysicalTableColumn physicalTableColumn) {
/* 63 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 64 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); return this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
/* */ } }
/* 66 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); return this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void insertPhysicalTableColumn(PhysicalTableColumn physicalTableColumn, boolean isCreatArchiveType) throws Exception { public void insertPhysicalTableColumn(PhysicalTableColumn physicalTableColumn, boolean isCreatArchiveType) throws Exception {
/* 81 */ if (!isCreatArchiveType) { if (!isCreatArchiveType) {
/* 82 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId()); String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 83 */ String sql = "ALTER TABLE " + tableName + " ADD COLUMN `" + physicalTableColumn.getColumnCode() + "` "; String sql = "ALTER TABLE " + tableName + " ADD COLUMN `" + physicalTableColumn.getColumnCode() + "` ";
/* */
/* 85 */ String columnType = physicalTableColumn.getColumnType(); String columnType = physicalTableColumn.getColumnType();
/* 86 */ switch (columnType) { switch (columnType) {
/* */ case "D": case "D":
/* 88 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 89 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break; columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 90 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 91 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") "; columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ } }
/* */ break; break;
/* */ case "S": case "S":
/* 95 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 96 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break; columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 97 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 98 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") "; columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ } }
/* */ break; break;
/* */ case "C": case "C":
/* 102 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 103 */ columnType = " int "; break; columnType = " int "; break;
/* 104 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 105 */ columnType = " INTEGER "; columnType = " INTEGER ";
/* */ } }
/* */ break; break;
/* */ } }
/* 109 */ sql = sql + columnType; sql = sql + columnType;
/* 110 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 111 */ if (StringUtils.isEmpty(physicalTableColumn.getMrz())) { if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
/* 112 */ sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'"; sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } else { } else {
/* 114 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'"; sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } }
/* 116 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* */
/* 118 */ if (StringUtils.isNotEmpty(physicalTableColumn.getMrz())) { if (StringUtils.isNotEmpty(physicalTableColumn.getMrz())) {
/* 119 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "'"; sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "'";
/* */ } }
/* */ } }
/* */
/* 123 */ this.executeSqlService.jdbcTemplateExecute(sql); this.executeSqlService.jdbcTemplateExecute(sql);
/* */ } }
/* 125 */ this.physicalTableColumnMapper.insertPhysicalTableColumn(physicalTableColumn); this.physicalTableColumnMapper.insertPhysicalTableColumn(physicalTableColumn);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void updatePhysicalTableColumn(PhysicalTableColumn physicalTableColumn) throws Exception { public void updatePhysicalTableColumn(PhysicalTableColumn physicalTableColumn) throws Exception {
/* 138 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId()); String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 139 */ String sql = "ALTER TABLE " + tableName + " MODIFY COLUMN " + physicalTableColumn.getColumnCode(); String sql = "ALTER TABLE " + tableName + " MODIFY COLUMN " + physicalTableColumn.getColumnCode();
/* */
/* 141 */ String columnType = physicalTableColumn.getColumnType(); String columnType = physicalTableColumn.getColumnType();
/* 142 */ switch (columnType) { switch (columnType) {
/* */ case "D": case "D":
/* 144 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 145 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") ";
/* */ } }
/* */ break; break;
/* */ case "S": case "S":
/* 149 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 150 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break; columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 151 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 152 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") "; columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ } }
/* */ break; break;
/* */ case "C": case "C":
/* 156 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 157 */ columnType = " int "; break; columnType = " int "; break;
/* 158 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 159 */ columnType = " INTEGER "; columnType = " INTEGER ";
/* */ } }
/* */ break; break;
/* */ } }
/* 163 */ sql = sql + columnType; sql = sql + columnType;
/* 164 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 165 */ if (StringUtils.isEmpty(physicalTableColumn.getMrz())) { if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
/* 166 */ sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'"; sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } else { } else {
/* 168 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'"; sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } }
/* */ } }
/* 171 */ this.executeSqlService.jdbcTemplateExecute(sql); this.executeSqlService.jdbcTemplateExecute(sql);
/* 172 */ this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn); this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void updatePhysicalTableColumnSqlite(PhysicalTableColumn physicalTableColumn) throws Exception { public void updatePhysicalTableColumnSqlite(PhysicalTableColumn physicalTableColumn) throws Exception {
/* 186 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId()); String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* */
/* */
/* */
/* */
/* 191 */ PhysicalTableColumn ptc = this.physicalTableColumnMapper.selectPhysicalTableColumnById(physicalTableColumn.getId()); PhysicalTableColumn ptc = this.physicalTableColumnMapper.selectPhysicalTableColumnById(physicalTableColumn.getId());
/* 192 */ String newType = ""; String newType = "";
/* 193 */ String newMrz = ""; String newMrz = "";
/* */
/* 195 */ if (!physicalTableColumn.getColumnType().equals(ptc.getColumnType())) if (!physicalTableColumn.getColumnType().equals(ptc.getColumnType()))
/* */ { {
/* 197 */ if (physicalTableColumn.getColumnType().equals("C")) { if (physicalTableColumn.getColumnType().equals("C")) {
/* 198 */ newType = "INTEGER"; newType = "INTEGER";
/* */ } else { } else {
/* 200 */ newType = "TEXT"; newType = "TEXT";
/* */ } }
/* */ } }
/* */
/* 204 */ if (!physicalTableColumn.getMrz().equals(ptc.getMrz())) if (!physicalTableColumn.getMrz().equals(ptc.getMrz()))
/* */ { {
/* 206 */ newMrz = ptc.getMrz(); newMrz = ptc.getMrz();
/* */ } }
/* */
/* 209 */ if (!newType.equals("") || !newMrz.equals("")) { if (!newType.equals("") || !newMrz.equals("")) {
/* 210 */ SqlLiteUtil.updateColumnType(tableName, physicalTableColumn.getColumnType(), physicalTableColumn.getColumnCode(), newMrz); SqlLiteUtil.updateColumnType(tableName, physicalTableColumn.getColumnType(), physicalTableColumn.getColumnCode(), newMrz);
/* */ } }
/* 212 */ this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn); this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void deletePhysicalTableColumnByIds(String ids) throws Exception { public void deletePhysicalTableColumnByIds(String ids) throws Exception {
/* 224 */ Long id = Long.valueOf(Long.parseLong(ids)); Long id = Long.valueOf(Long.parseLong(ids));
/* 225 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id); PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* 226 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId()); String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 227 */ String columnCode = physicalTableColumn.getColumnCode(); String columnCode = physicalTableColumn.getColumnCode();
/* 228 */ String sql = "ALTER TABLE " + tableName + " DROP COLUMN " + columnCode; String sql = "ALTER TABLE " + tableName + " DROP COLUMN " + columnCode;
/* 229 */ this.executeSqlService.jdbcTemplateExecute(sql); this.executeSqlService.jdbcTemplateExecute(sql);
/* 230 */ this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids)); this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
/* */
/* */
/* 233 */ for (String colId : Convert.toStrArray(ids)) { for (String colId : Convert.toStrArray(ids)) {
/* 234 */ this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId))); this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void deletePhysicalTableColumnByIdsSqlLite(String ids) throws Exception { public void deletePhysicalTableColumnByIdsSqlLite(String ids) throws Exception {
/* 248 */ Long id = Long.valueOf(Long.parseLong(ids)); Long id = Long.valueOf(Long.parseLong(ids));
/* 249 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id); PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* 250 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId()); String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 251 */ String columnCode = physicalTableColumn.getColumnCode(); String columnCode = physicalTableColumn.getColumnCode();
/* 252 */ SqlLiteUtil.deleteColumn(tableName, columnCode); SqlLiteUtil.deleteColumn(tableName, columnCode);
/* */
/* 254 */ this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids)); this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
/* */
/* */
/* 257 */ for (String colId : Convert.toStrArray(ids)) { for (String colId : Convert.toStrArray(ids)) {
/* 258 */ this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId))); this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableColumnById(Long id) { public int deletePhysicalTableColumnById(Long id) {
/* 271 */ return this.physicalTableColumnMapper.deletePhysicalTableColumnById(id); return this.physicalTableColumnMapper.deletePhysicalTableColumnById(id);
/* */ } }
/* */
/* */
/* */ @Transactional @Transactional
/* */ public void updateSetStatus(Long id, String type, Long status) throws Exception { public void updateSetStatus(Long id, String type, Long status) throws Exception {
/* 277 */ String sql = "update t_xtpz_physical_table_column set " + type + " = " + status + " where id = " + id; String sql = "update t_xtpz_physical_table_column set " + type + " = " + status + " where id = " + id;
/* 278 */ this.executeSqlService.jdbcTemplateExecute(sql); this.executeSqlService.jdbcTemplateExecute(sql);
/* */
/* 280 */ if ("jmx".equals(type) && status.longValue() == 0L) { if ("jmx".equals(type) && status.longValue() == 0L) {
/* 281 */ this.physicalTableService.removeTableFormByColumnId(id); this.physicalTableService.removeTableFormByColumnId(id);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getColumnCodeByTableIdAndShowName(String columnShowName, long tableId) { public String getColumnCodeByTableIdAndShowName(String columnShowName, long tableId) {
/* 294 */ String res = ""; String res = "";
/* 295 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
/* 296 */ physicalTableColumn.setTableId(Long.valueOf(tableId)); physicalTableColumn.setTableId(Long.valueOf(tableId));
/* 297 */ physicalTableColumn.setColumnName(columnShowName); physicalTableColumn.setColumnName(columnShowName);
/* 298 */ List<PhysicalTableColumn> list = selectPhysicalTableColumnList(physicalTableColumn); List<PhysicalTableColumn> list = selectPhysicalTableColumnList(physicalTableColumn);
/* 299 */ if (list.size() > 0 && list.get(0) != null) { if (list.size() > 0 && list.get(0) != null) {
/* 300 */ res = ((PhysicalTableColumn)list.get(0)).getColumnCode(); res = ((PhysicalTableColumn)list.get(0)).getColumnCode();
/* */ } }
/* 302 */ return res; return res;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\service\impl\PhysicalTableColumnServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\physicaltablecolumn\service\impl\PhysicalTableColumnServiceImpl.class

@ -1,26 +1,26 @@
/* */ package com.archive.project.monitor.job.util package com.archive.project.monitor.job.util
; ;
/* */
/* */ import com.archive.project.monitor.job.domain.Job; import com.archive.project.monitor.job.domain.Job;
/* */ import com.archive.project.monitor.job.util.AbstractQuartzJob; import com.archive.project.monitor.job.util.AbstractQuartzJob;
/* */ import com.archive.project.monitor.job.util.JobInvokeUtil; import com.archive.project.monitor.job.util.JobInvokeUtil;
/* */ import org.quartz.DisallowConcurrentExecution; import org.quartz.DisallowConcurrentExecution;
/* */ import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @DisallowConcurrentExecution @DisallowConcurrentExecution
/* */ public class QuartzDisallowConcurrentExecution public class QuartzDisallowConcurrentExecution
/* */ extends AbstractQuartzJob extends AbstractQuartzJob
/* */ { {
/* */ protected void doExecute(JobExecutionContext context, Job job) throws Exception { protected void doExecute(JobExecutionContext context, Job job) throws Exception {
/* 19 */ JobInvokeUtil.invokeMethod(job); JobInvokeUtil.invokeMethod(job);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\jo\\util\QuartzDisallowConcurrentExecution.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\jo\\util\QuartzDisallowConcurrentExecution.class

@ -1,24 +1,24 @@
/* */ package com.archive.project.monitor.job.util package com.archive.project.monitor.job.util
; ;
/* */
/* */ import com.archive.project.monitor.job.domain.Job; import com.archive.project.monitor.job.domain.Job;
/* */ import com.archive.project.monitor.job.util.AbstractQuartzJob; import com.archive.project.monitor.job.util.AbstractQuartzJob;
/* */ import com.archive.project.monitor.job.util.JobInvokeUtil; import com.archive.project.monitor.job.util.JobInvokeUtil;
/* */ import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class QuartzJobExecution public class QuartzJobExecution
/* */ extends AbstractQuartzJob extends AbstractQuartzJob
/* */ { {
/* */ protected void doExecute(JobExecutionContext context, Job job) throws Exception { protected void doExecute(JobExecutionContext context, Job job) throws Exception {
/* 17 */ JobInvokeUtil.invokeMethod(job); JobInvokeUtil.invokeMethod(job);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\jo\\util\QuartzJobExecution.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\jo\\util\QuartzJobExecution.class

@ -1,94 +1,94 @@
/* */ package com.archive.project.monitor.operlog.controller package com.archive.project.monitor.operlog.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.monitor.operlog.domain.OperLog; import com.archive.project.monitor.operlog.domain.OperLog;
/* */ import com.archive.project.monitor.operlog.service.IOperLogService; import com.archive.project.monitor.operlog.service.IOperLogService;
/* */ 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({"/monitor/operlog"}) @RequestMapping({"/monitor/operlog"})
/* */ public class OperlogController public class OperlogController
/* */ extends BaseController extends BaseController
/* */ { {
/* 31 */ private String prefix = "monitor/operlog"; private String prefix = "monitor/operlog";
/* */
/* */ @Autowired @Autowired
/* */ private IOperLogService operLogService; private IOperLogService operLogService;
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:view"}) @RequiresPermissions({"monitor:operlog:view"})
/* */ @GetMapping @GetMapping
/* */ public String operlog() { public String operlog() {
/* 40 */ return this.prefix + "/operlog"; return this.prefix + "/operlog";
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:list"}) @RequiresPermissions({"monitor:operlog:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(OperLog operLog) { public TableDataInfo list(OperLog operLog) {
/* 48 */ startPage(); startPage();
/* 49 */ List<OperLog> list = this.operLogService.selectOperLogList(operLog); List<OperLog> list = this.operLogService.selectOperLogList(operLog);
/* 50 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */ @Log(title = "操作日志", businessType = BusinessType.EXPORT) @Log(title = "操作日志", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"monitor:operlog:export"}) @RequiresPermissions({"monitor:operlog:export"})
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(OperLog operLog) { public AjaxResult export(OperLog operLog) {
/* 59 */ List<OperLog> list = this.operLogService.selectOperLogList(operLog); List<OperLog> list = this.operLogService.selectOperLogList(operLog);
/* 60 */ ExcelUtil<OperLog> util = new ExcelUtil(OperLog.class); ExcelUtil<OperLog> util = new ExcelUtil(OperLog.class);
/* 61 */ return util.exportExcel(list, "操作日志"); return util.exportExcel(list, "操作日志");
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:remove"}) @RequiresPermissions({"monitor:operlog:remove"})
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* 69 */ return toAjax(this.operLogService.deleteOperLogByIds(ids)); return toAjax(this.operLogService.deleteOperLogByIds(ids));
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:detail"}) @RequiresPermissions({"monitor:operlog:detail"})
/* */ @GetMapping({"/detail/{operId}"}) @GetMapping({"/detail/{operId}"})
/* */ public String detail(@PathVariable("operId") Long operId, ModelMap mmap) { public String detail(@PathVariable("operId") Long operId, ModelMap mmap) {
/* 76 */ mmap.put("operLog", this.operLogService.selectOperLogById(operId)); mmap.put("operLog", this.operLogService.selectOperLogById(operId));
/* 77 */ return this.prefix + "/detail"; return this.prefix + "/detail";
/* */ } }
/* */
/* */
/* */ @Log(title = "操作日志", businessType = BusinessType.CLEAN) @Log(title = "操作日志", businessType = BusinessType.CLEAN)
/* */ @RequiresPermissions({"monitor:operlog:remove"}) @RequiresPermissions({"monitor:operlog:remove"})
/* */ @PostMapping({"/clean"}) @PostMapping({"/clean"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult clean() { public AjaxResult clean() {
/* 86 */ this.operLogService.cleanOperLog(); this.operLogService.cleanOperLog();
/* 87 */ return success(); return success();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\controller\OperlogController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\controller\OperlogController.class

@ -1,283 +1,283 @@
/* */ package com.archive.project.monitor.operlog.domain package com.archive.project.monitor.operlog.domain
; ;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType; import com.archive.framework.aspectj.lang.annotation.ColumnType;
import com.archive.framework.aspectj.lang.annotation.Excel; import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import java.util.Date; import java.util.Date;
/* */ 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 OperLog public class OperLog
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ @Excel(name = "操作序号", cellType = ColumnType.NUMERIC) @Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
/* */ private Long operId; private Long operId;
/* */ @Excel(name = "操作模块") @Excel(name = "操作模块")
/* */ private String title; private String title;
/* */ @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据") @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
/* */ private Integer businessType; private Integer businessType;
/* */ private Integer[] businessTypes; private Integer[] businessTypes;
/* */ @Excel(name = "请求方法") @Excel(name = "请求方法")
/* */ private String method; private String method;
/* */ @Excel(name = "请求方式") @Excel(name = "请求方式")
/* */ private String requestMethod; private String requestMethod;
/* */ @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户") @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
/* */ private Integer operatorType; private Integer operatorType;
/* */ @Excel(name = "操作人员") @Excel(name = "操作人员")
/* */ private String operName; private String operName;
/* */ @Excel(name = "部门名称") @Excel(name = "部门名称")
/* */ private String deptName; private String deptName;
/* */ @Excel(name = "请求地址") @Excel(name = "请求地址")
/* */ private String operUrl; private String operUrl;
/* */ @Excel(name = "操作地址") @Excel(name = "操作地址")
/* */ private String operIp; private String operIp;
/* */ @Excel(name = "操作地点") @Excel(name = "操作地点")
/* */ private String operLocation; private String operLocation;
/* */ @Excel(name = "请求参数") @Excel(name = "请求参数")
/* */ private String operParam; private String operParam;
/* */ @Excel(name = "返回参数") @Excel(name = "返回参数")
/* */ private String jsonResult; private String jsonResult;
/* */ @Excel(name = "状态", readConverterExp = "0=正常,1=异常") @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
/* */ private Integer status; private Integer status;
/* */ @Excel(name = "错误消息") @Excel(name = "错误消息")
/* */ private String errorMsg; private String errorMsg;
/* */ @Excel(name = "操作时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss") @Excel(name = "操作时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss")
/* */ private Date operTime; private Date operTime;
/* */
/* */ public Long getOperId() { public Long getOperId() {
/* 88 */ return this.operId; return this.operId;
/* */ } }
/* */
/* */
/* */ public void setOperId(Long operId) { public void setOperId(Long operId) {
/* 93 */ this.operId = operId; this.operId = operId;
/* */ } }
/* */
/* */
/* */ public String getTitle() { public String getTitle() {
/* 98 */ return this.title; return this.title;
/* */ } }
/* */
/* */
/* */ public void setTitle(String title) { public void setTitle(String title) {
/* 103 */ this.title = title; this.title = title;
/* */ } }
/* */
/* */
/* */ public Integer getBusinessType() { public Integer getBusinessType() {
/* 108 */ return this.businessType; return this.businessType;
/* */ } }
/* */
/* */
/* */ public void setBusinessType(Integer businessType) { public void setBusinessType(Integer businessType) {
/* 113 */ this.businessType = businessType; this.businessType = businessType;
/* */ } }
/* */
/* */
/* */ public Integer[] getBusinessTypes() { public Integer[] getBusinessTypes() {
/* 118 */ return this.businessTypes; return this.businessTypes;
/* */ } }
/* */
/* */
/* */ public void setBusinessTypes(Integer[] businessTypes) { public void setBusinessTypes(Integer[] businessTypes) {
/* 123 */ this.businessTypes = businessTypes; this.businessTypes = businessTypes;
/* */ } }
/* */
/* */
/* */ public String getMethod() { public String getMethod() {
/* 128 */ return this.method; return this.method;
/* */ } }
/* */
/* */
/* */ public void setMethod(String method) { public void setMethod(String method) {
/* 133 */ this.method = method; this.method = method;
/* */ } }
/* */
/* */
/* */ public String getRequestMethod() { public String getRequestMethod() {
/* 138 */ return this.requestMethod; return this.requestMethod;
/* */ } }
/* */
/* */
/* */ public void setRequestMethod(String requestMethod) { public void setRequestMethod(String requestMethod) {
/* 143 */ this.requestMethod = requestMethod; this.requestMethod = requestMethod;
/* */ } }
/* */
/* */
/* */ public Integer getOperatorType() { public Integer getOperatorType() {
/* 148 */ return this.operatorType; return this.operatorType;
/* */ } }
/* */
/* */
/* */ public void setOperatorType(Integer operatorType) { public void setOperatorType(Integer operatorType) {
/* 153 */ this.operatorType = operatorType; this.operatorType = operatorType;
/* */ } }
/* */
/* */
/* */ public String getOperName() { public String getOperName() {
/* 158 */ return this.operName; return this.operName;
/* */ } }
/* */
/* */
/* */ public void setOperName(String operName) { public void setOperName(String operName) {
/* 163 */ this.operName = operName; this.operName = operName;
/* */ } }
/* */
/* */
/* */ public String getDeptName() { public String getDeptName() {
/* 168 */ return this.deptName; return this.deptName;
/* */ } }
/* */
/* */
/* */ public void setDeptName(String deptName) { public void setDeptName(String deptName) {
/* 173 */ this.deptName = deptName; this.deptName = deptName;
/* */ } }
/* */
/* */
/* */ public String getOperUrl() { public String getOperUrl() {
/* 178 */ return this.operUrl; return this.operUrl;
/* */ } }
/* */
/* */
/* */ public void setOperUrl(String operUrl) { public void setOperUrl(String operUrl) {
/* 183 */ this.operUrl = operUrl; this.operUrl = operUrl;
/* */ } }
/* */
/* */
/* */ public String getOperIp() { public String getOperIp() {
/* 188 */ return this.operIp; return this.operIp;
/* */ } }
/* */
/* */
/* */ public void setOperIp(String operIp) { public void setOperIp(String operIp) {
/* 193 */ this.operIp = operIp; this.operIp = operIp;
/* */ } }
/* */
/* */
/* */ public String getOperLocation() { public String getOperLocation() {
/* 198 */ return this.operLocation; return this.operLocation;
/* */ } }
/* */
/* */
/* */ public void setOperLocation(String operLocation) { public void setOperLocation(String operLocation) {
/* 203 */ this.operLocation = operLocation; this.operLocation = operLocation;
/* */ } }
/* */
/* */
/* */ public String getOperParam() { public String getOperParam() {
/* 208 */ return this.operParam; return this.operParam;
/* */ } }
/* */
/* */
/* */ public void setOperParam(String operParam) { public void setOperParam(String operParam) {
/* 213 */ this.operParam = operParam; this.operParam = operParam;
/* */ } }
/* */
/* */
/* */ public String getJsonResult() { public String getJsonResult() {
/* 218 */ return this.jsonResult; return this.jsonResult;
/* */ } }
/* */
/* */
/* */ public void setJsonResult(String jsonResult) { public void setJsonResult(String jsonResult) {
/* 223 */ this.jsonResult = jsonResult; this.jsonResult = jsonResult;
/* */ } }
/* */
/* */
/* */ public Integer getStatus() { public Integer getStatus() {
/* 228 */ return this.status; return this.status;
/* */ } }
/* */
/* */
/* */ public void setStatus(Integer status) { public void setStatus(Integer status) {
/* 233 */ this.status = status; this.status = status;
/* */ } }
/* */
/* */
/* */ public String getErrorMsg() { public String getErrorMsg() {
/* 238 */ return this.errorMsg; return this.errorMsg;
/* */ } }
/* */
/* */
/* */ public void setErrorMsg(String errorMsg) { public void setErrorMsg(String errorMsg) {
/* 243 */ this.errorMsg = errorMsg; this.errorMsg = errorMsg;
/* */ } }
/* */
/* */
/* */ public Date getOperTime() { public Date getOperTime() {
/* 248 */ return this.operTime; return this.operTime;
/* */ } }
/* */
/* */
/* */ public void setOperTime(Date operTime) { public void setOperTime(Date operTime) {
/* 253 */ this.operTime = operTime; this.operTime = operTime;
/* */ } }
/* */
/* */ @Override @Override
/* */ public String toString() { public String toString() {
/* 258 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 259 */ .append("operId", getOperId()) .append("operId", getOperId())
/* 260 */ .append("title", getTitle()) .append("title", getTitle())
/* 261 */ .append("businessType", getBusinessType()) .append("businessType", getBusinessType())
/* 262 */ .append("businessTypes", (Object[])getBusinessTypes()) .append("businessTypes", (Object[])getBusinessTypes())
/* 263 */ .append("method", getMethod()) .append("method", getMethod())
/* 264 */ .append("requestMethod", getRequestMethod()) .append("requestMethod", getRequestMethod())
/* 265 */ .append("operatorType", getOperatorType()) .append("operatorType", getOperatorType())
/* 266 */ .append("operName", getOperName()) .append("operName", getOperName())
/* 267 */ .append("deptName", getDeptName()) .append("deptName", getDeptName())
/* 268 */ .append("operUrl", getOperUrl()) .append("operUrl", getOperUrl())
/* 269 */ .append("operIp", getOperIp()) .append("operIp", getOperIp())
/* 270 */ .append("operLocation", getOperLocation()) .append("operLocation", getOperLocation())
/* 271 */ .append("operParam", getOperParam()) .append("operParam", getOperParam())
/* 272 */ .append("status", getStatus()) .append("status", getStatus())
/* 273 */ .append("errorMsg", getErrorMsg()) .append("errorMsg", getErrorMsg())
/* 274 */ .append("operTime", getOperTime()) .append("operTime", getOperTime())
/* 275 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\domain\OperLog.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\domain\OperLog.class

@ -1,101 +1,101 @@
/* */ package com.archive.project.monitor.operlog.service package com.archive.project.monitor.operlog.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.operlog.domain.OperLog; import com.archive.project.monitor.operlog.domain.OperLog;
/* */ import com.archive.project.monitor.operlog.mapper.OperLogMapper; import com.archive.project.monitor.operlog.mapper.OperLogMapper;
/* */ import com.archive.project.monitor.operlog.service.IOperLogService; import com.archive.project.monitor.operlog.service.IOperLogService;
/* */ 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 OperLogServiceImpl public class OperLogServiceImpl
/* */ implements IOperLogService implements IOperLogService
/* */ { {
/* */ @Autowired @Autowired
/* */ private OperLogMapper operLogMapper; private OperLogMapper operLogMapper;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public void insertOperlog(OperLog operLog) { public void insertOperlog(OperLog operLog) {
/* 35 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 36 */ this.operLogMapper.insertOperlog(operLog); this.operLogMapper.insertOperlog(operLog);
/* */ } }
/* 38 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 39 */ this.operLogMapper.insertOperlogSqlite(operLog); this.operLogMapper.insertOperlogSqlite(operLog);
/* */ } else { } else {
/* 41 */ this.operLogMapper.insertOperlog(operLog); this.operLogMapper.insertOperlog(operLog);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<OperLog> selectOperLogList(OperLog operLog) { public List<OperLog> selectOperLogList(OperLog operLog) {
/* 54 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 55 */ return this.operLogMapper.selectOperLogList(operLog); return this.operLogMapper.selectOperLogList(operLog);
/* */ } }
/* 57 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 58 */ return this.operLogMapper.selectOperLogListSqlite(operLog); return this.operLogMapper.selectOperLogListSqlite(operLog);
/* */ } }
/* 60 */ return this.operLogMapper.selectOperLogList(operLog); return this.operLogMapper.selectOperLogList(operLog);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteOperLogByIds(String ids) { public int deleteOperLogByIds(String ids) {
/* 74 */ return this.operLogMapper.deleteOperLogByIds(Convert.toStrArray(ids)); return this.operLogMapper.deleteOperLogByIds(Convert.toStrArray(ids));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public OperLog selectOperLogById(Long operId) { public OperLog selectOperLogById(Long operId) {
/* 86 */ return this.operLogMapper.selectOperLogById(operId); return this.operLogMapper.selectOperLogById(operId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void cleanOperLog() { public void cleanOperLog() {
/* 95 */ this.operLogMapper.cleanOperLog(); this.operLogMapper.cleanOperLog();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\service\OperLogServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\operlog\service\OperLogServiceImpl.class

@ -1,42 +1,42 @@
/* */ package com.archive.project.plugins.controller package com.archive.project.plugins.controller
; ;
/* */
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.project.dajs.jsgl.service.IJsglService; import com.archive.project.dajs.jsgl.service.IJsglService;
/* */ 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;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/plugins"}) @RequestMapping({"/plugins"})
/* */ public class PluginsController public class PluginsController
/* */ extends BaseController extends BaseController
/* */ { {
/* 26 */ private String prefix = "plugins"; private String prefix = "plugins";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IJsglService jsglService; private IJsglService jsglService;
/* */
/* */
/* */ @GetMapping({"/pdfjs"}) @GetMapping({"/pdfjs"})
/* */ public String pdfjs(ModelMap mmap) { public String pdfjs(ModelMap mmap) {
/* 35 */ return this.prefix + "/pdfjs/web/viewer"; return this.prefix + "/pdfjs/web/viewer";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\plugins\controller\PluginsController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\plugins\controller\PluginsController.class

@ -1,116 +1,116 @@
/* */ package com.archive.project.plugins.service.impl package com.archive.project.plugins.service.impl
; ;
/* */
/* */ 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.plugins.service.IPluginsService; import com.archive.project.plugins.service.IPluginsService;
/* */ 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 java.awt.Color; import java.awt.Color;
/* */ import java.awt.Graphics2D; import java.awt.Graphics2D;
/* */ import java.awt.Image; import java.awt.Image;
/* */ import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
/* */ import java.io.File; import java.io.File;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import javax.imageio.ImageIO; import javax.imageio.ImageIO;
/* */ 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 PluginsServiceImpl public class PluginsServiceImpl
/* */ implements IPluginsService implements IPluginsService
/* */ { {
/* */ @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;
/* */
/* */ public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
/* 48 */ BufferedImage image = resizeImage("D://3.png", 150); BufferedImage image = resizeImage("D://3.png", 150);
/* 49 */ printImage(image); printImage(image);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void printImage(BufferedImage image) throws IOException { public static void printImage(BufferedImage image) throws IOException {
/* 59 */ char[] PIXEL_CHAR_ARRAY = { '*', 'o', ':', '.', ' ' }; char[] PIXEL_CHAR_ARRAY = { '*', 'o', ':', '.', ' ' };
/* 60 */ int width = image.getWidth(); int width = image.getWidth();
/* 61 */ int height = image.getHeight(); int height = image.getHeight();
/* 62 */ for (int i = 0; i < height; i++) { for (int i = 0; i < height; i++) {
/* 63 */ for (int j = 0; j < width; j++) { for (int j = 0; j < width; j++) {
/* 64 */ int rgb = image.getRGB(j, i); int rgb = image.getRGB(j, i);
/* 65 */ Color color = new Color(rgb); Color color = new Color(rgb);
/* 66 */ int red = color.getRed(); int red = color.getRed();
/* 67 */ int green = color.getGreen(); int green = color.getGreen();
/* 68 */ int blue = color.getBlue(); int blue = color.getBlue();
/* */
/* 70 */ Double grayscale = Double.valueOf(0.2126D * red + 0.7152D * green + 0.0722D * blue); Double grayscale = Double.valueOf(0.2126D * red + 0.7152D * green + 0.0722D * blue);
/* 71 */ double index = grayscale.doubleValue() / (Math.ceil((255 / PIXEL_CHAR_ARRAY.length)) + 0.5D); double index = grayscale.doubleValue() / (Math.ceil((255 / PIXEL_CHAR_ARRAY.length)) + 0.5D);
/* 72 */ System.out.print(PIXEL_CHAR_ARRAY[(int)Math.floor(index)]); System.out.print(PIXEL_CHAR_ARRAY[(int)Math.floor(index)]);
/* */ } }
/* 74 */ System.out.println(); System.out.println();
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static BufferedImage resizeImage(String srcImagePath, int targetWidth) throws IOException { public static BufferedImage resizeImage(String srcImagePath, int targetWidth) throws IOException {
/* 88 */ Image srcImage = ImageIO.read(new File(srcImagePath)); Image srcImage = ImageIO.read(new File(srcImagePath));
/* 89 */ int targetHeight = getTargetHeight(targetWidth, srcImage); int targetHeight = getTargetHeight(targetWidth, srcImage);
/* 90 */ BufferedImage resizedImage = new BufferedImage(targetWidth, targetHeight, 1); BufferedImage resizedImage = new BufferedImage(targetWidth, targetHeight, 1);
/* 91 */ Graphics2D graphics2D = resizedImage.createGraphics(); Graphics2D graphics2D = resizedImage.createGraphics();
/* 92 */ graphics2D.drawImage(srcImage, 0, 0, targetWidth, targetHeight, null); graphics2D.drawImage(srcImage, 0, 0, targetWidth, targetHeight, null);
/* 93 */ graphics2D.dispose(); graphics2D.dispose();
/* 94 */ return resizedImage; return resizedImage;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static int getTargetHeight(int targetWidth, Image srcImage) { private static int getTargetHeight(int targetWidth, Image srcImage) {
/* 105 */ int targetHeight = srcImage.getHeight(null); int targetHeight = srcImage.getHeight(null);
/* 106 */ if (targetWidth < srcImage.getWidth(null)) { if (targetWidth < srcImage.getWidth(null)) {
/* 107 */ targetHeight = Math.round(targetHeight / srcImage.getWidth(null) / targetWidth); targetHeight = Math.round(targetHeight / srcImage.getWidth(null) / targetWidth);
/* */ } }
/* 109 */ return targetHeight; return targetHeight;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\plugins\service\impl\PluginsServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\plugins\service\impl\PluginsServiceImpl.class

@ -1,165 +1,165 @@
/* */ package com.archive.project.system.post.controller package com.archive.project.system.post.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.system.post.domain.Post; import com.archive.project.system.post.domain.Post;
/* */ import com.archive.project.system.post.service.IPostService; import com.archive.project.system.post.service.IPostService;
/* */ 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/post"}) @RequestMapping({"/system/post"})
/* */ public class PostController public class PostController
/* */ extends BaseController extends BaseController
/* */ { {
/* 33 */ private String prefix = "system/post"; private String prefix = "system/post";
/* */
/* */ @Autowired @Autowired
/* */ private IPostService postService; private IPostService postService;
/* */
/* */
/* */ @RequiresPermissions({"system:post:view"}) @RequiresPermissions({"system:post:view"})
/* */ @GetMapping @GetMapping
/* */ public String operlog() { public String operlog() {
/* 42 */ return this.prefix + "/post"; return this.prefix + "/post";
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"system:post:list"}) @RequiresPermissions({"system:post:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(Post post) { public TableDataInfo list(Post post) {
/* 50 */ startPage(); startPage();
/* 51 */ List<Post> list = this.postService.selectPostList(post); List<Post> list = this.postService.selectPostList(post);
/* 52 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */ @Log(title = "岗位管理", businessType = BusinessType.EXPORT) @Log(title = "岗位管理", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"system:post:export"}) @RequiresPermissions({"system:post:export"})
/* */ @PostMapping({"/export"}) @PostMapping({"/export"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult export(Post post) { public AjaxResult export(Post post) {
/* 61 */ List<Post> list = this.postService.selectPostList(post); List<Post> list = this.postService.selectPostList(post);
/* 62 */ ExcelUtil<Post> util = new ExcelUtil(Post.class); ExcelUtil<Post> util = new ExcelUtil(Post.class);
/* 63 */ return util.exportExcel(list, "岗位数据"); return util.exportExcel(list, "岗位数据");
/* */ } }
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:remove"}) @RequiresPermissions({"system:post:remove"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.DELETE) @Log(title = "岗位管理", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"}) @PostMapping({"/remove"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult remove(String ids) { public AjaxResult remove(String ids) {
/* */ try { try {
/* 74 */ return toAjax(this.postService.deletePostByIds(ids)); return toAjax(this.postService.deletePostByIds(ids));
/* */ } }
/* 76 */ catch (Exception e) { catch (Exception e) {
/* */
/* 78 */ return error(e.getMessage()); return error(e.getMessage());
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"}) @GetMapping({"/add"})
/* */ public String add() { public String add() {
/* 88 */ return this.prefix + "/add"; return this.prefix + "/add";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:add"}) @RequiresPermissions({"system:post:add"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.INSERT) @Log(title = "岗位管理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"}) @PostMapping({"/add"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult addSave(@Validated Post post) { public AjaxResult addSave(@Validated Post post) {
/* 100 */ if ("1".equals(this.postService.checkPostNameUnique(post))) if ("1".equals(this.postService.checkPostNameUnique(post)))
/* */ { {
/* 102 */ return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在"); return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在");
/* */ } }
/* 104 */ if ("1".equals(this.postService.checkPostCodeUnique(post))) if ("1".equals(this.postService.checkPostCodeUnique(post)))
/* */ { {
/* 106 */ return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在"); return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
/* */ } }
/* 108 */ return toAjax(this.postService.insertPost(post)); return toAjax(this.postService.insertPost(post));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{postId}"}) @GetMapping({"/edit/{postId}"})
/* */ public String edit(@PathVariable("postId") Long postId, ModelMap mmap) { public String edit(@PathVariable("postId") Long postId, ModelMap mmap) {
/* 117 */ mmap.put("post", this.postService.selectPostById(postId)); mmap.put("post", this.postService.selectPostById(postId));
/* 118 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:edit"}) @RequiresPermissions({"system:post:edit"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.UPDATE) @Log(title = "岗位管理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"}) @PostMapping({"/edit"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult editSave(@Validated Post post) { public AjaxResult editSave(@Validated Post post) {
/* 130 */ if ("1".equals(this.postService.checkPostNameUnique(post))) if ("1".equals(this.postService.checkPostNameUnique(post)))
/* */ { {
/* 132 */ return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在"); return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在");
/* */ } }
/* 134 */ if ("1".equals(this.postService.checkPostCodeUnique(post))) if ("1".equals(this.postService.checkPostCodeUnique(post)))
/* */ { {
/* 136 */ return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在"); return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在");
/* */ } }
/* 138 */ return toAjax(this.postService.updatePost(post)); return toAjax(this.postService.updatePost(post));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkPostNameUnique"}) @PostMapping({"/checkPostNameUnique"})
/* */ @ResponseBody @ResponseBody
/* */ public String checkPostNameUnique(Post post) { public String checkPostNameUnique(Post post) {
/* 148 */ return this.postService.checkPostNameUnique(post); return this.postService.checkPostNameUnique(post);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkPostCodeUnique"}) @PostMapping({"/checkPostCodeUnique"})
/* */ @ResponseBody @ResponseBody
/* */ public String checkPostCodeUnique(Post post) { public String checkPostCodeUnique(Post post) {
/* 158 */ return this.postService.checkPostCodeUnique(post); return this.postService.checkPostCodeUnique(post);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\controller\PostController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\controller\PostController.class

@ -1,128 +1,128 @@
/* */ package com.archive.project.system.post.domain package com.archive.project.system.post.domain
; ;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType; import com.archive.framework.aspectj.lang.annotation.ColumnType;
import com.archive.framework.aspectj.lang.annotation.Excel; import com.archive.framework.aspectj.lang.annotation.Excel;
/* */ 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 Post public class Post
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
/* */ private Long postId; private Long postId;
/* */ @Excel(name = "岗位编码") @Excel(name = "岗位编码")
/* */ private String postCode; private String postCode;
/* */ @Excel(name = "岗位名称") @Excel(name = "岗位名称")
/* */ private String postName; private String postName;
/* */ @Excel(name = "岗位排序") @Excel(name = "岗位排序")
/* */ private String postSort; private String postSort;
/* */ @Excel(name = "状态", readConverterExp = "0=正常,1=停用") @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
/* */ private String status; private String status;
/* */ private boolean flag = false; private boolean flag = false;
/* */
/* */ public Long getPostId() { public Long getPostId() {
/* 44 */ return this.postId; return this.postId;
/* */ } }
/* */
/* */
/* */ public void setPostId(Long postId) { public void setPostId(Long postId) {
/* 49 */ this.postId = postId; this.postId = postId;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "岗位编码不能为空") @NotBlank(message = "岗位编码不能为空")
/* */ @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
/* */ public String getPostCode() { public String getPostCode() {
/* 56 */ return this.postCode; return this.postCode;
/* */ } }
/* */
/* */
/* */ public void setPostCode(String postCode) { public void setPostCode(String postCode) {
/* 61 */ this.postCode = postCode; this.postCode = postCode;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "岗位名称不能为空") @NotBlank(message = "岗位名称不能为空")
/* */ @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
/* */ public String getPostName() { public String getPostName() {
/* 68 */ return this.postName; return this.postName;
/* */ } }
/* */
/* */
/* */ public void setPostName(String postName) { public void setPostName(String postName) {
/* 73 */ this.postName = postName; this.postName = postName;
/* */ } }
/* */
/* */
/* */ @NotBlank(message = "显示顺序不能为空") @NotBlank(message = "显示顺序不能为空")
/* */ public String getPostSort() { public String getPostSort() {
/* 79 */ return this.postSort; return this.postSort;
/* */ } }
/* */
/* */
/* */ public void setPostSort(String postSort) { public void setPostSort(String postSort) {
/* 84 */ this.postSort = postSort; this.postSort = postSort;
/* */ } }
/* */
/* */
/* */ public String getStatus() { public String getStatus() {
/* 89 */ return this.status; return this.status;
/* */ } }
/* */
/* */
/* */ public void setStatus(String status) { public void setStatus(String status) {
/* 94 */ this.status = status; this.status = status;
/* */ } }
/* */
/* */
/* */ public boolean isFlag() { public boolean isFlag() {
/* 99 */ return this.flag; return this.flag;
/* */ } }
/* */
/* */
/* */ public void setFlag(boolean flag) { public void setFlag(boolean flag) {
/* 104 */ this.flag = flag; this.flag = flag;
/* */ } }
/* */
/* */ @Override @Override
/* */ public String toString() { public String toString() {
/* 109 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 110 */ .append("postId", getPostId()) .append("postId", getPostId())
/* 111 */ .append("postCode", getPostCode()) .append("postCode", getPostCode())
/* 112 */ .append("postName", getPostName()) .append("postName", getPostName())
/* 113 */ .append("postSort", getPostSort()) .append("postSort", getPostSort())
/* 114 */ .append("status", getStatus()) .append("status", getStatus())
/* 115 */ .append("createBy", getCreateBy()) .append("createBy", getCreateBy())
/* 116 */ .append("createTime", getCreateTime()) .append("createTime", getCreateTime())
/* 117 */ .append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
/* 118 */ .append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
/* 119 */ .append("remark", getRemark()) .append("remark", getRemark())
/* 120 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\domain\Post.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\domain\Post.class

@ -1,218 +1,218 @@
/* */ package com.archive.project.system.post.service package com.archive.project.system.post.service
; ;
/* */
/* */ import com.archive.common.exception.BusinessException; import com.archive.common.exception.BusinessException;
/* */ 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.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.post.domain.Post; import com.archive.project.system.post.domain.Post;
/* */ import com.archive.project.system.post.mapper.PostMapper; import com.archive.project.system.post.mapper.PostMapper;
/* */ import com.archive.project.system.post.service.IPostService; import com.archive.project.system.post.service.IPostService;
/* */ import com.archive.project.system.user.mapper.UserPostMapper; import com.archive.project.system.user.mapper.UserPostMapper;
/* */ 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 PostServiceImpl public class PostServiceImpl
/* */ implements IPostService implements IPostService
/* */ { {
/* */ @Autowired @Autowired
/* */ private PostMapper postMapper; private PostMapper postMapper;
/* */ @Autowired @Autowired
/* */ private UserPostMapper userPostMapper; private UserPostMapper userPostMapper;
/* */ @Autowired @Autowired
/* */ private ArchiveConfig archiveConfig; private ArchiveConfig archiveConfig;
/* */
/* */ public List<Post> selectPostList(Post post) { public List<Post> selectPostList(Post post) {
/* 44 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 45 */ return this.postMapper.selectPostList(post); return this.postMapper.selectPostList(post);
/* */ } }
/* 47 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 48 */ return this.postMapper.selectPostListSqlite(post); return this.postMapper.selectPostListSqlite(post);
/* */ } }
/* 50 */ return this.postMapper.selectPostList(post); return this.postMapper.selectPostList(post);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Post> selectPostAll() { public List<Post> selectPostAll() {
/* 63 */ return this.postMapper.selectPostAll(); return this.postMapper.selectPostAll();
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Post> selectPostsByUserId(Long userId) { public List<Post> selectPostsByUserId(Long userId) {
/* 75 */ List<Post> userPosts = this.postMapper.selectPostsByUserId(userId); List<Post> userPosts = this.postMapper.selectPostsByUserId(userId);
/* 76 */ List<Post> posts = this.postMapper.selectPostAll(); List<Post> posts = this.postMapper.selectPostAll();
/* 77 */ for (Post post : posts) { for (Post post : posts) {
/* */
/* 79 */ for (Post userRole : userPosts) { for (Post userRole : userPosts) {
/* */
/* 81 */ if (post.getPostId().longValue() == userRole.getPostId().longValue()) if (post.getPostId().longValue() == userRole.getPostId().longValue())
/* */ { {
/* 83 */ post.setFlag(true); post.setFlag(true);
/* */ } }
/* */ } }
/* */ } }
/* */
/* 88 */ return posts; return posts;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Post selectPostById(Long postId) { public Post selectPostById(Long postId) {
/* 100 */ return this.postMapper.selectPostById(postId); return this.postMapper.selectPostById(postId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePostByIds(String ids) throws BusinessException { public int deletePostByIds(String ids) throws BusinessException {
/* 112 */ Long[] postIds = Convert.toLongArray(ids); Long[] postIds = Convert.toLongArray(ids);
/* 113 */ for (Long postId : postIds) { for (Long postId : postIds) {
/* */
/* 115 */ Post post = selectPostById(postId); Post post = selectPostById(postId);
/* 116 */ if (countUserPostById(postId) > 0) if (countUserPostById(postId) > 0)
/* */ { {
/* 118 */ throw new BusinessException(String.format("%1$s已分配,不能删除", new Object[] { post.getPostName() })); throw new BusinessException(String.format("%1$s已分配,不能删除", new Object[] { post.getPostName() }));
/* */ } }
/* */ } }
/* 121 */ return this.postMapper.deletePostByIds(postIds); return this.postMapper.deletePostByIds(postIds);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertPost(Post post) { public int insertPost(Post post) {
/* 133 */ post.setCreateBy(ShiroUtils.getLoginName()); post.setCreateBy(ShiroUtils.getLoginName());
/* 134 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 135 */ return this.postMapper.insertPost(post); return this.postMapper.insertPost(post);
/* */ } }
/* 137 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 138 */ return this.postMapper.insertPostSqlite(post); return this.postMapper.insertPostSqlite(post);
/* */ } }
/* 140 */ return this.postMapper.insertPost(post); return this.postMapper.insertPost(post);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updatePost(Post post) { public int updatePost(Post post) {
/* 154 */ post.setUpdateBy(ShiroUtils.getLoginName()); post.setUpdateBy(ShiroUtils.getLoginName());
/* 155 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 156 */ return this.postMapper.updatePost(post); return this.postMapper.updatePost(post);
/* */ } }
/* 158 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 159 */ return this.postMapper.updatePostSqlite(post); return this.postMapper.updatePostSqlite(post);
/* */ } }
/* 161 */ return this.postMapper.updatePost(post); return this.postMapper.updatePost(post);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int countUserPostById(Long postId) { public int countUserPostById(Long postId) {
/* 175 */ return this.userPostMapper.countUserPostById(postId); return this.userPostMapper.countUserPostById(postId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkPostNameUnique(Post post) { public String checkPostNameUnique(Post post) {
/* 187 */ Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue()); Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
/* 188 */ Post info = this.postMapper.checkPostNameUnique(post.getPostName()); Post info = this.postMapper.checkPostNameUnique(post.getPostName());
/* 189 */ if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
/* */ { {
/* 191 */ return "1"; return "1";
/* */ } }
/* 193 */ return "0"; return "0";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkPostCodeUnique(Post post) { public String checkPostCodeUnique(Post post) {
/* 205 */ Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue()); Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
/* 206 */ Post info = this.postMapper.checkPostCodeUnique(post.getPostCode()); Post info = this.postMapper.checkPostCodeUnique(post.getPostCode());
/* 207 */ if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
/* */ { {
/* 209 */ return "1"; return "1";
/* */ } }
/* 211 */ return "0"; return "0";
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\service\PostServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\post\service\PostServiceImpl.class

@ -1,178 +1,178 @@
/* */ package com.archive.project.system.user.controller package com.archive.project.system.user.controller
; ;
/* */
/* */ import com.archive.common.utils.DateUtils; import com.archive.common.utils.DateUtils;
/* */ import com.archive.common.utils.file.FileUploadUtils; import com.archive.common.utils.file.FileUploadUtils;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.config.ArchiveConfig; import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.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.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import com.archive.project.system.user.service.IUserService; import com.archive.project.system.user.service.IUserService;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */ import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/system/user/profile"}) @RequestMapping({"/system/user/profile"})
/* */ public class ProfileController public class ProfileController
/* */ extends BaseController extends BaseController
/* */ { {
/* 34 */ private static final Logger log = LoggerFactory.getLogger(com.archive.project.system.user.controller.ProfileController.class); private static final Logger log = LoggerFactory.getLogger(com.archive.project.system.user.controller.ProfileController.class);
/* */
/* 36 */ private String prefix = "system/user/profile"; private String prefix = "system/user/profile";
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IUserService userService; private IUserService userService;
/* */
/* */
/* */ @Autowired @Autowired
/* */ private PasswordService passwordService; private PasswordService passwordService;
/* */
/* */
/* */
/* */ @GetMapping @GetMapping
/* */ public String profile(ModelMap mmap) { public String profile(ModelMap mmap) {
/* 50 */ User user = getSysUser(); User user = getSysUser();
/* 51 */ mmap.put("user", user); mmap.put("user", user);
/* 52 */ mmap.put("roleGroup", this.userService.selectUserRoleGroup(user.getUserId())); mmap.put("roleGroup", this.userService.selectUserRoleGroup(user.getUserId()));
/* 53 */ mmap.put("postGroup", this.userService.selectUserPostGroup(user.getUserId())); mmap.put("postGroup", this.userService.selectUserPostGroup(user.getUserId()));
/* 54 */ return this.prefix + "/profile"; return this.prefix + "/profile";
/* */ } }
/* */
/* */
/* */ @GetMapping({"/checkPassword"}) @GetMapping({"/checkPassword"})
/* */ @ResponseBody @ResponseBody
/* */ public boolean checkPassword(String password) { public boolean checkPassword(String password) {
/* 61 */ User user = getSysUser(); User user = getSysUser();
/* 62 */ if (this.passwordService.matches(user, password)) if (this.passwordService.matches(user, password))
/* */ { {
/* 64 */ return true; return true;
/* */ } }
/* 66 */ return false; return false;
/* */ } }
/* */
/* */
/* */ @GetMapping({"/resetPwd"}) @GetMapping({"/resetPwd"})
/* */ public String resetPwd(ModelMap mmap) { public String resetPwd(ModelMap mmap) {
/* 72 */ User user = getSysUser(); User user = getSysUser();
/* 73 */ mmap.put("user", this.userService.selectUserById(user.getUserId())); mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 74 */ return this.prefix + "/resetPwd"; return this.prefix + "/resetPwd";
/* */ } }
/* */
/* */
/* */ @Log(title = "重置密码", businessType = BusinessType.UPDATE) @Log(title = "重置密码", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/resetPwd"}) @PostMapping({"/resetPwd"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult resetPwd(String oldPassword, String newPassword) { public AjaxResult resetPwd(String oldPassword, String newPassword) {
/* 82 */ User user = getSysUser(); User user = getSysUser();
/* 83 */ if (!this.passwordService.matches(user, oldPassword)) if (!this.passwordService.matches(user, oldPassword))
/* */ { {
/* 85 */ return error("修改密码失败,旧密码错误"); return error("修改密码失败,旧密码错误");
/* */ } }
/* 87 */ if (this.passwordService.matches(user, newPassword)) if (this.passwordService.matches(user, newPassword))
/* */ { {
/* 89 */ return error("新密码不能与旧密码相同"); return error("新密码不能与旧密码相同");
/* */ } }
/* 91 */ user.setPassword(newPassword); user.setPassword(newPassword);
/* 92 */ user.setPwdUpdateDate(DateUtils.getNowDate()); user.setPwdUpdateDate(DateUtils.getNowDate());
/* 93 */ if (this.userService.resetUserPwd(user) > 0) { if (this.userService.resetUserPwd(user) > 0) {
/* */
/* 95 */ setSysUser(this.userService.selectUserById(user.getUserId())); setSysUser(this.userService.selectUserById(user.getUserId()));
/* 96 */ return success(); return success();
/* */ } }
/* 98 */ return error("修改密码异常,请联系管理员"); return error("修改密码异常,请联系管理员");
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit"}) @GetMapping({"/edit"})
/* */ public String edit(ModelMap mmap) { public String edit(ModelMap mmap) {
/* 107 */ User user = getSysUser(); User user = getSysUser();
/* 108 */ mmap.put("user", this.userService.selectUserById(user.getUserId())); mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 109 */ return this.prefix + "/edit"; return this.prefix + "/edit";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/avatar"}) @GetMapping({"/avatar"})
/* */ public String avatar(ModelMap mmap) { public String avatar(ModelMap mmap) {
/* 118 */ User user = getSysUser(); User user = getSysUser();
/* 119 */ mmap.put("user", this.userService.selectUserById(user.getUserId())); mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 120 */ return this.prefix + "/avatar"; return this.prefix + "/avatar";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "个人信息", businessType = BusinessType.UPDATE) @Log(title = "个人信息", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/update"}) @PostMapping({"/update"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult update(User user) { public AjaxResult update(User user) {
/* 131 */ User currentUser = getSysUser(); User currentUser = getSysUser();
/* 132 */ currentUser.setUserName(user.getUserName()); currentUser.setUserName(user.getUserName());
/* 133 */ currentUser.setEmail(user.getEmail()); currentUser.setEmail(user.getEmail());
/* 134 */ currentUser.setPhonenumber(user.getPhonenumber()); currentUser.setPhonenumber(user.getPhonenumber());
/* 135 */ currentUser.setSex(user.getSex()); currentUser.setSex(user.getSex());
/* 136 */ if (this.userService.updateUserInfo(currentUser) > 0) { if (this.userService.updateUserInfo(currentUser) > 0) {
/* */
/* 138 */ setSysUser(this.userService.selectUserById(currentUser.getUserId())); setSysUser(this.userService.selectUserById(currentUser.getUserId()));
/* 139 */ return success(); return success();
/* */ } }
/* 141 */ return error(); return error();
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "个人信息", businessType = BusinessType.UPDATE) @Log(title = "个人信息", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/updateAvatar"}) @PostMapping({"/updateAvatar"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult updateAvatar(@RequestParam("avatarfile") MultipartFile file) { public AjaxResult updateAvatar(@RequestParam("avatarfile") MultipartFile file) {
/* 152 */ User currentUser = getSysUser(); User currentUser = getSysUser();
/* */
/* */ try { try {
/* 155 */ if (!file.isEmpty()) { if (!file.isEmpty()) {
/* */
/* 157 */ String avatar = FileUploadUtils.upload(ArchiveConfig.getInstance().getAvatarPath(), file); String avatar = FileUploadUtils.upload(ArchiveConfig.getInstance().getAvatarPath(), file);
/* 158 */ currentUser.setAvatar(avatar); currentUser.setAvatar(avatar);
/* 159 */ if (this.userService.updateUserInfo(currentUser) > 0) { if (this.userService.updateUserInfo(currentUser) > 0) {
/* */
/* 161 */ setSysUser(this.userService.selectUserById(currentUser.getUserId())); setSysUser(this.userService.selectUserById(currentUser.getUserId()));
/* 162 */ return success(); return success();
/* */ } }
/* */ } }
/* 165 */ return error(); return error();
/* */ } }
/* 167 */ catch (Exception e) { catch (Exception e) {
/* */
/* 169 */ log.error("修改头像失败!", e); log.error("修改头像失败!", e);
/* 170 */ return error(e.getMessage()); return error(e.getMessage());
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\ProfileController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\ProfileController.class

@ -117,7 +117,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ([ /******/ ([
/* 0 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -368,7 +368,7 @@ const pdfjsBuild = '0974d6052';
} }
/***/ }), /***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -868,7 +868,7 @@ class PDFDateString {
exports.PDFDateString = PDFDateString; exports.PDFDateString = PDFDateString;
/***/ }), /***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1696,7 +1696,7 @@ const createObjectURL = function createObjectURLClosure() {
exports.createObjectURL = createObjectURL; exports.createObjectURL = createObjectURL;
/***/ }), /***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1707,7 +1707,7 @@ var _is_node = __w_pdfjs_require__(4);
; ;
/***/ }), /***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1721,7 +1721,7 @@ const isNodeJS = typeof process === "object" && process + "" === "[object proces
exports.isNodeJS = isNodeJS; exports.isNodeJS = isNodeJS;
/***/ }), /***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -3804,7 +3804,7 @@ const build = '0974d6052';
exports.build = build; exports.build = build;
/***/ }), /***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -4191,7 +4191,7 @@ class FontFaceObject {
exports.FontFaceObject = FontFaceObject; exports.FontFaceObject = FontFaceObject;
/***/ }), /***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -4216,7 +4216,7 @@ const apiCompatibilityParams = Object.freeze(compatibilityParams);
exports.apiCompatibilityParams = apiCompatibilityParams; exports.apiCompatibilityParams = apiCompatibilityParams;
/***/ }), /***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -6262,7 +6262,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
exports.CanvasGraphics = CanvasGraphics; exports.CanvasGraphics = CanvasGraphics;
/***/ }), /***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -6743,7 +6743,7 @@ var TilingPattern = function TilingPatternClosure() {
exports.TilingPattern = TilingPattern; exports.TilingPattern = TilingPattern;
/***/ }), /***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -6759,7 +6759,7 @@ GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ?
GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc; GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc;
/***/ }), /***/ }),
/* 11 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -7260,7 +7260,7 @@ class MessageHandler {
exports.MessageHandler = MessageHandler; exports.MessageHandler = MessageHandler;
/***/ }), /***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -7388,7 +7388,7 @@ class Metadata {
exports.Metadata = Metadata; exports.Metadata = Metadata;
/***/ }), /***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -7831,7 +7831,7 @@ class SimpleXMLParser extends XMLParserBase {
exports.SimpleXMLParser = SimpleXMLParser; exports.SimpleXMLParser = SimpleXMLParser;
/***/ }), /***/ }),
/* 14 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -8186,7 +8186,7 @@ class PDFDataTransportStreamRangeReader {
} }
/***/ }), /***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -8633,7 +8633,7 @@ var WebGLUtils = function WebGLUtilsClosure() {
}(); }();
/***/ }), /***/ }),
/* 16 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -9669,7 +9669,7 @@ class AnnotationLayer {
exports.AnnotationLayer = AnnotationLayer; exports.AnnotationLayer = AnnotationLayer;
/***/ }), /***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -10364,7 +10364,7 @@ var renderTextLayer = function renderTextLayerClosure() {
exports.renderTextLayer = renderTextLayer; exports.renderTextLayer = renderTextLayer;
/***/ }), /***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -11890,7 +11890,7 @@ exports.SVGGraphics = SVGGraphics;
} }
/***/ }), /***/ }),
/* 19 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -12359,7 +12359,7 @@ class PDFNodeStreamFsRangeReader extends BaseRangeReader {
} }
/***/ }), /***/ }),
/* 20 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -12451,7 +12451,7 @@ function validateResponseStatus(status) {
} }
/***/ }), /***/ }),
/* 21 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -12639,7 +12639,7 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
} }
/***/ }), /***/ }),
/* 22 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -13196,7 +13196,7 @@ class PDFNetworkStreamRangeRequestReader {
} }
/***/ }), /***/ }),
/* 23 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";

@ -117,7 +117,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ([ /******/ ([
/* 0 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -139,7 +139,7 @@ const pdfjsVersion = '2.5.207';
const pdfjsBuild = '0974d6052'; const pdfjsBuild = '0974d6052';
/***/ }), /***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -682,7 +682,7 @@ if (typeof window === "undefined" && !_is_node.isNodeJS && typeof self !== "unde
} }
/***/ }), /***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1510,7 +1510,7 @@ const createObjectURL = function createObjectURLClosure() {
exports.createObjectURL = createObjectURL; exports.createObjectURL = createObjectURL;
/***/ }), /***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1521,7 +1521,7 @@ var _is_node = __w_pdfjs_require__(4);
; ;
/***/ }), /***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1535,7 +1535,7 @@ const isNodeJS = typeof process === "object" && process + "" === "[object proces
exports.isNodeJS = isNodeJS; exports.isNodeJS = isNodeJS;
/***/ }), /***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -1853,7 +1853,7 @@ function clearPrimitiveCaches() {
} }
/***/ }), /***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -2060,7 +2060,7 @@ class NetworkPdfManager extends BasePdfManager {
exports.NetworkPdfManager = NetworkPdfManager; exports.NetworkPdfManager = NetworkPdfManager;
/***/ }), /***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -2673,7 +2673,7 @@ class ChunkedStreamManager {
exports.ChunkedStreamManager = ChunkedStreamManager; exports.ChunkedStreamManager = ChunkedStreamManager;
/***/ }), /***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -2810,7 +2810,7 @@ function isWhiteSpace(ch) {
} }
/***/ }), /***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -3559,7 +3559,7 @@ class PDFDocument {
exports.PDFDocument = PDFDocument; exports.PDFDocument = PDFDocument;
/***/ }), /***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -5817,7 +5817,7 @@ const ObjectLoader = function () {
exports.ObjectLoader = ObjectLoader; exports.ObjectLoader = ObjectLoader;
/***/ }), /***/ }),
/* 11 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -7124,7 +7124,7 @@ class Linearization {
exports.Linearization = Linearization; exports.Linearization = Linearization;
/***/ }), /***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -8426,7 +8426,7 @@ var NullStream = function NullStreamClosure() {
exports.NullStream = NullStream; exports.NullStream = NullStream;
/***/ }), /***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -8493,7 +8493,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
exports.CCITTFaxStream = CCITTFaxStream; exports.CCITTFaxStream = CCITTFaxStream;
/***/ }), /***/ }),
/* 14 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -9198,7 +9198,7 @@ const CCITTFaxDecoder = function CCITTFaxDecoder() {
exports.CCITTFaxDecoder = CCITTFaxDecoder; exports.CCITTFaxDecoder = CCITTFaxDecoder;
/***/ }), /***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -9282,7 +9282,7 @@ const Jbig2Stream = function Jbig2StreamClosure() {
exports.Jbig2Stream = Jbig2Stream; exports.Jbig2Stream = Jbig2Stream;
/***/ }), /***/ }),
/* 16 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -11490,7 +11490,7 @@ var Jbig2Image = function Jbig2ImageClosure() {
exports.Jbig2Image = Jbig2Image; exports.Jbig2Image = Jbig2Image;
/***/ }), /***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -11844,7 +11844,7 @@ class ArithmeticDecoder {
exports.ArithmeticDecoder = ArithmeticDecoder; exports.ArithmeticDecoder = ArithmeticDecoder;
/***/ }), /***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -11951,7 +11951,7 @@ const JpegStream = function JpegStreamClosure() {
exports.JpegStream = JpegStream; exports.JpegStream = JpegStream;
/***/ }), /***/ }),
/* 19 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -13192,7 +13192,7 @@ var JpegImage = function JpegImageClosure() {
exports.JpegImage = JpegImage; exports.JpegImage = JpegImage;
/***/ }), /***/ }),
/* 20 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -13279,7 +13279,7 @@ const JpxStream = function JpxStreamClosure() {
exports.JpxStream = JpxStream; exports.JpxStream = JpxStream;
/***/ }), /***/ }),
/* 21 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -15615,7 +15615,7 @@ var JpxImage = function JpxImageClosure() {
exports.JpxImage = JpxImage; exports.JpxImage = JpxImage;
/***/ }), /***/ }),
/* 22 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -17205,7 +17205,7 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() {
exports.CipherTransformFactory = CipherTransformFactory; exports.CipherTransformFactory = CipherTransformFactory;
/***/ }), /***/ }),
/* 23 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -18251,7 +18251,7 @@ const LabCS = function LabCSClosure() {
}(); }();
/***/ }), /***/ }),
/* 24 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -18406,7 +18406,7 @@ class GlobalImageCache {
exports.GlobalImageCache = GlobalImageCache; exports.GlobalImageCache = GlobalImageCache;
/***/ }), /***/ }),
/* 25 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -19489,7 +19489,7 @@ class FileAttachmentAnnotation extends MarkupAnnotation {
} }
/***/ }), /***/ }),
/* 26 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -20151,7 +20151,7 @@ var OperatorList = function OperatorListClosure() {
exports.OperatorList = OperatorList; exports.OperatorList = OperatorList;
/***/ }), /***/ }),
/* 27 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -23750,7 +23750,7 @@ var EvaluatorPreprocessor = function EvaluatorPreprocessorClosure() {
}(); }();
/***/ }), /***/ }),
/* 28 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -24660,7 +24660,7 @@ var CMapFactory = function CMapFactoryClosure() {
exports.CMapFactory = CMapFactory; exports.CMapFactory = CMapFactory;
/***/ }), /***/ }),
/* 29 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -27900,7 +27900,7 @@ var CFFFont = function CFFFontClosure() {
}(); }();
/***/ }), /***/ }),
/* 30 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -29703,7 +29703,7 @@ var CFFCompiler = function CFFCompilerClosure() {
exports.CFFCompiler = CFFCompiler; exports.CFFCompiler = CFFCompiler;
/***/ }), /***/ }),
/* 31 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -29721,7 +29721,7 @@ const ExpertSubsetCharset = [".notdef", "space", "dollaroldstyle", "dollarsuperi
exports.ExpertSubsetCharset = ExpertSubsetCharset; exports.ExpertSubsetCharset = ExpertSubsetCharset;
/***/ }), /***/ }),
/* 32 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -29775,7 +29775,7 @@ function getEncoding(encodingName) {
} }
/***/ }), /***/ }),
/* 33 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory; var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory;
@ -34312,7 +34312,7 @@ exports.getGlyphsUnicode = getGlyphsUnicode;
exports.getDingbatsGlyphsUnicode = getDingbatsGlyphsUnicode; exports.getDingbatsGlyphsUnicode = getDingbatsGlyphsUnicode;
/***/ }), /***/ }),
/* 34 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -35056,7 +35056,7 @@ const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)
exports.getSupplementalGlyphMapForCalibri = getSupplementalGlyphMapForCalibri; exports.getSupplementalGlyphMapForCalibri = getSupplementalGlyphMapForCalibri;
/***/ }), /***/ }),
/* 35 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory; var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory;
@ -37033,7 +37033,7 @@ exports.getNormalizedUnicodes = getNormalizedUnicodes;
exports.getUnicodeForGlyph = getUnicodeForGlyph; exports.getUnicodeForGlyph = getUnicodeForGlyph;
/***/ }), /***/ }),
/* 36 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -37999,7 +37999,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() {
exports.FontRendererFactory = FontRendererFactory; exports.FontRendererFactory = FontRendererFactory;
/***/ }), /***/ }),
/* 37 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -38710,7 +38710,7 @@ var Type1Parser = function Type1ParserClosure() {
exports.Type1Parser = Type1Parser; exports.Type1Parser = Type1Parser;
/***/ }), /***/ }),
/* 38 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -39649,7 +39649,7 @@ function getTilingPatternIR(operatorList, dict, args) {
} }
/***/ }), /***/ }),
/* 39 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -39961,7 +39961,7 @@ function bidi(str, startLevel, vertical) {
} }
/***/ }), /***/ }),
/* 40 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -42915,7 +42915,7 @@ var getMetrics = (0, _core_utils.getLookupTableFactory)(function (t) {
exports.getMetrics = getMetrics; exports.getMetrics = getMetrics;
/***/ }), /***/ }),
/* 41 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -44265,7 +44265,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() {
exports.PostScriptCompiler = PostScriptCompiler; exports.PostScriptCompiler = PostScriptCompiler;
/***/ }), /***/ }),
/* 42 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -44519,7 +44519,7 @@ class PostScriptLexer {
exports.PostScriptLexer = PostScriptLexer; exports.PostScriptLexer = PostScriptLexer;
/***/ }), /***/ }),
/* 43 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -44645,7 +44645,7 @@ class MurmurHash3_64 {
exports.MurmurHash3_64 = MurmurHash3_64; exports.MurmurHash3_64 = MurmurHash3_64;
/***/ }), /***/ }),
/* 44 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -45312,7 +45312,7 @@ var PDFImage = function PDFImageClosure() {
exports.PDFImage = PDFImage; exports.PDFImage = PDFImage;
/***/ }), /***/ }),
/* 45 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";
@ -45813,7 +45813,7 @@ class MessageHandler {
exports.MessageHandler = MessageHandler; exports.MessageHandler = MessageHandler;
/***/ }), /***/ }),
/* 46 */
/***/ (function(module, exports, __w_pdfjs_require__) { /***/ (function(module, exports, __w_pdfjs_require__) {
"use strict"; "use strict";

Loading…
Cancel
Save