feat:修改pdf处理

dev
wangxy 8 months ago
parent 9454e8418d
commit 9f0222e0a8

@ -1,93 +1,93 @@
/* */ package com.archive.common.ocr;
/* */
/* */ import java.awt.image.BufferedImage;
/* */ import java.io.File;
/* */ import javax.imageio.ImageIO;
/* */ import net.sourceforge.tess4j.Tesseract;
/* */ import net.sourceforge.tess4j.util.LoadLibs;
/* */ import org.apache.pdfbox.pdmodel.PDDocument;
/* */ import org.apache.pdfbox.rendering.PDFRenderer;
/* */ import org.apache.pdfbox.text.PDFTextStripper;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PdfOcr
/* */ {
/* */ public static String getTextFromPdf(String pdfPath, String pdfSpiltImagePath) throws Exception {
/* 29 */ File pdffile = new File(pdfPath);
/* 30 */ PDDocument doc = PDDocument.load(pdffile);
/* 31 */ String text = (new PDFTextStripper()).getText(doc);
/* 32 */ String result = text.replace("\n", "");
/* 33 */ result = result.replace("\r", "");
/* 34 */ if (result.equals("")) {
/* */
/* */
/* */
/* 38 */ String name = pdffile.getName().substring(0, pdffile.getName().lastIndexOf("."));
/* */
/* 40 */ String hz = pdffile.getName().substring(pdffile.getName().lastIndexOf(".") + 1);
/* 41 */ String imageRootPath = pdfSpiltImagePath + File.separator + name;
/* 42 */ File imagePathFile = new File(imageRootPath);
/* 43 */ if (!imagePathFile.exists()) {
/* 44 */ imagePathFile.mkdirs();
/* */ }
/* */
/* 47 */ pdfToImg(pdffile, imageRootPath, name);
/* 48 */ String res = "";
/* 49 */ for (int i = 0; i < (imagePathFile.listFiles()).length; i++) {
/* 50 */ Tesseract tesseract = new Tesseract();
/* */
/* 52 */ File tessDataFolder = LoadLibs.extractTessResources("tessdata");
/* 53 */ tesseract.setDatapath(tessDataFolder.getAbsolutePath());
/* */
/* 55 */ tesseract.setLanguage("chi_sim");
/* */
/* 57 */ String context = tesseract.doOCR(imagePathFile.listFiles()[i]);
/* */
/* 59 */ context = context.replaceAll("\\r|\\n", "-").replaceAll(" ", "");
/* 60 */ res = res + context + "\n";
/* */ }
/* */
/* 63 */ imagePathFile.setWritable(true, false);
/* 64 */ imagePathFile.delete();
/* 65 */ text = res;
/* */ }
/* 67 */ return text;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static void pdfToImg(File file, String imagePath, String fileName) {
/* */ try {
/* 76 */ PDDocument doc = PDDocument.load(file);
/* 77 */ PDFRenderer renderer = new PDFRenderer(doc);
/* 78 */ int pageCount = doc.getNumberOfPages();
/* */
/* 80 */ for (int i = 0; i < pageCount; i++) {
/* */
/* 82 */ BufferedImage image = renderer.renderImageWithDPI(i, 144.0F);
/* */
/* 84 */ ImageIO.write(image, "png", new File(imagePath + File.separator + fileName + i + ".png"));
/* */ }
/* 86 */ } catch (Exception e) {
/* 87 */ e.printStackTrace();
/* */ }
/* */ }
/* */ }
package com.archive.common.ocr;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import net.sourceforge.tess4j.Tesseract;
import net.sourceforge.tess4j.util.LoadLibs;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.PDFRenderer;
import org.apache.pdfbox.text.PDFTextStripper;
public class PdfOcr
{
public static String getTextFromPdf(String pdfPath, String pdfSpiltImagePath) throws Exception {
File pdffile = new File(pdfPath);
PDDocument doc = PDDocument.load(pdffile);
String text = (new PDFTextStripper()).getText(doc);
String result = text.replace("\n", "");
result = result.replace("\r", "");
if (result.equals("")) {
String name = pdffile.getName().substring(0, pdffile.getName().lastIndexOf("."));
String hz = pdffile.getName().substring(pdffile.getName().lastIndexOf(".") + 1);
String imageRootPath = pdfSpiltImagePath + File.separator + name;
File imagePathFile = new File(imageRootPath);
if (!imagePathFile.exists()) {
imagePathFile.mkdirs();
}
pdfToImg(pdffile, imageRootPath, name);
String res = "";
for (int i = 0; i < (imagePathFile.listFiles()).length; i++) {
Tesseract tesseract = new Tesseract();
File tessDataFolder = LoadLibs.extractTessResources("tessdata");
tesseract.setDatapath(tessDataFolder.getAbsolutePath());
tesseract.setLanguage("chi_sim");
String context = tesseract.doOCR(imagePathFile.listFiles()[i]);
context = context.replaceAll("\\r|\\n", "-").replaceAll(" ", "");
res = res + context + "\n";
}
imagePathFile.setWritable(true, false);
imagePathFile.delete();
text = res;
}
return text;
}
public static void pdfToImg(File file, String imagePath, String fileName) {
try {
PDDocument doc = PDDocument.load(file);
PDFRenderer renderer = new PDFRenderer(doc);
int pageCount = doc.getNumberOfPages();
for (int i = 0; i < pageCount; i++) {
BufferedImage image = renderer.renderImageWithDPI(i, 144.0F);
ImageIO.write(image, "png", new File(imagePath + File.separator + fileName + i + ".png"));
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
/* 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;
/* */
/* */ import com.archive.common.utils.MessageUtils;
/* */ import org.apache.commons.lang3.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PermissionUtils
/* */ {
/* */ public static final String VIEW_PERMISSION = "no.view.permission";
/* */ public static final String CREATE_PERMISSION = "no.create.permission";
/* */ public static final String UPDATE_PERMISSION = "no.update.permission";
/* */ public static final String DELETE_PERMISSION = "no.delete.permission";
/* */ public static final String EXPORT_PERMISSION = "no.export.permission";
/* */ public static final String PERMISSION = "no.permission";
/* */
/* */ public static String getMsg(String permissionsStr) {
/* 52 */ String permission = StringUtils.substringBetween(permissionsStr, "[", "]");
/* 53 */ String msg = MessageUtils.message("no.permission", new Object[] { permission });
/* 54 */ if (StringUtils.endsWithIgnoreCase(permission, "add")) {
/* */
/* 56 */ msg = MessageUtils.message("no.create.permission", new Object[] { permission });
/* */ }
/* 58 */ else if (StringUtils.endsWithIgnoreCase(permission, "edit")) {
/* */
/* 60 */ msg = MessageUtils.message("no.update.permission", new Object[] { permission });
/* */ }
/* 62 */ else if (StringUtils.endsWithIgnoreCase(permission, "remove")) {
/* */
/* 64 */ msg = MessageUtils.message("no.delete.permission", new Object[] { permission });
/* */ }
/* 66 */ else if (StringUtils.endsWithIgnoreCase(permission, "export")) {
/* */
/* 68 */ msg = MessageUtils.message("no.export.permission", new Object[] { permission });
/* */ }
/* 70 */ else if (StringUtils.endsWithAny(permission, (CharSequence[])new String[] { "view", "list" })) {
/* */
/* */
/* 73 */ msg = MessageUtils.message("no.view.permission", new Object[] { permission });
/* */ }
/* 75 */ return msg;
/* */ }
/* */ }
package com.archive.common.utils.security;
import com.archive.common.utils.MessageUtils;
import org.apache.commons.lang3.StringUtils;
public class PermissionUtils
{
public static final String VIEW_PERMISSION = "no.view.permission";
public static final String CREATE_PERMISSION = "no.create.permission";
public static final String UPDATE_PERMISSION = "no.update.permission";
public static final String DELETE_PERMISSION = "no.delete.permission";
public static final String EXPORT_PERMISSION = "no.export.permission";
public static final String PERMISSION = "no.permission";
public static String getMsg(String permissionsStr) {
String permission = StringUtils.substringBetween(permissionsStr, "[", "]");
String msg = MessageUtils.message("no.permission", new Object[] { permission });
if (StringUtils.endsWithIgnoreCase(permission, "add")) {
msg = MessageUtils.message("no.create.permission", new Object[] { permission });
}
else if (StringUtils.endsWithIgnoreCase(permission, "edit")) {
msg = MessageUtils.message("no.update.permission", new Object[] { permission });
}
else if (StringUtils.endsWithIgnoreCase(permission, "remove")) {
msg = MessageUtils.message("no.delete.permission", new Object[] { permission });
}
else if (StringUtils.endsWithIgnoreCase(permission, "export")) {
msg = MessageUtils.message("no.export.permission", new Object[] { permission });
}
else if (StringUtils.endsWithAny(permission, (CharSequence[])new String[] { "view", "list" })) {
msg = MessageUtils.message("no.view.permission", new Object[] { permission });
}
return msg;
}
}
/* 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;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum OperatorType
/* */ {
/* 14 */ OTHER,
/* */
/* */
/* */
/* */
/* 19 */ MANAGE,
/* */
/* */
/* */
/* */
/* 24 */ MOBILE;
/* */ }
package com.archive.framework.aspectj.lang.enums;
public enum OperatorType
{
OTHER,
MANAGE,
MOBILE;
}
/* 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.UserPasswordRetryLimitExceedException;
/* */ import com.archive.common.utils.MessageUtils;
/* */ import com.archive.framework.manager.AsyncManager;
/* */ import com.archive.framework.manager.factory.AsyncFactory;
/* */ import com.archive.project.system.user.domain.User;
/* */ import java.util.concurrent.atomic.AtomicInteger;
/* */ import javax.annotation.PostConstruct;
/* */ import org.apache.shiro.cache.Cache;
/* */ import org.apache.shiro.cache.CacheManager;
/* */ import org.apache.shiro.crypto.hash.Md5Hash;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.beans.factory.annotation.Value;
/* */ import org.springframework.stereotype.Component;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Component
/* */ public class PasswordService
/* */ {
/* */ @Autowired
/* */ private CacheManager cacheManager;
/* */ private Cache<String, AtomicInteger> loginRecordCache;
/* */ @Value("${user.password.maxRetryCount}")
/* */ private String maxRetryCount;
/* */
/* */ @PostConstruct
/* */ public void init() {
/* 39 */ this.loginRecordCache = this.cacheManager.getCache("loginRecordCache");
/* */ }
/* */
/* */
/* */ public void validate(User user, String password) {
/* 44 */ String loginName = user.getLoginName();
/* */
/* 46 */ AtomicInteger retryCount = (AtomicInteger)this.loginRecordCache.get(loginName);
/* */
/* 48 */ if (retryCount == null) {
/* */
/* 50 */ retryCount = new AtomicInteger(0);
/* 51 */ this.loginRecordCache.put(loginName, retryCount);
/* */ }
/* 53 */ 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]));
/* 56 */ throw new UserPasswordRetryLimitExceedException(Integer.valueOf(this.maxRetryCount).intValue());
/* */ }
/* */
/* 59 */ 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]));
/* 62 */ this.loginRecordCache.put(loginName, retryCount);
/* 63 */ throw new UserPasswordNotMatchException();
/* */ }
/* */
/* */
/* 67 */ clearLoginRecordCache(loginName);
/* */ }
/* */
/* */
/* */
/* */ public boolean matches(User user, String newPassword) {
/* 73 */ return user.getPassword().equals(encryptPassword(user.getLoginName(), newPassword, user.getSalt()));
/* */ }
/* */
/* */
/* */ public void clearLoginRecordCache(String loginName) {
/* 78 */ this.loginRecordCache.remove(loginName);
/* */ }
/* */
/* */
/* */ public String encryptPassword(String loginName, String password, String salt) {
/* 83 */ return (new Md5Hash(loginName + password + salt)).toHex();
/* */ }
/* */
/* */
/* */ public static void main(String[] args) {
/* 88 */ 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"));
/* */ }
/* */ }
import com.archive.common.exception.user.UserPasswordNotMatchException;
import com.archive.common.exception.user.UserPasswordRetryLimitExceedException;
import com.archive.common.utils.MessageUtils;
import com.archive.framework.manager.AsyncManager;
import com.archive.framework.manager.factory.AsyncFactory;
import com.archive.project.system.user.domain.User;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.PostConstruct;
import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheManager;
import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class PasswordService
{
@Autowired
private CacheManager cacheManager;
private Cache<String, AtomicInteger> loginRecordCache;
@Value("${user.password.maxRetryCount}")
private String maxRetryCount;
@PostConstruct
public void init() {
this.loginRecordCache = this.cacheManager.getCache("loginRecordCache");
}
public void validate(User user, String password) {
String loginName = user.getLoginName();
AtomicInteger retryCount = (AtomicInteger)this.loginRecordCache.get(loginName);
if (retryCount == null) {
retryCount = new AtomicInteger(0);
this.loginRecordCache.put(loginName, retryCount);
}
if (retryCount.incrementAndGet() > Integer.valueOf(this.maxRetryCount).intValue()) {
AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.exceed", new Object[] { this.maxRetryCount }), new Object[0]));
throw new UserPasswordRetryLimitExceedException(Integer.valueOf(this.maxRetryCount).intValue());
}
if (!matches(user, password)) {
AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, "Error", MessageUtils.message("user.password.retry.limit.count", new Object[] { retryCount }), new Object[0]));
this.loginRecordCache.put(loginName, retryCount);
throw new UserPasswordNotMatchException();
}
clearLoginRecordCache(loginName);
}
public boolean matches(User user, String newPassword) {
return user.getPassword().equals(encryptPassword(user.getLoginName(), newPassword, user.getSalt()));
}
public void clearLoginRecordCache(String loginName) {
this.loginRecordCache.remove(loginName);
}
public String encryptPassword(String loginName, String password, String salt) {
return (new Md5Hash(loginName + password + salt)).toHex();
}
public static void main(String[] args) {
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("ry", "admin123", "222222"));
}
}
/* 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.bean.BeanUtils;
/* */ import com.archive.common.utils.spring.SpringUtils;
/* */ import com.archive.project.monitor.online.domain.OnlineSession;
/* */ import com.archive.project.monitor.online.domain.UserOnline;
/* */ import com.archive.project.monitor.online.service.UserOnlineServiceImpl;
/* */ import java.util.ArrayList;
/* */ import java.util.Collection;
/* */ import java.util.Date;
/* */ import java.util.List;
/* */ import org.apache.commons.lang3.time.DateUtils;
/* */ import org.apache.shiro.session.InvalidSessionException;
/* */ import org.apache.shiro.session.Session;
/* */ import org.apache.shiro.session.mgt.DefaultSessionKey;
/* */ import org.apache.shiro.session.mgt.SessionKey;
/* */ import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class OnlineWebSessionManager
/* */ extends DefaultWebSessionManager
/* */ {
/* 31 */ 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 {
/* 36 */ super.setAttribute(sessionKey, attributeKey, value);
/* 37 */ if (value != null && needMarkAttributeChanged(attributeKey)) {
/* */
/* 39 */ OnlineSession session = getOnlineSession(sessionKey);
/* 40 */ session.markAttributeChanged();
/* */ }
/* */ }
/* */
/* */
/* */ private boolean needMarkAttributeChanged(Object attributeKey) {
/* 46 */ if (attributeKey == null)
/* */ {
/* 48 */ return false;
/* */ }
/* 50 */ String attributeKeyStr = attributeKey.toString();
/* */
/* 52 */ if (attributeKeyStr.startsWith("org.springframework"))
/* */ {
/* 54 */ return false;
/* */ }
/* 56 */ if (attributeKeyStr.startsWith("javax.servlet"))
/* */ {
/* 58 */ return false;
/* */ }
/* 60 */ if (attributeKeyStr.equals("username"))
/* */ {
/* 62 */ return false;
/* */ }
/* 64 */ return true;
/* */ }
/* */
/* */
/* */
/* */ public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException {
/* 70 */ Object removed = super.removeAttribute(sessionKey, attributeKey);
/* 71 */ if (removed != null) {
/* */
/* 73 */ OnlineSession s = getOnlineSession(sessionKey);
/* 74 */ s.markAttributeChanged();
/* */ }
/* */
/* 77 */ return removed;
/* */ }
/* */
/* */
/* */ public OnlineSession getOnlineSession(SessionKey sessionKey) {
/* 82 */ OnlineSession session = null;
/* 83 */ Object obj = doGetSession(sessionKey);
/* 84 */ if (StringUtils.isNotNull(obj)) {
/* */
/* 86 */ session = new OnlineSession();
/* 87 */ BeanUtils.copyBeanProp(session, obj);
/* */ }
/* 89 */ return session;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void validateSessions() {
/* 98 */ if (log.isInfoEnabled())
/* */ {
/* 100 */ log.info("invalidation sessions...");
/* */ }
/* */
/* 103 */ int invalidCount = 0;
/* */
/* 105 */ int timeout = (int)getGlobalSessionTimeout();
/* 106 */ if (timeout < 0) {
/* */ return;
/* */ }
/* */
/* */
/* 111 */ Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout);
/* 112 */ UserOnlineServiceImpl userOnlineService = (UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class);
/* 113 */ List<UserOnline> userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate);
/* */
/* 115 */ List<String> needOfflineIdList = new ArrayList<>();
/* 116 */ for (UserOnline userOnline : userOnlineList) {
/* */
/* */
/* */ try {
/* 120 */ DefaultSessionKey defaultSessionKey = new DefaultSessionKey(userOnline.getSessionId());
/* 121 */ Session session = retrieveSession((SessionKey)defaultSessionKey);
/* 122 */ if (session != null)
/* */ {
/* 124 */ throw new InvalidSessionException();
/* */ }
/* */ }
/* 127 */ catch (InvalidSessionException e) {
/* */
/* 129 */ if (log.isDebugEnabled()) {
/* */
/* 131 */ boolean expired = e instanceof org.apache.shiro.session.ExpiredSessionException;
/* 132 */ String msg = "Invalidated session with id [" + userOnline.getSessionId() + "]" + (expired ? " (expired)" : " (stopped)");
/* */
/* 134 */ log.debug(msg);
/* */ }
/* 136 */ invalidCount++;
/* 137 */ needOfflineIdList.add(userOnline.getSessionId());
/* 138 */ userOnlineService.removeUserCache(userOnline.getLoginName(), userOnline.getSessionId());
/* */ }
/* */ }
/* */
/* 142 */ if (needOfflineIdList.size() > 0) {
/* */
/* */ try {
/* */
/* 146 */ userOnlineService.batchDeleteOnline(needOfflineIdList);
/* */ }
/* 148 */ catch (Exception e) {
/* */
/* 150 */ log.error("batch delete db session error.", e);
/* */ }
/* */ }
/* */
/* 154 */ if (log.isInfoEnabled()) {
/* */
/* 156 */ String msg = "Finished invalidation session.";
/* 157 */ if (invalidCount > 0) {
/* */
/* 159 */ msg = msg + " [" + invalidCount + "] sessions were stopped.";
/* */ }
/* */ else {
/* */
/* 163 */ msg = msg + " No sessions were stopped.";
/* */ }
/* 165 */ log.info(msg);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */ protected Collection<Session> getActiveSessions() {
/* 173 */ throw new UnsupportedOperationException("getActiveSessions method not supported");
/* */ }
/* */ }
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.bean.BeanUtils;
import com.archive.common.utils.spring.SpringUtils;
import com.archive.project.monitor.online.domain.OnlineSession;
import com.archive.project.monitor.online.domain.UserOnline;
import com.archive.project.monitor.online.service.UserOnlineServiceImpl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.time.DateUtils;
import org.apache.shiro.session.InvalidSessionException;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.DefaultSessionKey;
import org.apache.shiro.session.mgt.SessionKey;
import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class OnlineWebSessionManager
extends DefaultWebSessionManager
{
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 {
super.setAttribute(sessionKey, attributeKey, value);
if (value != null && needMarkAttributeChanged(attributeKey)) {
OnlineSession session = getOnlineSession(sessionKey);
session.markAttributeChanged();
}
}
private boolean needMarkAttributeChanged(Object attributeKey) {
if (attributeKey == null)
{
return false;
}
String attributeKeyStr = attributeKey.toString();
if (attributeKeyStr.startsWith("org.springframework"))
{
return false;
}
if (attributeKeyStr.startsWith("javax.servlet"))
{
return false;
}
if (attributeKeyStr.equals("username"))
{
return false;
}
return true;
}
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException {
Object removed = super.removeAttribute(sessionKey, attributeKey);
if (removed != null) {
OnlineSession s = getOnlineSession(sessionKey);
s.markAttributeChanged();
}
return removed;
}
public OnlineSession getOnlineSession(SessionKey sessionKey) {
OnlineSession session = null;
Object obj = doGetSession(sessionKey);
if (StringUtils.isNotNull(obj)) {
session = new OnlineSession();
BeanUtils.copyBeanProp(session, obj);
}
return session;
}
public void validateSessions() {
if (log.isInfoEnabled())
{
log.info("invalidation sessions...");
}
int invalidCount = 0;
int timeout = (int)getGlobalSessionTimeout();
if (timeout < 0) {
return;
}
Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout);
UserOnlineServiceImpl userOnlineService = (UserOnlineServiceImpl)SpringUtils.getBean(UserOnlineServiceImpl.class);
List<UserOnline> userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate);
List<String> needOfflineIdList = new ArrayList<>();
for (UserOnline userOnline : userOnlineList) {
try {
DefaultSessionKey defaultSessionKey = new DefaultSessionKey(userOnline.getSessionId());
Session session = retrieveSession((SessionKey)defaultSessionKey);
if (session != null)
{
throw new InvalidSessionException();
}
}
catch (InvalidSessionException e) {
if (log.isDebugEnabled()) {
boolean expired = e instanceof org.apache.shiro.session.ExpiredSessionException;
String msg = "Invalidated session with id [" + userOnline.getSessionId() + "]" + (expired ? " (expired)" : " (stopped)");
log.debug(msg);
}
invalidCount++;
needOfflineIdList.add(userOnline.getSessionId());
userOnlineService.removeUserCache(userOnline.getLoginName(), userOnline.getSessionId());
}
}
if (needOfflineIdList.size() > 0) {
try {
userOnlineService.batchDeleteOnline(needOfflineIdList);
}
catch (Exception e) {
log.error("batch delete db session error.", e);
}
}
if (log.isInfoEnabled()) {
String msg = "Finished invalidation session.";
if (invalidCount > 0) {
msg = msg + " [" + invalidCount + "] sessions were stopped.";
}
else {
msg = msg + " No sessions were stopped.";
}
log.info(msg);
}
}
protected Collection<Session> getActiveSessions() {
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

@ -1,76 +1,76 @@
/* */ package com.archive.framework.web.page
package com.archive.framework.web.page
;
/* */
/* */ import com.archive.common.utils.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PageDomain
/* */ {
/* */ private Integer pageNum;
/* */ private Integer pageSize;
/* */ private String orderByColumn;
/* 22 */ private String isAsc = "asc";
/* */
/* */
/* */ public String getOrderBy() {
/* 26 */ if (StringUtils.isEmpty(this.orderByColumn))
/* */ {
/* 28 */ return "";
/* */ }
/* 30 */ return StringUtils.toUnderScoreCase(this.orderByColumn) + " " + this.isAsc;
/* */ }
/* */
/* */
/* */ public Integer getPageNum() {
/* 35 */ return this.pageNum;
/* */ }
/* */
/* */
/* */ public void setPageNum(Integer pageNum) {
/* 40 */ this.pageNum = pageNum;
/* */ }
/* */
/* */
/* */ public Integer getPageSize() {
/* 45 */ return this.pageSize;
/* */ }
/* */
/* */
/* */ public void setPageSize(Integer pageSize) {
/* 50 */ this.pageSize = pageSize;
/* */ }
/* */
/* */
/* */ public String getOrderByColumn() {
/* 55 */ return this.orderByColumn;
/* */ }
/* */
/* */
/* */ public void setOrderByColumn(String orderByColumn) {
/* 60 */ this.orderByColumn = orderByColumn;
/* */ }
/* */
/* */
/* */ public String getIsAsc() {
/* 65 */ return this.isAsc;
/* */ }
/* */
/* */
/* */ public void setIsAsc(String isAsc) {
/* 70 */ this.isAsc = isAsc;
/* */ }
/* */ }
import com.archive.common.utils.StringUtils;
public class PageDomain
{
private Integer pageNum;
private Integer pageSize;
private String orderByColumn;
private String isAsc = "asc";
public String getOrderBy() {
if (StringUtils.isEmpty(this.orderByColumn))
{
return "";
}
return StringUtils.toUnderScoreCase(this.orderByColumn) + " " + this.isAsc;
}
public Integer getPageNum() {
return this.pageNum;
}
public void setPageNum(Integer pageNum) {
this.pageNum = pageNum;
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public String getOrderByColumn() {
return this.orderByColumn;
}
public void setOrderByColumn(String orderByColumn) {
this.orderByColumn = orderByColumn;
}
public String getIsAsc() {
return this.isAsc;
}
public void setIsAsc(String isAsc) {
this.isAsc = isAsc;
}
}
/* 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.Introspector;
/* */ import java.beans.PropertyDescriptor;
/* */ import org.apache.shiro.SecurityUtils;
/* */ import org.apache.shiro.subject.Subject;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service("permission")
/* */ public class PermissionService
/* */ {
/* 21 */ private static final Logger log = LoggerFactory.getLogger(com.archive.framework.web.service.PermissionService.class);
/* */
/* */
/* */
/* */ public static final String NOACCESS = "hidden";
/* */
/* */
/* */
/* */ private static final String ROLE_DELIMETER = ",";
/* */
/* */
/* */
/* */ private static final String PERMISSION_DELIMETER = ",";
/* */
/* */
/* */
/* */ public String hasPermi(String permission) {
/* 38 */ return isPermitted(permission) ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String lacksPermi(String permission) {
/* 49 */ return isLacksPermitted(permission) ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasAnyPermi(String permissions) {
/* 60 */ return hasAnyPermissions(permissions, ",") ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasRole(String role) {
/* 71 */ return isRole(role) ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String lacksRole(String role) {
/* 82 */ return isLacksRole(role) ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String hasAnyRoles(String roles) {
/* 93 */ return isAnyRoles(roles, ",") ? "" : "hidden";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isUser() {
/* 103 */ Subject subject = SecurityUtils.getSubject();
/* 104 */ return (subject != null && subject.getPrincipal() != null);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isPermitted(String permission) {
/* 115 */ return SecurityUtils.getSubject().isPermitted(permission);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isLacksPermitted(String permission) {
/* 126 */ return (isPermitted(permission) != true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean hasAnyPermissions(String permissions) {
/* 137 */ return hasAnyPermissions(permissions, ",");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean hasAnyPermissions(String permissions, String delimeter) {
/* 149 */ Subject subject = SecurityUtils.getSubject();
/* */
/* 151 */ if (subject != null) {
/* */
/* 153 */ if (delimeter == null || delimeter.length() == 0)
/* */ {
/* 155 */ delimeter = ",";
/* */ }
/* */
/* 158 */ for (String permission : permissions.split(delimeter)) {
/* */
/* 160 */ if (permission != null && subject.isPermitted(permission.trim()) == true)
/* */ {
/* 162 */ return true;
/* */ }
/* */ }
/* */ }
/* */
/* 167 */ return false;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isRole(String role) {
/* 178 */ return SecurityUtils.getSubject().hasRole(role);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isLacksRole(String role) {
/* 189 */ return (isRole(role) != true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isAnyRoles(String roles) {
/* 200 */ return isAnyRoles(roles, ",");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean isAnyRoles(String roles, String delimeter) {
/* 212 */ Subject subject = SecurityUtils.getSubject();
/* 213 */ if (subject != null) {
/* */
/* 215 */ if (delimeter == null || delimeter.length() == 0)
/* */ {
/* 217 */ delimeter = ",";
/* */ }
/* */
/* 220 */ for (String role : roles.split(delimeter)) {
/* */
/* 222 */ if (subject.hasRole(role.trim()) == true)
/* */ {
/* 224 */ return true;
/* */ }
/* */ }
/* */ }
/* */
/* 229 */ return false;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Object getPrincipalProperty(String property) {
/* 240 */ Subject subject = SecurityUtils.getSubject();
/* 241 */ if (subject != null) {
/* */
/* 243 */ Object principal = subject.getPrincipal();
/* */
/* */ try {
/* 246 */ BeanInfo bi = Introspector.getBeanInfo(principal.getClass());
/* 247 */ for (PropertyDescriptor pd : bi.getPropertyDescriptors())
/* */ {
/* 249 */ if (pd.getName().equals(property) == true)
/* */ {
/* 251 */ return pd.getReadMethod().invoke(principal, (Object[])null);
/* */ }
/* */ }
/* */
/* 255 */ } catch (Exception e) {
/* */
/* 257 */ log.error("Error reading property [{}] from principal of type [{}]", property, principal.getClass().getName());
/* */ }
/* */ }
/* 260 */ return null;
/* */ }
/* */ }
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
@Service("permission")
public class PermissionService
{
private static final Logger log = LoggerFactory.getLogger(com.archive.framework.web.service.PermissionService.class);
public static final String NOACCESS = "hidden";
private static final String ROLE_DELIMETER = ",";
private static final String PERMISSION_DELIMETER = ",";
public String hasPermi(String permission) {
return isPermitted(permission) ? "" : "hidden";
}
public String lacksPermi(String permission) {
return isLacksPermitted(permission) ? "" : "hidden";
}
public String hasAnyPermi(String permissions) {
return hasAnyPermissions(permissions, ",") ? "" : "hidden";
}
public String hasRole(String role) {
return isRole(role) ? "" : "hidden";
}
public String lacksRole(String role) {
return isLacksRole(role) ? "" : "hidden";
}
public String hasAnyRoles(String roles) {
return isAnyRoles(roles, ",") ? "" : "hidden";
}
public boolean isUser() {
Subject subject = SecurityUtils.getSubject();
return (subject != null && subject.getPrincipal() != null);
}
public boolean isPermitted(String permission) {
return SecurityUtils.getSubject().isPermitted(permission);
}
public boolean isLacksPermitted(String permission) {
return (isPermitted(permission) != true);
}
public boolean hasAnyPermissions(String permissions) {
return hasAnyPermissions(permissions, ",");
}
public boolean hasAnyPermissions(String permissions, String delimeter) {
Subject subject = SecurityUtils.getSubject();
if (subject != null) {
if (delimeter == null || delimeter.length() == 0)
{
delimeter = ",";
}
for (String permission : permissions.split(delimeter)) {
if (permission != null && subject.isPermitted(permission.trim()) == true)
{
return true;
}
}
}
return false;
}
public boolean isRole(String role) {
return SecurityUtils.getSubject().hasRole(role);
}
public boolean isLacksRole(String role) {
return (isRole(role) != true);
}
public boolean isAnyRoles(String roles) {
return isAnyRoles(roles, ",");
}
public boolean isAnyRoles(String roles, String delimeter) {
Subject subject = SecurityUtils.getSubject();
if (subject != null) {
if (delimeter == null || delimeter.length() == 0)
{
delimeter = ",";
}
for (String role : roles.split(delimeter)) {
if (subject.hasRole(role.trim()) == true)
{
return true;
}
}
}
return false;
}
public Object getPrincipalProperty(String property) {
Subject subject = SecurityUtils.getSubject();
if (subject != null) {
Object principal = subject.getPrincipal();
try {
BeanInfo bi = Introspector.getBeanInfo(principal.getClass());
for (PropertyDescriptor pd : bi.getPropertyDescriptors())
{
if (pd.getName().equals(property) == true)
{
return pd.getReadMethod().invoke(principal, (Object[])null);
}
}
} catch (Exception e) {
log.error("Error reading property [{}] from principal of type [{}]", property, principal.getClass().getName());
}
}
return null;
}
}
/* 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.page.TableDataInfo;
/* */ import com.archive.project.dajs.mldr.service.IMldrService;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.io.IOException;
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dajs/qwgj"})
/* */ public class QwgjController
/* */ extends BaseController
/* */ {
/* 30 */ private String prefix = "dajs/qwgj";
/* */
/* */
/* */ @Autowired
/* */ private IMldrService mldrService;
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */
/* */ @RequiresPermissions({"dajs:qwgj"})
/* */ @GetMapping
/* */ public String mldr(ModelMap mmap) {
/* 43 */ return this.prefix + "/qwgj";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(String key, int page, int size) throws IOException {
/* 55 */ startPage();
/* */
/* 57 */ List<Object> list = new ArrayList();
/* 58 */ return getDataTable(list);
/* */ }
/* */ }
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dajs.mldr.service.IMldrService;
import com.archive.project.system.dict.service.IDictTypeService;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dajs/qwgj"})
public class QwgjController
extends BaseController
{
private String prefix = "dajs/qwgj";
@Autowired
private IMldrService mldrService;
@Autowired
private IDictTypeService dictTypeService;
@RequiresPermissions({"dajs:qwgj"})
@GetMapping
public String mldr(ModelMap mmap) {
return this.prefix + "/qwgj";
}
@GetMapping({"/list"})
@ResponseBody
public TableDataInfo list(String key, int page, int size) throws IOException {
startPage();
List<Object> list = new ArrayList();
return getDataTable(list);
}
}
/* 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.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.project.dajs.jsgl.service.IJsglService;
/* */ import com.archive.project.dajs.recycle.service.IRecycleService;
/* */ import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree;
/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
/* */ import com.archive.project.system.config.service.IConfigService;
/* */ import com.archive.project.system.dict.domain.DictData;
/* */ import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.validation.annotation.Validated;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dajs/recycle"})
/* */ public class RecycleController
/* */ extends BaseController
/* */ {
/* 38 */ private String prefix = "dajs/recycle";
/* */
/* */
/* */ @Autowired
/* */ private IArchiveTypeService archiveTypeService;
/* */
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */ @Autowired
/* */ private IJsglService jsglService;
/* */
/* */ @Autowired
/* */ private IRecycleService recycleService;
/* */
/* */ @Autowired
/* */ private IConfigService configService;
/* */
/* */
/* */ @RequiresPermissions({"dajs:recycle"})
/* */ @GetMapping
/* */ public String recycle(ModelMap mmap) {
/* 61 */ List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData();
/* 62 */ if (ztrees != null && ztrees.size() > 2) {
/* 63 */ mmap.put("firstNode", ztrees.get(1));
/* */ } else {
/* 65 */ mmap.put("firstNode", null);
/* */ }
/* */
/* */
/* 69 */ DictType dictType = new DictType(); dictType.setLabel("column_bind");
/* 70 */ List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
/* 71 */ Map<String, List<DictData>> dictDataMap = new HashMap<>();
/* 72 */ for (DictType dictTypeTemp : dictTypeList) {
/* 73 */ List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
/* 74 */ dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
/* */ }
/* 76 */ mmap.put("dictDataMap", dictDataMap);
/* 77 */ return this.prefix + "/recycle";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/detail/{archiveId}/{type}/{id}"})
/* */ public String detail(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type, @PathVariable("id") String id, ModelMap mmap) {
/* 90 */ mmap.put("archiveTypeId", archiveId);
/* 91 */ mmap.put("type", type);
/* 92 */ mmap.put("id", id);
/* 93 */ return this.prefix + "/detail";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/appendAddForm/{archiveId}/{type}"})
/* */ @ResponseBody
/* */ public String appendAddForm(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type) {
/* 109 */ return this.jsglService.appendAddForm(archiveId, type);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "回收站-档案删除", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/delete"})
/* */ @ResponseBody
/* */ public AjaxResult delete(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
/* 127 */ boolean flag = false;
/* */
/* */
/* */ try {
/* 131 */ flag = this.jsglService.archivePhysicalDelete(query, archiveTypeId, type, ids);
/* 132 */ } catch (Exception ex) {
/* 133 */ System.out.println("档案删除出现异常:" + ex.getMessage());
/* 134 */ return error("删除失败!");
/* */ }
/* 136 */ if (flag) {
/* 137 */ return success("删除成功!");
/* */ }
/* 139 */ return error("删除失败!");
/* */ }
/* */
/* */
/* */ @Log(title = "回收站-档案恢复", businessType = BusinessType.RESEST)
/* */ @PostMapping({"/hf"})
/* */ @ResponseBody
/* */ public AjaxResult hf(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
/* 147 */ boolean flag = false;
/* */ try {
/* 149 */ flag = this.jsglService.archivePhysicalHf(query, archiveTypeId, type, ids);
/* 150 */ } catch (Exception ex) {
/* 151 */ System.out.println("档案恢复出现异常:" + ex.getMessage());
/* 152 */ return error("恢复失败!");
/* */ }
/* 154 */ if (flag) {
/* 155 */ return success("恢复成功!");
/* */ }
/* 157 */ return error("恢复失败!");
/* */ }
/* */
/* */
/* */ @Log(title = "回收站-档案清空", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/clearAll"})
/* */ @ResponseBody
/* */ public AjaxResult clearAll(@Validated String archiveTypeId, @Validated String type) {
/* 165 */ boolean flag = false;
/* */
/* */
/* */ try {
/* 169 */ flag = this.recycleService.archivePhysicalDelete(archiveTypeId, type);
/* 170 */ } catch (Exception ex) {
/* 171 */ System.out.println("档案清空出现异常:" + ex.getMessage());
/* 172 */ return error("清空失败!");
/* */ }
/* 174 */ if (flag) {
/* 175 */ return success("清空成功!");
/* */ }
/* 177 */ return error("清空失败!");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/appendAddFormByDataId/{archiveTypeId}/{type}/{id}/{readOnly}"})
/* */ @ResponseBody
/* */ 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);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/folderFile/{archiveId}/{id}"})
/* */ public String folderFile(@PathVariable("archiveId") String archiveId, @PathVariable("id") String id, ModelMap mmap) {
/* 205 */ mmap.put("archiveId", archiveId);
/* 206 */ mmap.put("folderId", id);
/* */
/* 208 */ DictType dictType = new DictType(); dictType.setLabel("column_bind");
/* 209 */ List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
/* 210 */ Map<String, List<DictData>> dictDataMap = new HashMap<>();
/* 211 */ for (DictType dictTypeTemp : dictTypeList) {
/* 212 */ List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
/* 213 */ dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
/* */ }
/* 215 */ mmap.put("dictDataMap", dictDataMap);
/* 216 */ return this.prefix + "/recyclewj";
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.project.dajs.jsgl.service.IJsglService;
import com.archive.project.dajs.recycle.service.IRecycleService;
import com.archive.project.dasz.archivetype.domain.ArchiveCollationTree;
import com.archive.project.dasz.archivetype.service.IArchiveTypeService;
import com.archive.project.system.config.service.IConfigService;
import com.archive.project.system.dict.domain.DictData;
import com.archive.project.system.dict.domain.DictType;
import com.archive.project.system.dict.service.IDictTypeService;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dajs/recycle"})
public class RecycleController
extends BaseController
{
private String prefix = "dajs/recycle";
@Autowired
private IArchiveTypeService archiveTypeService;
@Autowired
private IDictTypeService dictTypeService;
@Autowired
private IJsglService jsglService;
@Autowired
private IRecycleService recycleService;
@Autowired
private IConfigService configService;
@RequiresPermissions({"dajs:recycle"})
@GetMapping
public String recycle(ModelMap mmap) {
List<ArchiveCollationTree> ztrees = this.archiveTypeService.archiveCollationTreeData();
if (ztrees != null && ztrees.size() > 2) {
mmap.put("firstNode", ztrees.get(1));
} else {
mmap.put("firstNode", null);
}
DictType dictType = new DictType(); dictType.setLabel("column_bind");
List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
Map<String, List<DictData>> dictDataMap = new HashMap<>();
for (DictType dictTypeTemp : dictTypeList) {
List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
}
mmap.put("dictDataMap", dictDataMap);
return this.prefix + "/recycle";
}
@GetMapping({"/detail/{archiveId}/{type}/{id}"})
public String detail(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type, @PathVariable("id") String id, ModelMap mmap) {
mmap.put("archiveTypeId", archiveId);
mmap.put("type", type);
mmap.put("id", id);
return this.prefix + "/detail";
}
@GetMapping({"/appendAddForm/{archiveId}/{type}"})
@ResponseBody
public String appendAddForm(@PathVariable("archiveId") String archiveId, @PathVariable("type") String type) {
return this.jsglService.appendAddForm(archiveId, type);
}
@Log(title = "回收站-档案删除", businessType = BusinessType.DELETE)
@PostMapping({"/delete"})
@ResponseBody
public AjaxResult delete(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
boolean flag = false;
try {
flag = this.jsglService.archivePhysicalDelete(query, archiveTypeId, type, ids);
} catch (Exception ex) {
System.out.println("档案删除出现异常:" + ex.getMessage());
return error("删除失败!");
}
if (flag) {
return success("删除成功!");
}
return error("删除失败!");
}
@Log(title = "回收站-档案恢复", businessType = BusinessType.RESEST)
@PostMapping({"/hf"})
@ResponseBody
public AjaxResult hf(@Validated String query, @Validated String archiveTypeId, @Validated String type, @Validated String ids) {
boolean flag = false;
try {
flag = this.jsglService.archivePhysicalHf(query, archiveTypeId, type, ids);
} catch (Exception ex) {
System.out.println("档案恢复出现异常:" + ex.getMessage());
return error("恢复失败!");
}
if (flag) {
return success("恢复成功!");
}
return error("恢复失败!");
}
@Log(title = "回收站-档案清空", businessType = BusinessType.DELETE)
@PostMapping({"/clearAll"})
@ResponseBody
public AjaxResult clearAll(@Validated String archiveTypeId, @Validated String type) {
boolean flag = false;
try {
flag = this.recycleService.archivePhysicalDelete(archiveTypeId, type);
} catch (Exception ex) {
System.out.println("档案清空出现异常:" + ex.getMessage());
return error("清空失败!");
}
if (flag) {
return success("清空成功!");
}
return error("清空失败!");
}
@GetMapping({"/appendAddFormByDataId/{archiveTypeId}/{type}/{id}/{readOnly}"})
@ResponseBody
public String appendAddFormByDataId(@PathVariable("archiveTypeId") String archiveTypeId, @PathVariable("type") String type, @PathVariable("id") String id, @PathVariable("readOnly") String readOnly) {
return this.jsglService.appendAddFormByDataId(archiveTypeId, type, id, readOnly);
}
@GetMapping({"/folderFile/{archiveId}/{id}"})
public String folderFile(@PathVariable("archiveId") String archiveId, @PathVariable("id") String id, ModelMap mmap) {
mmap.put("archiveId", archiveId);
mmap.put("folderId", id);
DictType dictType = new DictType(); dictType.setLabel("column_bind");
List<DictType> dictTypeList = this.dictTypeService.selectDictTypeList(dictType);
Map<String, List<DictData>> dictDataMap = new HashMap<>();
for (DictType dictTypeTemp : dictTypeList) {
List<DictData> dictDatas = this.dictTypeService.selectDictDataByType(dictTypeTemp.getDictType());
dictDataMap.put(dictTypeTemp.getDictType(), dictDatas);
}
mmap.put("dictDataMap", dictDataMap);
return this.prefix + "/recyclewj";
}
}
/* 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.poi.ExcelUtil;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import java.util.Arrays;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dasz/physicaltable"})
/* */ public class PhysicalTableController
/* */ extends BaseController
/* */ {
/* 37 */ private String prefix = "dasz/physicaltable";
/* */
/* */ @Autowired
/* */ private IPhysicalTableService physicalTableService;
/* */
/* */ @Autowired
/* */ private IPhysicalTableColumnService physicalTableColumnService;
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:view"})
/* */ @GetMapping
/* */ public String physicalTable() {
/* 49 */ return this.prefix + "/physicaltable";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(PhysicalTable physicalTable) {
/* 60 */ startPage();
/* 61 */ List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
/* 62 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:export"})
/* */ @Log(title = "物理", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(PhysicalTable physicalTable) {
/* 74 */ List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
/* 75 */ ExcelUtil<PhysicalTable> util = new ExcelUtil(PhysicalTable.class);
/* 76 */ return util.exportExcel(list, "physicalTable");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add() {
/* 85 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:add"})
/* */ @Log(title = "物理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(PhysicalTable physicalTable) {
/* 97 */ return toAjax(this.physicalTableService.insertPhysicalTable(physicalTable));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 106 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(id);
/* 107 */ mmap.put("physicalTable", physicalTable);
/* 108 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:edit"})
/* */ @Log(title = "物理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(PhysicalTable physicalTable) {
/* 120 */ return toAjax(this.physicalTableService.updatePhysicalTable(physicalTable));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltable:remove"})
/* */ @Log(title = "物理", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 132 */ return toAjax(this.physicalTableService.deletePhysicalTableByIds(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/isSetForm/{tableId}/{colId}"})
/* */ @ResponseBody
/* */ public boolean isSetForm(@PathVariable("tableId") Long tableId, @PathVariable("colId") Long colId) {
/* 143 */ boolean flag = false;
/* 144 */ PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId);
/* 145 */ String tableForm = physicalTable.getTableForm();
/* 146 */ if (StringUtils.isNotEmpty(tableForm)) {
/* 147 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(colId);
/* 148 */ String columnCode = physicalTableColumn.getColumnCode();
/* 149 */ String[] split = tableForm.split(",");
/* 150 */ if (Arrays.<String>asList(split).contains(columnCode)) {
/* 151 */ flag = true;
/* */ }
/* */ }
/* 154 */ return flag;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/cleanTableForm/{tableId}"})
/* */ @ResponseBody
/* */ public AjaxResult cleanTableForm(@PathVariable("tableId") Long tableId) {
/* 165 */ PhysicalTable physicalTable = new PhysicalTable();
/* 166 */ physicalTable.setId(tableId);
/* 167 */ physicalTable.setTableForm("");
/* 168 */ physicalTable.setTableFormDiv("");
/* 169 */ this.physicalTableService.updatePhysicalTable(physicalTable);
/* 170 */ return AjaxResult.success();
/* */ }
/* */ }
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
import java.util.Arrays;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dasz/physicaltable"})
public class PhysicalTableController
extends BaseController
{
private String prefix = "dasz/physicaltable";
@Autowired
private IPhysicalTableService physicalTableService;
@Autowired
private IPhysicalTableColumnService physicalTableColumnService;
@RequiresPermissions({"dasz:physicaltable:view"})
@GetMapping
public String physicalTable() {
return this.prefix + "/physicaltable";
}
@RequiresPermissions({"dasz:physicaltable:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(PhysicalTable physicalTable) {
startPage();
List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
return getDataTable(list);
}
@RequiresPermissions({"dasz:physicaltable:export"})
@Log(title = "物理", businessType = BusinessType.EXPORT)
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(PhysicalTable physicalTable) {
List<PhysicalTable> list = this.physicalTableService.selectPhysicalTableList(physicalTable);
ExcelUtil<PhysicalTable> util = new ExcelUtil(PhysicalTable.class);
return util.exportExcel(list, "physicalTable");
}
@GetMapping({"/add"})
public String add() {
return this.prefix + "/add";
}
@RequiresPermissions({"dasz:physicaltable:add"})
@Log(title = "物理", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(PhysicalTable physicalTable) {
return toAjax(this.physicalTableService.insertPhysicalTable(physicalTable));
}
@GetMapping({"/edit/{id}"})
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(id);
mmap.put("physicalTable", physicalTable);
return this.prefix + "/edit";
}
@RequiresPermissions({"dasz:physicaltable:edit"})
@Log(title = "物理", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(PhysicalTable physicalTable) {
return toAjax(this.physicalTableService.updatePhysicalTable(physicalTable));
}
@RequiresPermissions({"dasz:physicaltable:remove"})
@Log(title = "物理", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.physicalTableService.deletePhysicalTableByIds(ids));
}
@GetMapping({"/isSetForm/{tableId}/{colId}"})
@ResponseBody
public boolean isSetForm(@PathVariable("tableId") Long tableId, @PathVariable("colId") Long colId) {
boolean flag = false;
PhysicalTable physicalTable = this.physicalTableService.selectPhysicalTableById(tableId);
String tableForm = physicalTable.getTableForm();
if (StringUtils.isNotEmpty(tableForm)) {
PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(colId);
String columnCode = physicalTableColumn.getColumnCode();
String[] split = tableForm.split(",");
if (Arrays.<String>asList(split).contains(columnCode)) {
flag = true;
}
}
return flag;
}
@PostMapping({"/cleanTableForm/{tableId}"})
@ResponseBody
public AjaxResult cleanTableForm(@PathVariable("tableId") Long tableId) {
PhysicalTable physicalTable = new PhysicalTable();
physicalTable.setId(tableId);
physicalTable.setTableForm("");
physicalTable.setTableFormDiv("");
this.physicalTableService.updatePhysicalTable(physicalTable);
return AjaxResult.success();
}
}
/* 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.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PhysicalTable
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private Long id;
/* */ @Excel(name = "物理表名")
/* */ private String tablename;
/* */ @Excel(name = "显示名称")
/* */ private String showname;
/* */ @Excel(name = "表编码")
/* */ private String tableCode;
/* */ @Excel(name = "排序")
/* */ private Long showorder;
/* */ @Excel(name = "备注")
/* */ private String bz;
/* */ @Excel(name = "档案类型id")
/* */ private String archivetypeid;
/* */ @Excel(name = "档案类型编码")
/* */ private String archivetypecode;
/* */ @Excel(name = "表单字段")
/* */ private String tableForm;
/* */ @Excel(name = "表单字段Div")
/* */ private String tableFormDiv;
/* */
/* */ public String getTableFormDiv() {
/* 58 */ return this.tableFormDiv;
/* */ }
/* */
/* */ public void setTableFormDiv(String tableFormDiv) {
/* 62 */ this.tableFormDiv = tableFormDiv;
/* */ }
/* */
/* */ public String getTableForm() {
/* 66 */ return this.tableForm;
/* */ }
/* */
/* */ public void setTableForm(String tableForm) {
/* 70 */ this.tableForm = tableForm;
/* */ }
/* */
/* */
/* */ public void setId(Long id) {
/* 75 */ this.id = id;
/* */ }
/* */
/* */
/* */ public Long getId() {
/* 80 */ return this.id;
/* */ }
/* */
/* */ public void setTablename(String tablename) {
/* 84 */ this.tablename = tablename;
/* */ }
/* */
/* */
/* */ public String getTablename() {
/* 89 */ return this.tablename;
/* */ }
/* */
/* */ public void setShowname(String showname) {
/* 93 */ this.showname = showname;
/* */ }
/* */
/* */
/* */ public String getShowname() {
/* 98 */ return this.showname;
/* */ }
/* */
/* */ public void setTableCode(String tableCode) {
/* 102 */ this.tableCode = tableCode;
/* */ }
/* */
/* */
/* */ public String getTableCode() {
/* 107 */ return this.tableCode;
/* */ }
/* */
/* */ public void setShoworder(Long showorder) {
/* 111 */ this.showorder = showorder;
/* */ }
/* */
/* */
/* */ public Long getShoworder() {
/* 116 */ return this.showorder;
/* */ }
/* */
/* */ public void setBz(String bz) {
/* 120 */ this.bz = bz;
/* */ }
/* */
/* */
/* */ public String getBz() {
/* 125 */ return this.bz;
/* */ }
/* */
/* */ public void setArchivetypeid(String archivetypeid) {
/* 129 */ this.archivetypeid = archivetypeid;
/* */ }
/* */
/* */
/* */ public String getArchivetypeid() {
/* 134 */ return this.archivetypeid;
/* */ }
/* */
/* */ public void setArchivetypecode(String archivetypecode) {
/* 138 */ this.archivetypecode = archivetypecode;
/* */ }
/* */
/* */
/* */ public String getArchivetypecode() {
/* 143 */ return this.archivetypecode;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 148 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 149 */ .append("id", getId())
/* 150 */ .append("tablename", getTablename())
/* 151 */ .append("showname", getShowname())
/* 152 */ .append("tableCode", getTableCode())
/* 153 */ .append("showorder", getShoworder())
/* 154 */ .append("bz", getBz())
/* 155 */ .append("archivetypeid", getArchivetypeid())
/* 156 */ .append("archivetypecode", getArchivetypecode())
/* 157 */ .toString();
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
import com.archive.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class PhysicalTable
extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
@Excel(name = "物理表名")
private String tablename;
@Excel(name = "显示名称")
private String showname;
@Excel(name = "表编码")
private String tableCode;
@Excel(name = "排序")
private Long showorder;
@Excel(name = "备注")
private String bz;
@Excel(name = "档案类型id")
private String archivetypeid;
@Excel(name = "档案类型编码")
private String archivetypecode;
@Excel(name = "表单字段")
private String tableForm;
@Excel(name = "表单字段Div")
private String tableFormDiv;
public String getTableFormDiv() {
return this.tableFormDiv;
}
public void setTableFormDiv(String tableFormDiv) {
this.tableFormDiv = tableFormDiv;
}
public String getTableForm() {
return this.tableForm;
}
public void setTableForm(String tableForm) {
this.tableForm = tableForm;
}
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return this.id;
}
public void setTablename(String tablename) {
this.tablename = tablename;
}
public String getTablename() {
return this.tablename;
}
public void setShowname(String showname) {
this.showname = showname;
}
public String getShowname() {
return this.showname;
}
public void setTableCode(String tableCode) {
this.tableCode = tableCode;
}
public String getTableCode() {
return this.tableCode;
}
public void setShoworder(Long showorder) {
this.showorder = showorder;
}
public Long getShoworder() {
return this.showorder;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getBz() {
return this.bz;
}
public void setArchivetypeid(String archivetypeid) {
this.archivetypeid = archivetypeid;
}
public String getArchivetypeid() {
return this.archivetypeid;
}
public void setArchivetypecode(String archivetypecode) {
this.archivetypecode = archivetypecode;
}
public String getArchivetypecode() {
return this.archivetypecode;
}
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("id", getId())
.append("tablename", getTablename())
.append("showname", getShowname())
.append("tableCode", getTableCode())
.append("showorder", getShoworder())
.append("bz", getBz())
.append("archivetypeid", getArchivetypeid())
.append("archivetypecode", getArchivetypecode())
.toString();
}
}
/* 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.text.Convert;
/* */ import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
/* */ import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import org.apache.commons.lang3.ArrayUtils;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class PhysicalTableServiceImpl
/* */ implements IPhysicalTableService
/* */ {
/* */ @Autowired
/* */ private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */
/* */ public PhysicalTable selectPhysicalTableById(Long id) {
/* 41 */ return this.physicalTableMapper.selectPhysicalTableById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<PhysicalTable> selectPhysicalTableList(PhysicalTable physicalTable) {
/* 53 */ return this.physicalTableMapper.selectPhysicalTableList(physicalTable);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertPhysicalTable(PhysicalTable physicalTable) {
/* 65 */ return this.physicalTableMapper.insertPhysicalTable(physicalTable);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updatePhysicalTable(PhysicalTable physicalTable) {
/* 77 */ return this.physicalTableMapper.updatePhysicalTable(physicalTable);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableByIds(String ids) {
/* 89 */ return this.physicalTableMapper.deletePhysicalTableByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableById(Long id) {
/* 101 */ return this.physicalTableMapper.deletePhysicalTableById(id);
/* */ }
/* */
/* */
/* */ public void removeTableFormByColumnId(Long columnId) {
/* 106 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(columnId);
/* 107 */ if (physicalTableColumn != null) {
/* 108 */ Long tableId = physicalTableColumn.getTableId();
/* 109 */ String columnCode = physicalTableColumn.getColumnCode();
/* 110 */ PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
/* 111 */ if (physicalTable == null || StringUtils.isEmpty(physicalTable.getTableForm())) {
/* */ return;
/* */ }
/* 114 */ String tableForm = physicalTable.getTableForm();
/* 115 */ String[] split = tableForm.split(",");
/* 116 */ split = (String[])ArrayUtils.removeElement((Object[])split, columnCode);
/* 117 */ tableForm = StringUtils.join((Object[])split, ",");
/* 118 */ PhysicalTable physicalTableTemp = new PhysicalTable();
/* 119 */ physicalTableTemp.setId(tableId);
/* 120 */ physicalTableTemp.setTableForm(tableForm);
/* 121 */ this.physicalTableMapper.updatePhysicalTable(physicalTableTemp);
/* */ }
/* */ }
/* */
/* */
/* */ public List<PhysicalTableColumn> selectTableFormColumns(Long tableId, List<PhysicalTableColumn> tableColumnsList) {
/* 127 */ PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
/* 128 */ String tableForm = physicalTable.getTableForm();
/* 129 */ if (StringUtils.isNotEmpty(tableForm)) {
/* 130 */ String[] columns = tableForm.split(",");
/* 131 */ if (columns.length > 0) {
/* 132 */ List<PhysicalTableColumn> tableColumnsListTemp = new ArrayList<>();
/* 133 */ for (String column : columns) {
/* 134 */ for (PhysicalTableColumn physicalTableColumn : tableColumnsList) {
/* 135 */ if (physicalTableColumn.getColumnCode().equals(column)) {
/* 136 */ tableColumnsListTemp.add(physicalTableColumn);
/* */ }
/* */ }
/* */ }
/* 140 */ tableColumnsList = tableColumnsListTemp;
/* */ }
/* */ }
/* 143 */ return tableColumnsList;
/* */ }
/* */ }
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.text.Convert;
import com.archive.project.dasz.physicaltable.domain.PhysicalTable;
import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PhysicalTableServiceImpl
implements IPhysicalTableService
{
@Autowired
private PhysicalTableMapper physicalTableMapper;
@Autowired
private PhysicalTableColumnMapper physicalTableColumnMapper;
public PhysicalTable selectPhysicalTableById(Long id) {
return this.physicalTableMapper.selectPhysicalTableById(id);
}
public List<PhysicalTable> selectPhysicalTableList(PhysicalTable physicalTable) {
return this.physicalTableMapper.selectPhysicalTableList(physicalTable);
}
public int insertPhysicalTable(PhysicalTable physicalTable) {
return this.physicalTableMapper.insertPhysicalTable(physicalTable);
}
public int updatePhysicalTable(PhysicalTable physicalTable) {
return this.physicalTableMapper.updatePhysicalTable(physicalTable);
}
public int deletePhysicalTableByIds(String ids) {
return this.physicalTableMapper.deletePhysicalTableByIds(Convert.toStrArray(ids));
}
public int deletePhysicalTableById(Long id) {
return this.physicalTableMapper.deletePhysicalTableById(id);
}
public void removeTableFormByColumnId(Long columnId) {
PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(columnId);
if (physicalTableColumn != null) {
Long tableId = physicalTableColumn.getTableId();
String columnCode = physicalTableColumn.getColumnCode();
PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
if (physicalTable == null || StringUtils.isEmpty(physicalTable.getTableForm())) {
return;
}
String tableForm = physicalTable.getTableForm();
String[] split = tableForm.split(",");
split = (String[])ArrayUtils.removeElement((Object[])split, columnCode);
tableForm = StringUtils.join((Object[])split, ",");
PhysicalTable physicalTableTemp = new PhysicalTable();
physicalTableTemp.setId(tableId);
physicalTableTemp.setTableForm(tableForm);
this.physicalTableMapper.updatePhysicalTable(physicalTableTemp);
}
}
public List<PhysicalTableColumn> selectTableFormColumns(Long tableId, List<PhysicalTableColumn> tableColumnsList) {
PhysicalTable physicalTable = this.physicalTableMapper.selectPhysicalTableById(tableId);
String tableForm = physicalTable.getTableForm();
if (StringUtils.isNotEmpty(tableForm)) {
String[] columns = tableForm.split(",");
if (columns.length > 0) {
List<PhysicalTableColumn> tableColumnsListTemp = new ArrayList<>();
for (String column : columns) {
for (PhysicalTableColumn physicalTableColumn : tableColumnsList) {
if (physicalTableColumn.getColumnCode().equals(column)) {
tableColumnsListTemp.add(physicalTableColumn);
}
}
}
tableColumnsList = tableColumnsListTemp;
}
}
return tableColumnsList;
}
}
/* 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.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import com.archive.project.system.dict.domain.DictType;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/dasz/physicaltablecolumn"})
/* */ public class PhysicalTableColumnController
/* */ extends BaseController
/* */ {
/* 37 */ private String prefix = "dasz/physicaltablecolumn";
/* */
/* */ @Autowired
/* */ private IPhysicalTableColumnService physicalTableColumnService;
/* */
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:view"})
/* */ @GetMapping
/* */ public String physicalTableColumn(ModelMap mmap) {
/* 52 */ DictType dictType = new DictType();
/* 53 */ dictType.setLabel("column_bind");
/* 54 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 55 */ mmap.put("dictList", list);
/* 56 */ return this.prefix + "/physicaltablecolumn";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(PhysicalTableColumn physicalTableColumn) {
/* 67 */ startPage();
/* 68 */ List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
/* 69 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:export"})
/* */ @Log(title = "物理字段", businessType = BusinessType.EXPORT)
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(PhysicalTableColumn physicalTableColumn) {
/* 81 */ List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
/* 82 */ ExcelUtil<PhysicalTableColumn> util = new ExcelUtil(PhysicalTableColumn.class);
/* 83 */ return util.exportExcel(list, "physicalTableColumn");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add/{tableId}"})
/* */ public String add(@PathVariable("tableId") String tableId, ModelMap mmap) {
/* 92 */ DictType dictType = new DictType();
/* 93 */ dictType.setLabel("column_bind");
/* 94 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 95 */ mmap.put("dictList", list);
/* 96 */ mmap.put("tableId", tableId);
/* 97 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:add"})
/* */ @Log(title = "物理字段", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(PhysicalTableColumn physicalTableColumn) {
/* */ try {
/* 110 */ this.physicalTableColumnService.insertPhysicalTableColumn(physicalTableColumn, false);
/* 111 */ return toAjax(true);
/* 112 */ } catch (Exception e) {
/* 113 */ e.printStackTrace();
/* 114 */ return toAjax(false);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{id}"})
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
/* 124 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(id);
/* 125 */ mmap.put("physicalTableColumn", physicalTableColumn);
/* 126 */ DictType dictType = new DictType();
/* 127 */ dictType.setLabel("column_bind");
/* 128 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
/* 129 */ mmap.put("dictList", list);
/* 130 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:edit"})
/* */ @Log(title = "物理字段", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(PhysicalTableColumn physicalTableColumn) {
/* */ try {
/* 143 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 144 */ this.physicalTableColumnService.updatePhysicalTableColumn(physicalTableColumn);
/* */ }
/* 146 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 147 */ this.physicalTableColumnService.updatePhysicalTableColumnSqlite(physicalTableColumn);
/* */ }
/* 149 */ return toAjax(true);
/* 150 */ } catch (Exception e) {
/* 151 */ e.printStackTrace();
/* 152 */ return toAjax(false);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"dasz:physicaltablecolumn:remove"})
/* */ @Log(title = "物理字段", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* */ try {
/* 167 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 168 */ this.physicalTableColumnService.deletePhysicalTableColumnByIds(ids);
/* */ }
/* 170 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 171 */ this.physicalTableColumnService.deletePhysicalTableColumnByIdsSqlLite(ids);
/* */ }
/* */
/* 174 */ return toAjax(true);
/* 175 */ } catch (Exception e) {
/* 176 */ e.printStackTrace();
/* 177 */ return toAjax(false);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/updateSetStatus/{id}/{type}/{status}"})
/* */ @ResponseBody
/* */ public AjaxResult updateSetStatus(@PathVariable("id") Long id, @PathVariable("type") String type, @PathVariable("status") Long status) {
/* */ try {
/* 197 */ this.physicalTableColumnService.updateSetStatus(id, type, status);
/* 198 */ return toAjax(true);
/* 199 */ } catch (Exception e) {
/* 200 */ e.printStackTrace();
/* 201 */ return toAjax(false);
/* */ }
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.config.ArchiveConfig;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
import com.archive.project.system.dict.domain.DictType;
import com.archive.project.system.dict.service.IDictTypeService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/dasz/physicaltablecolumn"})
public class PhysicalTableColumnController
extends BaseController
{
private String prefix = "dasz/physicaltablecolumn";
@Autowired
private IPhysicalTableColumnService physicalTableColumnService;
@Autowired
private IDictTypeService dictTypeService;
@Autowired
private ArchiveConfig archiveConfig;
@RequiresPermissions({"dasz:physicaltablecolumn:view"})
@GetMapping
public String physicalTableColumn(ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/physicaltablecolumn";
}
@RequiresPermissions({"dasz:physicaltablecolumn:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(PhysicalTableColumn physicalTableColumn) {
startPage();
List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
return getDataTable(list);
}
@RequiresPermissions({"dasz:physicaltablecolumn:export"})
@Log(title = "物理字段", businessType = BusinessType.EXPORT)
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(PhysicalTableColumn physicalTableColumn) {
List<PhysicalTableColumn> list = this.physicalTableColumnService.selectPhysicalTableColumnList(physicalTableColumn);
ExcelUtil<PhysicalTableColumn> util = new ExcelUtil(PhysicalTableColumn.class);
return util.exportExcel(list, "physicalTableColumn");
}
@GetMapping({"/add/{tableId}"})
public String add(@PathVariable("tableId") String tableId, ModelMap mmap) {
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
mmap.put("tableId", tableId);
return this.prefix + "/add";
}
@RequiresPermissions({"dasz:physicaltablecolumn:add"})
@Log(title = "物理字段", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(PhysicalTableColumn physicalTableColumn) {
try {
this.physicalTableColumnService.insertPhysicalTableColumn(physicalTableColumn, false);
return toAjax(true);
} catch (Exception e) {
e.printStackTrace();
return toAjax(false);
}
}
@GetMapping({"/edit/{id}"})
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
PhysicalTableColumn physicalTableColumn = this.physicalTableColumnService.selectPhysicalTableColumnById(id);
mmap.put("physicalTableColumn", physicalTableColumn);
DictType dictType = new DictType();
dictType.setLabel("column_bind");
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
mmap.put("dictList", list);
return this.prefix + "/edit";
}
@RequiresPermissions({"dasz:physicaltablecolumn:edit"})
@Log(title = "物理字段", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(PhysicalTableColumn physicalTableColumn) {
try {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
this.physicalTableColumnService.updatePhysicalTableColumn(physicalTableColumn);
}
else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
this.physicalTableColumnService.updatePhysicalTableColumnSqlite(physicalTableColumn);
}
return toAjax(true);
} catch (Exception e) {
e.printStackTrace();
return toAjax(false);
}
}
@RequiresPermissions({"dasz:physicaltablecolumn:remove"})
@Log(title = "物理字段", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
try {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
this.physicalTableColumnService.deletePhysicalTableColumnByIds(ids);
}
else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
this.physicalTableColumnService.deletePhysicalTableColumnByIdsSqlLite(ids);
}
return toAjax(true);
} catch (Exception e) {
e.printStackTrace();
return toAjax(false);
}
}
@PostMapping({"/updateSetStatus/{id}/{type}/{status}"})
@ResponseBody
public AjaxResult updateSetStatus(@PathVariable("id") Long id, @PathVariable("type") String type, @PathVariable("status") Long status) {
try {
this.physicalTableColumnService.updateSetStatus(id, type, status);
return toAjax(true);
} catch (Exception e) {
e.printStackTrace();
return toAjax(false);
}
}
}
/* 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.web.domain.BaseEntity;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PhysicalTableColumn
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ private Long id;
/* */ @Excel(name = "字段显示名称")
/* */ private String columnName;
/* */ @Excel(name = "字段名称")
/* */ private String columnCode;
/* */ @Excel(name = "字段长度")
/* */ private Long columnLength;
/* */ @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本")
/* */ private String columnType;
/* */ @Excel(name = "字段绑定编码")
/* */ private String columnCodetype;
/* */ @Excel(name = "显示类型")
/* */ private String showType;
/* */ @Excel(name = "备注")
/* */ private String bz;
/* */ @Excel(name = "排序项(0:否 1:是)")
/* */ private Long pxx;
/* */ @Excel(name = "列表项(0:否 1:是)")
/* */ private Long lbx;
/* */ @Excel(name = "界面项(0:否 1:是)")
/* */ private Long jmx;
/* */ @Excel(name = "检索项(0:否 1:是)")
/* */ private Long jsx;
/* */ @Excel(name = "必输项(0:否 1:是)")
/* */ private Long bsx;
/* */ @Excel(name = "默认值")
/* */ private String mrz;
/* */ @Excel(name = "所属物理表id")
/* */ private Long tableId;
/* */ @Excel(name = "检索方式(0:包含 1:等于 2:大于 3:小于 4:大于等于 5:小于等于 6:区间)")
/* */ private Long jsfs;
/* */
/* */ public void setId(Long id) {
/* 83 */ this.id = id;
/* */ }
/* */
/* */
/* */ public Long getId() {
/* 88 */ return this.id;
/* */ }
/* */
/* */ public void setColumnName(String columnName) {
/* 92 */ this.columnName = columnName;
/* */ }
/* */
/* */
/* */ public String getColumnName() {
/* 97 */ return this.columnName;
/* */ }
/* */
/* */ public void setColumnCode(String columnCode) {
/* 101 */ this.columnCode = columnCode;
/* */ }
/* */
/* */
/* */ public String getColumnCode() {
/* 106 */ return this.columnCode;
/* */ }
/* */
/* */ public void setColumnLength(Long columnLength) {
/* 110 */ this.columnLength = columnLength;
/* */ }
/* */
/* */
/* */ public Long getColumnLength() {
/* 115 */ return this.columnLength;
/* */ }
/* */
/* */ public void setColumnType(String columnType) {
/* 119 */ this.columnType = columnType;
/* */ }
/* */
/* */
/* */ public String getColumnType() {
/* 124 */ return this.columnType;
/* */ }
/* */
/* */ public void setColumnCodetype(String columnCodetype) {
/* 128 */ this.columnCodetype = columnCodetype;
/* */ }
/* */
/* */
/* */ public String getColumnCodetype() {
/* 133 */ return this.columnCodetype;
/* */ }
/* */
/* */ public void setBz(String bz) {
/* 137 */ this.bz = bz;
/* */ }
/* */
/* */
/* */ public String getBz() {
/* 142 */ return this.bz;
/* */ }
/* */
/* */ public void setPxx(Long pxx) {
/* 146 */ this.pxx = pxx;
/* */ }
/* */
/* */
/* */ public Long getPxx() {
/* 151 */ return this.pxx;
/* */ }
/* */
/* */ public void setLbx(Long lbx) {
/* 155 */ this.lbx = lbx;
/* */ }
/* */
/* */
/* */ public Long getLbx() {
/* 160 */ return this.lbx;
/* */ }
/* */
/* */ public void setJmx(Long jmx) {
/* 164 */ this.jmx = jmx;
/* */ }
/* */
/* */
/* */ public Long getJmx() {
/* 169 */ return this.jmx;
/* */ }
/* */
/* */ public void setJsx(Long jsx) {
/* 173 */ this.jsx = jsx;
/* */ }
/* */
/* */
/* */ public Long getJsx() {
/* 178 */ return this.jsx;
/* */ }
/* */
/* */ public void setMrz(String mrz) {
/* 182 */ this.mrz = mrz;
/* */ }
/* */
/* */
/* */ public String getMrz() {
/* 187 */ return this.mrz;
/* */ }
/* */
/* */ public void setTableId(Long tableId) {
/* 191 */ this.tableId = tableId;
/* */ }
/* */
/* */
/* */ public Long getTableId() {
/* 196 */ return this.tableId;
/* */ }
/* */
/* */ public String getShowType() {
/* 200 */ return this.showType;
/* */ }
/* */
/* */ public void setShowType(String showType) {
/* 204 */ this.showType = showType;
/* */ }
/* */
/* */ public Long getBsx() {
/* 208 */ return this.bsx;
/* */ }
/* */
/* */ public void setBsx(Long bsx) {
/* 212 */ this.bsx = bsx;
/* */ }
/* */
/* */ public Long getJsfs() {
/* 216 */ return this.jsfs;
/* */ }
/* */
/* */ public void setJsfs(Long jsfs) {
/* 220 */ this.jsfs = jsfs;
/* */ }
/* */
/* */
/* */ public String toString() {
/* 225 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 226 */ .append("id", getId())
/* 227 */ .append("columnName", getColumnName())
/* 228 */ .append("columnCode", getColumnCode())
/* 229 */ .append("columnLength", getColumnLength())
/* 230 */ .append("columnType", getColumnType())
/* 231 */ .append("columnCodetype", getColumnCodetype())
/* 232 */ .append("bz", getBz())
/* 233 */ .append("pxx", getPxx())
/* 234 */ .append("lbx", getLbx())
/* 235 */ .append("jmx", getJmx())
/* 236 */ .append("jsx", getJsx())
/* 237 */ .append("mrz", getMrz())
/* 238 */ .append("tableId", getTableId())
/* 239 */ .toString();
/* */ }
/* */ }
import com.archive.framework.aspectj.lang.annotation.Excel;
import com.archive.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class PhysicalTableColumn
extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
@Excel(name = "字段显示名称")
private String columnName;
@Excel(name = "字段名称")
private String columnCode;
@Excel(name = "字段长度")
private Long columnLength;
@Excel(name = "字段类型", readConverterExp = "数=字、日期、文本")
private String columnType;
@Excel(name = "字段绑定编码")
private String columnCodetype;
@Excel(name = "显示类型")
private String showType;
@Excel(name = "备注")
private String bz;
@Excel(name = "排序项(0:否 1:是)")
private Long pxx;
@Excel(name = "列表项(0:否 1:是)")
private Long lbx;
@Excel(name = "界面项(0:否 1:是)")
private Long jmx;
@Excel(name = "检索项(0:否 1:是)")
private Long jsx;
@Excel(name = "必输项(0:否 1:是)")
private Long bsx;
@Excel(name = "默认值")
private String mrz;
@Excel(name = "所属物理表id")
private Long tableId;
@Excel(name = "检索方式(0:包含 1:等于 2:大于 3:小于 4:大于等于 5:小于等于 6:区间)")
private Long jsfs;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return this.id;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getColumnName() {
return this.columnName;
}
public void setColumnCode(String columnCode) {
this.columnCode = columnCode;
}
public String getColumnCode() {
return this.columnCode;
}
public void setColumnLength(Long columnLength) {
this.columnLength = columnLength;
}
public Long getColumnLength() {
return this.columnLength;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getColumnType() {
return this.columnType;
}
public void setColumnCodetype(String columnCodetype) {
this.columnCodetype = columnCodetype;
}
public String getColumnCodetype() {
return this.columnCodetype;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getBz() {
return this.bz;
}
public void setPxx(Long pxx) {
this.pxx = pxx;
}
public Long getPxx() {
return this.pxx;
}
public void setLbx(Long lbx) {
this.lbx = lbx;
}
public Long getLbx() {
return this.lbx;
}
public void setJmx(Long jmx) {
this.jmx = jmx;
}
public Long getJmx() {
return this.jmx;
}
public void setJsx(Long jsx) {
this.jsx = jsx;
}
public Long getJsx() {
return this.jsx;
}
public void setMrz(String mrz) {
this.mrz = mrz;
}
public String getMrz() {
return this.mrz;
}
public void setTableId(Long tableId) {
this.tableId = tableId;
}
public Long getTableId() {
return this.tableId;
}
public String getShowType() {
return this.showType;
}
public void setShowType(String showType) {
this.showType = showType;
}
public Long getBsx() {
return this.bsx;
}
public void setBsx(Long bsx) {
this.bsx = bsx;
}
public Long getJsfs() {
return this.jsfs;
}
public void setJsfs(Long jsfs) {
this.jsfs = jsfs;
}
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("id", getId())
.append("columnName", getColumnName())
.append("columnCode", getColumnCode())
.append("columnLength", getColumnLength())
.append("columnType", getColumnType())
.append("columnCodetype", getColumnCodetype())
.append("bz", getBz())
.append("pxx", getPxx())
.append("lbx", getLbx())
.append("jmx", getJmx())
.append("jsx", getJsx())
.append("mrz", getMrz())
.append("tableId", getTableId())
.toString();
}
}
/* 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;
/* */
/* */ import com.archive.common.archiveUtil.SqlLiteUtil;
/* */ import com.archive.common.archiveUtil.TableUtil;
/* */ import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.common.service.IExecuteSqlService;
/* */ import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
/* */ import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */ import org.springframework.transaction.annotation.Transactional;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class PhysicalTableColumnServiceImpl
/* */ implements IPhysicalTableColumnService
/* */ {
/* */ @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */ @Autowired
/* */ private IExecuteSqlService executeSqlService;
/* */ @Autowired
/* */ private IPhysicalTableService physicalTableService;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public PhysicalTableColumn selectPhysicalTableColumnById(Long id) {
/* 51 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<PhysicalTableColumn> selectPhysicalTableColumnList(PhysicalTableColumn physicalTableColumn) {
/* 63 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 64 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
/* */ }
/* 66 */ return this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional
/* */ public void insertPhysicalTableColumn(PhysicalTableColumn physicalTableColumn, boolean isCreatArchiveType) throws Exception {
/* 81 */ if (!isCreatArchiveType) {
/* 82 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 83 */ String sql = "ALTER TABLE " + tableName + " ADD COLUMN `" + physicalTableColumn.getColumnCode() + "` ";
/* */
/* 85 */ String columnType = physicalTableColumn.getColumnType();
/* 86 */ switch (columnType) {
/* */ case "D":
/* 88 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 89 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 90 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 91 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ }
/* */ break;
/* */ case "S":
/* 95 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 96 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 97 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 98 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ }
/* */ break;
/* */ case "C":
/* 102 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 103 */ columnType = " int "; break;
/* 104 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 105 */ columnType = " INTEGER ";
/* */ }
/* */ break;
/* */ }
/* 109 */ sql = sql + columnType;
/* 110 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 111 */ if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
/* 112 */ sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } else {
/* 114 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ }
/* 116 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* */
/* 118 */ if (StringUtils.isNotEmpty(physicalTableColumn.getMrz())) {
/* 119 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "'";
/* */ }
/* */ }
/* */
/* 123 */ this.executeSqlService.jdbcTemplateExecute(sql);
/* */ }
/* 125 */ this.physicalTableColumnMapper.insertPhysicalTableColumn(physicalTableColumn);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional
/* */ public void updatePhysicalTableColumn(PhysicalTableColumn physicalTableColumn) throws Exception {
/* 138 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 139 */ String sql = "ALTER TABLE " + tableName + " MODIFY COLUMN " + physicalTableColumn.getColumnCode();
/* */
/* 141 */ String columnType = physicalTableColumn.getColumnType();
/* 142 */ switch (columnType) {
/* */ case "D":
/* 144 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 145 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") ";
/* */ }
/* */ break;
/* */ case "S":
/* 149 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 150 */ columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
/* 151 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 152 */ columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
/* */ }
/* */ break;
/* */ case "C":
/* 156 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 157 */ columnType = " int "; break;
/* 158 */ } if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 159 */ columnType = " INTEGER ";
/* */ }
/* */ break;
/* */ }
/* 163 */ sql = sql + columnType;
/* 164 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 165 */ if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
/* 166 */ sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ } else {
/* 168 */ sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
/* */ }
/* */ }
/* 171 */ this.executeSqlService.jdbcTemplateExecute(sql);
/* 172 */ this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional
/* */ public void updatePhysicalTableColumnSqlite(PhysicalTableColumn physicalTableColumn) throws Exception {
/* 186 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* */
/* */
/* */
/* */
/* 191 */ PhysicalTableColumn ptc = this.physicalTableColumnMapper.selectPhysicalTableColumnById(physicalTableColumn.getId());
/* 192 */ String newType = "";
/* 193 */ String newMrz = "";
/* */
/* 195 */ if (!physicalTableColumn.getColumnType().equals(ptc.getColumnType()))
/* */ {
/* 197 */ if (physicalTableColumn.getColumnType().equals("C")) {
/* 198 */ newType = "INTEGER";
/* */ } else {
/* 200 */ newType = "TEXT";
/* */ }
/* */ }
/* */
/* 204 */ if (!physicalTableColumn.getMrz().equals(ptc.getMrz()))
/* */ {
/* 206 */ newMrz = ptc.getMrz();
/* */ }
/* */
/* 209 */ if (!newType.equals("") || !newMrz.equals("")) {
/* 210 */ SqlLiteUtil.updateColumnType(tableName, physicalTableColumn.getColumnType(), physicalTableColumn.getColumnCode(), newMrz);
/* */ }
/* 212 */ this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional
/* */ public void deletePhysicalTableColumnByIds(String ids) throws Exception {
/* 224 */ Long id = Long.valueOf(Long.parseLong(ids));
/* 225 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* 226 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 227 */ String columnCode = physicalTableColumn.getColumnCode();
/* 228 */ String sql = "ALTER TABLE " + tableName + " DROP COLUMN " + columnCode;
/* 229 */ this.executeSqlService.jdbcTemplateExecute(sql);
/* 230 */ this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
/* */
/* */
/* 233 */ for (String colId : Convert.toStrArray(ids)) {
/* 234 */ this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Transactional
/* */ public void deletePhysicalTableColumnByIdsSqlLite(String ids) throws Exception {
/* 248 */ Long id = Long.valueOf(Long.parseLong(ids));
/* 249 */ PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
/* 250 */ String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
/* 251 */ String columnCode = physicalTableColumn.getColumnCode();
/* 252 */ SqlLiteUtil.deleteColumn(tableName, columnCode);
/* */
/* 254 */ this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
/* */
/* */
/* 257 */ for (String colId : Convert.toStrArray(ids)) {
/* 258 */ this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePhysicalTableColumnById(Long id) {
/* 271 */ return this.physicalTableColumnMapper.deletePhysicalTableColumnById(id);
/* */ }
/* */
/* */
/* */ @Transactional
/* */ 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;
/* 278 */ this.executeSqlService.jdbcTemplateExecute(sql);
/* */
/* 280 */ if ("jmx".equals(type) && status.longValue() == 0L) {
/* 281 */ this.physicalTableService.removeTableFormByColumnId(id);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getColumnCodeByTableIdAndShowName(String columnShowName, long tableId) {
/* 294 */ String res = "";
/* 295 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
/* 296 */ physicalTableColumn.setTableId(Long.valueOf(tableId));
/* 297 */ physicalTableColumn.setColumnName(columnShowName);
/* 298 */ List<PhysicalTableColumn> list = selectPhysicalTableColumnList(physicalTableColumn);
/* 299 */ if (list.size() > 0 && list.get(0) != null) {
/* 300 */ res = ((PhysicalTableColumn)list.get(0)).getColumnCode();
/* */ }
/* 302 */ return res;
/* */ }
/* */ }
package com.archive.project.dasz.physicaltablecolumn.service.impl;
import com.archive.common.archiveUtil.SqlLiteUtil;
import com.archive.common.archiveUtil.TableUtil;
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.common.service.IExecuteSqlService;
import com.archive.project.dasz.physicaltable.service.IPhysicalTableService;
import com.archive.project.dasz.physicaltablecolumn.domain.PhysicalTableColumn;
import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
import com.archive.project.dasz.physicaltablecolumn.service.IPhysicalTableColumnService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class PhysicalTableColumnServiceImpl
implements IPhysicalTableColumnService
{
@Autowired
private PhysicalTableColumnMapper physicalTableColumnMapper;
@Autowired
private IExecuteSqlService executeSqlService;
@Autowired
private IPhysicalTableService physicalTableService;
@Autowired
private ArchiveConfig archiveConfig;
public PhysicalTableColumn selectPhysicalTableColumnById(Long id) {
return this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
}
public List<PhysicalTableColumn> selectPhysicalTableColumnList(PhysicalTableColumn physicalTableColumn) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn);
}
return this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn);
}
@Transactional
public void insertPhysicalTableColumn(PhysicalTableColumn physicalTableColumn, boolean isCreatArchiveType) throws Exception {
if (!isCreatArchiveType) {
String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
String sql = "ALTER TABLE " + tableName + " ADD COLUMN `" + physicalTableColumn.getColumnCode() + "` ";
String columnType = physicalTableColumn.getColumnType();
switch (columnType) {
case "D":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
} if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
}
break;
case "S":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
} if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
}
break;
case "C":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " int "; break;
} if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
columnType = " INTEGER ";
}
break;
}
sql = sql + columnType;
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
} else {
sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
}
} else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
if (StringUtils.isNotEmpty(physicalTableColumn.getMrz())) {
sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "'";
}
}
this.executeSqlService.jdbcTemplateExecute(sql);
}
this.physicalTableColumnMapper.insertPhysicalTableColumn(physicalTableColumn);
}
@Transactional
public void updatePhysicalTableColumn(PhysicalTableColumn physicalTableColumn) throws Exception {
String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
String sql = "ALTER TABLE " + tableName + " MODIFY COLUMN " + physicalTableColumn.getColumnCode();
String columnType = physicalTableColumn.getColumnType();
switch (columnType) {
case "D":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") ";
}
break;
case "S":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " varchar(" + physicalTableColumn.getColumnLength() + ") "; break;
} if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
columnType = " text(" + physicalTableColumn.getColumnLength() + ") ";
}
break;
case "C":
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
columnType = " int "; break;
} if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
columnType = " INTEGER ";
}
break;
}
sql = sql + columnType;
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
if (StringUtils.isEmpty(physicalTableColumn.getMrz())) {
sql = sql + " COMMENT '" + physicalTableColumn.getColumnName() + "'";
} else {
sql = sql + " DEFAULT '" + physicalTableColumn.getMrz() + "' COMMENT '" + physicalTableColumn.getColumnName() + "'";
}
}
this.executeSqlService.jdbcTemplateExecute(sql);
this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
}
@Transactional
public void updatePhysicalTableColumnSqlite(PhysicalTableColumn physicalTableColumn) throws Exception {
String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
PhysicalTableColumn ptc = this.physicalTableColumnMapper.selectPhysicalTableColumnById(physicalTableColumn.getId());
String newType = "";
String newMrz = "";
if (!physicalTableColumn.getColumnType().equals(ptc.getColumnType()))
{
if (physicalTableColumn.getColumnType().equals("C")) {
newType = "INTEGER";
} else {
newType = "TEXT";
}
}
if (!physicalTableColumn.getMrz().equals(ptc.getMrz()))
{
newMrz = ptc.getMrz();
}
if (!newType.equals("") || !newMrz.equals("")) {
SqlLiteUtil.updateColumnType(tableName, physicalTableColumn.getColumnType(), physicalTableColumn.getColumnCode(), newMrz);
}
this.physicalTableColumnMapper.updatePhysicalTableColumn(physicalTableColumn);
}
@Transactional
public void deletePhysicalTableColumnByIds(String ids) throws Exception {
Long id = Long.valueOf(Long.parseLong(ids));
PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
String columnCode = physicalTableColumn.getColumnCode();
String sql = "ALTER TABLE " + tableName + " DROP COLUMN " + columnCode;
this.executeSqlService.jdbcTemplateExecute(sql);
this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
for (String colId : Convert.toStrArray(ids)) {
this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
}
}
@Transactional
public void deletePhysicalTableColumnByIdsSqlLite(String ids) throws Exception {
Long id = Long.valueOf(Long.parseLong(ids));
PhysicalTableColumn physicalTableColumn = this.physicalTableColumnMapper.selectPhysicalTableColumnById(id);
String tableName = TableUtil.getTableName(physicalTableColumn.getTableId());
String columnCode = physicalTableColumn.getColumnCode();
SqlLiteUtil.deleteColumn(tableName, columnCode);
this.physicalTableColumnMapper.deletePhysicalTableColumnByIds(Convert.toStrArray(ids));
for (String colId : Convert.toStrArray(ids)) {
this.physicalTableService.removeTableFormByColumnId(Long.valueOf(Long.parseLong(colId)));
}
}
public int deletePhysicalTableColumnById(Long id) {
return this.physicalTableColumnMapper.deletePhysicalTableColumnById(id);
}
@Transactional
public void updateSetStatus(Long id, String type, Long status) throws Exception {
String sql = "update t_xtpz_physical_table_column set " + type + " = " + status + " where id = " + id;
this.executeSqlService.jdbcTemplateExecute(sql);
if ("jmx".equals(type) && status.longValue() == 0L) {
this.physicalTableService.removeTableFormByColumnId(id);
}
}
public String getColumnCodeByTableIdAndShowName(String columnShowName, long tableId) {
String res = "";
PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn();
physicalTableColumn.setTableId(Long.valueOf(tableId));
physicalTableColumn.setColumnName(columnShowName);
List<PhysicalTableColumn> list = selectPhysicalTableColumnList(physicalTableColumn);
if (list.size() > 0 && list.get(0) != null) {
res = ((PhysicalTableColumn)list.get(0)).getColumnCode();
}
return res;
}
}
/* 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.util.AbstractQuartzJob;
/* */ import com.archive.project.monitor.job.util.JobInvokeUtil;
/* */ import org.quartz.DisallowConcurrentExecution;
/* */ import org.quartz.JobExecutionContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @DisallowConcurrentExecution
/* */ public class QuartzDisallowConcurrentExecution
/* */ extends AbstractQuartzJob
/* */ {
/* */ protected void doExecute(JobExecutionContext context, Job job) throws Exception {
/* 19 */ JobInvokeUtil.invokeMethod(job);
/* */ }
/* */ }
import com.archive.project.monitor.job.domain.Job;
import com.archive.project.monitor.job.util.AbstractQuartzJob;
import com.archive.project.monitor.job.util.JobInvokeUtil;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution
extends AbstractQuartzJob
{
protected void doExecute(JobExecutionContext context, Job job) throws Exception {
JobInvokeUtil.invokeMethod(job);
}
}
/* 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.util.AbstractQuartzJob;
/* */ import com.archive.project.monitor.job.util.JobInvokeUtil;
/* */ import org.quartz.JobExecutionContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class QuartzJobExecution
/* */ extends AbstractQuartzJob
/* */ {
/* */ protected void doExecute(JobExecutionContext context, Job job) throws Exception {
/* 17 */ JobInvokeUtil.invokeMethod(job);
/* */ }
/* */ }
import com.archive.project.monitor.job.domain.Job;
import com.archive.project.monitor.job.util.AbstractQuartzJob;
import com.archive.project.monitor.job.util.JobInvokeUtil;
import org.quartz.JobExecutionContext;
public class QuartzJobExecution
extends AbstractQuartzJob
{
protected void doExecute(JobExecutionContext context, Job job) throws Exception {
JobInvokeUtil.invokeMethod(job);
}
}
/* 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.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.monitor.operlog.domain.OperLog;
/* */ import com.archive.project.monitor.operlog.service.IOperLogService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/monitor/operlog"})
/* */ public class OperlogController
/* */ extends BaseController
/* */ {
/* 31 */ private String prefix = "monitor/operlog";
/* */
/* */ @Autowired
/* */ private IOperLogService operLogService;
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:view"})
/* */ @GetMapping
/* */ public String operlog() {
/* 40 */ return this.prefix + "/operlog";
/* */ }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(OperLog operLog) {
/* 48 */ startPage();
/* 49 */ List<OperLog> list = this.operLogService.selectOperLogList(operLog);
/* 50 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */ @Log(title = "操作日志", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"monitor:operlog:export"})
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(OperLog operLog) {
/* 59 */ List<OperLog> list = this.operLogService.selectOperLogList(operLog);
/* 60 */ ExcelUtil<OperLog> util = new ExcelUtil(OperLog.class);
/* 61 */ return util.exportExcel(list, "操作日志");
/* */ }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:remove"})
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* 69 */ return toAjax(this.operLogService.deleteOperLogByIds(ids));
/* */ }
/* */
/* */
/* */ @RequiresPermissions({"monitor:operlog:detail"})
/* */ @GetMapping({"/detail/{operId}"})
/* */ public String detail(@PathVariable("operId") Long operId, ModelMap mmap) {
/* 76 */ mmap.put("operLog", this.operLogService.selectOperLogById(operId));
/* 77 */ return this.prefix + "/detail";
/* */ }
/* */
/* */
/* */ @Log(title = "操作日志", businessType = BusinessType.CLEAN)
/* */ @RequiresPermissions({"monitor:operlog:remove"})
/* */ @PostMapping({"/clean"})
/* */ @ResponseBody
/* */ public AjaxResult clean() {
/* 86 */ this.operLogService.cleanOperLog();
/* 87 */ return success();
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.monitor.operlog.domain.OperLog;
import com.archive.project.monitor.operlog.service.IOperLogService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/monitor/operlog"})
public class OperlogController
extends BaseController
{
private String prefix = "monitor/operlog";
@Autowired
private IOperLogService operLogService;
@RequiresPermissions({"monitor:operlog:view"})
@GetMapping
public String operlog() {
return this.prefix + "/operlog";
}
@RequiresPermissions({"monitor:operlog:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(OperLog operLog) {
startPage();
List<OperLog> list = this.operLogService.selectOperLogList(operLog);
return getDataTable(list);
}
@Log(title = "操作日志", businessType = BusinessType.EXPORT)
@RequiresPermissions({"monitor:operlog:export"})
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(OperLog operLog) {
List<OperLog> list = this.operLogService.selectOperLogList(operLog);
ExcelUtil<OperLog> util = new ExcelUtil(OperLog.class);
return util.exportExcel(list, "操作日志");
}
@RequiresPermissions({"monitor:operlog:remove"})
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(this.operLogService.deleteOperLogByIds(ids));
}
@RequiresPermissions({"monitor:operlog:detail"})
@GetMapping({"/detail/{operId}"})
public String detail(@PathVariable("operId") Long operId, ModelMap mmap) {
mmap.put("operLog", this.operLogService.selectOperLogById(operId));
return this.prefix + "/detail";
}
@Log(title = "操作日志", businessType = BusinessType.CLEAN)
@RequiresPermissions({"monitor:operlog:remove"})
@PostMapping({"/clean"})
@ResponseBody
public AjaxResult clean() {
this.operLogService.cleanOperLog();
return success();
}
}
/* 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.web.domain.BaseEntity;
/* */ import java.util.Date;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class OperLog
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ @Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
/* */ private Long operId;
/* */ @Excel(name = "操作模块")
/* */ private String title;
/* */ @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
/* */ private Integer businessType;
/* */ private Integer[] businessTypes;
/* */ @Excel(name = "请求方法")
/* */ private String method;
/* */ @Excel(name = "请求方式")
/* */ private String requestMethod;
/* */ @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
/* */ private Integer operatorType;
/* */ @Excel(name = "操作人员")
/* */ private String operName;
/* */ @Excel(name = "部门名称")
/* */ private String deptName;
/* */ @Excel(name = "请求地址")
/* */ private String operUrl;
/* */ @Excel(name = "操作地址")
/* */ private String operIp;
/* */ @Excel(name = "操作地点")
/* */ private String operLocation;
/* */ @Excel(name = "请求参数")
/* */ private String operParam;
/* */ @Excel(name = "返回参数")
/* */ private String jsonResult;
/* */ @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
/* */ private Integer status;
/* */ @Excel(name = "错误消息")
/* */ private String errorMsg;
/* */ @Excel(name = "操作时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss")
/* */ private Date operTime;
/* */
/* */ public Long getOperId() {
/* 88 */ return this.operId;
/* */ }
/* */
/* */
/* */ public void setOperId(Long operId) {
/* 93 */ this.operId = operId;
/* */ }
/* */
/* */
/* */ public String getTitle() {
/* 98 */ return this.title;
/* */ }
/* */
/* */
/* */ public void setTitle(String title) {
/* 103 */ this.title = title;
/* */ }
/* */
/* */
/* */ public Integer getBusinessType() {
/* 108 */ return this.businessType;
/* */ }
/* */
/* */
/* */ public void setBusinessType(Integer businessType) {
/* 113 */ this.businessType = businessType;
/* */ }
/* */
/* */
/* */ public Integer[] getBusinessTypes() {
/* 118 */ return this.businessTypes;
/* */ }
/* */
/* */
/* */ public void setBusinessTypes(Integer[] businessTypes) {
/* 123 */ this.businessTypes = businessTypes;
/* */ }
/* */
/* */
/* */ public String getMethod() {
/* 128 */ return this.method;
/* */ }
/* */
/* */
/* */ public void setMethod(String method) {
/* 133 */ this.method = method;
/* */ }
/* */
/* */
/* */ public String getRequestMethod() {
/* 138 */ return this.requestMethod;
/* */ }
/* */
/* */
/* */ public void setRequestMethod(String requestMethod) {
/* 143 */ this.requestMethod = requestMethod;
/* */ }
/* */
/* */
/* */ public Integer getOperatorType() {
/* 148 */ return this.operatorType;
/* */ }
/* */
/* */
/* */ public void setOperatorType(Integer operatorType) {
/* 153 */ this.operatorType = operatorType;
/* */ }
/* */
/* */
/* */ public String getOperName() {
/* 158 */ return this.operName;
/* */ }
/* */
/* */
/* */ public void setOperName(String operName) {
/* 163 */ this.operName = operName;
/* */ }
/* */
/* */
/* */ public String getDeptName() {
/* 168 */ return this.deptName;
/* */ }
/* */
/* */
/* */ public void setDeptName(String deptName) {
/* 173 */ this.deptName = deptName;
/* */ }
/* */
/* */
/* */ public String getOperUrl() {
/* 178 */ return this.operUrl;
/* */ }
/* */
/* */
/* */ public void setOperUrl(String operUrl) {
/* 183 */ this.operUrl = operUrl;
/* */ }
/* */
/* */
/* */ public String getOperIp() {
/* 188 */ return this.operIp;
/* */ }
/* */
/* */
/* */ public void setOperIp(String operIp) {
/* 193 */ this.operIp = operIp;
/* */ }
/* */
/* */
/* */ public String getOperLocation() {
/* 198 */ return this.operLocation;
/* */ }
/* */
/* */
/* */ public void setOperLocation(String operLocation) {
/* 203 */ this.operLocation = operLocation;
/* */ }
/* */
/* */
/* */ public String getOperParam() {
/* 208 */ return this.operParam;
/* */ }
/* */
/* */
/* */ public void setOperParam(String operParam) {
/* 213 */ this.operParam = operParam;
/* */ }
/* */
/* */
/* */ public String getJsonResult() {
/* 218 */ return this.jsonResult;
/* */ }
/* */
/* */
/* */ public void setJsonResult(String jsonResult) {
/* 223 */ this.jsonResult = jsonResult;
/* */ }
/* */
/* */
/* */ public Integer getStatus() {
/* 228 */ return this.status;
/* */ }
/* */
/* */
/* */ public void setStatus(Integer status) {
/* 233 */ this.status = status;
/* */ }
/* */
/* */
/* */ public String getErrorMsg() {
/* 238 */ return this.errorMsg;
/* */ }
/* */
/* */
/* */ public void setErrorMsg(String errorMsg) {
/* 243 */ this.errorMsg = errorMsg;
/* */ }
/* */
/* */
/* */ public Date getOperTime() {
/* 248 */ return this.operTime;
/* */ }
/* */
/* */
/* */ public void setOperTime(Date operTime) {
/* 253 */ this.operTime = operTime;
/* */ }
/* */
/* */ @Override
/* */ public String toString() {
/* 258 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 259 */ .append("operId", getOperId())
/* 260 */ .append("title", getTitle())
/* 261 */ .append("businessType", getBusinessType())
/* 262 */ .append("businessTypes", (Object[])getBusinessTypes())
/* 263 */ .append("method", getMethod())
/* 264 */ .append("requestMethod", getRequestMethod())
/* 265 */ .append("operatorType", getOperatorType())
/* 266 */ .append("operName", getOperName())
/* 267 */ .append("deptName", getDeptName())
/* 268 */ .append("operUrl", getOperUrl())
/* 269 */ .append("operIp", getOperIp())
/* 270 */ .append("operLocation", getOperLocation())
/* 271 */ .append("operParam", getOperParam())
/* 272 */ .append("status", getStatus())
/* 273 */ .append("errorMsg", getErrorMsg())
/* 274 */ .append("operTime", getOperTime())
/* 275 */ .toString();
/* */ }
/* */ }
import com.archive.framework.web.domain.BaseEntity;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class OperLog
extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
private Long operId;
@Excel(name = "操作模块")
private String title;
@Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
private Integer businessType;
private Integer[] businessTypes;
@Excel(name = "请求方法")
private String method;
@Excel(name = "请求方式")
private String requestMethod;
@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
private Integer operatorType;
@Excel(name = "操作人员")
private String operName;
@Excel(name = "部门名称")
private String deptName;
@Excel(name = "请求地址")
private String operUrl;
@Excel(name = "操作地址")
private String operIp;
@Excel(name = "操作地点")
private String operLocation;
@Excel(name = "请求参数")
private String operParam;
@Excel(name = "返回参数")
private String jsonResult;
@Excel(name = "状态", readConverterExp = "0=正常,1=异常")
private Integer status;
@Excel(name = "错误消息")
private String errorMsg;
@Excel(name = "操作时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date operTime;
public Long getOperId() {
return this.operId;
}
public void setOperId(Long operId) {
this.operId = operId;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public Integer getBusinessType() {
return this.businessType;
}
public void setBusinessType(Integer businessType) {
this.businessType = businessType;
}
public Integer[] getBusinessTypes() {
return this.businessTypes;
}
public void setBusinessTypes(Integer[] businessTypes) {
this.businessTypes = businessTypes;
}
public String getMethod() {
return this.method;
}
public void setMethod(String method) {
this.method = method;
}
public String getRequestMethod() {
return this.requestMethod;
}
public void setRequestMethod(String requestMethod) {
this.requestMethod = requestMethod;
}
public Integer getOperatorType() {
return this.operatorType;
}
public void setOperatorType(Integer operatorType) {
this.operatorType = operatorType;
}
public String getOperName() {
return this.operName;
}
public void setOperName(String operName) {
this.operName = operName;
}
public String getDeptName() {
return this.deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getOperUrl() {
return this.operUrl;
}
public void setOperUrl(String operUrl) {
this.operUrl = operUrl;
}
public String getOperIp() {
return this.operIp;
}
public void setOperIp(String operIp) {
this.operIp = operIp;
}
public String getOperLocation() {
return this.operLocation;
}
public void setOperLocation(String operLocation) {
this.operLocation = operLocation;
}
public String getOperParam() {
return this.operParam;
}
public void setOperParam(String operParam) {
this.operParam = operParam;
}
public String getJsonResult() {
return this.jsonResult;
}
public void setJsonResult(String jsonResult) {
this.jsonResult = jsonResult;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getErrorMsg() {
return this.errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public Date getOperTime() {
return this.operTime;
}
public void setOperTime(Date operTime) {
this.operTime = operTime;
}
@Override
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("operId", getOperId())
.append("title", getTitle())
.append("businessType", getBusinessType())
.append("businessTypes", (Object[])getBusinessTypes())
.append("method", getMethod())
.append("requestMethod", getRequestMethod())
.append("operatorType", getOperatorType())
.append("operName", getOperName())
.append("deptName", getDeptName())
.append("operUrl", getOperUrl())
.append("operIp", getOperIp())
.append("operLocation", getOperLocation())
.append("operParam", getOperParam())
.append("status", getStatus())
.append("errorMsg", getErrorMsg())
.append("operTime", getOperTime())
.toString();
}
}
/* 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.framework.config.ArchiveConfig;
/* */ import com.archive.project.monitor.operlog.domain.OperLog;
/* */ import com.archive.project.monitor.operlog.mapper.OperLogMapper;
/* */ import com.archive.project.monitor.operlog.service.IOperLogService;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class OperLogServiceImpl
/* */ implements IOperLogService
/* */ {
/* */ @Autowired
/* */ private OperLogMapper operLogMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public void insertOperlog(OperLog operLog) {
/* 35 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 36 */ this.operLogMapper.insertOperlog(operLog);
/* */ }
/* 38 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 39 */ this.operLogMapper.insertOperlogSqlite(operLog);
/* */ } else {
/* 41 */ this.operLogMapper.insertOperlog(operLog);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<OperLog> selectOperLogList(OperLog operLog) {
/* 54 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 55 */ return this.operLogMapper.selectOperLogList(operLog);
/* */ }
/* 57 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 58 */ return this.operLogMapper.selectOperLogListSqlite(operLog);
/* */ }
/* 60 */ return this.operLogMapper.selectOperLogList(operLog);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deleteOperLogByIds(String ids) {
/* 74 */ return this.operLogMapper.deleteOperLogByIds(Convert.toStrArray(ids));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public OperLog selectOperLogById(Long operId) {
/* 86 */ return this.operLogMapper.selectOperLogById(operId);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void cleanOperLog() {
/* 95 */ this.operLogMapper.cleanOperLog();
/* */ }
/* */ }
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.monitor.operlog.domain.OperLog;
import com.archive.project.monitor.operlog.mapper.OperLogMapper;
import com.archive.project.monitor.operlog.service.IOperLogService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class OperLogServiceImpl
implements IOperLogService
{
@Autowired
private OperLogMapper operLogMapper;
@Autowired
private ArchiveConfig archiveConfig;
public void insertOperlog(OperLog operLog) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
this.operLogMapper.insertOperlog(operLog);
}
else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
this.operLogMapper.insertOperlogSqlite(operLog);
} else {
this.operLogMapper.insertOperlog(operLog);
}
}
public List<OperLog> selectOperLogList(OperLog operLog) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.operLogMapper.selectOperLogList(operLog);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.operLogMapper.selectOperLogListSqlite(operLog);
}
return this.operLogMapper.selectOperLogList(operLog);
}
public int deleteOperLogByIds(String ids) {
return this.operLogMapper.deleteOperLogByIds(Convert.toStrArray(ids));
}
public OperLog selectOperLogById(Long operId) {
return this.operLogMapper.selectOperLogById(operId);
}
public void cleanOperLog() {
this.operLogMapper.cleanOperLog();
}
}
/* 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.project.dajs.jsgl.service.IJsglService;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/plugins"})
/* */ public class PluginsController
/* */ extends BaseController
/* */ {
/* 26 */ private String prefix = "plugins";
/* */
/* */
/* */ @Autowired
/* */ private IJsglService jsglService;
/* */
/* */
/* */ @GetMapping({"/pdfjs"})
/* */ public String pdfjs(ModelMap mmap) {
/* 35 */ return this.prefix + "/pdfjs/web/viewer";
/* */ }
/* */ }
import com.archive.framework.web.controller.BaseController;
import com.archive.project.dajs.jsgl.service.IJsglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping({"/plugins"})
public class PluginsController
extends BaseController
{
private String prefix = "plugins";
@Autowired
private IJsglService jsglService;
@GetMapping({"/pdfjs"})
public String pdfjs(ModelMap mmap) {
return this.prefix + "/pdfjs/web/viewer";
}
}
/* 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.dasz.physicaltable.mapper.PhysicalTableMapper;
/* */ import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
/* */ import com.archive.project.plugins.service.IPluginsService;
/* */ import com.archive.project.system.config.service.IConfigService;
/* */ import com.archive.project.system.dict.service.IDictTypeService;
/* */ import java.awt.Color;
/* */ import java.awt.Graphics2D;
/* */ import java.awt.Image;
/* */ import java.awt.image.BufferedImage;
/* */ import java.io.File;
/* */ import java.io.IOException;
/* */ import javax.imageio.ImageIO;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class PluginsServiceImpl
/* */ implements IPluginsService
/* */ {
/* */ @Autowired
/* */ private PhysicalTableMapper physicalTableMapper;
/* */ @Autowired
/* */ private PhysicalTableColumnMapper physicalTableColumnMapper;
/* */ @Autowired
/* */ private IExecuteSqlService executeSqlService;
/* */ @Autowired
/* */ private IConfigService configService;
/* */ @Autowired
/* */ private IDictTypeService dictTypeService;
/* */
/* */ public static void main(String[] args) throws Exception {
/* 48 */ BufferedImage image = resizeImage("D://3.png", 150);
/* 49 */ printImage(image);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void printImage(BufferedImage image) throws IOException {
/* 59 */ char[] PIXEL_CHAR_ARRAY = { '*', 'o', ':', '.', ' ' };
/* 60 */ int width = image.getWidth();
/* 61 */ int height = image.getHeight();
/* 62 */ for (int i = 0; i < height; i++) {
/* 63 */ for (int j = 0; j < width; j++) {
/* 64 */ int rgb = image.getRGB(j, i);
/* 65 */ Color color = new Color(rgb);
/* 66 */ int red = color.getRed();
/* 67 */ int green = color.getGreen();
/* 68 */ int blue = color.getBlue();
/* */
/* 70 */ 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);
/* 72 */ System.out.print(PIXEL_CHAR_ARRAY[(int)Math.floor(index)]);
/* */ }
/* 74 */ System.out.println();
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static BufferedImage resizeImage(String srcImagePath, int targetWidth) throws IOException {
/* 88 */ Image srcImage = ImageIO.read(new File(srcImagePath));
/* 89 */ int targetHeight = getTargetHeight(targetWidth, srcImage);
/* 90 */ BufferedImage resizedImage = new BufferedImage(targetWidth, targetHeight, 1);
/* 91 */ Graphics2D graphics2D = resizedImage.createGraphics();
/* 92 */ graphics2D.drawImage(srcImage, 0, 0, targetWidth, targetHeight, null);
/* 93 */ graphics2D.dispose();
/* 94 */ return resizedImage;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static int getTargetHeight(int targetWidth, Image srcImage) {
/* 105 */ int targetHeight = srcImage.getHeight(null);
/* 106 */ if (targetWidth < srcImage.getWidth(null)) {
/* 107 */ targetHeight = Math.round(targetHeight / srcImage.getWidth(null) / targetWidth);
/* */ }
/* 109 */ return targetHeight;
/* */ }
/* */ }
import com.archive.project.common.service.IExecuteSqlService;
import com.archive.project.dasz.physicaltable.mapper.PhysicalTableMapper;
import com.archive.project.dasz.physicaltablecolumn.mapper.PhysicalTableColumnMapper;
import com.archive.project.plugins.service.IPluginsService;
import com.archive.project.system.config.service.IConfigService;
import com.archive.project.system.dict.service.IDictTypeService;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PluginsServiceImpl
implements IPluginsService
{
@Autowired
private PhysicalTableMapper physicalTableMapper;
@Autowired
private PhysicalTableColumnMapper physicalTableColumnMapper;
@Autowired
private IExecuteSqlService executeSqlService;
@Autowired
private IConfigService configService;
@Autowired
private IDictTypeService dictTypeService;
public static void main(String[] args) throws Exception {
BufferedImage image = resizeImage("D://3.png", 150);
printImage(image);
}
public static void printImage(BufferedImage image) throws IOException {
char[] PIXEL_CHAR_ARRAY = { '*', 'o', ':', '.', ' ' };
int width = image.getWidth();
int height = image.getHeight();
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
int rgb = image.getRGB(j, i);
Color color = new Color(rgb);
int red = color.getRed();
int green = color.getGreen();
int blue = color.getBlue();
Double grayscale = Double.valueOf(0.2126D * red + 0.7152D * green + 0.0722D * blue);
double index = grayscale.doubleValue() / (Math.ceil((255 / PIXEL_CHAR_ARRAY.length)) + 0.5D);
System.out.print(PIXEL_CHAR_ARRAY[(int)Math.floor(index)]);
}
System.out.println();
}
}
public static BufferedImage resizeImage(String srcImagePath, int targetWidth) throws IOException {
Image srcImage = ImageIO.read(new File(srcImagePath));
int targetHeight = getTargetHeight(targetWidth, srcImage);
BufferedImage resizedImage = new BufferedImage(targetWidth, targetHeight, 1);
Graphics2D graphics2D = resizedImage.createGraphics();
graphics2D.drawImage(srcImage, 0, 0, targetWidth, targetHeight, null);
graphics2D.dispose();
return resizedImage;
}
private static int getTargetHeight(int targetWidth, Image srcImage) {
int targetHeight = srcImage.getHeight(null);
if (targetWidth < srcImage.getWidth(null)) {
targetHeight = Math.round(targetHeight / srcImage.getWidth(null) / targetWidth);
}
return targetHeight;
}
}
/* 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.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.system.post.domain.Post;
/* */ import com.archive.project.system.post.service.IPostService;
/* */ import java.util.List;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.validation.annotation.Validated;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PathVariable;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/system/post"})
/* */ public class PostController
/* */ extends BaseController
/* */ {
/* 33 */ private String prefix = "system/post";
/* */
/* */ @Autowired
/* */ private IPostService postService;
/* */
/* */
/* */ @RequiresPermissions({"system:post:view"})
/* */ @GetMapping
/* */ public String operlog() {
/* 42 */ return this.prefix + "/post";
/* */ }
/* */
/* */
/* */ @RequiresPermissions({"system:post:list"})
/* */ @PostMapping({"/list"})
/* */ @ResponseBody
/* */ public TableDataInfo list(Post post) {
/* 50 */ startPage();
/* 51 */ List<Post> list = this.postService.selectPostList(post);
/* 52 */ return getDataTable(list);
/* */ }
/* */
/* */
/* */ @Log(title = "岗位管理", businessType = BusinessType.EXPORT)
/* */ @RequiresPermissions({"system:post:export"})
/* */ @PostMapping({"/export"})
/* */ @ResponseBody
/* */ public AjaxResult export(Post post) {
/* 61 */ List<Post> list = this.postService.selectPostList(post);
/* 62 */ ExcelUtil<Post> util = new ExcelUtil(Post.class);
/* 63 */ return util.exportExcel(list, "岗位数据");
/* */ }
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:remove"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.DELETE)
/* */ @PostMapping({"/remove"})
/* */ @ResponseBody
/* */ public AjaxResult remove(String ids) {
/* */ try {
/* 74 */ return toAjax(this.postService.deletePostByIds(ids));
/* */ }
/* 76 */ catch (Exception e) {
/* */
/* 78 */ return error(e.getMessage());
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/add"})
/* */ public String add() {
/* 88 */ return this.prefix + "/add";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:add"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.INSERT)
/* */ @PostMapping({"/add"})
/* */ @ResponseBody
/* */ public AjaxResult addSave(@Validated Post post) {
/* 100 */ if ("1".equals(this.postService.checkPostNameUnique(post)))
/* */ {
/* 102 */ return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在");
/* */ }
/* 104 */ if ("1".equals(this.postService.checkPostCodeUnique(post)))
/* */ {
/* 106 */ return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
/* */ }
/* 108 */ return toAjax(this.postService.insertPost(post));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit/{postId}"})
/* */ public String edit(@PathVariable("postId") Long postId, ModelMap mmap) {
/* 117 */ mmap.put("post", this.postService.selectPostById(postId));
/* 118 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @RequiresPermissions({"system:post:edit"})
/* */ @Log(title = "岗位管理", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/edit"})
/* */ @ResponseBody
/* */ public AjaxResult editSave(@Validated Post post) {
/* 130 */ if ("1".equals(this.postService.checkPostNameUnique(post)))
/* */ {
/* 132 */ return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在");
/* */ }
/* 134 */ if ("1".equals(this.postService.checkPostCodeUnique(post)))
/* */ {
/* 136 */ return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在");
/* */ }
/* 138 */ return toAjax(this.postService.updatePost(post));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkPostNameUnique"})
/* */ @ResponseBody
/* */ public String checkPostNameUnique(Post post) {
/* 148 */ return this.postService.checkPostNameUnique(post);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @PostMapping({"/checkPostCodeUnique"})
/* */ @ResponseBody
/* */ public String checkPostCodeUnique(Post post) {
/* 158 */ return this.postService.checkPostCodeUnique(post);
/* */ }
/* */ }
import com.archive.common.utils.poi.ExcelUtil;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.framework.web.page.TableDataInfo;
import com.archive.project.system.post.domain.Post;
import com.archive.project.system.post.service.IPostService;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping({"/system/post"})
public class PostController
extends BaseController
{
private String prefix = "system/post";
@Autowired
private IPostService postService;
@RequiresPermissions({"system:post:view"})
@GetMapping
public String operlog() {
return this.prefix + "/post";
}
@RequiresPermissions({"system:post:list"})
@PostMapping({"/list"})
@ResponseBody
public TableDataInfo list(Post post) {
startPage();
List<Post> list = this.postService.selectPostList(post);
return getDataTable(list);
}
@Log(title = "岗位管理", businessType = BusinessType.EXPORT)
@RequiresPermissions({"system:post:export"})
@PostMapping({"/export"})
@ResponseBody
public AjaxResult export(Post post) {
List<Post> list = this.postService.selectPostList(post);
ExcelUtil<Post> util = new ExcelUtil(Post.class);
return util.exportExcel(list, "岗位数据");
}
@RequiresPermissions({"system:post:remove"})
@Log(title = "岗位管理", businessType = BusinessType.DELETE)
@PostMapping({"/remove"})
@ResponseBody
public AjaxResult remove(String ids) {
try {
return toAjax(this.postService.deletePostByIds(ids));
}
catch (Exception e) {
return error(e.getMessage());
}
}
@GetMapping({"/add"})
public String add() {
return this.prefix + "/add";
}
@RequiresPermissions({"system:post:add"})
@Log(title = "岗位管理", businessType = BusinessType.INSERT)
@PostMapping({"/add"})
@ResponseBody
public AjaxResult addSave(@Validated Post post) {
if ("1".equals(this.postService.checkPostNameUnique(post)))
{
return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在");
}
if ("1".equals(this.postService.checkPostCodeUnique(post)))
{
return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
}
return toAjax(this.postService.insertPost(post));
}
@GetMapping({"/edit/{postId}"})
public String edit(@PathVariable("postId") Long postId, ModelMap mmap) {
mmap.put("post", this.postService.selectPostById(postId));
return this.prefix + "/edit";
}
@RequiresPermissions({"system:post:edit"})
@Log(title = "岗位管理", businessType = BusinessType.UPDATE)
@PostMapping({"/edit"})
@ResponseBody
public AjaxResult editSave(@Validated Post post) {
if ("1".equals(this.postService.checkPostNameUnique(post)))
{
return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在");
}
if ("1".equals(this.postService.checkPostCodeUnique(post)))
{
return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在");
}
return toAjax(this.postService.updatePost(post));
}
@PostMapping({"/checkPostNameUnique"})
@ResponseBody
public String checkPostNameUnique(Post post) {
return this.postService.checkPostNameUnique(post);
}
@PostMapping({"/checkPostCodeUnique"})
@ResponseBody
public String checkPostCodeUnique(Post 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

@ -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.web.domain.BaseEntity;
/* */ import javax.validation.constraints.NotBlank;
/* */ import javax.validation.constraints.Size;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Post
/* */ extends BaseEntity
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
/* */ private Long postId;
/* */ @Excel(name = "岗位编码")
/* */ private String postCode;
/* */ @Excel(name = "岗位名称")
/* */ private String postName;
/* */ @Excel(name = "岗位排序")
/* */ private String postSort;
/* */ @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
/* */ private String status;
/* */ private boolean flag = false;
/* */
/* */ public Long getPostId() {
/* 44 */ return this.postId;
/* */ }
/* */
/* */
/* */ public void setPostId(Long postId) {
/* 49 */ this.postId = postId;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "岗位编码不能为空")
/* */ @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
/* */ public String getPostCode() {
/* 56 */ return this.postCode;
/* */ }
/* */
/* */
/* */ public void setPostCode(String postCode) {
/* 61 */ this.postCode = postCode;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "岗位名称不能为空")
/* */ @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
/* */ public String getPostName() {
/* 68 */ return this.postName;
/* */ }
/* */
/* */
/* */ public void setPostName(String postName) {
/* 73 */ this.postName = postName;
/* */ }
/* */
/* */
/* */ @NotBlank(message = "显示顺序不能为空")
/* */ public String getPostSort() {
/* 79 */ return this.postSort;
/* */ }
/* */
/* */
/* */ public void setPostSort(String postSort) {
/* 84 */ this.postSort = postSort;
/* */ }
/* */
/* */
/* */ public String getStatus() {
/* 89 */ return this.status;
/* */ }
/* */
/* */
/* */ public void setStatus(String status) {
/* 94 */ this.status = status;
/* */ }
/* */
/* */
/* */ public boolean isFlag() {
/* 99 */ return this.flag;
/* */ }
/* */
/* */
/* */ public void setFlag(boolean flag) {
/* 104 */ this.flag = flag;
/* */ }
/* */
/* */ @Override
/* */ public String toString() {
/* 109 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 110 */ .append("postId", getPostId())
/* 111 */ .append("postCode", getPostCode())
/* 112 */ .append("postName", getPostName())
/* 113 */ .append("postSort", getPostSort())
/* 114 */ .append("status", getStatus())
/* 115 */ .append("createBy", getCreateBy())
/* 116 */ .append("createTime", getCreateTime())
/* 117 */ .append("updateBy", getUpdateBy())
/* 118 */ .append("updateTime", getUpdateTime())
/* 119 */ .append("remark", getRemark())
/* 120 */ .toString();
/* */ }
/* */ }
import com.archive.framework.web.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class Post
extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
private Long postId;
@Excel(name = "岗位编码")
private String postCode;
@Excel(name = "岗位名称")
private String postName;
@Excel(name = "岗位排序")
private String postSort;
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
private boolean flag = false;
public Long getPostId() {
return this.postId;
}
public void setPostId(Long postId) {
this.postId = postId;
}
@NotBlank(message = "岗位编码不能为空")
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
public String getPostCode() {
return this.postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
@NotBlank(message = "岗位名称不能为空")
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
public String getPostName() {
return this.postName;
}
public void setPostName(String postName) {
this.postName = postName;
}
@NotBlank(message = "显示顺序不能为空")
public String getPostSort() {
return this.postSort;
}
public void setPostSort(String postSort) {
this.postSort = postSort;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public boolean isFlag() {
return this.flag;
}
public void setFlag(boolean flag) {
this.flag = flag;
}
@Override
public String toString() {
return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
.append("postId", getPostId())
.append("postCode", getPostCode())
.append("postName", getPostName())
.append("postSort", getPostSort())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\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.utils.StringUtils;
/* */ import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.project.system.post.domain.Post;
/* */ import com.archive.project.system.post.mapper.PostMapper;
/* */ import com.archive.project.system.post.service.IPostService;
/* */ import com.archive.project.system.user.mapper.UserPostMapper;
/* */ import java.util.List;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service
/* */ public class PostServiceImpl
/* */ implements IPostService
/* */ {
/* */ @Autowired
/* */ private PostMapper postMapper;
/* */ @Autowired
/* */ private UserPostMapper userPostMapper;
/* */ @Autowired
/* */ private ArchiveConfig archiveConfig;
/* */
/* */ public List<Post> selectPostList(Post post) {
/* 44 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 45 */ return this.postMapper.selectPostList(post);
/* */ }
/* 47 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 48 */ return this.postMapper.selectPostListSqlite(post);
/* */ }
/* 50 */ return this.postMapper.selectPostList(post);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Post> selectPostAll() {
/* 63 */ return this.postMapper.selectPostAll();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<Post> selectPostsByUserId(Long userId) {
/* 75 */ List<Post> userPosts = this.postMapper.selectPostsByUserId(userId);
/* 76 */ List<Post> posts = this.postMapper.selectPostAll();
/* 77 */ for (Post post : posts) {
/* */
/* 79 */ for (Post userRole : userPosts) {
/* */
/* 81 */ if (post.getPostId().longValue() == userRole.getPostId().longValue())
/* */ {
/* 83 */ post.setFlag(true);
/* */ }
/* */ }
/* */ }
/* */
/* 88 */ return posts;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Post selectPostById(Long postId) {
/* 100 */ return this.postMapper.selectPostById(postId);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int deletePostByIds(String ids) throws BusinessException {
/* 112 */ Long[] postIds = Convert.toLongArray(ids);
/* 113 */ for (Long postId : postIds) {
/* */
/* 115 */ Post post = selectPostById(postId);
/* 116 */ if (countUserPostById(postId) > 0)
/* */ {
/* 118 */ throw new BusinessException(String.format("%1$s已分配,不能删除", new Object[] { post.getPostName() }));
/* */ }
/* */ }
/* 121 */ return this.postMapper.deletePostByIds(postIds);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int insertPost(Post post) {
/* 133 */ post.setCreateBy(ShiroUtils.getLoginName());
/* 134 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 135 */ return this.postMapper.insertPost(post);
/* */ }
/* 137 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 138 */ return this.postMapper.insertPostSqlite(post);
/* */ }
/* 140 */ return this.postMapper.insertPost(post);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int updatePost(Post post) {
/* 154 */ post.setUpdateBy(ShiroUtils.getLoginName());
/* 155 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
/* 156 */ return this.postMapper.updatePost(post);
/* */ }
/* 158 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
/* 159 */ return this.postMapper.updatePostSqlite(post);
/* */ }
/* 161 */ return this.postMapper.updatePost(post);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int countUserPostById(Long postId) {
/* 175 */ return this.userPostMapper.countUserPostById(postId);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkPostNameUnique(Post post) {
/* 187 */ Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
/* 188 */ Post info = this.postMapper.checkPostNameUnique(post.getPostName());
/* 189 */ if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
/* */ {
/* 191 */ return "1";
/* */ }
/* 193 */ return "0";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String checkPostCodeUnique(Post post) {
/* 205 */ Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
/* 206 */ Post info = this.postMapper.checkPostCodeUnique(post.getPostCode());
/* 207 */ if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
/* */ {
/* 209 */ return "1";
/* */ }
/* 211 */ return "0";
/* */ }
/* */ }
import com.archive.common.exception.BusinessException;
import com.archive.common.utils.StringUtils;
import com.archive.common.utils.security.ShiroUtils;
import com.archive.common.utils.text.Convert;
import com.archive.framework.config.ArchiveConfig;
import com.archive.project.system.post.domain.Post;
import com.archive.project.system.post.mapper.PostMapper;
import com.archive.project.system.post.service.IPostService;
import com.archive.project.system.user.mapper.UserPostMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PostServiceImpl
implements IPostService
{
@Autowired
private PostMapper postMapper;
@Autowired
private UserPostMapper userPostMapper;
@Autowired
private ArchiveConfig archiveConfig;
public List<Post> selectPostList(Post post) {
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.selectPostList(post);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.selectPostListSqlite(post);
}
return this.postMapper.selectPostList(post);
}
public List<Post> selectPostAll() {
return this.postMapper.selectPostAll();
}
public List<Post> selectPostsByUserId(Long userId) {
List<Post> userPosts = this.postMapper.selectPostsByUserId(userId);
List<Post> posts = this.postMapper.selectPostAll();
for (Post post : posts) {
for (Post userRole : userPosts) {
if (post.getPostId().longValue() == userRole.getPostId().longValue())
{
post.setFlag(true);
}
}
}
return posts;
}
public Post selectPostById(Long postId) {
return this.postMapper.selectPostById(postId);
}
public int deletePostByIds(String ids) throws BusinessException {
Long[] postIds = Convert.toLongArray(ids);
for (Long postId : postIds) {
Post post = selectPostById(postId);
if (countUserPostById(postId) > 0)
{
throw new BusinessException(String.format("%1$s已分配,不能删除", new Object[] { post.getPostName() }));
}
}
return this.postMapper.deletePostByIds(postIds);
}
public int insertPost(Post post) {
post.setCreateBy(ShiroUtils.getLoginName());
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.insertPost(post);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.insertPostSqlite(post);
}
return this.postMapper.insertPost(post);
}
public int updatePost(Post post) {
post.setUpdateBy(ShiroUtils.getLoginName());
if ("mysql".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.updatePost(post);
}
if ("sqlite".equals(this.archiveConfig.getDatabaseType())) {
return this.postMapper.updatePostSqlite(post);
}
return this.postMapper.updatePost(post);
}
public int countUserPostById(Long postId) {
return this.userPostMapper.countUserPostById(postId);
}
public String checkPostNameUnique(Post post) {
Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
Post info = this.postMapper.checkPostNameUnique(post.getPostName());
if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
{
return "1";
}
return "0";
}
public String checkPostCodeUnique(Post post) {
Long postId = Long.valueOf(StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId().longValue());
Post info = this.postMapper.checkPostCodeUnique(post.getPostCode());
if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue())
{
return "1";
}
return "0";
}
}
/* 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.file.FileUploadUtils;
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.config.ArchiveConfig;
/* */ import com.archive.framework.shiro.service.PasswordService;
/* */ import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.project.system.user.domain.User;
/* */ import com.archive.project.system.user.service.IUserService;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */ import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.ModelMap;
/* */ import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.RequestParam;
/* */ import org.springframework.web.bind.annotation.ResponseBody;
/* */ import org.springframework.web.multipart.MultipartFile;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ @RequestMapping({"/system/user/profile"})
/* */ public class ProfileController
/* */ extends BaseController
/* */ {
/* 34 */ private static final Logger log = LoggerFactory.getLogger(com.archive.project.system.user.controller.ProfileController.class);
/* */
/* 36 */ private String prefix = "system/user/profile";
/* */
/* */
/* */ @Autowired
/* */ private IUserService userService;
/* */
/* */
/* */ @Autowired
/* */ private PasswordService passwordService;
/* */
/* */
/* */
/* */ @GetMapping
/* */ public String profile(ModelMap mmap) {
/* 50 */ User user = getSysUser();
/* 51 */ mmap.put("user", user);
/* 52 */ mmap.put("roleGroup", this.userService.selectUserRoleGroup(user.getUserId()));
/* 53 */ mmap.put("postGroup", this.userService.selectUserPostGroup(user.getUserId()));
/* 54 */ return this.prefix + "/profile";
/* */ }
/* */
/* */
/* */ @GetMapping({"/checkPassword"})
/* */ @ResponseBody
/* */ public boolean checkPassword(String password) {
/* 61 */ User user = getSysUser();
/* 62 */ if (this.passwordService.matches(user, password))
/* */ {
/* 64 */ return true;
/* */ }
/* 66 */ return false;
/* */ }
/* */
/* */
/* */ @GetMapping({"/resetPwd"})
/* */ public String resetPwd(ModelMap mmap) {
/* 72 */ User user = getSysUser();
/* 73 */ mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 74 */ return this.prefix + "/resetPwd";
/* */ }
/* */
/* */
/* */ @Log(title = "重置密码", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/resetPwd"})
/* */ @ResponseBody
/* */ public AjaxResult resetPwd(String oldPassword, String newPassword) {
/* 82 */ User user = getSysUser();
/* 83 */ if (!this.passwordService.matches(user, oldPassword))
/* */ {
/* 85 */ return error("修改密码失败,旧密码错误");
/* */ }
/* 87 */ if (this.passwordService.matches(user, newPassword))
/* */ {
/* 89 */ return error("新密码不能与旧密码相同");
/* */ }
/* 91 */ user.setPassword(newPassword);
/* 92 */ user.setPwdUpdateDate(DateUtils.getNowDate());
/* 93 */ if (this.userService.resetUserPwd(user) > 0) {
/* */
/* 95 */ setSysUser(this.userService.selectUserById(user.getUserId()));
/* 96 */ return success();
/* */ }
/* 98 */ return error("修改密码异常,请联系管理员");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/edit"})
/* */ public String edit(ModelMap mmap) {
/* 107 */ User user = getSysUser();
/* 108 */ mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 109 */ return this.prefix + "/edit";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @GetMapping({"/avatar"})
/* */ public String avatar(ModelMap mmap) {
/* 118 */ User user = getSysUser();
/* 119 */ mmap.put("user", this.userService.selectUserById(user.getUserId()));
/* 120 */ return this.prefix + "/avatar";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "个人信息", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/update"})
/* */ @ResponseBody
/* */ public AjaxResult update(User user) {
/* 131 */ User currentUser = getSysUser();
/* 132 */ currentUser.setUserName(user.getUserName());
/* 133 */ currentUser.setEmail(user.getEmail());
/* 134 */ currentUser.setPhonenumber(user.getPhonenumber());
/* 135 */ currentUser.setSex(user.getSex());
/* 136 */ if (this.userService.updateUserInfo(currentUser) > 0) {
/* */
/* 138 */ setSysUser(this.userService.selectUserById(currentUser.getUserId()));
/* 139 */ return success();
/* */ }
/* 141 */ return error();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ @Log(title = "个人信息", businessType = BusinessType.UPDATE)
/* */ @PostMapping({"/updateAvatar"})
/* */ @ResponseBody
/* */ public AjaxResult updateAvatar(@RequestParam("avatarfile") MultipartFile file) {
/* 152 */ User currentUser = getSysUser();
/* */
/* */ try {
/* 155 */ if (!file.isEmpty()) {
/* */
/* 157 */ String avatar = FileUploadUtils.upload(ArchiveConfig.getInstance().getAvatarPath(), file);
/* 158 */ currentUser.setAvatar(avatar);
/* 159 */ if (this.userService.updateUserInfo(currentUser) > 0) {
/* */
/* 161 */ setSysUser(this.userService.selectUserById(currentUser.getUserId()));
/* 162 */ return success();
/* */ }
/* */ }
/* 165 */ return error();
/* */ }
/* 167 */ catch (Exception e) {
/* */
/* 169 */ log.error("修改头像失败!", e);
/* 170 */ return error(e.getMessage());
/* */ }
/* */ }
/* */ }
import com.archive.common.utils.DateUtils;
import com.archive.common.utils.file.FileUploadUtils;
import com.archive.framework.aspectj.lang.annotation.Log;
import com.archive.framework.aspectj.lang.enums.BusinessType;
import com.archive.framework.config.ArchiveConfig;
import com.archive.framework.shiro.service.PasswordService;
import com.archive.framework.web.controller.BaseController;
import com.archive.framework.web.domain.AjaxResult;
import com.archive.project.system.user.domain.User;
import com.archive.project.system.user.service.IUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
@Controller
@RequestMapping({"/system/user/profile"})
public class ProfileController
extends BaseController
{
private static final Logger log = LoggerFactory.getLogger(com.archive.project.system.user.controller.ProfileController.class);
private String prefix = "system/user/profile";
@Autowired
private IUserService userService;
@Autowired
private PasswordService passwordService;
@GetMapping
public String profile(ModelMap mmap) {
User user = getSysUser();
mmap.put("user", user);
mmap.put("roleGroup", this.userService.selectUserRoleGroup(user.getUserId()));
mmap.put("postGroup", this.userService.selectUserPostGroup(user.getUserId()));
return this.prefix + "/profile";
}
@GetMapping({"/checkPassword"})
@ResponseBody
public boolean checkPassword(String password) {
User user = getSysUser();
if (this.passwordService.matches(user, password))
{
return true;
}
return false;
}
@GetMapping({"/resetPwd"})
public String resetPwd(ModelMap mmap) {
User user = getSysUser();
mmap.put("user", this.userService.selectUserById(user.getUserId()));
return this.prefix + "/resetPwd";
}
@Log(title = "重置密码", businessType = BusinessType.UPDATE)
@PostMapping({"/resetPwd"})
@ResponseBody
public AjaxResult resetPwd(String oldPassword, String newPassword) {
User user = getSysUser();
if (!this.passwordService.matches(user, oldPassword))
{
return error("修改密码失败,旧密码错误");
}
if (this.passwordService.matches(user, newPassword))
{
return error("新密码不能与旧密码相同");
}
user.setPassword(newPassword);
user.setPwdUpdateDate(DateUtils.getNowDate());
if (this.userService.resetUserPwd(user) > 0) {
setSysUser(this.userService.selectUserById(user.getUserId()));
return success();
}
return error("修改密码异常,请联系管理员");
}
@GetMapping({"/edit"})
public String edit(ModelMap mmap) {
User user = getSysUser();
mmap.put("user", this.userService.selectUserById(user.getUserId()));
return this.prefix + "/edit";
}
@GetMapping({"/avatar"})
public String avatar(ModelMap mmap) {
User user = getSysUser();
mmap.put("user", this.userService.selectUserById(user.getUserId()));
return this.prefix + "/avatar";
}
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
@PostMapping({"/update"})
@ResponseBody
public AjaxResult update(User user) {
User currentUser = getSysUser();
currentUser.setUserName(user.getUserName());
currentUser.setEmail(user.getEmail());
currentUser.setPhonenumber(user.getPhonenumber());
currentUser.setSex(user.getSex());
if (this.userService.updateUserInfo(currentUser) > 0) {
setSysUser(this.userService.selectUserById(currentUser.getUserId()));
return success();
}
return error();
}
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
@PostMapping({"/updateAvatar"})
@ResponseBody
public AjaxResult updateAvatar(@RequestParam("avatarfile") MultipartFile file) {
User currentUser = getSysUser();
try {
if (!file.isEmpty()) {
String avatar = FileUploadUtils.upload(ArchiveConfig.getInstance().getAvatarPath(), file);
currentUser.setAvatar(avatar);
if (this.userService.updateUserInfo(currentUser) > 0) {
setSysUser(this.userService.selectUserById(currentUser.getUserId()));
return success();
}
}
return error();
}
catch (Exception e) {
log.error("修改头像失败!", e);
return error(e.getMessage());
}
}
}
/* 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__) {
"use strict";
@ -368,7 +368,7 @@ const pdfjsBuild = '0974d6052';
}
/***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -868,7 +868,7 @@ class PDFDateString {
exports.PDFDateString = PDFDateString;
/***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -1696,7 +1696,7 @@ const createObjectURL = function createObjectURLClosure() {
exports.createObjectURL = createObjectURL;
/***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -1707,7 +1707,7 @@ var _is_node = __w_pdfjs_require__(4);
;
/***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -1721,7 +1721,7 @@ const isNodeJS = typeof process === "object" && process + "" === "[object proces
exports.isNodeJS = isNodeJS;
/***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -3804,7 +3804,7 @@ const build = '0974d6052';
exports.build = build;
/***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -4191,7 +4191,7 @@ class FontFaceObject {
exports.FontFaceObject = FontFaceObject;
/***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -4216,7 +4216,7 @@ const apiCompatibilityParams = Object.freeze(compatibilityParams);
exports.apiCompatibilityParams = apiCompatibilityParams;
/***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -6262,7 +6262,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
exports.CanvasGraphics = CanvasGraphics;
/***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -6743,7 +6743,7 @@ var TilingPattern = function TilingPatternClosure() {
exports.TilingPattern = TilingPattern;
/***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -6759,7 +6759,7 @@ GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ?
GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc;
/***/ }),
/* 11 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -7260,7 +7260,7 @@ class MessageHandler {
exports.MessageHandler = MessageHandler;
/***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -7388,7 +7388,7 @@ class Metadata {
exports.Metadata = Metadata;
/***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -7831,7 +7831,7 @@ class SimpleXMLParser extends XMLParserBase {
exports.SimpleXMLParser = SimpleXMLParser;
/***/ }),
/* 14 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -8186,7 +8186,7 @@ class PDFDataTransportStreamRangeReader {
}
/***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -8633,7 +8633,7 @@ var WebGLUtils = function WebGLUtilsClosure() {
}();
/***/ }),
/* 16 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -9669,7 +9669,7 @@ class AnnotationLayer {
exports.AnnotationLayer = AnnotationLayer;
/***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -10364,7 +10364,7 @@ var renderTextLayer = function renderTextLayerClosure() {
exports.renderTextLayer = renderTextLayer;
/***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -11890,7 +11890,7 @@ exports.SVGGraphics = SVGGraphics;
}
/***/ }),
/* 19 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -12359,7 +12359,7 @@ class PDFNodeStreamFsRangeReader extends BaseRangeReader {
}
/***/ }),
/* 20 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -12451,7 +12451,7 @@ function validateResponseStatus(status) {
}
/***/ }),
/* 21 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -12639,7 +12639,7 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
}
/***/ }),
/* 22 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";
@ -13196,7 +13196,7 @@ class PDFNetworkStreamRangeRequestReader {
}
/***/ }),
/* 23 */
/***/ (function(module, exports, __w_pdfjs_require__) {
"use strict";

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

Loading…
Cancel
Save