From c4712cc9c900300fb66032eb47e964a328ee7d36 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 21 May 2025 08:59:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/exception/job/TaskException.java | 58 +- .../exception/user/UserBlockedException.java | 32 +- .../exception/user/UserDeleteException.java | 32 +- .../com/archive/common/utils/Threads.java | 198 +-- .../com/archive/common/utils/TreeUtils.java | 274 ++-- .../common/utils/text/StrFormatter.java | 186 +-- .../archive/common/utils/text/TextUtils.java | 118 +- .../aspectj/lang/annotation/Type.java | 296 ++--- .../framework/config/SwaggerConfig.java | 146 +-- .../framework/config/ThreadPoolConfig.java | 102 +- .../filter/sync/SyncOnlineSessionFilter.java | 78 +- .../framework/web/domain/TreeEntity.java | 126 +- .../archive/framework/web/domain/Type.java | 92 +- .../framework/web/page/TableDataInfo.java | 170 +-- .../framework/web/page/TableSupport.java | 60 +- .../bfgl/controller/TKfBfglController.java | 252 ++-- .../project/dabg/bfgl/domain/TKfBfgl.java | 274 ++-- .../bfgl/service/impl/TKfBfglServiceImpl.java | 188 +-- .../wsddj/controller/TKfWsddjController.java | 252 ++-- .../project/dabg/wsddj/domain/TKfWsddj.java | 298 ++--- .../service/impl/TKfWsddjServiceImpl.java | 188 +-- .../TXtpzGridColumnsController.java | 258 ++-- .../gridcolumns/domain/TXtpzGridColumns.java | 326 ++--- .../impl/TXtpzGridColumnsServiceImpl.java | 354 +++--- .../controller/TPsFondsCodeController.java | 252 ++-- .../dasz/qzgl/domain/TPsFondsCode.java | 242 ++-- .../service/impl/TPsFondsCodeServiceImpl.java | 216 ++-- .../dajd/controller/TJdTaskController.java | 288 ++--- .../project/dazl/dajd/domain/TJdTask.java | 326 ++--- .../dajd/service/impl/TJdTaskServiceImpl.java | 354 +++--- .../dazl/ggfj/controller/TGgfjController.java | 252 ++-- .../project/dazl/ggfj/domain/TGgfj.java | 326 ++--- .../ggfj/service/impl/TGgfjServiceImpl.java | 188 +-- .../controller/TJdTaskDetailController.java | 412 +++--- .../dazl/jdmx/domain/TJdTaskDetail.java | 578 ++++----- .../impl/TJdTaskDetailServiceImpl.java | 362 +++--- .../dazl/wsnj/controller/TWsnjController.java | 254 ++-- .../project/dazl/wsnj/domain/TWsnj.java | 270 ++-- .../wsnj/service/impl/TWsnjServiceImpl.java | 188 +-- .../controller/TArchiveBorrowController.java | 328 ++--- .../jyly/borrow/domain/TArchiveBorrow.java | 1118 ++++++++--------- .../impl/TArchiveBorrowServiceImpl.java | 218 ++-- .../TArchiveBorrowDetailController.java | 320 ++--- .../detail/domain/TArchiveBorrowDetail.java | 722 +++++------ .../impl/TArchiveBorrowDetailServiceImpl.java | 308 ++--- .../controller/TArchivePersonController.java | 252 ++-- .../jyly/person/domain/TArchivePerson.java | 528 ++++---- .../impl/TArchivePersonServiceImpl.java | 188 +-- .../project/monitor/server/domain/Sys.java | 168 +-- .../monitor/server/domain/SysFile.java | 228 ++-- .../user/controller/UserController.java | 554 ++++---- .../project/system/user/domain/User.java | 790 ++++++------ .../tool/swagger/SwaggerController.java | 48 +- .../project/tool/swagger/TestController.java | 210 ++-- .../ajax/libs/summernote/summernote-bs3.css | 108 +- 55 files changed, 7477 insertions(+), 7477 deletions(-) diff --git a/src/main/java/com/archive/common/exception/job/TaskException.java b/src/main/java/com/archive/common/exception/job/TaskException.java index f8704f7..6931c50 100644 --- a/src/main/java/com/archive/common/exception/job/TaskException.java +++ b/src/main/java/com/archive/common/exception/job/TaskException.java @@ -1,32 +1,32 @@ -/* */ package com.archive.common.exception.job; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TaskException -/* */ extends Exception -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Code code; -/* */ -/* */ public TaskException(String msg, Code code) { -/* 16 */ this(msg, code, null); -/* */ } -/* */ -/* */ -/* */ public TaskException(String msg, Code code, Exception nestedEx) { -/* 21 */ super(msg, nestedEx); -/* 22 */ this.code = code; -/* */ } -/* */ -/* */ -/* */ public Code getCode() { -/* 27 */ return this.code; -/* */ } -/* */ } + package com.archive.common.exception.job; + + + + + + + + public class TaskException + extends Exception + { + private static final long serialVersionUID = 1L; + private Code code; + + public TaskException(String msg, Code code) { + this(msg, code, null); + } + + + public TaskException(String msg, Code code, Exception nestedEx) { + super(msg, nestedEx); + this.code = code; + } + + + public Code getCode() { + return this.code; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\job\TaskException.class diff --git a/src/main/java/com/archive/common/exception/user/UserBlockedException.java b/src/main/java/com/archive/common/exception/user/UserBlockedException.java index 9b367ad..c3f8cce 100644 --- a/src/main/java/com/archive/common/exception/user/UserBlockedException.java +++ b/src/main/java/com/archive/common/exception/user/UserBlockedException.java @@ -1,19 +1,19 @@ -/* */ package com.archive.common.exception.user; -/* */ -/* */ import com.archive.common.exception.user.UserException; -/* */ -/* */ -/* */ -/* */ -/* */ public class UserBlockedException -/* */ extends UserException -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ -/* */ public UserBlockedException() { -/* 14 */ super("user.blocked", null); -/* */ } -/* */ } + package com.archive.common.exception.user; + + import com.archive.common.exception.user.UserException; + + + + + public class UserBlockedException + extends UserException + { + private static final long serialVersionUID = 1L; + + public UserBlockedException() { + super("user.blocked", null); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserBlockedException.class diff --git a/src/main/java/com/archive/common/exception/user/UserDeleteException.java b/src/main/java/com/archive/common/exception/user/UserDeleteException.java index c6cf61d..5af0062 100644 --- a/src/main/java/com/archive/common/exception/user/UserDeleteException.java +++ b/src/main/java/com/archive/common/exception/user/UserDeleteException.java @@ -1,19 +1,19 @@ -/* */ package com.archive.common.exception.user; -/* */ -/* */ import com.archive.common.exception.user.UserException; -/* */ -/* */ -/* */ -/* */ -/* */ public class UserDeleteException -/* */ extends UserException -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ -/* */ public UserDeleteException() { -/* 14 */ super("user.password.delete", null); -/* */ } -/* */ } + package com.archive.common.exception.user; + + import com.archive.common.exception.user.UserException; + + + + + public class UserDeleteException + extends UserException + { + private static final long serialVersionUID = 1L; + + public UserDeleteException() { + super("user.password.delete", null); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserDeleteException.class diff --git a/src/main/java/com/archive/common/utils/Threads.java b/src/main/java/com/archive/common/utils/Threads.java index cb04e53..736c0be 100644 --- a/src/main/java/com/archive/common/utils/Threads.java +++ b/src/main/java/com/archive/common/utils/Threads.java @@ -1,104 +1,104 @@ -/* */ package com.archive.common.utils + package com.archive.common.utils ; -/* */ -/* */ import java.util.concurrent.CancellationException; -/* */ import java.util.concurrent.ExecutionException; -/* */ import java.util.concurrent.ExecutorService; -/* */ import java.util.concurrent.Future; -/* */ import java.util.concurrent.TimeUnit; -/* */ import org.slf4j.Logger; -/* */ import org.slf4j.LoggerFactory; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class Threads -/* */ { -/* 18 */ private static final Logger logger = LoggerFactory.getLogger(com.archive.common.utils.Threads.class); -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void sleep(long milliseconds) { -/* */ try { -/* 27 */ Thread.sleep(milliseconds); -/* */ } -/* 29 */ catch (InterruptedException e) { -/* */ return; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void shutdownAndAwaitTermination(ExecutorService pool) { -/* 44 */ if (pool != null && !pool.isShutdown()) { -/* */ -/* 46 */ pool.shutdown(); -/* */ -/* */ try { -/* 49 */ if (!pool.awaitTermination(120L, TimeUnit.SECONDS)) -/* */ { -/* 51 */ pool.shutdownNow(); -/* 52 */ if (!pool.awaitTermination(120L, TimeUnit.SECONDS)) -/* */ { -/* 54 */ logger.info("Pool did not terminate"); -/* */ } -/* */ } -/* */ -/* 58 */ } catch (InterruptedException ie) { -/* */ -/* 60 */ pool.shutdownNow(); -/* 61 */ Thread.currentThread().interrupt(); -/* */ } -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void printException(Runnable r, Throwable t) { -/* 71 */ if (t == null && r instanceof Future) { -/* */ -/* */ try { -/* */ -/* 75 */ Future future = (Future)r; -/* 76 */ if (future.isDone()) -/* */ { -/* 78 */ future.get(); -/* */ } -/* */ } -/* 81 */ catch (CancellationException ce) { -/* */ -/* 83 */ t = ce; -/* */ } -/* 85 */ catch (ExecutionException ee) { -/* */ -/* 87 */ t = ee.getCause(); -/* */ } -/* 89 */ catch (InterruptedException ie) { -/* */ -/* 91 */ Thread.currentThread().interrupt(); -/* */ } -/* */ } -/* 94 */ if (t != null) -/* */ { -/* 96 */ logger.error(t.getMessage(), t); -/* */ } -/* */ } -/* */ } + + import java.util.concurrent.CancellationException; + import java.util.concurrent.ExecutionException; + import java.util.concurrent.ExecutorService; + import java.util.concurrent.Future; + import java.util.concurrent.TimeUnit; + import org.slf4j.Logger; + import org.slf4j.LoggerFactory; + + + + + + + public class Threads + { + private static final Logger logger = LoggerFactory.getLogger(com.archive.common.utils.Threads.class); + + + + + + + public static void sleep(long milliseconds) { + try { + Thread.sleep(milliseconds); + } + catch (InterruptedException e) { + return; + } + } + + + + + + + + + + + public static void shutdownAndAwaitTermination(ExecutorService pool) { + if (pool != null && !pool.isShutdown()) { + + pool.shutdown(); + + try { + if (!pool.awaitTermination(120L, TimeUnit.SECONDS)) + { + pool.shutdownNow(); + if (!pool.awaitTermination(120L, TimeUnit.SECONDS)) + { + logger.info("Pool did not terminate"); + } + } + + } catch (InterruptedException ie) { + + pool.shutdownNow(); + Thread.currentThread().interrupt(); + } + } + } + + + + + + public static void printException(Runnable r, Throwable t) { + if (t == null && r instanceof Future) { + + try { + + Future future = (Future)r; + if (future.isDone()) + { + future.get(); + } + } + catch (CancellationException ce) { + + t = ce; + } + catch (ExecutionException ee) { + + t = ee.getCause(); + } + catch (InterruptedException ie) { + + Thread.currentThread().interrupt(); + } + } + if (t != null) + { + logger.error(t.getMessage(), t); + } + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\Threads.class diff --git a/src/main/java/com/archive/common/utils/TreeUtils.java b/src/main/java/com/archive/common/utils/TreeUtils.java index 7211b06..79dd783 100644 --- a/src/main/java/com/archive/common/utils/TreeUtils.java +++ b/src/main/java/com/archive/common/utils/TreeUtils.java @@ -1,142 +1,142 @@ -/* */ package com.archive.common.utils + package com.archive.common.utils ; -/* */ -/* */ import com.archive.project.system.menu.domain.Menu; -/* */ import java.util.ArrayList; -/* */ import java.util.Iterator; -/* */ import java.util.List; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TreeUtils -/* */ { -/* */ public static List getChildPerms(List list, int parentId) { -/* 24 */ List returnList = new ArrayList<>(); -/* 25 */ for (Iterator iterator = list.iterator(); iterator.hasNext(); ) { -/* */ -/* 27 */ Menu t = iterator.next(); -/* */ -/* 29 */ if (t.getParentId().longValue() == parentId) { -/* */ -/* 31 */ recursionFn(list, t); -/* 32 */ returnList.add(t); -/* */ } -/* */ } -/* 35 */ return returnList; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private static void recursionFn(List list, Menu t) { -/* 47 */ List childList = getChildList(list, t); -/* 48 */ t.setChildren(childList); -/* 49 */ for (Menu tChild : childList) { -/* */ -/* 51 */ if (hasChild(list, tChild)) -/* */ { -/* 53 */ recursionFn(list, tChild); -/* */ } -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private static List getChildList(List list, Menu t) { -/* 64 */ List tlist = new ArrayList<>(); -/* 65 */ Iterator it = list.iterator(); -/* 66 */ while (it.hasNext()) { -/* */ -/* 68 */ Menu n = it.next(); -/* 69 */ if (n.getParentId().longValue() == t.getMenuId().longValue()) -/* */ { -/* 71 */ tlist.add(n); -/* */ } -/* */ } -/* 74 */ return tlist; -/* */ } -/* */ -/* 77 */ List returnList = new ArrayList<>(); -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List getChildPerms(List list, int typeId, String prefix) { -/* 88 */ if (list == null) -/* */ { -/* 90 */ return null; -/* */ } -/* 92 */ for (Iterator iterator = list.iterator(); iterator.hasNext(); ) { -/* */ -/* 94 */ Menu node = iterator.next(); -/* */ -/* 96 */ if (node.getParentId().longValue() == typeId) -/* */ { -/* 98 */ recursionFn(list, node, prefix); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* 105 */ return this.returnList; -/* */ } -/* */ -/* */ -/* */ -/* */ private void recursionFn(List list, Menu node, String p) { -/* 111 */ List childList = getChildList(list, node); -/* 112 */ if (hasChild(list, node)) { -/* */ -/* */ -/* 115 */ this.returnList.add(node); -/* 116 */ Iterator it = childList.iterator(); -/* 117 */ while (it.hasNext()) -/* */ { -/* 119 */ Menu n = it.next(); -/* 120 */ n.setMenuName(p + n.getMenuName()); -/* 121 */ recursionFn(list, n, p + p); -/* */ } -/* */ -/* */ } else { -/* */ -/* 126 */ this.returnList.add(node); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private static boolean hasChild(List list, Menu t) { -/* 135 */ return (getChildList(list, t).size() > 0); -/* */ } -/* */ } + + import com.archive.project.system.menu.domain.Menu; + import java.util.ArrayList; + import java.util.Iterator; + import java.util.List; + + + + + + + + + + + + + + + public class TreeUtils + { + public static List getChildPerms(List list, int parentId) { + List returnList = new ArrayList<>(); + for (Iterator iterator = list.iterator(); iterator.hasNext(); ) { + + Menu t = iterator.next(); + + if (t.getParentId().longValue() == parentId) { + + recursionFn(list, t); + returnList.add(t); + } + } + return returnList; + } + + + + + + + + + + private static void recursionFn(List list, Menu t) { + List childList = getChildList(list, t); + t.setChildren(childList); + for (Menu tChild : childList) { + + if (hasChild(list, tChild)) + { + recursionFn(list, tChild); + } + } + } + + + + + + + private static List getChildList(List list, Menu t) { + List tlist = new ArrayList<>(); + Iterator it = list.iterator(); + while (it.hasNext()) { + + Menu n = it.next(); + if (n.getParentId().longValue() == t.getMenuId().longValue()) + { + tlist.add(n); + } + } + return tlist; + } + + List returnList = new ArrayList<>(); + + + + + + + + + + public List getChildPerms(List list, int typeId, String prefix) { + if (list == null) + { + return null; + } + for (Iterator iterator = list.iterator(); iterator.hasNext(); ) { + + Menu node = iterator.next(); + + if (node.getParentId().longValue() == typeId) + { + recursionFn(list, node, prefix); + } + } + + + + + return this.returnList; + } + + + + private void recursionFn(List list, Menu node, String p) { + List childList = getChildList(list, node); + if (hasChild(list, node)) { + + + this.returnList.add(node); + Iterator it = childList.iterator(); + while (it.hasNext()) + { + Menu n = it.next(); + n.setMenuName(p + n.getMenuName()); + recursionFn(list, n, p + p); + } + + } else { + + this.returnList.add(node); + } + } + + + + + + private static boolean hasChild(List list, Menu t) { + return (getChildList(list, t).size() > 0); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\TreeUtils.class diff --git a/src/main/java/com/archive/common/utils/text/StrFormatter.java b/src/main/java/com/archive/common/utils/text/StrFormatter.java index 3701cec..1770f40 100644 --- a/src/main/java/com/archive/common/utils/text/StrFormatter.java +++ b/src/main/java/com/archive/common/utils/text/StrFormatter.java @@ -1,96 +1,96 @@ -/* */ package com.archive.common.utils.text; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.text.Convert; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class StrFormatter -/* */ { -/* */ public static final String EMPTY_JSON = "{}"; -/* */ public static final char C_BACKSLASH = '\\'; -/* */ public static final char C_DELIM_START = '{'; -/* */ public static final char C_DELIM_END = '}'; -/* */ -/* */ public static String format(String strPattern, Object... argArray) { -/* 32 */ if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray)) -/* */ { -/* 34 */ return strPattern; -/* */ } -/* 36 */ int strPatternLength = strPattern.length(); -/* */ -/* */ -/* 39 */ StringBuilder sbuf = new StringBuilder(strPatternLength + 50); -/* */ -/* 41 */ int handledPosition = 0; -/* */ -/* 43 */ for (int argIndex = 0; argIndex < argArray.length; argIndex++) { -/* */ -/* 45 */ int delimIndex = strPattern.indexOf("{}", handledPosition); -/* 46 */ if (delimIndex == -1) { -/* */ -/* 48 */ if (handledPosition == 0) -/* */ { -/* 50 */ return strPattern; -/* */ } -/* */ -/* */ -/* 54 */ sbuf.append(strPattern, handledPosition, strPatternLength); -/* 55 */ return sbuf.toString(); -/* */ } -/* */ -/* */ -/* */ -/* 60 */ if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == '\\') { -/* */ -/* 62 */ if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == '\\') -/* */ { -/* */ -/* 65 */ sbuf.append(strPattern, handledPosition, delimIndex - 1); -/* 66 */ sbuf.append(Convert.utf8Str(argArray[argIndex])); -/* 67 */ handledPosition = delimIndex + 2; -/* */ -/* */ } -/* */ else -/* */ { -/* 72 */ argIndex--; -/* 73 */ sbuf.append(strPattern, handledPosition, delimIndex - 1); -/* 74 */ sbuf.append('{'); -/* 75 */ handledPosition = delimIndex + 1; -/* */ } -/* */ -/* */ } -/* */ else { -/* */ -/* 81 */ sbuf.append(strPattern, handledPosition, delimIndex); -/* 82 */ sbuf.append(Convert.utf8Str(argArray[argIndex])); -/* 83 */ handledPosition = delimIndex + 2; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* 89 */ sbuf.append(strPattern, handledPosition, strPattern.length()); -/* */ -/* 91 */ return sbuf.toString(); -/* */ } -/* */ } + package com.archive.common.utils.text; + + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.text.Convert; + + + + + + + + + + + + + + + + + + + + public class StrFormatter + { + public static final String EMPTY_JSON = "{}"; + public static final char C_BACKSLASH = '\\'; + public static final char C_DELIM_START = '{'; + public static final char C_DELIM_END = '}'; + + public static String format(String strPattern, Object... argArray) { + if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray)) + { + return strPattern; + } + int strPatternLength = strPattern.length(); + + + StringBuilder sbuf = new StringBuilder(strPatternLength + 50); + + int handledPosition = 0; + + for (int argIndex = 0; argIndex < argArray.length; argIndex++) { + + int delimIndex = strPattern.indexOf("{}", handledPosition); + if (delimIndex == -1) { + + if (handledPosition == 0) + { + return strPattern; + } + + + sbuf.append(strPattern, handledPosition, strPatternLength); + return sbuf.toString(); + } + + + + if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == '\\') { + + if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == '\\') + { + + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + + } + else + { + argIndex--; + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append('{'); + handledPosition = delimIndex + 1; + } + + } + else { + + sbuf.append(strPattern, handledPosition, delimIndex); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + } + } + + + + sbuf.append(strPattern, handledPosition, strPattern.length()); + + return sbuf.toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\text\StrFormatter.class diff --git a/src/main/java/com/archive/common/utils/text/TextUtils.java b/src/main/java/com/archive/common/utils/text/TextUtils.java index d0e096e..05b92de 100644 --- a/src/main/java/com/archive/common/utils/text/TextUtils.java +++ b/src/main/java/com/archive/common/utils/text/TextUtils.java @@ -1,62 +1,62 @@ -/* */ package com.archive.common.utils.text; -/* */ -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import java.io.BufferedWriter; -/* */ import java.io.File; -/* */ import java.io.FileWriter; -/* */ import java.io.IOException; -/* */ import java.nio.file.Files; -/* */ import java.nio.file.Paths; -/* */ import java.util.List; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TextUtils -/* */ { -/* */ public static String generateTxt(String text, String fileName) { -/* 28 */ String result = ""; -/* 29 */ String folderDir = ArchiveConfig.getInstance().getImportBathMessagePath(); -/* 30 */ File folder = new File(folderDir); -/* 31 */ if (!folder.exists()) { -/* 32 */ folder.mkdirs(); -/* */ } -/* */ try { -/* 35 */ String filePath = folderDir + File.separator + fileName; -/* 36 */ File file = new File(filePath); -/* 37 */ BufferedWriter writer = new BufferedWriter(new FileWriter(file)); -/* 38 */ writer.write(text); -/* 39 */ writer.close(); -/* 40 */ result = filePath; -/* 41 */ } catch (IOException e) { -/* 42 */ e.printStackTrace(); -/* */ } -/* 44 */ return result; -/* */ } -/* */ -/* */ public static String readText(String filePath) { -/* 48 */ String result = ""; -/* */ try { -/* 50 */ List lines = Files.readAllLines(Paths.get(filePath, new String[0])); -/* 51 */ for (String line : lines) { -/* 52 */ result = result + line; -/* */ } -/* 54 */ } catch (IOException e) { -/* 55 */ e.printStackTrace(); -/* */ } -/* 57 */ return result; -/* */ } -/* */ } + package com.archive.common.utils.text; + + import com.archive.framework.config.ArchiveConfig; + import java.io.BufferedWriter; + import java.io.File; + import java.io.FileWriter; + import java.io.IOException; + import java.nio.file.Files; + import java.nio.file.Paths; + import java.util.List; + + + + + + + + + + + + + + + public class TextUtils + { + public static String generateTxt(String text, String fileName) { + String result = ""; + String folderDir = ArchiveConfig.getInstance().getImportBathMessagePath(); + File folder = new File(folderDir); + if (!folder.exists()) { + folder.mkdirs(); + } + try { + String filePath = folderDir + File.separator + fileName; + File file = new File(filePath); + BufferedWriter writer = new BufferedWriter(new FileWriter(file)); + writer.write(text); + writer.close(); + result = filePath; + } catch (IOException e) { + e.printStackTrace(); + } + return result; + } + + public static String readText(String filePath) { + String result = ""; + try { + List lines = Files.readAllLines(Paths.get(filePath, new String[0])); + for (String line : lines) { + result = result + line; + } + } catch (IOException e) { + e.printStackTrace(); + } + return result; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\text\TextUtils.class diff --git a/src/main/java/com/archive/framework/aspectj/lang/annotation/Type.java b/src/main/java/com/archive/framework/aspectj/lang/annotation/Type.java index b074831..0d3a36b 100644 --- a/src/main/java/com/archive/framework/aspectj/lang/annotation/Type.java +++ b/src/main/java/com/archive/framework/aspectj/lang/annotation/Type.java @@ -1,153 +1,153 @@ -/* */ package com.archive.framework.aspectj.lang.annotation + package com.archive.framework.aspectj.lang.annotation ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum Type -/* */ { -/* 136 */ ALL(0), EXPORT(1), IMPORT(2); -/* */ -/* */ private final int value; -/* */ -/* */ Type(int value) { -/* 141 */ this.value = value; -/* */ } -/* */ -/* */ -/* */ public int value() { -/* 146 */ return this.value; -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public enum Type + { + ALL(0), EXPORT(1), IMPORT(2); + + private final int value; + + Type(int value) { + this.value = value; + } + + + public int value() { + return this.value; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\aspectj\lang\annotation\Excel$Type.class diff --git a/src/main/java/com/archive/framework/config/SwaggerConfig.java b/src/main/java/com/archive/framework/config/SwaggerConfig.java index 7ac6edf..5e529ee 100644 --- a/src/main/java/com/archive/framework/config/SwaggerConfig.java +++ b/src/main/java/com/archive/framework/config/SwaggerConfig.java @@ -1,78 +1,78 @@ -/* */ package com.archive.framework.config + package com.archive.framework.config ; -/* */ -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import io.swagger.annotations.ApiOperation; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.beans.factory.annotation.Value; -/* */ import org.springframework.context.annotation.Bean; -/* */ import org.springframework.context.annotation.Configuration; -/* */ import springfox.documentation.builders.ApiInfoBuilder; -/* */ import springfox.documentation.builders.PathSelectors; -/* */ import springfox.documentation.builders.RequestHandlerSelectors; -/* */ import springfox.documentation.service.ApiInfo; -/* */ import springfox.documentation.service.Contact; -/* */ import springfox.documentation.spi.DocumentationType; -/* */ import springfox.documentation.spring.web.plugins.Docket; -/* */ import springfox.documentation.swagger2.annotations.EnableSwagger2; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Configuration -/* */ @EnableSwagger2 -/* */ public class SwaggerConfig -/* */ { -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ @Value("${swagger.enabled}") -/* */ private boolean enabled; -/* */ -/* */ @Bean -/* */ public Docket createRestApi() { -/* 40 */ return (new Docket(DocumentationType.SWAGGER_2)) -/* */ -/* 42 */ .enable(this.enabled) -/* */ -/* 44 */ .apiInfo(apiInfo()) -/* */ -/* 46 */ .select() -/* */ -/* 48 */ .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) -/* */ -/* */ -/* */ -/* 52 */ .paths(PathSelectors.any()) -/* 53 */ .build(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private ApiInfo apiInfo() { -/* 62 */ return (new ApiInfoBuilder()) -/* */ -/* 64 */ .title("标题:若依管理系统_接口文档") -/* */ -/* 66 */ .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") -/* */ -/* 68 */ .contact(new Contact(this.archiveConfig.getName(), null, null)) -/* */ -/* 70 */ .version("版本号:" + this.archiveConfig.getVersion()) -/* 71 */ .build(); -/* */ } -/* */ } + + import com.archive.framework.config.ArchiveConfig; + import io.swagger.annotations.ApiOperation; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.beans.factory.annotation.Value; + import org.springframework.context.annotation.Bean; + import org.springframework.context.annotation.Configuration; + import springfox.documentation.builders.ApiInfoBuilder; + import springfox.documentation.builders.PathSelectors; + import springfox.documentation.builders.RequestHandlerSelectors; + import springfox.documentation.service.ApiInfo; + import springfox.documentation.service.Contact; + import springfox.documentation.spi.DocumentationType; + import springfox.documentation.spring.web.plugins.Docket; + import springfox.documentation.swagger2.annotations.EnableSwagger2; + + + + + + + + + + + + + @Configuration + @EnableSwagger2 + public class SwaggerConfig + { + @Autowired + private ArchiveConfig archiveConfig; + @Value("${swagger.enabled}") + private boolean enabled; + + @Bean + public Docket createRestApi() { + return (new Docket(DocumentationType.SWAGGER_2)) + + .enable(this.enabled) + + .apiInfo(apiInfo()) + + .select() + + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) + + + + .paths(PathSelectors.any()) + .build(); + } + + + + + + + private ApiInfo apiInfo() { + return (new ApiInfoBuilder()) + + .title("标题:若依管理系统_接口文档") + + .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") + + .contact(new Contact(this.archiveConfig.getName(), null, null)) + + .version("版本号:" + this.archiveConfig.getVersion()) + .build(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\SwaggerConfig.class diff --git a/src/main/java/com/archive/framework/config/ThreadPoolConfig.java b/src/main/java/com/archive/framework/config/ThreadPoolConfig.java index 3e05933..af9b90c 100644 --- a/src/main/java/com/archive/framework/config/ThreadPoolConfig.java +++ b/src/main/java/com/archive/framework/config/ThreadPoolConfig.java @@ -1,57 +1,57 @@ -/* */ package com.archive.framework.config + package com.archive.framework.config ; -/* */ -/* */ import java.util.concurrent.ScheduledExecutorService; -/* */ import java.util.concurrent.ScheduledThreadPoolExecutor; + + import java.util.concurrent.ScheduledExecutorService; + import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; -/* */ import java.util.concurrent.ThreadPoolExecutor; -/* */ import com.archive.common.utils.Threads; + import java.util.concurrent.ThreadPoolExecutor; + import com.archive.common.utils.Threads; import org.apache.commons.lang3.concurrent.BasicThreadFactory; -/* */ import org.springframework.context.annotation.Bean; -/* */ import org.springframework.context.annotation.Configuration; -/* */ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Configuration -/* */ public class ThreadPoolConfig -/* */ { -/* 21 */ private int corePoolSize = 50; -/* */ -/* */ -/* 24 */ private int maxPoolSize = 200; -/* */ -/* */ -/* 27 */ private int queueCapacity = 1000; -/* */ -/* */ -/* 30 */ private int keepAliveSeconds = 300; -/* */ -/* */ -/* */ @Bean(name = {"threadPoolTaskExecutor"}) -/* */ public ThreadPoolTaskExecutor threadPoolTaskExecutor() { -/* 35 */ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); -/* 36 */ executor.setMaxPoolSize(this.maxPoolSize); -/* 37 */ executor.setCorePoolSize(this.corePoolSize); -/* 38 */ executor.setQueueCapacity(this.queueCapacity); -/* 39 */ executor.setKeepAliveSeconds(this.keepAliveSeconds); -/* */ -/* 41 */ executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); -/* 42 */ return executor; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Bean(name = {"scheduledExecutorService"}) -/* */ protected ScheduledExecutorService scheduledExecutorService() + import org.springframework.context.annotation.Bean; + import org.springframework.context.annotation.Configuration; + import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; + + + + + + + + + @Configuration + public class ThreadPoolConfig + { + private int corePoolSize = 50; + + + private int maxPoolSize = 200; + + + private int queueCapacity = 1000; + + + private int keepAliveSeconds = 300; + + + @Bean(name = {"threadPoolTaskExecutor"}) + public ThreadPoolTaskExecutor threadPoolTaskExecutor() { + ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); + executor.setMaxPoolSize(this.maxPoolSize); + executor.setCorePoolSize(this.corePoolSize); + executor.setQueueCapacity(this.queueCapacity); + executor.setKeepAliveSeconds(this.keepAliveSeconds); + + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); + return executor; + } + + + + + + @Bean(name = {"scheduledExecutorService"}) + protected ScheduledExecutorService scheduledExecutorService() { return new ScheduledThreadPoolExecutor(corePoolSize, new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build(), @@ -65,7 +65,7 @@ import org.apache.commons.lang3.concurrent.BasicThreadFactory; } }; } -/* */ } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\config\ThreadPoolConfig.class diff --git a/src/main/java/com/archive/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java b/src/main/java/com/archive/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java index fea622d..5e3708d 100644 --- a/src/main/java/com/archive/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java +++ b/src/main/java/com/archive/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java @@ -1,42 +1,42 @@ -/* */ package com.archive.framework.shiro.web.filter.sync; -/* */ -/* */ import com.archive.framework.shiro.session.OnlineSessionDAO; -/* */ import com.archive.project.monitor.online.domain.OnlineSession; -/* */ import javax.servlet.ServletRequest; -/* */ import javax.servlet.ServletResponse; -/* */ import org.apache.shiro.web.filter.PathMatchingFilter; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class SyncOnlineSessionFilter -/* */ extends PathMatchingFilter -/* */ { -/* */ private OnlineSessionDAO onlineSessionDAO; -/* */ -/* */ protected boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { -/* 25 */ OnlineSession session = (OnlineSession)request.getAttribute("online_session"); -/* */ -/* */ -/* 28 */ if (session != null && session.getUserId() != null && session.getStopTimestamp() == null) -/* */ { -/* 30 */ this.onlineSessionDAO.syncToDb(session); -/* */ } -/* 32 */ return true; -/* */ } -/* */ -/* */ -/* */ public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) { -/* 37 */ this.onlineSessionDAO = onlineSessionDAO; -/* */ } -/* */ } + package com.archive.framework.shiro.web.filter.sync; + + import com.archive.framework.shiro.session.OnlineSessionDAO; + import com.archive.project.monitor.online.domain.OnlineSession; + import javax.servlet.ServletRequest; + import javax.servlet.ServletResponse; + import org.apache.shiro.web.filter.PathMatchingFilter; + + + + + + + + + + + + public class SyncOnlineSessionFilter + extends PathMatchingFilter + { + private OnlineSessionDAO onlineSessionDAO; + + protected boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { + OnlineSession session = (OnlineSession)request.getAttribute("online_session"); + + + if (session != null && session.getUserId() != null && session.getStopTimestamp() == null) + { + this.onlineSessionDAO.syncToDb(session); + } + return true; + } + + + public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) { + this.onlineSessionDAO = onlineSessionDAO; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\web\filter\sync\SyncOnlineSessionFilter.class diff --git a/src/main/java/com/archive/framework/web/domain/TreeEntity.java b/src/main/java/com/archive/framework/web/domain/TreeEntity.java index f835f52..217d9f4 100644 --- a/src/main/java/com/archive/framework/web/domain/TreeEntity.java +++ b/src/main/java/com/archive/framework/web/domain/TreeEntity.java @@ -1,68 +1,68 @@ -/* */ package com.archive.framework.web.domain + package com.archive.framework.web.domain ; -/* */ -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TreeEntity -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private String parentName; -/* */ private Long parentId; -/* */ private Integer orderNum; -/* */ private String ancestors; -/* */ -/* */ public String getParentName() { -/* 26 */ return this.parentName; -/* */ } -/* */ -/* */ -/* */ public void setParentName(String parentName) { -/* 31 */ this.parentName = parentName; -/* */ } -/* */ -/* */ -/* */ public Long getParentId() { -/* 36 */ return this.parentId; -/* */ } -/* */ -/* */ -/* */ public void setParentId(Long parentId) { -/* 41 */ this.parentId = parentId; -/* */ } -/* */ -/* */ -/* */ public Integer getOrderNum() { -/* 46 */ return this.orderNum; -/* */ } -/* */ -/* */ -/* */ public void setOrderNum(Integer orderNum) { -/* 51 */ this.orderNum = orderNum; -/* */ } -/* */ -/* */ -/* */ public String getAncestors() { -/* 56 */ return this.ancestors; -/* */ } -/* */ -/* */ -/* */ public void setAncestors(String ancestors) { -/* 61 */ this.ancestors = ancestors; -/* */ } -/* */ } + + import com.archive.framework.web.domain.BaseEntity; + + + + + + + + + + + + + public class TreeEntity + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private String parentName; + private Long parentId; + private Integer orderNum; + private String ancestors; + + public String getParentName() { + return this.parentName; + } + + + public void setParentName(String parentName) { + this.parentName = parentName; + } + + + public Long getParentId() { + return this.parentId; + } + + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + + public Integer getOrderNum() { + return this.orderNum; + } + + + public void setOrderNum(Integer orderNum) { + this.orderNum = orderNum; + } + + + public String getAncestors() { + return this.ancestors; + } + + + public void setAncestors(String ancestors) { + this.ancestors = ancestors; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\domain\TreeEntity.class diff --git a/src/main/java/com/archive/framework/web/domain/Type.java b/src/main/java/com/archive/framework/web/domain/Type.java index 9e2b6a8..dffdc0f 100644 --- a/src/main/java/com/archive/framework/web/domain/Type.java +++ b/src/main/java/com/archive/framework/web/domain/Type.java @@ -1,51 +1,51 @@ -/* */ package com.archive.framework.web.domain + package com.archive.framework.web.domain ; -/* */ -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum Type -/* */ { -/* 30 */ SUCCESS(0), -/* */ -/* 32 */ WARN(301), -/* */ -/* 34 */ ERROR(500); -/* */ -/* */ private final int value; -/* */ -/* */ Type(int value) { -/* 39 */ this.value = value; -/* */ } -/* */ -/* */ -/* */ public int value() { -/* 44 */ return this.value; -/* */ } -/* */ } + + import com.archive.framework.web.domain.AjaxResult; + + + + + + + + + + + + + + + + + + + + + + + + + public enum Type + { + SUCCESS(0), + + WARN(301), + + ERROR(500); + + private final int value; + + Type(int value) { + this.value = value; + } + + + public int value() { + return this.value; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\domain\AjaxResult$Type.class diff --git a/src/main/java/com/archive/framework/web/page/TableDataInfo.java b/src/main/java/com/archive/framework/web/page/TableDataInfo.java index 1dbcc23..a42cf64 100644 --- a/src/main/java/com/archive/framework/web/page/TableDataInfo.java +++ b/src/main/java/com/archive/framework/web/page/TableDataInfo.java @@ -1,88 +1,88 @@ -/* */ package com.archive.framework.web.page; -/* */ -/* */ import java.io.Serializable; -/* */ import java.util.List; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TableDataInfo -/* */ implements Serializable -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private long total; -/* */ private List rows; -/* */ private int code; -/* */ private String msg; -/* */ -/* */ public TableDataInfo() {} -/* */ -/* */ public TableDataInfo(List list, int total) { -/* 42 */ this.rows = list; -/* 43 */ this.total = total; -/* */ } -/* */ -/* */ -/* */ public long getTotal() { -/* 48 */ return this.total; -/* */ } -/* */ -/* */ -/* */ public void setTotal(long total) { -/* 53 */ this.total = total; -/* */ } -/* */ -/* */ -/* */ public List getRows() { -/* 58 */ return this.rows; -/* */ } -/* */ -/* */ -/* */ public void setRows(List rows) { -/* 63 */ this.rows = rows; -/* */ } -/* */ -/* */ -/* */ public int getCode() { -/* 68 */ return this.code; -/* */ } -/* */ -/* */ -/* */ public void setCode(int code) { -/* 73 */ this.code = code; -/* */ } -/* */ -/* */ -/* */ public String getMsg() { -/* 78 */ return this.msg; -/* */ } -/* */ -/* */ -/* */ public void setMsg(String msg) { -/* 83 */ this.msg = msg; -/* */ } -/* */ } + package com.archive.framework.web.page; + + import java.io.Serializable; + import java.util.List; + + + + + + + + + + + + + + + + + + + + + + + + + + public class TableDataInfo + implements Serializable + { + private static final long serialVersionUID = 1L; + private long total; + private List rows; + private int code; + private String msg; + + public TableDataInfo() {} + + public TableDataInfo(List list, int total) { + this.rows = list; + this.total = total; + } + + + public long getTotal() { + return this.total; + } + + + public void setTotal(long total) { + this.total = total; + } + + + public List getRows() { + return this.rows; + } + + + public void setRows(List rows) { + this.rows = rows; + } + + + public int getCode() { + return this.code; + } + + + public void setCode(int code) { + this.code = code; + } + + + public String getMsg() { + return this.msg; + } + + + public void setMsg(String msg) { + this.msg = msg; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\page\TableDataInfo.class diff --git a/src/main/java/com/archive/framework/web/page/TableSupport.java b/src/main/java/com/archive/framework/web/page/TableSupport.java index f9b067d..d6a683b 100644 --- a/src/main/java/com/archive/framework/web/page/TableSupport.java +++ b/src/main/java/com/archive/framework/web/page/TableSupport.java @@ -1,35 +1,35 @@ -/* */ package com.archive.framework.web.page + package com.archive.framework.web.page ; -/* */ -/* */ import com.archive.common.utils.ServletUtils; -/* */ import com.archive.framework.web.page.PageDomain; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TableSupport -/* */ { -/* */ public static PageDomain getPageDomain() { -/* 18 */ PageDomain pageDomain = new PageDomain(); -/* 19 */ pageDomain.setPageNum(ServletUtils.getParameterToInt("pageNum")); -/* 20 */ pageDomain.setPageSize(ServletUtils.getParameterToInt("pageSize")); -/* 21 */ pageDomain.setOrderByColumn(ServletUtils.getParameter("orderByColumn")); -/* 22 */ pageDomain.setIsAsc(ServletUtils.getParameter("isAsc")); -/* 23 */ return pageDomain; -/* */ } -/* */ -/* */ -/* */ public static PageDomain buildPageRequest() { -/* 28 */ return getPageDomain(); -/* */ } -/* */ } + + import com.archive.common.utils.ServletUtils; + import com.archive.framework.web.page.PageDomain; + + + + + + + + + + + public class TableSupport + { + public static PageDomain getPageDomain() { + PageDomain pageDomain = new PageDomain(); + pageDomain.setPageNum(ServletUtils.getParameterToInt("pageNum")); + pageDomain.setPageSize(ServletUtils.getParameterToInt("pageSize")); + pageDomain.setOrderByColumn(ServletUtils.getParameter("orderByColumn")); + pageDomain.setIsAsc(ServletUtils.getParameter("isAsc")); + return pageDomain; + } + + + public static PageDomain buildPageRequest() { + return getPageDomain(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\page\TableSupport.class diff --git a/src/main/java/com/archive/project/dabg/bfgl/controller/TKfBfglController.java b/src/main/java/com/archive/project/dabg/bfgl/controller/TKfBfglController.java index 9e915e5..8e157af 100644 --- a/src/main/java/com/archive/project/dabg/bfgl/controller/TKfBfglController.java +++ b/src/main/java/com/archive/project/dabg/bfgl/controller/TKfBfglController.java @@ -1,129 +1,129 @@ -/* */ package com.archive.project.dabg.bfgl.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.dabg.bfgl.domain.TKfBfgl; -/* */ import com.archive.project.dabg.bfgl.service.ITKfBfglService; -/* */ 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({"/dabg/bfgl"}) -/* */ public class TKfBfglController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "dabg/bfgl"; -/* */ -/* */ @Autowired -/* */ private ITKfBfglService tKfBfglService; -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:view"}) -/* */ @GetMapping -/* */ public String bfgl() { -/* 41 */ return this.prefix + "/bfgl"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TKfBfgl tKfBfgl) { -/* 52 */ startPage(); -/* 53 */ List list = this.tKfBfglService.selectTKfBfglList(tKfBfgl); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:export"}) -/* */ @Log(title = "库房八防管理", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TKfBfgl tKfBfgl) { -/* 66 */ List list = this.tKfBfglService.selectTKfBfglList(tKfBfgl); -/* 67 */ ExcelUtil util = new ExcelUtil(TKfBfgl.class); -/* 68 */ return util.exportExcel(list, "bfgl"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:add"}) -/* */ @Log(title = "库房八防管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TKfBfgl tKfBfgl) { -/* 89 */ return toAjax(this.tKfBfglService.insertTKfBfgl(tKfBfgl)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ TKfBfgl tKfBfgl = this.tKfBfglService.selectTKfBfglById(id); -/* 99 */ mmap.put("tKfBfgl", tKfBfgl); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:edit"}) -/* */ @Log(title = "库房八防管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TKfBfgl tKfBfgl) { -/* 112 */ return toAjax(this.tKfBfglService.updateTKfBfgl(tKfBfgl)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:bfgl:remove"}) -/* */ @Log(title = "库房八防管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.tKfBfglService.deleteTKfBfglByIds(ids)); -/* */ } -/* */ } + package com.archive.project.dabg.bfgl.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.dabg.bfgl.domain.TKfBfgl; + import com.archive.project.dabg.bfgl.service.ITKfBfglService; + 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({"/dabg/bfgl"}) + public class TKfBfglController + extends BaseController + { + private String prefix = "dabg/bfgl"; + + @Autowired + private ITKfBfglService tKfBfglService; + + + @RequiresPermissions({"dabg:bfgl:view"}) + @GetMapping + public String bfgl() { + return this.prefix + "/bfgl"; + } + + + + + + @RequiresPermissions({"dabg:bfgl:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TKfBfgl tKfBfgl) { + startPage(); + List list = this.tKfBfglService.selectTKfBfglList(tKfBfgl); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dabg:bfgl:export"}) + @Log(title = "库房八防管理", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TKfBfgl tKfBfgl) { + List list = this.tKfBfglService.selectTKfBfglList(tKfBfgl); + ExcelUtil util = new ExcelUtil(TKfBfgl.class); + return util.exportExcel(list, "bfgl"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dabg:bfgl:add"}) + @Log(title = "库房八防管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TKfBfgl tKfBfgl) { + return toAjax(this.tKfBfglService.insertTKfBfgl(tKfBfgl)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TKfBfgl tKfBfgl = this.tKfBfglService.selectTKfBfglById(id); + mmap.put("tKfBfgl", tKfBfgl); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dabg:bfgl:edit"}) + @Log(title = "库房八防管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TKfBfgl tKfBfgl) { + return toAjax(this.tKfBfglService.updateTKfBfgl(tKfBfgl)); + } + + + + + + @RequiresPermissions({"dabg:bfgl:remove"}) + @Log(title = "库房八防管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tKfBfglService.deleteTKfBfglByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\bfgl\controller\TKfBfglController.class diff --git a/src/main/java/com/archive/project/dabg/bfgl/domain/TKfBfgl.java b/src/main/java/com/archive/project/dabg/bfgl/domain/TKfBfgl.java index fefc5f9..d289f54 100644 --- a/src/main/java/com/archive/project/dabg/bfgl/domain/TKfBfgl.java +++ b/src/main/java/com/archive/project/dabg/bfgl/domain/TKfBfgl.java @@ -1,142 +1,142 @@ -/* */ package com.archive.project.dabg.bfgl.domain + package com.archive.project.dabg.bfgl.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 TKfBfgl -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "库房名称") -/* */ private String kfmc; -/* */ @Excel(name = "库房号") -/* */ private String kfh; -/* */ @Excel(name = "检查类型") -/* */ private String jclx; -/* */ @Excel(name = "检查人") -/* */ private String jcr; -/* */ @Excel(name = "状态") -/* */ private String status; -/* */ @Excel(name = "检查时间") -/* */ private String jcsj; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ -/* */ public void setId(Long id) { -/* 51 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 56 */ return this.id; -/* */ } -/* */ -/* */ public void setKfmc(String kfmc) { -/* 60 */ this.kfmc = kfmc; -/* */ } -/* */ -/* */ -/* */ public String getKfmc() { -/* 65 */ return this.kfmc; -/* */ } -/* */ -/* */ public void setKfh(String kfh) { -/* 69 */ this.kfh = kfh; -/* */ } -/* */ -/* */ -/* */ public String getKfh() { -/* 74 */ return this.kfh; -/* */ } -/* */ -/* */ public void setJclx(String jclx) { -/* 78 */ this.jclx = jclx; -/* */ } -/* */ -/* */ -/* */ public String getJclx() { -/* 83 */ return this.jclx; -/* */ } -/* */ -/* */ public void setStatus(String status) { -/* 87 */ this.status = status; -/* */ } -/* */ -/* */ -/* */ public String getJcr() { -/* 92 */ return this.jcr; -/* */ } -/* */ -/* */ public void setJcr(String jcr) { -/* 96 */ this.jcr = jcr; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ public String getStatus() { -/* 103 */ return this.status; -/* */ } -/* */ -/* */ public void setJcsj(String jcsj) { -/* 107 */ this.jcsj = jcsj; -/* */ } -/* */ -/* */ -/* */ public String getJcsj() { -/* 112 */ return this.jcsj; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 116 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 121 */ return this.bz; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 126 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 127 */ .append("id", getId()) -/* 128 */ .append("kfmc", getKfmc()) -/* 129 */ .append("kfh", getKfh()) -/* 130 */ .append("jclx", getJclx()) -/* 131 */ .append("status", getStatus()) -/* 132 */ .append("jcsj", getJcsj()) -/* 133 */ .append("bz", getBz()) -/* 134 */ .append("jcr", getJcr()) -/* 135 */ .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 TKfBfgl + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "库房名称") + private String kfmc; + @Excel(name = "库房号") + private String kfh; + @Excel(name = "检查类型") + private String jclx; + @Excel(name = "检查人") + private String jcr; + @Excel(name = "状态") + private String status; + @Excel(name = "检查时间") + private String jcsj; + @Excel(name = "备注") + private String bz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setKfmc(String kfmc) { + this.kfmc = kfmc; + } + + + public String getKfmc() { + return this.kfmc; + } + + public void setKfh(String kfh) { + this.kfh = kfh; + } + + + public String getKfh() { + return this.kfh; + } + + public void setJclx(String jclx) { + this.jclx = jclx; + } + + + public String getJclx() { + return this.jclx; + } + + public void setStatus(String status) { + this.status = status; + } + + + public String getJcr() { + return this.jcr; + } + + public void setJcr(String jcr) { + this.jcr = jcr; + } + + + + + public String getStatus() { + return this.status; + } + + public void setJcsj(String jcsj) { + this.jcsj = jcsj; + } + + + public String getJcsj() { + return this.jcsj; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("kfmc", getKfmc()) + .append("kfh", getKfh()) + .append("jclx", getJclx()) + .append("status", getStatus()) + .append("jcsj", getJcsj()) + .append("bz", getBz()) + .append("jcr", getJcr()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\bfgl\domain\TKfBfgl.class diff --git a/src/main/java/com/archive/project/dabg/bfgl/service/impl/TKfBfglServiceImpl.java b/src/main/java/com/archive/project/dabg/bfgl/service/impl/TKfBfglServiceImpl.java index 6de8ff1..d7d2a92 100644 --- a/src/main/java/com/archive/project/dabg/bfgl/service/impl/TKfBfglServiceImpl.java +++ b/src/main/java/com/archive/project/dabg/bfgl/service/impl/TKfBfglServiceImpl.java @@ -1,99 +1,99 @@ -/* */ package com.archive.project.dabg.bfgl.service.impl + package com.archive.project.dabg.bfgl.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.dabg.bfgl.domain.TKfBfgl; -/* */ import com.archive.project.dabg.bfgl.mapper.TKfBfglMapper; -/* */ import com.archive.project.dabg.bfgl.service.ITKfBfglService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TKfBfglServiceImpl -/* */ implements ITKfBfglService -/* */ { -/* */ @Autowired -/* */ private TKfBfglMapper tKfBfglMapper; -/* */ -/* */ public TKfBfgl selectTKfBfglById(Long id) { -/* 32 */ return this.tKfBfglMapper.selectTKfBfglById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTKfBfglList(TKfBfgl tKfBfgl) { -/* 44 */ return this.tKfBfglMapper.selectTKfBfglList(tKfBfgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTKfBfgl(TKfBfgl tKfBfgl) { -/* 56 */ return this.tKfBfglMapper.insertTKfBfgl(tKfBfgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTKfBfgl(TKfBfgl tKfBfgl) { -/* 68 */ return this.tKfBfglMapper.updateTKfBfgl(tKfBfgl); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTKfBfglByIds(String ids) { -/* 80 */ return this.tKfBfglMapper.deleteTKfBfglByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTKfBfglById(Long id) { -/* 92 */ return this.tKfBfglMapper.deleteTKfBfglById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.dabg.bfgl.domain.TKfBfgl; + import com.archive.project.dabg.bfgl.mapper.TKfBfglMapper; + import com.archive.project.dabg.bfgl.service.ITKfBfglService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + @Service + public class TKfBfglServiceImpl + implements ITKfBfglService + { + @Autowired + private TKfBfglMapper tKfBfglMapper; + + public TKfBfgl selectTKfBfglById(Long id) { + return this.tKfBfglMapper.selectTKfBfglById(id); + } + + + + + + + + + + public List selectTKfBfglList(TKfBfgl tKfBfgl) { + return this.tKfBfglMapper.selectTKfBfglList(tKfBfgl); + } + + + + + + + + + + public int insertTKfBfgl(TKfBfgl tKfBfgl) { + return this.tKfBfglMapper.insertTKfBfgl(tKfBfgl); + } + + + + + + + + + + public int updateTKfBfgl(TKfBfgl tKfBfgl) { + return this.tKfBfglMapper.updateTKfBfgl(tKfBfgl); + } + + + + + + + + + + public int deleteTKfBfglByIds(String ids) { + return this.tKfBfglMapper.deleteTKfBfglByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTKfBfglById(Long id) { + return this.tKfBfglMapper.deleteTKfBfglById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\bfgl\service\impl\TKfBfglServiceImpl.class diff --git a/src/main/java/com/archive/project/dabg/wsddj/controller/TKfWsddjController.java b/src/main/java/com/archive/project/dabg/wsddj/controller/TKfWsddjController.java index 04b2d43..8eee774 100644 --- a/src/main/java/com/archive/project/dabg/wsddj/controller/TKfWsddjController.java +++ b/src/main/java/com/archive/project/dabg/wsddj/controller/TKfWsddjController.java @@ -1,130 +1,130 @@ -/* */ package com.archive.project.dabg.wsddj.controller + package com.archive.project.dabg.wsddj.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.dabg.wsddj.domain.TKfWsddj; -/* */ import com.archive.project.dabg.wsddj.service.ITKfWsddjService; -/* */ 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({"/dabg/wsddj"}) -/* */ public class TKfWsddjController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "dabg/wsddj"; -/* */ -/* */ @Autowired -/* */ private ITKfWsddjService tKfWsddjService; -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:view"}) -/* */ @GetMapping -/* */ public String wsddj() { -/* 41 */ return this.prefix + "/wsddj"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TKfWsddj tKfWsddj) { -/* 52 */ startPage(); -/* 53 */ List list = this.tKfWsddjService.selectTKfWsddjList(tKfWsddj); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:export"}) -/* */ @Log(title = "库房温湿度登记", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TKfWsddj tKfWsddj) { -/* 66 */ List list = this.tKfWsddjService.selectTKfWsddjList(tKfWsddj); -/* 67 */ ExcelUtil util = new ExcelUtil(TKfWsddj.class); -/* 68 */ return util.exportExcel(list, "wsddj"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:add"}) -/* */ @Log(title = "库房温湿度登记", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TKfWsddj tKfWsddj) { -/* 89 */ return toAjax(this.tKfWsddjService.insertTKfWsddj(tKfWsddj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ TKfWsddj tKfWsddj = this.tKfWsddjService.selectTKfWsddjById(id); -/* 99 */ mmap.put("tKfWsddj", tKfWsddj); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:edit"}) -/* */ @Log(title = "库房温湿度登记", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TKfWsddj tKfWsddj) { -/* 112 */ return toAjax(this.tKfWsddjService.updateTKfWsddj(tKfWsddj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dabg:wsddj:remove"}) -/* */ @Log(title = "库房温湿度登记", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.tKfWsddjService.deleteTKfWsddjByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dabg.wsddj.domain.TKfWsddj; + import com.archive.project.dabg.wsddj.service.ITKfWsddjService; + 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({"/dabg/wsddj"}) + public class TKfWsddjController + extends BaseController + { + private String prefix = "dabg/wsddj"; + + @Autowired + private ITKfWsddjService tKfWsddjService; + + + @RequiresPermissions({"dabg:wsddj:view"}) + @GetMapping + public String wsddj() { + return this.prefix + "/wsddj"; + } + + + + + + @RequiresPermissions({"dabg:wsddj:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TKfWsddj tKfWsddj) { + startPage(); + List list = this.tKfWsddjService.selectTKfWsddjList(tKfWsddj); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dabg:wsddj:export"}) + @Log(title = "库房温湿度登记", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TKfWsddj tKfWsddj) { + List list = this.tKfWsddjService.selectTKfWsddjList(tKfWsddj); + ExcelUtil util = new ExcelUtil(TKfWsddj.class); + return util.exportExcel(list, "wsddj"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dabg:wsddj:add"}) + @Log(title = "库房温湿度登记", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TKfWsddj tKfWsddj) { + return toAjax(this.tKfWsddjService.insertTKfWsddj(tKfWsddj)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TKfWsddj tKfWsddj = this.tKfWsddjService.selectTKfWsddjById(id); + mmap.put("tKfWsddj", tKfWsddj); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dabg:wsddj:edit"}) + @Log(title = "库房温湿度登记", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TKfWsddj tKfWsddj) { + return toAjax(this.tKfWsddjService.updateTKfWsddj(tKfWsddj)); + } + + + + + + @RequiresPermissions({"dabg:wsddj:remove"}) + @Log(title = "库房温湿度登记", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tKfWsddjService.deleteTKfWsddjByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\wsddj\controller\TKfWsddjController.class diff --git a/src/main/java/com/archive/project/dabg/wsddj/domain/TKfWsddj.java b/src/main/java/com/archive/project/dabg/wsddj/domain/TKfWsddj.java index c45aaa2..bb97c78 100644 --- a/src/main/java/com/archive/project/dabg/wsddj/domain/TKfWsddj.java +++ b/src/main/java/com/archive/project/dabg/wsddj/domain/TKfWsddj.java @@ -1,153 +1,153 @@ -/* */ package com.archive.project.dabg.wsddj.domain + package com.archive.project.dabg.wsddj.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 TKfWsddj -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "时间") -/* */ private String rqsj; -/* */ @Excel(name = "检查人") -/* */ private String jcr; -/* */ @Excel(name = "库房名称") -/* */ private String kfmc; -/* */ @Excel(name = "库房号") -/* */ private String kfh; -/* */ @Excel(name = "温度") -/* */ private String wd; -/* */ @Excel(name = "湿度") -/* */ private String sd; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "状态") -/* */ private String status; -/* */ -/* */ public void setId(Long id) { -/* 55 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 60 */ return this.id; -/* */ } -/* */ -/* */ public void setRqsj(String rqsj) { -/* 64 */ this.rqsj = rqsj; -/* */ } -/* */ -/* */ -/* */ public String getRqsj() { -/* 69 */ return this.rqsj; -/* */ } -/* */ -/* */ public void setJcr(String jcr) { -/* 73 */ this.jcr = jcr; -/* */ } -/* */ -/* */ -/* */ public String getJcr() { -/* 78 */ return this.jcr; -/* */ } -/* */ -/* */ public void setKfmc(String kfmc) { -/* 82 */ this.kfmc = kfmc; -/* */ } -/* */ -/* */ -/* */ public String getKfmc() { -/* 87 */ return this.kfmc; -/* */ } -/* */ -/* */ public void setKfh(String kfh) { -/* 91 */ this.kfh = kfh; -/* */ } -/* */ -/* */ -/* */ public String getKfh() { -/* 96 */ return this.kfh; -/* */ } -/* */ -/* */ public void setWd(String wd) { -/* 100 */ this.wd = wd; -/* */ } -/* */ -/* */ -/* */ public String getWd() { -/* 105 */ return this.wd; -/* */ } -/* */ -/* */ public void setSd(String sd) { -/* 109 */ this.sd = sd; -/* */ } -/* */ -/* */ -/* */ public String getSd() { -/* 114 */ return this.sd; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 118 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 123 */ return this.bz; -/* */ } -/* */ -/* */ public void setStatus(String status) { -/* 127 */ this.status = status; -/* */ } -/* */ -/* */ -/* */ public String getStatus() { -/* 132 */ return this.status; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 137 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 138 */ .append("id", getId()) -/* 139 */ .append("rqsj", getRqsj()) -/* 140 */ .append("jcr", getJcr()) -/* 141 */ .append("kfmc", getKfmc()) -/* 142 */ .append("kfh", getKfh()) -/* 143 */ .append("wd", getWd()) -/* 144 */ .append("sd", getSd()) -/* 145 */ .append("bz", getBz()) -/* 146 */ .append("status", getStatus()) -/* 147 */ .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 TKfWsddj + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "时间") + private String rqsj; + @Excel(name = "检查人") + private String jcr; + @Excel(name = "库房名称") + private String kfmc; + @Excel(name = "库房号") + private String kfh; + @Excel(name = "温度") + private String wd; + @Excel(name = "湿度") + private String sd; + @Excel(name = "备注") + private String bz; + @Excel(name = "状态") + private String status; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setRqsj(String rqsj) { + this.rqsj = rqsj; + } + + + public String getRqsj() { + return this.rqsj; + } + + public void setJcr(String jcr) { + this.jcr = jcr; + } + + + public String getJcr() { + return this.jcr; + } + + public void setKfmc(String kfmc) { + this.kfmc = kfmc; + } + + + public String getKfmc() { + return this.kfmc; + } + + public void setKfh(String kfh) { + this.kfh = kfh; + } + + + public String getKfh() { + return this.kfh; + } + + public void setWd(String wd) { + this.wd = wd; + } + + + public String getWd() { + return this.wd; + } + + public void setSd(String sd) { + this.sd = sd; + } + + + public String getSd() { + return this.sd; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setStatus(String status) { + this.status = status; + } + + + public String getStatus() { + return this.status; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("rqsj", getRqsj()) + .append("jcr", getJcr()) + .append("kfmc", getKfmc()) + .append("kfh", getKfh()) + .append("wd", getWd()) + .append("sd", getSd()) + .append("bz", getBz()) + .append("status", getStatus()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\wsddj\domain\TKfWsddj.class diff --git a/src/main/java/com/archive/project/dabg/wsddj/service/impl/TKfWsddjServiceImpl.java b/src/main/java/com/archive/project/dabg/wsddj/service/impl/TKfWsddjServiceImpl.java index e3d5d72..410fd0a 100644 --- a/src/main/java/com/archive/project/dabg/wsddj/service/impl/TKfWsddjServiceImpl.java +++ b/src/main/java/com/archive/project/dabg/wsddj/service/impl/TKfWsddjServiceImpl.java @@ -1,99 +1,99 @@ -/* */ package com.archive.project.dabg.wsddj.service.impl + package com.archive.project.dabg.wsddj.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.dabg.wsddj.domain.TKfWsddj; -/* */ import com.archive.project.dabg.wsddj.mapper.TKfWsddjMapper; -/* */ import com.archive.project.dabg.wsddj.service.ITKfWsddjService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TKfWsddjServiceImpl -/* */ implements ITKfWsddjService -/* */ { -/* */ @Autowired -/* */ private TKfWsddjMapper tKfWsddjMapper; -/* */ -/* */ public TKfWsddj selectTKfWsddjById(Long id) { -/* 32 */ return this.tKfWsddjMapper.selectTKfWsddjById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTKfWsddjList(TKfWsddj tKfWsddj) { -/* 44 */ return this.tKfWsddjMapper.selectTKfWsddjList(tKfWsddj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTKfWsddj(TKfWsddj tKfWsddj) { -/* 56 */ return this.tKfWsddjMapper.insertTKfWsddj(tKfWsddj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTKfWsddj(TKfWsddj tKfWsddj) { -/* 68 */ return this.tKfWsddjMapper.updateTKfWsddj(tKfWsddj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTKfWsddjByIds(String ids) { -/* 80 */ return this.tKfWsddjMapper.deleteTKfWsddjByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTKfWsddjById(Long id) { -/* 92 */ return this.tKfWsddjMapper.deleteTKfWsddjById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.dabg.wsddj.domain.TKfWsddj; + import com.archive.project.dabg.wsddj.mapper.TKfWsddjMapper; + import com.archive.project.dabg.wsddj.service.ITKfWsddjService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + @Service + public class TKfWsddjServiceImpl + implements ITKfWsddjService + { + @Autowired + private TKfWsddjMapper tKfWsddjMapper; + + public TKfWsddj selectTKfWsddjById(Long id) { + return this.tKfWsddjMapper.selectTKfWsddjById(id); + } + + + + + + + + + + public List selectTKfWsddjList(TKfWsddj tKfWsddj) { + return this.tKfWsddjMapper.selectTKfWsddjList(tKfWsddj); + } + + + + + + + + + + public int insertTKfWsddj(TKfWsddj tKfWsddj) { + return this.tKfWsddjMapper.insertTKfWsddj(tKfWsddj); + } + + + + + + + + + + public int updateTKfWsddj(TKfWsddj tKfWsddj) { + return this.tKfWsddjMapper.updateTKfWsddj(tKfWsddj); + } + + + + + + + + + + public int deleteTKfWsddjByIds(String ids) { + return this.tKfWsddjMapper.deleteTKfWsddjByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTKfWsddjById(Long id) { + return this.tKfWsddjMapper.deleteTKfWsddjById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dabg\wsddj\service\impl\TKfWsddjServiceImpl.class diff --git a/src/main/java/com/archive/project/dasz/gridcolumns/controller/TXtpzGridColumnsController.java b/src/main/java/com/archive/project/dasz/gridcolumns/controller/TXtpzGridColumnsController.java index a55dc33..1da3712 100644 --- a/src/main/java/com/archive/project/dasz/gridcolumns/controller/TXtpzGridColumnsController.java +++ b/src/main/java/com/archive/project/dasz/gridcolumns/controller/TXtpzGridColumnsController.java @@ -1,134 +1,134 @@ -/* */ package com.archive.project.dasz.gridcolumns.controller + package com.archive.project.dasz.gridcolumns.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns; -/* */ import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService; -/* */ import java.util.List; -/* */ 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/gridcolumns"}) -/* */ public class TXtpzGridColumnsController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "/dasz/gridcolumns"; -/* */ -/* */ -/* */ @Autowired -/* */ private ITXtpzGridColumnsService tXtpzGridColumnsService; -/* */ -/* */ -/* */ @GetMapping({"/gridcolumns/{tableId}"}) -/* */ public String columns(@PathVariable("tableId") Long tableId, ModelMap mmap) { -/* 41 */ mmap.put("tableId", tableId); -/* 42 */ return this.prefix + "/gridcolumns"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/list/{tableId}"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(@PathVariable("tableId") long tableId, TXtpzGridColumns tXtpzGridColumns) { -/* 53 */ startPage(); -/* 54 */ tXtpzGridColumns.setTableId(Long.valueOf(tableId)); -/* */ -/* 56 */ List list = this.tXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns); -/* 57 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "物理表列表定义", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TXtpzGridColumns tXtpzGridColumns) { -/* 69 */ List list = this.tXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns); -/* 70 */ ExcelUtil util = new ExcelUtil(TXtpzGridColumns.class); -/* 71 */ return util.exportExcel(list, "columns"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 80 */ return this.prefix + "/gridadd"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "物理表列表定义", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TXtpzGridColumns tXtpzGridColumns) { -/* 92 */ return toAjax(this.tXtpzGridColumnsService.insertTXtpzGridColumns(tXtpzGridColumns)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 101 */ TXtpzGridColumns tXtpzGridColumns = this.tXtpzGridColumnsService.selectTXtpzGridColumnsById(id); -/* 102 */ mmap.put("tXtpzGridColumns", tXtpzGridColumns); -/* 103 */ return this.prefix + "/gridedit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "物理表列表定义", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TXtpzGridColumns tXtpzGridColumns) { -/* 115 */ return toAjax(this.tXtpzGridColumnsService.updateTXtpzGridColumns(tXtpzGridColumns)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "物理表列表定义", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 127 */ return toAjax(this.tXtpzGridColumnsService.deleteTXtpzGridColumnsByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns; + import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService; + import java.util.List; + 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/gridcolumns"}) + public class TXtpzGridColumnsController + extends BaseController + { + private String prefix = "/dasz/gridcolumns"; + + + @Autowired + private ITXtpzGridColumnsService tXtpzGridColumnsService; + + + @GetMapping({"/gridcolumns/{tableId}"}) + public String columns(@PathVariable("tableId") Long tableId, ModelMap mmap) { + mmap.put("tableId", tableId); + return this.prefix + "/gridcolumns"; + } + + + + + + + @PostMapping({"/list/{tableId}"}) + @ResponseBody + public TableDataInfo list(@PathVariable("tableId") long tableId, TXtpzGridColumns tXtpzGridColumns) { + startPage(); + tXtpzGridColumns.setTableId(Long.valueOf(tableId)); + + List list = this.tXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns); + return getDataTable(list); + } + + + + + + + @Log(title = "物理表列表定义", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TXtpzGridColumns tXtpzGridColumns) { + List list = this.tXtpzGridColumnsService.selectTXtpzGridColumnsList(tXtpzGridColumns); + ExcelUtil util = new ExcelUtil(TXtpzGridColumns.class); + return util.exportExcel(list, "columns"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/gridadd"; + } + + + + + + + @Log(title = "物理表列表定义", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TXtpzGridColumns tXtpzGridColumns) { + return toAjax(this.tXtpzGridColumnsService.insertTXtpzGridColumns(tXtpzGridColumns)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TXtpzGridColumns tXtpzGridColumns = this.tXtpzGridColumnsService.selectTXtpzGridColumnsById(id); + mmap.put("tXtpzGridColumns", tXtpzGridColumns); + return this.prefix + "/gridedit"; + } + + + + + + + @Log(title = "物理表列表定义", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TXtpzGridColumns tXtpzGridColumns) { + return toAjax(this.tXtpzGridColumnsService.updateTXtpzGridColumns(tXtpzGridColumns)); + } + + + + + + + @Log(title = "物理表列表定义", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tXtpzGridColumnsService.deleteTXtpzGridColumnsByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\gridcolumns\controller\TXtpzGridColumnsController.class diff --git a/src/main/java/com/archive/project/dasz/gridcolumns/domain/TXtpzGridColumns.java b/src/main/java/com/archive/project/dasz/gridcolumns/domain/TXtpzGridColumns.java index 10191f4..cb39b42 100644 --- a/src/main/java/com/archive/project/dasz/gridcolumns/domain/TXtpzGridColumns.java +++ b/src/main/java/com/archive/project/dasz/gridcolumns/domain/TXtpzGridColumns.java @@ -1,167 +1,167 @@ -/* */ package com.archive.project.dasz.gridcolumns.domain + package com.archive.project.dasz.gridcolumns.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 TXtpzGridColumns -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "所属表id") -/* */ private Long tableId; -/* */ @Excel(name = "字段id") -/* */ private Long columnId; -/* */ @Excel(name = "字段名称") -/* */ private String columnname; -/* */ @Excel(name = "字段显示名称") -/* */ private String showname; -/* */ @Excel(name = "列表显示宽度") -/* */ private Long width; -/* */ @Excel(name = "显示顺序") -/* */ private Long orderInt; -/* */ @Excel(name = "档案类型id") -/* */ private Long archiveTypeId; -/* */ @Excel(name = "备用字段1") -/* */ private String by1; -/* */ @Excel(name = "备用字段2") -/* */ private String by2; -/* */ -/* */ public void setId(Long id) { -/* 59 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 64 */ return this.id; -/* */ } -/* */ -/* */ public void setTableId(Long tableId) { -/* 68 */ this.tableId = tableId; -/* */ } -/* */ -/* */ -/* */ public Long getTableId() { -/* 73 */ return this.tableId; -/* */ } -/* */ -/* */ public void setColumnId(Long columnId) { -/* 77 */ this.columnId = columnId; -/* */ } -/* */ -/* */ -/* */ public Long getColumnId() { -/* 82 */ return this.columnId; -/* */ } -/* */ -/* */ public void setColumnname(String columnname) { -/* 86 */ this.columnname = columnname; -/* */ } -/* */ -/* */ -/* */ public String getColumnname() { -/* 91 */ return this.columnname; -/* */ } -/* */ -/* */ public void setShowname(String showname) { -/* 95 */ this.showname = showname; -/* */ } -/* */ -/* */ -/* */ public String getShowname() { -/* 100 */ return this.showname; -/* */ } -/* */ -/* */ public void setWidth(Long width) { -/* 104 */ this.width = width; -/* */ } -/* */ -/* */ -/* */ public Long getWidth() { -/* 109 */ return this.width; -/* */ } -/* */ -/* */ public void setOrderInt(Long orderInt) { -/* 113 */ this.orderInt = orderInt; -/* */ } -/* */ -/* */ -/* */ public Long getOrderInt() { -/* 118 */ return this.orderInt; -/* */ } -/* */ -/* */ public void setArchiveTypeId(Long archiveTypeId) { -/* 122 */ this.archiveTypeId = archiveTypeId; -/* */ } -/* */ -/* */ -/* */ public Long getArchiveTypeId() { -/* 127 */ return this.archiveTypeId; -/* */ } -/* */ -/* */ public void setBy1(String by1) { -/* 131 */ this.by1 = by1; -/* */ } -/* */ -/* */ -/* */ public String getBy1() { -/* 136 */ return this.by1; -/* */ } -/* */ -/* */ public void setBy2(String by2) { -/* 140 */ this.by2 = by2; -/* */ } -/* */ -/* */ -/* */ public String getBy2() { -/* 145 */ return this.by2; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 150 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 151 */ .append("id", getId()) -/* 152 */ .append("tableId", getTableId()) -/* 153 */ .append("columnId", getColumnId()) -/* 154 */ .append("columnname", getColumnname()) -/* 155 */ .append("showname", getShowname()) -/* 156 */ .append("width", getWidth()) -/* 157 */ .append("orderInt", getOrderInt()) -/* 158 */ .append("archiveTypeId", getArchiveTypeId()) -/* 159 */ .append("by1", getBy1()) -/* 160 */ .append("by2", getBy2()) -/* 161 */ .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 TXtpzGridColumns + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "所属表id") + private Long tableId; + @Excel(name = "字段id") + private Long columnId; + @Excel(name = "字段名称") + private String columnname; + @Excel(name = "字段显示名称") + private String showname; + @Excel(name = "列表显示宽度") + private Long width; + @Excel(name = "显示顺序") + private Long orderInt; + @Excel(name = "档案类型id") + private Long archiveTypeId; + @Excel(name = "备用字段1") + private String by1; + @Excel(name = "备用字段2") + private String by2; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setTableId(Long tableId) { + this.tableId = tableId; + } + + + public Long getTableId() { + return this.tableId; + } + + public void setColumnId(Long columnId) { + this.columnId = columnId; + } + + + public Long getColumnId() { + return this.columnId; + } + + public void setColumnname(String columnname) { + this.columnname = columnname; + } + + + public String getColumnname() { + return this.columnname; + } + + public void setShowname(String showname) { + this.showname = showname; + } + + + public String getShowname() { + return this.showname; + } + + public void setWidth(Long width) { + this.width = width; + } + + + public Long getWidth() { + return this.width; + } + + public void setOrderInt(Long orderInt) { + this.orderInt = orderInt; + } + + + public Long getOrderInt() { + return this.orderInt; + } + + public void setArchiveTypeId(Long archiveTypeId) { + this.archiveTypeId = archiveTypeId; + } + + + public Long getArchiveTypeId() { + return this.archiveTypeId; + } + + public void setBy1(String by1) { + this.by1 = by1; + } + + + public String getBy1() { + return this.by1; + } + + public void setBy2(String by2) { + this.by2 = by2; + } + + + public String getBy2() { + return this.by2; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("tableId", getTableId()) + .append("columnId", getColumnId()) + .append("columnname", getColumnname()) + .append("showname", getShowname()) + .append("width", getWidth()) + .append("orderInt", getOrderInt()) + .append("archiveTypeId", getArchiveTypeId()) + .append("by1", getBy1()) + .append("by2", getBy2()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\gridcolumns\domain\TXtpzGridColumns.class diff --git a/src/main/java/com/archive/project/dasz/gridcolumns/service/impl/TXtpzGridColumnsServiceImpl.java b/src/main/java/com/archive/project/dasz/gridcolumns/service/impl/TXtpzGridColumnsServiceImpl.java index aa144b0..52879dd 100644 --- a/src/main/java/com/archive/project/dasz/gridcolumns/service/impl/TXtpzGridColumnsServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/gridcolumns/service/impl/TXtpzGridColumnsServiceImpl.java @@ -1,182 +1,182 @@ -/* */ package com.archive.project.dasz.gridcolumns.service.impl + package com.archive.project.dasz.gridcolumns.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns; -/* */ import com.archive.project.dasz.gridcolumns.mapper.TXtpzGridColumnsMapper; -/* */ import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService; -/* */ 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.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TXtpzGridColumnsServiceImpl -/* */ implements ITXtpzGridColumnsService -/* */ { -/* */ @Autowired -/* */ private TXtpzGridColumnsMapper tXtpzGridColumnsMapper; -/* */ @Autowired -/* */ private PhysicalTableColumnMapper physicalTableColumnMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public TXtpzGridColumns selectTXtpzGridColumnsById(Long id) { -/* 45 */ return this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTXtpzGridColumnsList(TXtpzGridColumns tXtpzGridColumns) { -/* 57 */ List list = null; -/* 58 */ list = this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsList(tXtpzGridColumns); -/* */ -/* */ -/* 61 */ PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); -/* 62 */ physicalTableColumn.setTableId(tXtpzGridColumns.getTableId()); -/* 63 */ physicalTableColumn.setLbx(Long.valueOf(1L)); -/* 64 */ List columnsList = new ArrayList<>(); -/* 65 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 66 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); -/* */ } -/* 68 */ else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 69 */ columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); -/* */ } -/* */ -/* 72 */ if (columnsList != null && columnsList.size() > 0) { -/* */ int i; -/* 74 */ for (i = 0; i < columnsList.size(); i++) { -/* 75 */ PhysicalTableColumn physicalTableColumn1 = columnsList.get(i); -/* 76 */ boolean isExit = false; -/* 77 */ for (int j = 0; j < list.size(); j++) { -/* 78 */ if (physicalTableColumn1.getColumnCode().equals(((TXtpzGridColumns)list.get(j)).getColumnname())) { -/* 79 */ isExit = true; -/* */ -/* */ break; -/* */ } -/* */ } -/* 84 */ if (!isExit) { -/* 85 */ int OrderInt = list.size() + i; -/* 86 */ TXtpzGridColumns tXtpzGridColumns1 = new TXtpzGridColumns(); -/* 87 */ tXtpzGridColumns1.setTableId(tXtpzGridColumns.getTableId()); -/* 88 */ tXtpzGridColumns1.setColumnId(physicalTableColumn1.getId()); -/* 89 */ tXtpzGridColumns1.setColumnname(physicalTableColumn1.getColumnCode()); -/* 90 */ tXtpzGridColumns1.setShowname(physicalTableColumn1.getColumnName()); -/* 91 */ tXtpzGridColumns1.setOrderInt(Long.valueOf(OrderInt)); -/* 92 */ tXtpzGridColumns1.setBy1(physicalTableColumn1.getColumnCodetype()); -/* 93 */ insertTXtpzGridColumns(tXtpzGridColumns1); -/* */ } -/* */ } -/* */ -/* 97 */ for (i = 0; i < list.size(); i++) { -/* 98 */ TXtpzGridColumns tXtpzGridColumns1 = list.get(i); -/* 99 */ boolean isExit = false; -/* 100 */ for (int j = 0; j < columnsList.size(); j++) { -/* 101 */ if (tXtpzGridColumns1.getColumnId().equals(((PhysicalTableColumn)columnsList.get(j)).getId())) { -/* 102 */ isExit = true; -/* */ break; -/* */ } -/* */ } -/* 106 */ if (!isExit) -/* */ { -/* 108 */ deleteTXtpzGridColumnsById(tXtpzGridColumns1.getId()); -/* */ } -/* */ } -/* */ } -/* */ -/* 113 */ list = this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsList(tXtpzGridColumns); -/* 114 */ lambda(list); -/* 115 */ return list; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void lambda(List list) { -/* 124 */ list.sort((o1, o2) -> Integer.parseInt(String.valueOf(o1.getOrderInt())) - Integer.parseInt(String.valueOf(o2.getOrderInt()))); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTXtpzGridColumns(TXtpzGridColumns tXtpzGridColumns) { -/* 139 */ return this.tXtpzGridColumnsMapper.insertTXtpzGridColumns(tXtpzGridColumns); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTXtpzGridColumns(TXtpzGridColumns tXtpzGridColumns) { -/* 151 */ return this.tXtpzGridColumnsMapper.updateTXtpzGridColumns(tXtpzGridColumns); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTXtpzGridColumnsByIds(String ids) { -/* 163 */ return this.tXtpzGridColumnsMapper.deleteTXtpzGridColumnsByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTXtpzGridColumnsById(Long id) { -/* 175 */ return this.tXtpzGridColumnsMapper.deleteTXtpzGridColumnsById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.gridcolumns.domain.TXtpzGridColumns; + import com.archive.project.dasz.gridcolumns.mapper.TXtpzGridColumnsMapper; + import com.archive.project.dasz.gridcolumns.service.ITXtpzGridColumnsService; + 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.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + + + @Service + public class TXtpzGridColumnsServiceImpl + implements ITXtpzGridColumnsService + { + @Autowired + private TXtpzGridColumnsMapper tXtpzGridColumnsMapper; + @Autowired + private PhysicalTableColumnMapper physicalTableColumnMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public TXtpzGridColumns selectTXtpzGridColumnsById(Long id) { + return this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsById(id); + } + + + + + + + + + + public List selectTXtpzGridColumnsList(TXtpzGridColumns tXtpzGridColumns) { + List list = null; + list = this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsList(tXtpzGridColumns); + + + PhysicalTableColumn physicalTableColumn = new PhysicalTableColumn(); + physicalTableColumn.setTableId(tXtpzGridColumns.getTableId()); + physicalTableColumn.setLbx(Long.valueOf(1L)); + List columnsList = new ArrayList<>(); + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListMysql(physicalTableColumn); + } + else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + columnsList = this.physicalTableColumnMapper.selectPhysicalTableColumnListSqlLite(physicalTableColumn); + } + + if (columnsList != null && columnsList.size() > 0) { + int i; + for (i = 0; i < columnsList.size(); i++) { + PhysicalTableColumn physicalTableColumn1 = columnsList.get(i); + boolean isExit = false; + for (int j = 0; j < list.size(); j++) { + if (physicalTableColumn1.getColumnCode().equals(((TXtpzGridColumns)list.get(j)).getColumnname())) { + isExit = true; + + break; + } + } + if (!isExit) { + int OrderInt = list.size() + i; + TXtpzGridColumns tXtpzGridColumns1 = new TXtpzGridColumns(); + tXtpzGridColumns1.setTableId(tXtpzGridColumns.getTableId()); + tXtpzGridColumns1.setColumnId(physicalTableColumn1.getId()); + tXtpzGridColumns1.setColumnname(physicalTableColumn1.getColumnCode()); + tXtpzGridColumns1.setShowname(physicalTableColumn1.getColumnName()); + tXtpzGridColumns1.setOrderInt(Long.valueOf(OrderInt)); + tXtpzGridColumns1.setBy1(physicalTableColumn1.getColumnCodetype()); + insertTXtpzGridColumns(tXtpzGridColumns1); + } + } + + for (i = 0; i < list.size(); i++) { + TXtpzGridColumns tXtpzGridColumns1 = list.get(i); + boolean isExit = false; + for (int j = 0; j < columnsList.size(); j++) { + if (tXtpzGridColumns1.getColumnId().equals(((PhysicalTableColumn)columnsList.get(j)).getId())) { + isExit = true; + break; + } + } + if (!isExit) + { + deleteTXtpzGridColumnsById(tXtpzGridColumns1.getId()); + } + } + } + + list = this.tXtpzGridColumnsMapper.selectTXtpzGridColumnsList(tXtpzGridColumns); + lambda(list); + return list; + } + + + + + + + public void lambda(List list) { + list.sort((o1, o2) -> Integer.parseInt(String.valueOf(o1.getOrderInt())) - Integer.parseInt(String.valueOf(o2.getOrderInt()))); + } + + + + + + + + + + + + + public int insertTXtpzGridColumns(TXtpzGridColumns tXtpzGridColumns) { + return this.tXtpzGridColumnsMapper.insertTXtpzGridColumns(tXtpzGridColumns); + } + + + + + + + + + + public int updateTXtpzGridColumns(TXtpzGridColumns tXtpzGridColumns) { + return this.tXtpzGridColumnsMapper.updateTXtpzGridColumns(tXtpzGridColumns); + } + + + + + + + + + + public int deleteTXtpzGridColumnsByIds(String ids) { + return this.tXtpzGridColumnsMapper.deleteTXtpzGridColumnsByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTXtpzGridColumnsById(Long id) { + return this.tXtpzGridColumnsMapper.deleteTXtpzGridColumnsById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\gridcolumns\service\impl\TXtpzGridColumnsServiceImpl.class diff --git a/src/main/java/com/archive/project/dasz/qzgl/controller/TPsFondsCodeController.java b/src/main/java/com/archive/project/dasz/qzgl/controller/TPsFondsCodeController.java index 48d597d..8588b83 100644 --- a/src/main/java/com/archive/project/dasz/qzgl/controller/TPsFondsCodeController.java +++ b/src/main/java/com/archive/project/dasz/qzgl/controller/TPsFondsCodeController.java @@ -1,131 +1,131 @@ -/* */ package com.archive.project.dasz.qzgl.controller + package com.archive.project.dasz.qzgl.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.dasz.qzgl.domain.TPsFondsCode; -/* */ import com.archive.project.dasz.qzgl.service.ITPsFondsCodeService; -/* */ 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/qzgl"}) -/* */ public class TPsFondsCodeController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "dasz/qzgl"; -/* */ -/* */ @Autowired -/* */ private ITPsFondsCodeService tPsFondsCodeService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:view"}) -/* */ @GetMapping -/* */ public String qzgl() { -/* 41 */ return this.prefix + "/qzgl"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TPsFondsCode tPsFondsCode) { -/* 52 */ startPage(); -/* 53 */ List list = this.tPsFondsCodeService.selectTPsFondsCodeList(tPsFondsCode); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:export"}) -/* */ @Log(title = "全宗管理", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TPsFondsCode tPsFondsCode) { -/* 66 */ List list = this.tPsFondsCodeService.selectTPsFondsCodeList(tPsFondsCode); -/* 67 */ ExcelUtil util = new ExcelUtil(TPsFondsCode.class); -/* 68 */ return util.exportExcel(list, "qzgl"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:add"}) -/* */ @Log(title = "全宗管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TPsFondsCode tPsFondsCode) { -/* 89 */ return toAjax(this.tPsFondsCodeService.insertTPsFondsCode(tPsFondsCode)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ TPsFondsCode tPsFondsCode = this.tPsFondsCodeService.selectTPsFondsCodeById(id); -/* 99 */ mmap.put("tPsFondsCode", tPsFondsCode); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:edit"}) -/* */ @Log(title = "全宗管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TPsFondsCode tPsFondsCode) { -/* 112 */ return toAjax(this.tPsFondsCodeService.updateTPsFondsCode(tPsFondsCode)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:qzgl:remove"}) -/* */ @Log(title = "全宗管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.tPsFondsCodeService.deleteTPsFondsCodeByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dasz.qzgl.domain.TPsFondsCode; + import com.archive.project.dasz.qzgl.service.ITPsFondsCodeService; + 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/qzgl"}) + public class TPsFondsCodeController + extends BaseController + { + private String prefix = "dasz/qzgl"; + + @Autowired + private ITPsFondsCodeService tPsFondsCodeService; + + + @RequiresPermissions({"dasz:qzgl:view"}) + @GetMapping + public String qzgl() { + return this.prefix + "/qzgl"; + } + + + + + + @RequiresPermissions({"dasz:qzgl:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TPsFondsCode tPsFondsCode) { + startPage(); + List list = this.tPsFondsCodeService.selectTPsFondsCodeList(tPsFondsCode); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:qzgl:export"}) + @Log(title = "全宗管理", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TPsFondsCode tPsFondsCode) { + List list = this.tPsFondsCodeService.selectTPsFondsCodeList(tPsFondsCode); + ExcelUtil util = new ExcelUtil(TPsFondsCode.class); + return util.exportExcel(list, "qzgl"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:qzgl:add"}) + @Log(title = "全宗管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TPsFondsCode tPsFondsCode) { + return toAjax(this.tPsFondsCodeService.insertTPsFondsCode(tPsFondsCode)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TPsFondsCode tPsFondsCode = this.tPsFondsCodeService.selectTPsFondsCodeById(id); + mmap.put("tPsFondsCode", tPsFondsCode); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:qzgl:edit"}) + @Log(title = "全宗管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TPsFondsCode tPsFondsCode) { + return toAjax(this.tPsFondsCodeService.updateTPsFondsCode(tPsFondsCode)); + } + + + + + + @RequiresPermissions({"dasz:qzgl:remove"}) + @Log(title = "全宗管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tPsFondsCodeService.deleteTPsFondsCodeByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\qzgl\controller\TPsFondsCodeController.class diff --git a/src/main/java/com/archive/project/dasz/qzgl/domain/TPsFondsCode.java b/src/main/java/com/archive/project/dasz/qzgl/domain/TPsFondsCode.java index 33dfdaf..0637736 100644 --- a/src/main/java/com/archive/project/dasz/qzgl/domain/TPsFondsCode.java +++ b/src/main/java/com/archive/project/dasz/qzgl/domain/TPsFondsCode.java @@ -1,126 +1,126 @@ -/* */ package com.archive.project.dasz.qzgl.domain + package com.archive.project.dasz.qzgl.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 TPsFondsCode -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "全宗号") -/* */ private String fondscode; -/* */ @Excel(name = "全宗名称") -/* */ private String fondsname; -/* */ @Excel(name = "关联组织") -/* */ private String glzz; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "关联档案") -/* */ private String glda; -/* */ @Excel(name = "备用字段") -/* */ private String by1; -/* */ -/* */ public void setId(Long id) { -/* 47 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 52 */ return this.id; -/* */ } -/* */ -/* */ public void setFondscode(String fondscode) { -/* 56 */ this.fondscode = fondscode; -/* */ } -/* */ -/* */ -/* */ public String getFondscode() { -/* 61 */ return this.fondscode; -/* */ } -/* */ -/* */ public void setFondsname(String fondsname) { -/* 65 */ this.fondsname = fondsname; -/* */ } -/* */ -/* */ -/* */ public String getFondsname() { -/* 70 */ return this.fondsname; -/* */ } -/* */ -/* */ public void setGlzz(String glzz) { -/* 74 */ this.glzz = glzz; -/* */ } -/* */ -/* */ -/* */ public String getGlzz() { -/* 79 */ return this.glzz; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 83 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 88 */ return this.bz; -/* */ } -/* */ -/* */ public void setGlda(String glda) { -/* 92 */ this.glda = glda; -/* */ } -/* */ -/* */ -/* */ public String getGlda() { -/* 97 */ return this.glda; -/* */ } -/* */ -/* */ public void setBy(String by1) { -/* 101 */ this.by1 = by1; -/* */ } -/* */ -/* */ -/* */ public String getBy1() { -/* 106 */ return this.by1; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 111 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 112 */ .append("id", getId()) -/* 113 */ .append("fondscode", getFondscode()) -/* 114 */ .append("fondsname", getFondsname()) -/* 115 */ .append("glzz", getGlzz()) -/* 116 */ .append("bz", getBz()) -/* 117 */ .append("glda", getGlda()) -/* 118 */ .append("by1", getBy1()) -/* 119 */ .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 TPsFondsCode + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "全宗号") + private String fondscode; + @Excel(name = "全宗名称") + private String fondsname; + @Excel(name = "关联组织") + private String glzz; + @Excel(name = "备注") + private String bz; + @Excel(name = "关联档案") + private String glda; + @Excel(name = "备用字段") + private String by1; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setFondscode(String fondscode) { + this.fondscode = fondscode; + } + + + public String getFondscode() { + return this.fondscode; + } + + public void setFondsname(String fondsname) { + this.fondsname = fondsname; + } + + + public String getFondsname() { + return this.fondsname; + } + + public void setGlzz(String glzz) { + this.glzz = glzz; + } + + + public String getGlzz() { + return this.glzz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setGlda(String glda) { + this.glda = glda; + } + + + public String getGlda() { + return this.glda; + } + + public void setBy(String by1) { + this.by1 = by1; + } + + + public String getBy1() { + return this.by1; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("fondscode", getFondscode()) + .append("fondsname", getFondsname()) + .append("glzz", getGlzz()) + .append("bz", getBz()) + .append("glda", getGlda()) + .append("by1", getBy1()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\qzgl\domain\TPsFondsCode.class diff --git a/src/main/java/com/archive/project/dasz/qzgl/service/impl/TPsFondsCodeServiceImpl.java b/src/main/java/com/archive/project/dasz/qzgl/service/impl/TPsFondsCodeServiceImpl.java index 7e43f32..decb939 100644 --- a/src/main/java/com/archive/project/dasz/qzgl/service/impl/TPsFondsCodeServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/qzgl/service/impl/TPsFondsCodeServiceImpl.java @@ -1,113 +1,113 @@ -/* */ package com.archive.project.dasz.qzgl.service.impl + package com.archive.project.dasz.qzgl.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.qzgl.domain.TPsFondsCode; -/* */ import com.archive.project.dasz.qzgl.mapper.TPsFondsCodeMapper; -/* */ import com.archive.project.dasz.qzgl.service.ITPsFondsCodeService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TPsFondsCodeServiceImpl -/* */ implements ITPsFondsCodeService -/* */ { -/* */ @Autowired -/* */ private TPsFondsCodeMapper tPsFondsCodeMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public TPsFondsCode selectTPsFondsCodeById(Long id) { -/* 37 */ return this.tPsFondsCodeMapper.selectTPsFondsCodeById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTPsFondsCodeList(TPsFondsCode tPsFondsCode) { -/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 51 */ return this.tPsFondsCodeMapper.selectTPsFondsCodeList(tPsFondsCode); -/* */ } -/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 54 */ return this.tPsFondsCodeMapper.selectTPsFondsCodeListSqlite(tPsFondsCode); -/* */ } -/* 56 */ return this.tPsFondsCodeMapper.selectTPsFondsCodeList(tPsFondsCode); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTPsFondsCode(TPsFondsCode tPsFondsCode) { -/* 70 */ return this.tPsFondsCodeMapper.insertTPsFondsCode(tPsFondsCode); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTPsFondsCode(TPsFondsCode tPsFondsCode) { -/* 82 */ return this.tPsFondsCodeMapper.updateTPsFondsCode(tPsFondsCode); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTPsFondsCodeByIds(String ids) { -/* 94 */ return this.tPsFondsCodeMapper.deleteTPsFondsCodeByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTPsFondsCodeById(Long id) { -/* 106 */ return this.tPsFondsCodeMapper.deleteTPsFondsCodeById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.qzgl.domain.TPsFondsCode; + import com.archive.project.dasz.qzgl.mapper.TPsFondsCodeMapper; + import com.archive.project.dasz.qzgl.service.ITPsFondsCodeService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + @Service + public class TPsFondsCodeServiceImpl + implements ITPsFondsCodeService + { + @Autowired + private TPsFondsCodeMapper tPsFondsCodeMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public TPsFondsCode selectTPsFondsCodeById(Long id) { + return this.tPsFondsCodeMapper.selectTPsFondsCodeById(id); + } + + + + + + + + + + + public List selectTPsFondsCodeList(TPsFondsCode tPsFondsCode) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.tPsFondsCodeMapper.selectTPsFondsCodeList(tPsFondsCode); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.tPsFondsCodeMapper.selectTPsFondsCodeListSqlite(tPsFondsCode); + } + return this.tPsFondsCodeMapper.selectTPsFondsCodeList(tPsFondsCode); + } + + + + + + + + + + + + public int insertTPsFondsCode(TPsFondsCode tPsFondsCode) { + return this.tPsFondsCodeMapper.insertTPsFondsCode(tPsFondsCode); + } + + + + + + + + + + public int updateTPsFondsCode(TPsFondsCode tPsFondsCode) { + return this.tPsFondsCodeMapper.updateTPsFondsCode(tPsFondsCode); + } + + + + + + + + + + public int deleteTPsFondsCodeByIds(String ids) { + return this.tPsFondsCodeMapper.deleteTPsFondsCodeByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTPsFondsCodeById(Long id) { + return this.tPsFondsCodeMapper.deleteTPsFondsCodeById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\qzgl\service\impl\TPsFondsCodeServiceImpl.class diff --git a/src/main/java/com/archive/project/dazl/dajd/controller/TJdTaskController.java b/src/main/java/com/archive/project/dazl/dajd/controller/TJdTaskController.java index 2a1a256..638dd2b 100644 --- a/src/main/java/com/archive/project/dazl/dajd/controller/TJdTaskController.java +++ b/src/main/java/com/archive/project/dazl/dajd/controller/TJdTaskController.java @@ -1,149 +1,149 @@ -/* */ package com.archive.project.dazl.dajd.controller + package com.archive.project.dazl.dajd.controller ; -/* */ -/* */ import com.archive.common.archiveUtil.TableUtil; -/* */ 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.archivetype.domain.ArchiveType; -/* */ import com.archive.project.dazl.dajd.domain.TJdTask; -/* */ import com.archive.project.dazl.dajd.service.ITJdTaskService; -/* */ 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({"/dazl/dajd"}) -/* */ public class TJdTaskController -/* */ extends BaseController -/* */ { -/* 36 */ private String prefix = "dazl/dajd"; -/* */ -/* */ @Autowired -/* */ private ITJdTaskService tJdTaskService; -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:view"}) -/* */ @GetMapping -/* */ public String dajd() { -/* 45 */ return this.prefix + "/dajd"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TJdTask tJdTask) { -/* 56 */ startPage(); -/* 57 */ List list = this.tJdTaskService.selectTJdTaskList(tJdTask); -/* 58 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:export"}) -/* */ @Log(title = "档案鉴定", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TJdTask tJdTask) { -/* 70 */ List list = this.tJdTaskService.selectTJdTaskList(tJdTask); -/* 71 */ ExcelUtil util = new ExcelUtil(TJdTask.class); -/* 72 */ return util.exportExcel(list, "dajd"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 82 */ List archiveTypeList = TableUtil.getAllArchiveType(); -/* 83 */ mmap.put("archiveTypeList", archiveTypeList); -/* 84 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:add"}) -/* */ @Log(title = "档案鉴定", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TJdTask tJdTask) { -/* 96 */ return toAjax(this.tJdTaskService.insertTJdTask(tJdTask)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 105 */ TJdTask tJdTask = this.tJdTaskService.selectTJdTaskById(id); -/* 106 */ mmap.put("tJdTask", tJdTask); -/* */ -/* 108 */ List archiveTypeList = TableUtil.getAllArchiveType(); -/* 109 */ mmap.put("archiveTypeList", archiveTypeList); -/* 110 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:edit"}) -/* */ @Log(title = "档案鉴定", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TJdTask tJdTask) { -/* 122 */ return toAjax(this.tJdTaskService.updateTJdTask(tJdTask)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:dajd:remove"}) -/* */ @Log(title = "档案鉴定", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 134 */ return toAjax(this.tJdTaskService.deleteTJdTaskByIds(ids)); -/* */ } -/* */ -/* */ @Log(title = "档案鉴定-鉴定生效", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/jdsx"}) -/* */ @ResponseBody -/* */ public AjaxResult jdsx(@Validated String ids) { -/* 141 */ int a = this.tJdTaskService.jdsx(ids); -/* 142 */ return success(String.valueOf(a)); -/* */ } -/* */ } + + import com.archive.common.archiveUtil.TableUtil; + 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.archivetype.domain.ArchiveType; + import com.archive.project.dazl.dajd.domain.TJdTask; + import com.archive.project.dazl.dajd.service.ITJdTaskService; + 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({"/dazl/dajd"}) + public class TJdTaskController + extends BaseController + { + private String prefix = "dazl/dajd"; + + @Autowired + private ITJdTaskService tJdTaskService; + + + @RequiresPermissions({"dazl:dajd:view"}) + @GetMapping + public String dajd() { + return this.prefix + "/dajd"; + } + + + + + + @RequiresPermissions({"dazl:dajd:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TJdTask tJdTask) { + startPage(); + List list = this.tJdTaskService.selectTJdTaskList(tJdTask); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dazl:dajd:export"}) + @Log(title = "档案鉴定", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TJdTask tJdTask) { + List list = this.tJdTaskService.selectTJdTaskList(tJdTask); + ExcelUtil util = new ExcelUtil(TJdTask.class); + return util.exportExcel(list, "dajd"); + } + + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + List archiveTypeList = TableUtil.getAllArchiveType(); + mmap.put("archiveTypeList", archiveTypeList); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dazl:dajd:add"}) + @Log(title = "档案鉴定", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TJdTask tJdTask) { + return toAjax(this.tJdTaskService.insertTJdTask(tJdTask)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TJdTask tJdTask = this.tJdTaskService.selectTJdTaskById(id); + mmap.put("tJdTask", tJdTask); + + List archiveTypeList = TableUtil.getAllArchiveType(); + mmap.put("archiveTypeList", archiveTypeList); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dazl:dajd:edit"}) + @Log(title = "档案鉴定", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TJdTask tJdTask) { + return toAjax(this.tJdTaskService.updateTJdTask(tJdTask)); + } + + + + + + @RequiresPermissions({"dazl:dajd:remove"}) + @Log(title = "档案鉴定", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tJdTaskService.deleteTJdTaskByIds(ids)); + } + + @Log(title = "档案鉴定-鉴定生效", businessType = BusinessType.INSERT) + @PostMapping({"/jdsx"}) + @ResponseBody + public AjaxResult jdsx(@Validated String ids) { + int a = this.tJdTaskService.jdsx(ids); + return success(String.valueOf(a)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\dajd\controller\TJdTaskController.class diff --git a/src/main/java/com/archive/project/dazl/dajd/domain/TJdTask.java b/src/main/java/com/archive/project/dazl/dajd/domain/TJdTask.java index 95baf97..54c7b3e 100644 --- a/src/main/java/com/archive/project/dazl/dajd/domain/TJdTask.java +++ b/src/main/java/com/archive/project/dazl/dajd/domain/TJdTask.java @@ -1,168 +1,168 @@ -/* */ package com.archive.project.dazl.dajd.domain + package com.archive.project.dazl.dajd.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 TJdTask -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "鉴定任务名称") -/* */ private String taskName; -/* */ @Excel(name = "任务创建时间") -/* */ private String taskSj; -/* */ @Excel(name = "鉴定类型") -/* */ private String taskType; -/* */ @Excel(name = "鉴定档案类型id") -/* */ private String taskArchiveTypeId; -/* */ @Excel(name = "鉴定档案类型名称") -/* */ private String taskArchiveTypeName; -/* */ @Excel(name = "鉴定主表id") -/* */ private String taskTableId; -/* */ @Excel(name = "鉴定任务状态") -/* */ private String taskStatus; -/* */ @Excel(name = "鉴定人员") -/* */ private String taskRy; -/* */ @Excel(name = "任务备注") -/* */ private String taskBz; -/* */ -/* */ public void setId(Long id) { -/* 59 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 64 */ return this.id; -/* */ } -/* */ -/* */ public void setTaskName(String taskName) { -/* 68 */ this.taskName = taskName; -/* */ } -/* */ -/* */ -/* */ public String getTaskName() { -/* 73 */ return this.taskName; -/* */ } -/* */ -/* */ public void setTaskSj(String taskSj) { -/* 77 */ this.taskSj = taskSj; -/* */ } -/* */ -/* */ -/* */ public String getTaskSj() { -/* 82 */ return this.taskSj; -/* */ } -/* */ -/* */ public void setTaskType(String taskType) { -/* 86 */ this.taskType = taskType; -/* */ } -/* */ -/* */ -/* */ public String getTaskType() { -/* 91 */ return this.taskType; -/* */ } -/* */ -/* */ public void setTaskArchiveTypeId(String taskArchiveTypeId) { -/* 95 */ this.taskArchiveTypeId = taskArchiveTypeId; -/* */ } -/* */ -/* */ -/* */ public String getTaskArchiveTypeId() { -/* 100 */ return this.taskArchiveTypeId; -/* */ } -/* */ -/* */ public void setTaskArchiveTypeName(String taskArchiveTypeName) { -/* 104 */ this.taskArchiveTypeName = taskArchiveTypeName; -/* */ } -/* */ -/* */ -/* */ public String getTaskArchiveTypeName() { -/* 109 */ return this.taskArchiveTypeName; -/* */ } -/* */ -/* */ public void setTaskTableId(String taskTableId) { -/* 113 */ this.taskTableId = taskTableId; -/* */ } -/* */ -/* */ -/* */ public String getTaskTableId() { -/* 118 */ return this.taskTableId; -/* */ } -/* */ -/* */ public void setTaskStatus(String taskStatus) { -/* 122 */ this.taskStatus = taskStatus; -/* */ } -/* */ -/* */ -/* */ public String getTaskStatus() { -/* 127 */ return this.taskStatus; -/* */ } -/* */ -/* */ public void setTaskRy(String taskRy) { -/* 131 */ this.taskRy = taskRy; -/* */ } -/* */ -/* */ -/* */ public String getTaskRy() { -/* 136 */ return this.taskRy; -/* */ } -/* */ -/* */ public void setTaskBz(String taskBz) { -/* 140 */ this.taskBz = taskBz; -/* */ } -/* */ -/* */ -/* */ public String getTaskBz() { -/* 145 */ return this.taskBz; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 150 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 151 */ .append("id", getId()) -/* 152 */ .append("taskName", getTaskName()) -/* 153 */ .append("taskSj", getTaskSj()) -/* 154 */ .append("taskType", getTaskType()) -/* 155 */ .append("taskArchiveTypeId", getTaskArchiveTypeId()) -/* 156 */ .append("taskArchiveTypeName", getTaskArchiveTypeName()) -/* 157 */ .append("taskTableId", getTaskTableId()) -/* 158 */ .append("taskStatus", getTaskStatus()) -/* 159 */ .append("taskRy", getTaskRy()) -/* 160 */ .append("taskBz", getTaskBz()) -/* 161 */ .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 TJdTask + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "鉴定任务名称") + private String taskName; + @Excel(name = "任务创建时间") + private String taskSj; + @Excel(name = "鉴定类型") + private String taskType; + @Excel(name = "鉴定档案类型id") + private String taskArchiveTypeId; + @Excel(name = "鉴定档案类型名称") + private String taskArchiveTypeName; + @Excel(name = "鉴定主表id") + private String taskTableId; + @Excel(name = "鉴定任务状态") + private String taskStatus; + @Excel(name = "鉴定人员") + private String taskRy; + @Excel(name = "任务备注") + private String taskBz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + + public String getTaskName() { + return this.taskName; + } + + public void setTaskSj(String taskSj) { + this.taskSj = taskSj; + } + + + public String getTaskSj() { + return this.taskSj; + } + + public void setTaskType(String taskType) { + this.taskType = taskType; + } + + + public String getTaskType() { + return this.taskType; + } + + public void setTaskArchiveTypeId(String taskArchiveTypeId) { + this.taskArchiveTypeId = taskArchiveTypeId; + } + + + public String getTaskArchiveTypeId() { + return this.taskArchiveTypeId; + } + + public void setTaskArchiveTypeName(String taskArchiveTypeName) { + this.taskArchiveTypeName = taskArchiveTypeName; + } + + + public String getTaskArchiveTypeName() { + return this.taskArchiveTypeName; + } + + public void setTaskTableId(String taskTableId) { + this.taskTableId = taskTableId; + } + + + public String getTaskTableId() { + return this.taskTableId; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + } + + + public String getTaskStatus() { + return this.taskStatus; + } + + public void setTaskRy(String taskRy) { + this.taskRy = taskRy; + } + + + public String getTaskRy() { + return this.taskRy; + } + + public void setTaskBz(String taskBz) { + this.taskBz = taskBz; + } + + + public String getTaskBz() { + return this.taskBz; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("taskName", getTaskName()) + .append("taskSj", getTaskSj()) + .append("taskType", getTaskType()) + .append("taskArchiveTypeId", getTaskArchiveTypeId()) + .append("taskArchiveTypeName", getTaskArchiveTypeName()) + .append("taskTableId", getTaskTableId()) + .append("taskStatus", getTaskStatus()) + .append("taskRy", getTaskRy()) + .append("taskBz", getTaskBz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\dajd\domain\TJdTask.class diff --git a/src/main/java/com/archive/project/dazl/dajd/service/impl/TJdTaskServiceImpl.java b/src/main/java/com/archive/project/dazl/dajd/service/impl/TJdTaskServiceImpl.java index 5e29610..eb7d7d3 100644 --- a/src/main/java/com/archive/project/dazl/dajd/service/impl/TJdTaskServiceImpl.java +++ b/src/main/java/com/archive/project/dazl/dajd/service/impl/TJdTaskServiceImpl.java @@ -1,182 +1,182 @@ -/* */ package com.archive.project.dazl.dajd.service.impl + package com.archive.project.dazl.dajd.service.impl ; -/* */ -/* */ import com.archive.common.archiveUtil.TableUtil; -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.common.service.IExecuteSqlService; -/* */ import com.archive.project.dasz.archivetype.domain.ArchiveType; -/* */ import com.archive.project.dasz.archivetype.service.IArchiveTypeService; -/* */ import com.archive.project.dazl.dajd.domain.TJdTask; -/* */ import com.archive.project.dazl.dajd.mapper.TJdTaskMapper; -/* */ import com.archive.project.dazl.dajd.service.ITJdTaskService; -/* */ import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; -/* */ import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TJdTaskServiceImpl -/* */ implements ITJdTaskService -/* */ { -/* */ @Autowired -/* */ private TJdTaskMapper tJdTaskMapper; -/* */ @Autowired -/* */ private IArchiveTypeService archiveTypeService; -/* */ @Autowired -/* */ private ITJdTaskDetailService jdTaskDetailService; -/* */ @Autowired -/* */ private IExecuteSqlService executeSqlService; -/* */ -/* */ public TJdTask selectTJdTaskById(Long id) { -/* 47 */ return this.tJdTaskMapper.selectTJdTaskById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTJdTaskList(TJdTask tJdTask) { -/* 59 */ return this.tJdTaskMapper.selectTJdTaskList(tJdTask); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTJdTask(TJdTask tJdTask) { -/* 73 */ String archiveTypeId = tJdTask.getTaskArchiveTypeId(); -/* 74 */ ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(archiveTypeId))); -/* 75 */ String archiveTypeName = archiveType.getArchiveName(); -/* 76 */ String taskStatus = "WSX"; -/* 77 */ long tableId = TableUtil.getTableIdByArchiveTypeId(archiveType.getId().longValue()); -/* */ -/* 79 */ tJdTask.setTaskArchiveTypeName(archiveTypeName); -/* 80 */ tJdTask.setTaskTableId(String.valueOf(tableId)); -/* 81 */ tJdTask.setTaskStatus(taskStatus); -/* 82 */ return this.tJdTaskMapper.insertTJdTask(tJdTask); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTJdTask(TJdTask tJdTask) { -/* 96 */ String archiveTypeId = tJdTask.getTaskArchiveTypeId(); -/* 97 */ ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(archiveTypeId))); -/* 98 */ String archiveTypeName = archiveType.getArchiveName(); -/* 99 */ String taskStatus = "WSX"; -/* 100 */ long tableId = TableUtil.getTableIdByArchiveTypeId(archiveType.getId().longValue()); -/* */ -/* 102 */ tJdTask.setTaskArchiveTypeName(archiveTypeName); -/* 103 */ tJdTask.setTaskTableId(String.valueOf(tableId)); -/* 104 */ tJdTask.setTaskStatus(taskStatus); -/* 105 */ return this.tJdTaskMapper.updateTJdTask(tJdTask); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTJdTaskByIds(String ids) { -/* 117 */ return this.tJdTaskMapper.deleteTJdTaskByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTJdTaskById(Long id) { -/* 129 */ return this.tJdTaskMapper.deleteTJdTaskById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int jdsx(String ids) { -/* 139 */ int a = 0; -/* 140 */ String[] idsttr = ids.split(","); -/* 141 */ for (int i = 0; i < idsttr.length && -/* 142 */ a == 0; i++) { -/* 143 */ TJdTask tJdTask = this.tJdTaskMapper.selectTJdTaskById(Long.valueOf(Long.parseLong(idsttr[i]))); -/* */ -/* 145 */ TJdTaskDetail jdTaskDetail = new TJdTaskDetail(); -/* 146 */ jdTaskDetail.setOwnerId(Long.valueOf(Long.parseLong(idsttr[i]))); -/* 147 */ List list = this.jdTaskDetailService.selectTJdTaskDetailList(jdTaskDetail); -/* 148 */ for (int j = 0; j < list.size(); j++) { -/* 149 */ jdTaskDetail = list.get(j); -/* 150 */ String value = jdTaskDetail.getJdjg(); -/* 151 */ if (value == null || value.equals("")) { -/* 152 */ a = 2; -/* */ break; -/* */ } -/* 155 */ String columns = ""; -/* 156 */ if (tJdTask.getTaskType().equals("MJJD")) { -/* 157 */ columns = "mj"; -/* 158 */ } else if (tJdTask.getTaskType().equals("KFJD")) { -/* 159 */ columns = "kfqk"; -/* */ } -/* 161 */ String tableName = TableUtil.getTableName(jdTaskDetail.getArchiveTableId()); -/* 162 */ String updatesql = "update " + tableName + " set " + columns + "='" + value + "' where id=" + jdTaskDetail.getArchiveId(); -/* 163 */ this.executeSqlService.update(updatesql); -/* */ } -/* */ -/* */ -/* 167 */ if (a == 0) { -/* 168 */ tJdTask.setTaskStatus("YSX"); -/* 169 */ this.tJdTaskMapper.updateTJdTask(tJdTask); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* 175 */ return a; -/* */ } -/* */ } + + import com.archive.common.archiveUtil.TableUtil; + import com.archive.common.utils.text.Convert; + import com.archive.project.common.service.IExecuteSqlService; + import com.archive.project.dasz.archivetype.domain.ArchiveType; + import com.archive.project.dasz.archivetype.service.IArchiveTypeService; + import com.archive.project.dazl.dajd.domain.TJdTask; + import com.archive.project.dazl.dajd.mapper.TJdTaskMapper; + import com.archive.project.dazl.dajd.service.ITJdTaskService; + import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; + import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class TJdTaskServiceImpl + implements ITJdTaskService + { + @Autowired + private TJdTaskMapper tJdTaskMapper; + @Autowired + private IArchiveTypeService archiveTypeService; + @Autowired + private ITJdTaskDetailService jdTaskDetailService; + @Autowired + private IExecuteSqlService executeSqlService; + + public TJdTask selectTJdTaskById(Long id) { + return this.tJdTaskMapper.selectTJdTaskById(id); + } + + + + + + + + + + public List selectTJdTaskList(TJdTask tJdTask) { + return this.tJdTaskMapper.selectTJdTaskList(tJdTask); + } + + + + + + + + + + + + public int insertTJdTask(TJdTask tJdTask) { + String archiveTypeId = tJdTask.getTaskArchiveTypeId(); + ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(archiveTypeId))); + String archiveTypeName = archiveType.getArchiveName(); + String taskStatus = "WSX"; + long tableId = TableUtil.getTableIdByArchiveTypeId(archiveType.getId().longValue()); + + tJdTask.setTaskArchiveTypeName(archiveTypeName); + tJdTask.setTaskTableId(String.valueOf(tableId)); + tJdTask.setTaskStatus(taskStatus); + return this.tJdTaskMapper.insertTJdTask(tJdTask); + } + + + + + + + + + + + + public int updateTJdTask(TJdTask tJdTask) { + String archiveTypeId = tJdTask.getTaskArchiveTypeId(); + ArchiveType archiveType = this.archiveTypeService.selectArchiveTypeById(Long.valueOf(Long.parseLong(archiveTypeId))); + String archiveTypeName = archiveType.getArchiveName(); + String taskStatus = "WSX"; + long tableId = TableUtil.getTableIdByArchiveTypeId(archiveType.getId().longValue()); + + tJdTask.setTaskArchiveTypeName(archiveTypeName); + tJdTask.setTaskTableId(String.valueOf(tableId)); + tJdTask.setTaskStatus(taskStatus); + return this.tJdTaskMapper.updateTJdTask(tJdTask); + } + + + + + + + + + + public int deleteTJdTaskByIds(String ids) { + return this.tJdTaskMapper.deleteTJdTaskByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTJdTaskById(Long id) { + return this.tJdTaskMapper.deleteTJdTaskById(id); + } + + + + + + + + public int jdsx(String ids) { + int a = 0; + String[] idsttr = ids.split(","); + for (int i = 0; i < idsttr.length && + a == 0; i++) { + TJdTask tJdTask = this.tJdTaskMapper.selectTJdTaskById(Long.valueOf(Long.parseLong(idsttr[i]))); + + TJdTaskDetail jdTaskDetail = new TJdTaskDetail(); + jdTaskDetail.setOwnerId(Long.valueOf(Long.parseLong(idsttr[i]))); + List list = this.jdTaskDetailService.selectTJdTaskDetailList(jdTaskDetail); + for (int j = 0; j < list.size(); j++) { + jdTaskDetail = list.get(j); + String value = jdTaskDetail.getJdjg(); + if (value == null || value.equals("")) { + a = 2; + break; + } + String columns = ""; + if (tJdTask.getTaskType().equals("MJJD")) { + columns = "mj"; + } else if (tJdTask.getTaskType().equals("KFJD")) { + columns = "kfqk"; + } + String tableName = TableUtil.getTableName(jdTaskDetail.getArchiveTableId()); + String updatesql = "update " + tableName + " set " + columns + "='" + value + "' where id=" + jdTaskDetail.getArchiveId(); + this.executeSqlService.update(updatesql); + } + + + if (a == 0) { + tJdTask.setTaskStatus("YSX"); + this.tJdTaskMapper.updateTJdTask(tJdTask); + } + } + + + + return a; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\dajd\service\impl\TJdTaskServiceImpl.class diff --git a/src/main/java/com/archive/project/dazl/ggfj/controller/TGgfjController.java b/src/main/java/com/archive/project/dazl/ggfj/controller/TGgfjController.java index 5ad788d..68daf38 100644 --- a/src/main/java/com/archive/project/dazl/ggfj/controller/TGgfjController.java +++ b/src/main/java/com/archive/project/dazl/ggfj/controller/TGgfjController.java @@ -1,131 +1,131 @@ -/* */ package com.archive.project.dazl.ggfj.controller + package com.archive.project.dazl.ggfj.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.dazl.ggfj.domain.TGgfj; -/* */ import com.archive.project.dazl.ggfj.service.ITGgfjService; -/* */ 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({"/fjgl/ggfj"}) -/* */ public class TGgfjController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "fjgl/ggfj"; -/* */ -/* */ @Autowired -/* */ private ITGgfjService tGgfjService; -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:view"}) -/* */ @GetMapping -/* */ public String ggfj() { -/* 41 */ return this.prefix + "/ggfj"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TGgfj tGgfj) { -/* 52 */ startPage(); -/* 53 */ List list = this.tGgfjService.selectTGgfjList(tGgfj); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:export"}) -/* */ @Log(title = "附件管理", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TGgfj tGgfj) { -/* 66 */ List list = this.tGgfjService.selectTGgfjList(tGgfj); -/* 67 */ ExcelUtil util = new ExcelUtil(TGgfj.class); -/* 68 */ return util.exportExcel(list, "ggfj"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:add"}) -/* */ @Log(title = "附件管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TGgfj tGgfj) { -/* 89 */ return toAjax(this.tGgfjService.insertTGgfj(tGgfj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ TGgfj tGgfj = this.tGgfjService.selectTGgfjById(id); -/* 99 */ mmap.put("tGgfj", tGgfj); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:edit"}) -/* */ @Log(title = "附件管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TGgfj tGgfj) { -/* 112 */ return toAjax(this.tGgfjService.updateTGgfj(tGgfj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"fjgl:ggfj:remove"}) -/* */ @Log(title = "附件管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.tGgfjService.deleteTGgfjByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dazl.ggfj.domain.TGgfj; + import com.archive.project.dazl.ggfj.service.ITGgfjService; + 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({"/fjgl/ggfj"}) + public class TGgfjController + extends BaseController + { + private String prefix = "fjgl/ggfj"; + + @Autowired + private ITGgfjService tGgfjService; + + + @RequiresPermissions({"fjgl:ggfj:view"}) + @GetMapping + public String ggfj() { + return this.prefix + "/ggfj"; + } + + + + + + @RequiresPermissions({"fjgl:ggfj:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TGgfj tGgfj) { + startPage(); + List list = this.tGgfjService.selectTGgfjList(tGgfj); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"fjgl:ggfj:export"}) + @Log(title = "附件管理", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TGgfj tGgfj) { + List list = this.tGgfjService.selectTGgfjList(tGgfj); + ExcelUtil util = new ExcelUtil(TGgfj.class); + return util.exportExcel(list, "ggfj"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"fjgl:ggfj:add"}) + @Log(title = "附件管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TGgfj tGgfj) { + return toAjax(this.tGgfjService.insertTGgfj(tGgfj)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TGgfj tGgfj = this.tGgfjService.selectTGgfjById(id); + mmap.put("tGgfj", tGgfj); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"fjgl:ggfj:edit"}) + @Log(title = "附件管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TGgfj tGgfj) { + return toAjax(this.tGgfjService.updateTGgfj(tGgfj)); + } + + + + + + @RequiresPermissions({"fjgl:ggfj:remove"}) + @Log(title = "附件管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tGgfjService.deleteTGgfjByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\ggfj\controller\TGgfjController.class diff --git a/src/main/java/com/archive/project/dazl/ggfj/domain/TGgfj.java b/src/main/java/com/archive/project/dazl/ggfj/domain/TGgfj.java index c3e984a..4d42467 100644 --- a/src/main/java/com/archive/project/dazl/ggfj/domain/TGgfj.java +++ b/src/main/java/com/archive/project/dazl/ggfj/domain/TGgfj.java @@ -1,168 +1,168 @@ -/* */ package com.archive.project.dazl.ggfj.domain + package com.archive.project.dazl.ggfj.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 TGgfj -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "所属类型") -/* */ private String ssType; -/* */ @Excel(name = "所属ID") -/* */ private Long ssId; -/* */ @Excel(name = "所属表名") -/* */ private String ssTableName; -/* */ @Excel(name = "文件名称") -/* */ private String fileName; -/* */ @Excel(name = "文件格式") -/* */ private String fileFormat; -/* */ @Excel(name = "文件大小") -/* */ private Long fileSize; -/* */ @Excel(name = "文件路径") -/* */ private String filePath; -/* */ @Excel(name = "文件缩略图路径") -/* */ private String fileMiniPath; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ -/* */ public void setId(Long id) { -/* 59 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 64 */ return this.id; -/* */ } -/* */ -/* */ public void setSsType(String ssType) { -/* 68 */ this.ssType = ssType; -/* */ } -/* */ -/* */ -/* */ public String getSsType() { -/* 73 */ return this.ssType; -/* */ } -/* */ -/* */ public void setSsId(Long ssId) { -/* 77 */ this.ssId = ssId; -/* */ } -/* */ -/* */ -/* */ public Long getSsId() { -/* 82 */ return this.ssId; -/* */ } -/* */ -/* */ public void setSsTableName(String ssTableName) { -/* 86 */ this.ssTableName = ssTableName; -/* */ } -/* */ -/* */ -/* */ public String getSsTableName() { -/* 91 */ return this.ssTableName; -/* */ } -/* */ -/* */ public void setFileName(String fileName) { -/* 95 */ this.fileName = fileName; -/* */ } -/* */ -/* */ -/* */ public String getFileName() { -/* 100 */ return this.fileName; -/* */ } -/* */ -/* */ public void setFileFormat(String fileFormat) { -/* 104 */ this.fileFormat = fileFormat; -/* */ } -/* */ -/* */ -/* */ public String getFileFormat() { -/* 109 */ return this.fileFormat; -/* */ } -/* */ -/* */ public void setFileSize(Long fileSize) { -/* 113 */ this.fileSize = fileSize; -/* */ } -/* */ -/* */ -/* */ public Long getFileSize() { -/* 118 */ return this.fileSize; -/* */ } -/* */ -/* */ public void setFilePath(String filePath) { -/* 122 */ this.filePath = filePath; -/* */ } -/* */ -/* */ -/* */ public String getFilePath() { -/* 127 */ return this.filePath; -/* */ } -/* */ -/* */ public void setFileMiniPath(String fileMiniPath) { -/* 131 */ this.fileMiniPath = fileMiniPath; -/* */ } -/* */ -/* */ -/* */ public String getFileMiniPath() { -/* 136 */ return this.fileMiniPath; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 140 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 145 */ return this.bz; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 150 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 151 */ .append("id", getId()) -/* 152 */ .append("ssType", getSsType()) -/* 153 */ .append("ssId", getSsId()) -/* 154 */ .append("ssTableName", getSsTableName()) -/* 155 */ .append("fileName", getFileName()) -/* 156 */ .append("fileFormat", getFileFormat()) -/* 157 */ .append("fileSize", getFileSize()) -/* 158 */ .append("filePath", getFilePath()) -/* 159 */ .append("fileMiniPath", getFileMiniPath()) -/* 160 */ .append("bz", getBz()) -/* 161 */ .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 TGgfj + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "所属类型") + private String ssType; + @Excel(name = "所属ID") + private Long ssId; + @Excel(name = "所属表名") + private String ssTableName; + @Excel(name = "文件名称") + private String fileName; + @Excel(name = "文件格式") + private String fileFormat; + @Excel(name = "文件大小") + private Long fileSize; + @Excel(name = "文件路径") + private String filePath; + @Excel(name = "文件缩略图路径") + private String fileMiniPath; + @Excel(name = "备注") + private String bz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setSsType(String ssType) { + this.ssType = ssType; + } + + + public String getSsType() { + return this.ssType; + } + + public void setSsId(Long ssId) { + this.ssId = ssId; + } + + + public Long getSsId() { + return this.ssId; + } + + public void setSsTableName(String ssTableName) { + this.ssTableName = ssTableName; + } + + + public String getSsTableName() { + return this.ssTableName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + + public String getFileName() { + return this.fileName; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + + public String getFileFormat() { + return this.fileFormat; + } + + public void setFileSize(Long fileSize) { + this.fileSize = fileSize; + } + + + public Long getFileSize() { + return this.fileSize; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + + public String getFilePath() { + return this.filePath; + } + + public void setFileMiniPath(String fileMiniPath) { + this.fileMiniPath = fileMiniPath; + } + + + public String getFileMiniPath() { + return this.fileMiniPath; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("ssType", getSsType()) + .append("ssId", getSsId()) + .append("ssTableName", getSsTableName()) + .append("fileName", getFileName()) + .append("fileFormat", getFileFormat()) + .append("fileSize", getFileSize()) + .append("filePath", getFilePath()) + .append("fileMiniPath", getFileMiniPath()) + .append("bz", getBz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\ggfj\domain\TGgfj.class diff --git a/src/main/java/com/archive/project/dazl/ggfj/service/impl/TGgfjServiceImpl.java b/src/main/java/com/archive/project/dazl/ggfj/service/impl/TGgfjServiceImpl.java index f7f51ba..4b19349 100644 --- a/src/main/java/com/archive/project/dazl/ggfj/service/impl/TGgfjServiceImpl.java +++ b/src/main/java/com/archive/project/dazl/ggfj/service/impl/TGgfjServiceImpl.java @@ -1,99 +1,99 @@ -/* */ package com.archive.project.dazl.ggfj.service.impl + package com.archive.project.dazl.ggfj.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.dazl.ggfj.domain.TGgfj; -/* */ import com.archive.project.dazl.ggfj.mapper.TGgfjMapper; -/* */ import com.archive.project.dazl.ggfj.service.ITGgfjService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TGgfjServiceImpl -/* */ implements ITGgfjService -/* */ { -/* */ @Autowired -/* */ private TGgfjMapper tGgfjMapper; -/* */ -/* */ public TGgfj selectTGgfjById(Long id) { -/* 32 */ return this.tGgfjMapper.selectTGgfjById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTGgfjList(TGgfj tGgfj) { -/* 44 */ return this.tGgfjMapper.selectTGgfjList(tGgfj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTGgfj(TGgfj tGgfj) { -/* 56 */ return this.tGgfjMapper.insertTGgfj(tGgfj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTGgfj(TGgfj tGgfj) { -/* 68 */ return this.tGgfjMapper.updateTGgfj(tGgfj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTGgfjByIds(String ids) { -/* 80 */ return this.tGgfjMapper.deleteTGgfjByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTGgfjById(Long id) { -/* 92 */ return this.tGgfjMapper.deleteTGgfjById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.dazl.ggfj.domain.TGgfj; + import com.archive.project.dazl.ggfj.mapper.TGgfjMapper; + import com.archive.project.dazl.ggfj.service.ITGgfjService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + @Service + public class TGgfjServiceImpl + implements ITGgfjService + { + @Autowired + private TGgfjMapper tGgfjMapper; + + public TGgfj selectTGgfjById(Long id) { + return this.tGgfjMapper.selectTGgfjById(id); + } + + + + + + + + + + public List selectTGgfjList(TGgfj tGgfj) { + return this.tGgfjMapper.selectTGgfjList(tGgfj); + } + + + + + + + + + + public int insertTGgfj(TGgfj tGgfj) { + return this.tGgfjMapper.insertTGgfj(tGgfj); + } + + + + + + + + + + public int updateTGgfj(TGgfj tGgfj) { + return this.tGgfjMapper.updateTGgfj(tGgfj); + } + + + + + + + + + + public int deleteTGgfjByIds(String ids) { + return this.tGgfjMapper.deleteTGgfjByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTGgfjById(Long id) { + return this.tGgfjMapper.deleteTGgfjById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\ggfj\service\impl\TGgfjServiceImpl.class diff --git a/src/main/java/com/archive/project/dazl/jdmx/controller/TJdTaskDetailController.java b/src/main/java/com/archive/project/dazl/jdmx/controller/TJdTaskDetailController.java index 07924f5..c01138d 100644 --- a/src/main/java/com/archive/project/dazl/jdmx/controller/TJdTaskDetailController.java +++ b/src/main/java/com/archive/project/dazl/jdmx/controller/TJdTaskDetailController.java @@ -1,209 +1,209 @@ -/* */ package com.archive.project.dazl.jdmx.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.dazl.dajd.domain.TJdTask; -/* */ import com.archive.project.dazl.dajd.service.ITJdTaskService; -/* */ import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; -/* */ import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; -/* */ 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({"/dazl/jdmx"}) -/* */ public class TJdTaskDetailController -/* */ extends BaseController -/* */ { -/* 36 */ private String prefix = "dazl/jdmx"; -/* */ -/* */ @Autowired -/* */ private ITJdTaskDetailService tJdTaskDetailService; -/* */ -/* */ @Autowired -/* */ private ITJdTaskService jdTaskService; -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:view"}) -/* */ @GetMapping({"/{id}"}) -/* */ public String jdmx(@PathVariable("id") Long id, ModelMap mmap) { -/* 48 */ mmap.put("ownerId", id); -/* */ -/* 50 */ TJdTask jdTask = this.jdTaskService.selectTJdTaskById(id); -/* 51 */ mmap.put("jdType", jdTask.getTaskType()); -/* 52 */ mmap.put("jdStatus", jdTask.getTaskStatus()); -/* 53 */ return this.prefix + "/jdmx"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:list"}) -/* */ @PostMapping({"/list/{ownerId}"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(@PathVariable("ownerId") Long ownerId, TJdTaskDetail tJdTaskDetail) { -/* 64 */ startPage(); -/* 65 */ tJdTaskDetail.setOwnerId(ownerId); -/* 66 */ List list = this.tJdTaskDetailService.selectTJdTaskDetailList(tJdTaskDetail); -/* 67 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:export"}) -/* */ @Log(title = "鉴定明细", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TJdTaskDetail tJdTaskDetail) { -/* 79 */ List list = this.tJdTaskDetailService.selectTJdTaskDetailList(tJdTaskDetail); -/* 80 */ ExcelUtil util = new ExcelUtil(TJdTaskDetail.class); -/* 81 */ return util.exportExcel(list, "jdmx"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 90 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:add"}) -/* */ @Log(title = "鉴定明细", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TJdTaskDetail tJdTaskDetail) { -/* 102 */ return toAjax(this.tJdTaskDetailService.insertTJdTaskDetail(tJdTaskDetail)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 111 */ TJdTaskDetail tJdTaskDetail = this.tJdTaskDetailService.selectTJdTaskDetailById(id); -/* 112 */ mmap.put("tJdTaskDetail", tJdTaskDetail); -/* 113 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:edit"}) -/* */ @Log(title = "鉴定明细", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TJdTaskDetail tJdTaskDetail) { -/* 125 */ return toAjax(this.tJdTaskDetailService.updateTJdTaskDetail(tJdTaskDetail)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:jdmx:remove"}) -/* */ @Log(title = "鉴定明细", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 137 */ return toAjax(this.tJdTaskDetailService.deleteTJdTaskDetailByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/jdsearch/{ownerId}"}) -/* */ public String borrowsearch(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { -/* 147 */ mmap.put("ownerId", ownerId); -/* 148 */ return this.prefix + "/jdsearch"; -/* */ } -/* */ -/* */ @Log(title = "档案鉴定-明细调档保存", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/saveJdDetail"}) -/* */ @ResponseBody -/* */ public AjaxResult saveJdDetail(@Validated String ownerId, @Validated String ids) { -/* 155 */ boolean res = this.tJdTaskDetailService.saveJdDetail(ownerId, ids); -/* 156 */ if (res) { -/* 157 */ return success(); -/* */ } -/* 159 */ return error(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "档案整理-档案鉴定-单条鉴定", businessType = BusinessType.ZLRK) -/* */ @PostMapping({"/dtjd"}) -/* */ @ResponseBody -/* */ public AjaxResult dtjd(@Validated long id, @Validated String field, @Validated String value) { -/* 172 */ int flag = 0; -/* */ try { -/* 174 */ TJdTaskDetail jdTaskDetail = this.tJdTaskDetailService.selectTJdTaskDetailById(Long.valueOf(id)); -/* 175 */ if (field.equals("jdjg")) { -/* 176 */ jdTaskDetail.setJdjg(value); -/* */ } -/* 178 */ if (field.equals("jdyj")) { -/* 179 */ jdTaskDetail.setJdyj(value); -/* */ } -/* 181 */ this.tJdTaskDetailService.updateTJdTaskDetail(jdTaskDetail); -/* 182 */ } catch (Exception ex) { -/* 183 */ flag = 1; -/* 184 */ System.out.println("单条鉴定出现异常:" + ex.getMessage()); -/* 185 */ return error("鉴定结果保存失败!"); -/* */ } -/* 187 */ if (flag == 0) { -/* 188 */ return success("鉴定结果保存成功!"); -/* */ } -/* 190 */ return error("鉴定结果保存失败!"); -/* */ } -/* */ -/* */ -/* */ -/* */ @Log(title = "档案鉴定-批量鉴定保存", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/savePLJdDetail"}) -/* */ @ResponseBody -/* */ public AjaxResult savePLJdDetail(@Validated String value, @Validated String ids) { -/* 199 */ boolean res = this.tJdTaskDetailService.saveJdPljdDetail(value, ids); -/* 200 */ if (res) { -/* 201 */ return success(); -/* */ } -/* 203 */ return error(); -/* */ } -/* */ } + package com.archive.project.dazl.jdmx.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.dazl.dajd.domain.TJdTask; + import com.archive.project.dazl.dajd.service.ITJdTaskService; + import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; + import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; + 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({"/dazl/jdmx"}) + public class TJdTaskDetailController + extends BaseController + { + private String prefix = "dazl/jdmx"; + + @Autowired + private ITJdTaskDetailService tJdTaskDetailService; + + @Autowired + private ITJdTaskService jdTaskService; + + + @RequiresPermissions({"dazl:jdmx:view"}) + @GetMapping({"/{id}"}) + public String jdmx(@PathVariable("id") Long id, ModelMap mmap) { + mmap.put("ownerId", id); + + TJdTask jdTask = this.jdTaskService.selectTJdTaskById(id); + mmap.put("jdType", jdTask.getTaskType()); + mmap.put("jdStatus", jdTask.getTaskStatus()); + return this.prefix + "/jdmx"; + } + + + + + + @RequiresPermissions({"dazl:jdmx:list"}) + @PostMapping({"/list/{ownerId}"}) + @ResponseBody + public TableDataInfo list(@PathVariable("ownerId") Long ownerId, TJdTaskDetail tJdTaskDetail) { + startPage(); + tJdTaskDetail.setOwnerId(ownerId); + List list = this.tJdTaskDetailService.selectTJdTaskDetailList(tJdTaskDetail); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dazl:jdmx:export"}) + @Log(title = "鉴定明细", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TJdTaskDetail tJdTaskDetail) { + List list = this.tJdTaskDetailService.selectTJdTaskDetailList(tJdTaskDetail); + ExcelUtil util = new ExcelUtil(TJdTaskDetail.class); + return util.exportExcel(list, "jdmx"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dazl:jdmx:add"}) + @Log(title = "鉴定明细", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TJdTaskDetail tJdTaskDetail) { + return toAjax(this.tJdTaskDetailService.insertTJdTaskDetail(tJdTaskDetail)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TJdTaskDetail tJdTaskDetail = this.tJdTaskDetailService.selectTJdTaskDetailById(id); + mmap.put("tJdTaskDetail", tJdTaskDetail); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dazl:jdmx:edit"}) + @Log(title = "鉴定明细", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TJdTaskDetail tJdTaskDetail) { + return toAjax(this.tJdTaskDetailService.updateTJdTaskDetail(tJdTaskDetail)); + } + + + + + + @RequiresPermissions({"dazl:jdmx:remove"}) + @Log(title = "鉴定明细", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tJdTaskDetailService.deleteTJdTaskDetailByIds(ids)); + } + + + + + + + @GetMapping({"/jdsearch/{ownerId}"}) + public String borrowsearch(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { + mmap.put("ownerId", ownerId); + return this.prefix + "/jdsearch"; + } + + @Log(title = "档案鉴定-明细调档保存", businessType = BusinessType.INSERT) + @PostMapping({"/saveJdDetail"}) + @ResponseBody + public AjaxResult saveJdDetail(@Validated String ownerId, @Validated String ids) { + boolean res = this.tJdTaskDetailService.saveJdDetail(ownerId, ids); + if (res) { + return success(); + } + return error(); + } + + + + + + + + @Log(title = "档案整理-档案鉴定-单条鉴定", businessType = BusinessType.ZLRK) + @PostMapping({"/dtjd"}) + @ResponseBody + public AjaxResult dtjd(@Validated long id, @Validated String field, @Validated String value) { + int flag = 0; + try { + TJdTaskDetail jdTaskDetail = this.tJdTaskDetailService.selectTJdTaskDetailById(Long.valueOf(id)); + if (field.equals("jdjg")) { + jdTaskDetail.setJdjg(value); + } + if (field.equals("jdyj")) { + jdTaskDetail.setJdyj(value); + } + this.tJdTaskDetailService.updateTJdTaskDetail(jdTaskDetail); + } catch (Exception ex) { + flag = 1; + System.out.println("单条鉴定出现异常:" + ex.getMessage()); + return error("鉴定结果保存失败!"); + } + if (flag == 0) { + return success("鉴定结果保存成功!"); + } + return error("鉴定结果保存失败!"); + } + + + + @Log(title = "档案鉴定-批量鉴定保存", businessType = BusinessType.INSERT) + @PostMapping({"/savePLJdDetail"}) + @ResponseBody + public AjaxResult savePLJdDetail(@Validated String value, @Validated String ids) { + boolean res = this.tJdTaskDetailService.saveJdPljdDetail(value, ids); + if (res) { + return success(); + } + return error(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\jdmx\controller\TJdTaskDetailController.class diff --git a/src/main/java/com/archive/project/dazl/jdmx/domain/TJdTaskDetail.java b/src/main/java/com/archive/project/dazl/jdmx/domain/TJdTaskDetail.java index e978ff3..ffef4ef 100644 --- a/src/main/java/com/archive/project/dazl/jdmx/domain/TJdTaskDetail.java +++ b/src/main/java/com/archive/project/dazl/jdmx/domain/TJdTaskDetail.java @@ -1,293 +1,293 @@ -/* */ package com.archive.project.dazl.jdmx.domain + package com.archive.project.dazl.jdmx.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 TJdTaskDetail -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "任务单id") -/* */ private Long ownerId; -/* */ @Excel(name = "鉴定类型") -/* */ private String ownerType; -/* */ @Excel(name = "档案类型id") -/* */ private Long archiveTypeId; -/* */ @Excel(name = "档案类型名称") -/* */ private String archiveTypeName; -/* */ @Excel(name = "表id") -/* */ private Long archiveTableId; -/* */ @Excel(name = "条目id") -/* */ private Long archiveId; -/* */ @Excel(name = "档号") -/* */ private String dh; -/* */ @Excel(name = "题名") -/* */ private String tm; -/* */ @Excel(name = "责任者") -/* */ private String zrz; -/* */ @Excel(name = "年度") -/* */ private String nd; -/* */ @Excel(name = "全宗号") -/* */ private String qzh; -/* */ @Excel(name = "保管期限") -/* */ private String bgqx; -/* */ @Excel(name = "密级") -/* */ private String mj; -/* */ @Excel(name = "开放情况") -/* */ private String kfqk; -/* */ @Excel(name = "鉴定结果") -/* */ private String jdjg; -/* */ @Excel(name = "鉴定意见") -/* */ private String jdyj; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "日期") -/* */ private String rq; -/* */ -/* */ public void setId(Long id) { -/* 95 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 100 */ return this.id; -/* */ } -/* */ -/* */ public void setOwnerId(Long ownerId) { -/* 104 */ this.ownerId = ownerId; -/* */ } -/* */ -/* */ -/* */ public Long getOwnerId() { -/* 109 */ return this.ownerId; -/* */ } -/* */ -/* */ public void setOwnerType(String ownerType) { -/* 113 */ this.ownerType = ownerType; -/* */ } -/* */ -/* */ -/* */ public String getOwnerType() { -/* 118 */ return this.ownerType; -/* */ } -/* */ -/* */ public void setArchiveTypeId(Long archiveTypeId) { -/* 122 */ this.archiveTypeId = archiveTypeId; -/* */ } -/* */ -/* */ -/* */ public Long getArchiveTypeId() { -/* 127 */ return this.archiveTypeId; -/* */ } -/* */ -/* */ public void setArchiveTypeName(String archiveTypeName) { -/* 131 */ this.archiveTypeName = archiveTypeName; -/* */ } -/* */ -/* */ -/* */ public String getArchiveTypeName() { -/* 136 */ return this.archiveTypeName; -/* */ } -/* */ -/* */ public void setArchiveTableId(Long archiveTableId) { -/* 140 */ this.archiveTableId = archiveTableId; -/* */ } -/* */ -/* */ -/* */ public Long getArchiveTableId() { -/* 145 */ return this.archiveTableId; -/* */ } -/* */ -/* */ public void setArchiveId(Long archiveId) { -/* 149 */ this.archiveId = archiveId; -/* */ } -/* */ -/* */ -/* */ public Long getArchiveId() { -/* 154 */ return this.archiveId; -/* */ } -/* */ -/* */ public void setDh(String dh) { -/* 158 */ this.dh = dh; -/* */ } -/* */ -/* */ -/* */ public String getDh() { -/* 163 */ return this.dh; -/* */ } -/* */ -/* */ public void setTm(String tm) { -/* 167 */ this.tm = tm; -/* */ } -/* */ -/* */ -/* */ public String getTm() { -/* 172 */ return this.tm; -/* */ } -/* */ -/* */ public void setZrz(String zrz) { -/* 176 */ this.zrz = zrz; -/* */ } -/* */ -/* */ -/* */ public String getZrz() { -/* 181 */ return this.zrz; -/* */ } -/* */ -/* */ public void setNd(String nd) { -/* 185 */ this.nd = nd; -/* */ } -/* */ -/* */ -/* */ public String getNd() { -/* 190 */ return this.nd; -/* */ } -/* */ -/* */ public void setQzh(String qzh) { -/* 194 */ this.qzh = qzh; -/* */ } -/* */ -/* */ -/* */ public String getQzh() { -/* 199 */ return this.qzh; -/* */ } -/* */ -/* */ public void setBgqx(String bgqx) { -/* 203 */ this.bgqx = bgqx; -/* */ } -/* */ -/* */ -/* */ public String getBgqx() { -/* 208 */ return this.bgqx; -/* */ } -/* */ -/* */ public void setMj(String mj) { -/* 212 */ this.mj = mj; -/* */ } -/* */ -/* */ -/* */ public String getMj() { -/* 217 */ return this.mj; -/* */ } -/* */ -/* */ public void setKfqk(String kfqk) { -/* 221 */ this.kfqk = kfqk; -/* */ } -/* */ -/* */ -/* */ public String getKfqk() { -/* 226 */ return this.kfqk; -/* */ } -/* */ -/* */ public void setJdjg(String jdjg) { -/* 230 */ this.jdjg = jdjg; -/* */ } -/* */ -/* */ -/* */ public String getJdjg() { -/* 235 */ return this.jdjg; -/* */ } -/* */ -/* */ public void setJdyj(String jdyj) { -/* 239 */ this.jdyj = jdyj; -/* */ } -/* */ -/* */ -/* */ public String getJdyj() { -/* 244 */ return this.jdyj; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 248 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 253 */ return this.bz; -/* */ } -/* */ -/* */ public void setRq(String rq) { -/* 257 */ this.rq = rq; -/* */ } -/* */ -/* */ -/* */ public String getRq() { -/* 262 */ return this.rq; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 267 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 268 */ .append("id", getId()) -/* 269 */ .append("ownerId", getOwnerId()) -/* 270 */ .append("ownerType", getOwnerType()) -/* 271 */ .append("archiveTypeId", getArchiveTypeId()) -/* 272 */ .append("archiveTypeName", getArchiveTypeName()) -/* 273 */ .append("archiveTableId", getArchiveTableId()) -/* 274 */ .append("archiveId", getArchiveId()) -/* 275 */ .append("dh", getDh()) -/* 276 */ .append("tm", getTm()) -/* 277 */ .append("zrz", getZrz()) -/* 278 */ .append("nd", getNd()) -/* 279 */ .append("qzh", getQzh()) -/* 280 */ .append("bgqx", getBgqx()) -/* 281 */ .append("mj", getMj()) -/* 282 */ .append("kfqk", getKfqk()) -/* 283 */ .append("jdjg", getJdjg()) -/* 284 */ .append("jdyj", getJdyj()) -/* 285 */ .append("bz", getBz()) -/* 286 */ .append("rq", getRq()) -/* 287 */ .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 TJdTaskDetail + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "任务单id") + private Long ownerId; + @Excel(name = "鉴定类型") + private String ownerType; + @Excel(name = "档案类型id") + private Long archiveTypeId; + @Excel(name = "档案类型名称") + private String archiveTypeName; + @Excel(name = "表id") + private Long archiveTableId; + @Excel(name = "条目id") + private Long archiveId; + @Excel(name = "档号") + private String dh; + @Excel(name = "题名") + private String tm; + @Excel(name = "责任者") + private String zrz; + @Excel(name = "年度") + private String nd; + @Excel(name = "全宗号") + private String qzh; + @Excel(name = "保管期限") + private String bgqx; + @Excel(name = "密级") + private String mj; + @Excel(name = "开放情况") + private String kfqk; + @Excel(name = "鉴定结果") + private String jdjg; + @Excel(name = "鉴定意见") + private String jdyj; + @Excel(name = "备注") + private String bz; + @Excel(name = "日期") + private String rq; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + } + + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerType(String ownerType) { + this.ownerType = ownerType; + } + + + public String getOwnerType() { + return this.ownerType; + } + + public void setArchiveTypeId(Long archiveTypeId) { + this.archiveTypeId = archiveTypeId; + } + + + public Long getArchiveTypeId() { + return this.archiveTypeId; + } + + public void setArchiveTypeName(String archiveTypeName) { + this.archiveTypeName = archiveTypeName; + } + + + public String getArchiveTypeName() { + return this.archiveTypeName; + } + + public void setArchiveTableId(Long archiveTableId) { + this.archiveTableId = archiveTableId; + } + + + public Long getArchiveTableId() { + return this.archiveTableId; + } + + public void setArchiveId(Long archiveId) { + this.archiveId = archiveId; + } + + + public Long getArchiveId() { + return this.archiveId; + } + + public void setDh(String dh) { + this.dh = dh; + } + + + public String getDh() { + return this.dh; + } + + public void setTm(String tm) { + this.tm = tm; + } + + + public String getTm() { + return this.tm; + } + + public void setZrz(String zrz) { + this.zrz = zrz; + } + + + public String getZrz() { + return this.zrz; + } + + public void setNd(String nd) { + this.nd = nd; + } + + + public String getNd() { + return this.nd; + } + + public void setQzh(String qzh) { + this.qzh = qzh; + } + + + public String getQzh() { + return this.qzh; + } + + public void setBgqx(String bgqx) { + this.bgqx = bgqx; + } + + + public String getBgqx() { + return this.bgqx; + } + + public void setMj(String mj) { + this.mj = mj; + } + + + public String getMj() { + return this.mj; + } + + public void setKfqk(String kfqk) { + this.kfqk = kfqk; + } + + + public String getKfqk() { + return this.kfqk; + } + + public void setJdjg(String jdjg) { + this.jdjg = jdjg; + } + + + public String getJdjg() { + return this.jdjg; + } + + public void setJdyj(String jdyj) { + this.jdyj = jdyj; + } + + + public String getJdyj() { + return this.jdyj; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setRq(String rq) { + this.rq = rq; + } + + + public String getRq() { + return this.rq; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("ownerId", getOwnerId()) + .append("ownerType", getOwnerType()) + .append("archiveTypeId", getArchiveTypeId()) + .append("archiveTypeName", getArchiveTypeName()) + .append("archiveTableId", getArchiveTableId()) + .append("archiveId", getArchiveId()) + .append("dh", getDh()) + .append("tm", getTm()) + .append("zrz", getZrz()) + .append("nd", getNd()) + .append("qzh", getQzh()) + .append("bgqx", getBgqx()) + .append("mj", getMj()) + .append("kfqk", getKfqk()) + .append("jdjg", getJdjg()) + .append("jdyj", getJdyj()) + .append("bz", getBz()) + .append("rq", getRq()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\jdmx\domain\TJdTaskDetail.class diff --git a/src/main/java/com/archive/project/dazl/jdmx/service/impl/TJdTaskDetailServiceImpl.java b/src/main/java/com/archive/project/dazl/jdmx/service/impl/TJdTaskDetailServiceImpl.java index c9d770f..926d035 100644 --- a/src/main/java/com/archive/project/dazl/jdmx/service/impl/TJdTaskDetailServiceImpl.java +++ b/src/main/java/com/archive/project/dazl/jdmx/service/impl/TJdTaskDetailServiceImpl.java @@ -1,186 +1,186 @@ -/* */ package com.archive.project.dazl.jdmx.service.impl + package com.archive.project.dazl.jdmx.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.common.service.IExecuteSqlService; -/* */ import com.archive.project.dazl.dajd.domain.TJdTask; -/* */ import com.archive.project.dazl.dajd.service.ITJdTaskService; -/* */ import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; -/* */ import com.archive.project.dazl.jdmx.mapper.TJdTaskDetailMapper; -/* */ import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; -/* */ import java.util.LinkedHashMap; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TJdTaskDetailServiceImpl -/* */ implements ITJdTaskDetailService -/* */ { -/* */ @Autowired -/* */ private TJdTaskDetailMapper tJdTaskDetailMapper; -/* */ @Autowired -/* */ private IExecuteSqlService executeSqlService; -/* */ @Autowired -/* */ private ITJdTaskService jdTaskService; -/* */ -/* */ public TJdTaskDetail selectTJdTaskDetailById(Long id) { -/* 47 */ return this.tJdTaskDetailMapper.selectTJdTaskDetailById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTJdTaskDetailList(TJdTaskDetail tJdTaskDetail) { -/* 59 */ return this.tJdTaskDetailMapper.selectTJdTaskDetailList(tJdTaskDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTJdTaskDetail(TJdTaskDetail tJdTaskDetail) { -/* 71 */ return this.tJdTaskDetailMapper.insertTJdTaskDetail(tJdTaskDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTJdTaskDetail(TJdTaskDetail tJdTaskDetail) { -/* 83 */ return this.tJdTaskDetailMapper.updateTJdTaskDetail(tJdTaskDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTJdTaskDetailByIds(String ids) { -/* 95 */ return this.tJdTaskDetailMapper.deleteTJdTaskDetailByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTJdTaskDetailById(Long id) { -/* 107 */ return this.tJdTaskDetailMapper.deleteTJdTaskDetailById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public boolean saveJdDetail(String ownerId, String ids) { -/* 118 */ boolean res = false; -/* */ try { -/* 120 */ String[] sttr = ids.split(","); -/* 121 */ for (int i = 0; i < sttr.length; i++) { -/* 122 */ String[] idcode = sttr[i].split("-"); -/* 123 */ String archiveId = idcode[0]; -/* 124 */ String tableId = idcode[1]; -/* 125 */ String sql = "select qzh,dh,tm,ys,bgqx,zrz,archiveTypeId,archiveTypeName,kfkz,mj,rq,yearCode from t_ar_total where archiveId='" + archiveId + "' and tableId='" + tableId + "'"; -/* */ -/* 127 */ List> datalist = this.executeSqlService.queryList(sql); -/* 128 */ if (datalist.size() > 0 && datalist.get(0) != null) { -/* 129 */ TJdTaskDetail jdTaskDetail = new TJdTaskDetail(); -/* 130 */ jdTaskDetail.setOwnerId(Long.valueOf(Long.parseLong(ownerId))); -/* 131 */ jdTaskDetail.setArchiveId(Long.valueOf(Long.parseLong(archiveId))); -/* 132 */ jdTaskDetail.setArchiveTableId(Long.valueOf(Long.parseLong(tableId))); -/* */ -/* 134 */ TJdTask jdTask = new TJdTask(); -/* 135 */ jdTask.setId(Long.valueOf(Long.parseLong(ownerId))); -/* 136 */ List jdTaskList = this.jdTaskService.selectTJdTaskList(jdTask); -/* 137 */ if (jdTaskList != null && jdTaskList.size() > 0 && jdTaskList.get(0) != null) { -/* 138 */ jdTaskDetail.setOwnerType(((TJdTask)jdTaskList.get(0)).getTaskType()); -/* */ } -/* 140 */ String archiveTypeId = (((LinkedHashMap)datalist.get(0)).get("archiveTypeId") == null) ? "0" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeId").toString(); -/* 141 */ jdTaskDetail.setArchiveTypeId(Long.valueOf(Long.parseLong(archiveTypeId))); -/* 142 */ jdTaskDetail.setArchiveTypeName((((LinkedHashMap)datalist.get(0)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeName").toString()); -/* 143 */ jdTaskDetail.setZrz((((LinkedHashMap)datalist.get(0)).get("zrz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("zrz").toString()); -/* 144 */ jdTaskDetail.setBgqx((((LinkedHashMap)datalist.get(0)).get("bgqx") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("bgqx").toString()); -/* 145 */ jdTaskDetail.setDh((((LinkedHashMap)datalist.get(0)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("dh").toString()); -/* 146 */ jdTaskDetail.setQzh((((LinkedHashMap)datalist.get(0)).get("qzh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("qzh").toString()); -/* 147 */ jdTaskDetail.setKfqk((((LinkedHashMap)datalist.get(0)).get("kfkz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("kfkz").toString()); -/* 148 */ jdTaskDetail.setTm((((LinkedHashMap)datalist.get(0)).get("tm") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("tm").toString()); -/* 149 */ jdTaskDetail.setMj((((LinkedHashMap)datalist.get(0)).get("mj") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("mj").toString()); -/* 150 */ jdTaskDetail.setNd((((LinkedHashMap)datalist.get(0)).get("yearCode") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("yearCode").toString()); -/* 151 */ jdTaskDetail.setRq((((LinkedHashMap)datalist.get(0)).get("rq") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("rq").toString()); -/* 152 */ this.tJdTaskDetailMapper.insertTJdTaskDetail(jdTaskDetail); -/* */ } else { -/* 154 */ System.out.println("没有查询到数据"); -/* */ } -/* */ } -/* 157 */ res = true; -/* 158 */ } catch (Exception ex) { -/* 159 */ System.out.println("ERROR出现异常:" + ex.getMessage()); -/* */ } -/* 161 */ return res; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public boolean saveJdPljdDetail(String value, String ids) { -/* 172 */ boolean res = false; -/* 173 */ String[] idsttr = ids.split(","); -/* 174 */ for (int i = 0; i < idsttr.length; i++) { -/* 175 */ TJdTaskDetail jdTaskDetail = this.tJdTaskDetailMapper.selectTJdTaskDetailById(Long.valueOf(Long.parseLong(idsttr[i]))); -/* 176 */ jdTaskDetail.setJdjg(value); -/* 177 */ this.tJdTaskDetailMapper.updateTJdTaskDetail(jdTaskDetail); -/* */ } -/* 179 */ return res; -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.common.service.IExecuteSqlService; + import com.archive.project.dazl.dajd.domain.TJdTask; + import com.archive.project.dazl.dajd.service.ITJdTaskService; + import com.archive.project.dazl.jdmx.domain.TJdTaskDetail; + import com.archive.project.dazl.jdmx.mapper.TJdTaskDetailMapper; + import com.archive.project.dazl.jdmx.service.ITJdTaskDetailService; + import java.util.LinkedHashMap; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + + + + + @Service + public class TJdTaskDetailServiceImpl + implements ITJdTaskDetailService + { + @Autowired + private TJdTaskDetailMapper tJdTaskDetailMapper; + @Autowired + private IExecuteSqlService executeSqlService; + @Autowired + private ITJdTaskService jdTaskService; + + public TJdTaskDetail selectTJdTaskDetailById(Long id) { + return this.tJdTaskDetailMapper.selectTJdTaskDetailById(id); + } + + + + + + + + + + public List selectTJdTaskDetailList(TJdTaskDetail tJdTaskDetail) { + return this.tJdTaskDetailMapper.selectTJdTaskDetailList(tJdTaskDetail); + } + + + + + + + + + + public int insertTJdTaskDetail(TJdTaskDetail tJdTaskDetail) { + return this.tJdTaskDetailMapper.insertTJdTaskDetail(tJdTaskDetail); + } + + + + + + + + + + public int updateTJdTaskDetail(TJdTaskDetail tJdTaskDetail) { + return this.tJdTaskDetailMapper.updateTJdTaskDetail(tJdTaskDetail); + } + + + + + + + + + + public int deleteTJdTaskDetailByIds(String ids) { + return this.tJdTaskDetailMapper.deleteTJdTaskDetailByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTJdTaskDetailById(Long id) { + return this.tJdTaskDetailMapper.deleteTJdTaskDetailById(id); + } + + + + + + + + + public boolean saveJdDetail(String ownerId, String ids) { + boolean res = false; + try { + String[] sttr = ids.split(","); + for (int i = 0; i < sttr.length; i++) { + String[] idcode = sttr[i].split("-"); + String archiveId = idcode[0]; + String tableId = idcode[1]; + String sql = "select qzh,dh,tm,ys,bgqx,zrz,archiveTypeId,archiveTypeName,kfkz,mj,rq,yearCode from t_ar_total where archiveId='" + archiveId + "' and tableId='" + tableId + "'"; + + List> datalist = this.executeSqlService.queryList(sql); + if (datalist.size() > 0 && datalist.get(0) != null) { + TJdTaskDetail jdTaskDetail = new TJdTaskDetail(); + jdTaskDetail.setOwnerId(Long.valueOf(Long.parseLong(ownerId))); + jdTaskDetail.setArchiveId(Long.valueOf(Long.parseLong(archiveId))); + jdTaskDetail.setArchiveTableId(Long.valueOf(Long.parseLong(tableId))); + + TJdTask jdTask = new TJdTask(); + jdTask.setId(Long.valueOf(Long.parseLong(ownerId))); + List jdTaskList = this.jdTaskService.selectTJdTaskList(jdTask); + if (jdTaskList != null && jdTaskList.size() > 0 && jdTaskList.get(0) != null) { + jdTaskDetail.setOwnerType(((TJdTask)jdTaskList.get(0)).getTaskType()); + } + String archiveTypeId = (((LinkedHashMap)datalist.get(0)).get("archiveTypeId") == null) ? "0" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeId").toString(); + jdTaskDetail.setArchiveTypeId(Long.valueOf(Long.parseLong(archiveTypeId))); + jdTaskDetail.setArchiveTypeName((((LinkedHashMap)datalist.get(0)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeName").toString()); + jdTaskDetail.setZrz((((LinkedHashMap)datalist.get(0)).get("zrz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("zrz").toString()); + jdTaskDetail.setBgqx((((LinkedHashMap)datalist.get(0)).get("bgqx") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("bgqx").toString()); + jdTaskDetail.setDh((((LinkedHashMap)datalist.get(0)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("dh").toString()); + jdTaskDetail.setQzh((((LinkedHashMap)datalist.get(0)).get("qzh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("qzh").toString()); + jdTaskDetail.setKfqk((((LinkedHashMap)datalist.get(0)).get("kfkz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("kfkz").toString()); + jdTaskDetail.setTm((((LinkedHashMap)datalist.get(0)).get("tm") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("tm").toString()); + jdTaskDetail.setMj((((LinkedHashMap)datalist.get(0)).get("mj") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("mj").toString()); + jdTaskDetail.setNd((((LinkedHashMap)datalist.get(0)).get("yearCode") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("yearCode").toString()); + jdTaskDetail.setRq((((LinkedHashMap)datalist.get(0)).get("rq") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("rq").toString()); + this.tJdTaskDetailMapper.insertTJdTaskDetail(jdTaskDetail); + } else { + System.out.println("没有查询到数据"); + } + } + res = true; + } catch (Exception ex) { + System.out.println("ERROR出现异常:" + ex.getMessage()); + } + return res; + } + + + + + + + + + public boolean saveJdPljdDetail(String value, String ids) { + boolean res = false; + String[] idsttr = ids.split(","); + for (int i = 0; i < idsttr.length; i++) { + TJdTaskDetail jdTaskDetail = this.tJdTaskDetailMapper.selectTJdTaskDetailById(Long.valueOf(Long.parseLong(idsttr[i]))); + jdTaskDetail.setJdjg(value); + this.tJdTaskDetailMapper.updateTJdTaskDetail(jdTaskDetail); + } + return res; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\jdmx\service\impl\TJdTaskDetailServiceImpl.class diff --git a/src/main/java/com/archive/project/dazl/wsnj/controller/TWsnjController.java b/src/main/java/com/archive/project/dazl/wsnj/controller/TWsnjController.java index acd6fb3..696e3e5 100644 --- a/src/main/java/com/archive/project/dazl/wsnj/controller/TWsnjController.java +++ b/src/main/java/com/archive/project/dazl/wsnj/controller/TWsnjController.java @@ -1,132 +1,132 @@ -/* */ package com.archive.project.dazl.wsnj.controller + package com.archive.project.dazl.wsnj.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.dazl.wsnj.domain.TWsnj; -/* */ import com.archive.project.dazl.wsnj.service.ITWsnjService; -/* */ 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({"/dazl/wsnj"}) -/* */ public class TWsnjController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "dazl/wsnj"; -/* */ -/* */ @Autowired -/* */ private ITWsnjService tWsnjService; -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:view"}) -/* */ @GetMapping -/* */ public String wsnj() { -/* 41 */ return this.prefix + "/wsnj"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TWsnj tWsnj) { -/* 52 */ startPage(); -/* 53 */ List list = this.tWsnjService.selectTWsnjList(tWsnj); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:export"}) -/* */ @Log(title = "年检通知", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TWsnj tWsnj) { -/* 66 */ List list = this.tWsnjService.selectTWsnjList(tWsnj); -/* 67 */ ExcelUtil util = new ExcelUtil(TWsnj.class); -/* 68 */ return util.exportExcel(list, "wsnj"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:add"}) -/* */ @Log(title = "年检通知", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TWsnj tWsnj) { -/* 89 */ tWsnj.setXfzt("0"); -/* 90 */ return toAjax(this.tWsnjService.insertTWsnj(tWsnj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 99 */ TWsnj tWsnj = this.tWsnjService.selectTWsnjById(id); -/* 100 */ mmap.put("tWsnj", tWsnj); -/* 101 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:edit"}) -/* */ @Log(title = "年检通知", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TWsnj tWsnj) { -/* 113 */ return toAjax(this.tWsnjService.updateTWsnj(tWsnj)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dazl:wsnj:remove"}) -/* */ @Log(title = "年检通知", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 125 */ return toAjax(this.tWsnjService.deleteTWsnjByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dazl.wsnj.domain.TWsnj; + import com.archive.project.dazl.wsnj.service.ITWsnjService; + 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({"/dazl/wsnj"}) + public class TWsnjController + extends BaseController + { + private String prefix = "dazl/wsnj"; + + @Autowired + private ITWsnjService tWsnjService; + + + @RequiresPermissions({"dazl:wsnj:view"}) + @GetMapping + public String wsnj() { + return this.prefix + "/wsnj"; + } + + + + + + @RequiresPermissions({"dazl:wsnj:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TWsnj tWsnj) { + startPage(); + List list = this.tWsnjService.selectTWsnjList(tWsnj); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dazl:wsnj:export"}) + @Log(title = "年检通知", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TWsnj tWsnj) { + List list = this.tWsnjService.selectTWsnjList(tWsnj); + ExcelUtil util = new ExcelUtil(TWsnj.class); + return util.exportExcel(list, "wsnj"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dazl:wsnj:add"}) + @Log(title = "年检通知", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TWsnj tWsnj) { + tWsnj.setXfzt("0"); + return toAjax(this.tWsnjService.insertTWsnj(tWsnj)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TWsnj tWsnj = this.tWsnjService.selectTWsnjById(id); + mmap.put("tWsnj", tWsnj); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dazl:wsnj:edit"}) + @Log(title = "年检通知", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TWsnj tWsnj) { + return toAjax(this.tWsnjService.updateTWsnj(tWsnj)); + } + + + + + + @RequiresPermissions({"dazl:wsnj:remove"}) + @Log(title = "年检通知", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tWsnjService.deleteTWsnjByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\wsnj\controller\TWsnjController.class diff --git a/src/main/java/com/archive/project/dazl/wsnj/domain/TWsnj.java b/src/main/java/com/archive/project/dazl/wsnj/domain/TWsnj.java index 6c84936..212d7e1 100644 --- a/src/main/java/com/archive/project/dazl/wsnj/domain/TWsnj.java +++ b/src/main/java/com/archive/project/dazl/wsnj/domain/TWsnj.java @@ -1,140 +1,140 @@ -/* */ package com.archive.project.dazl.wsnj.domain + package com.archive.project.dazl.wsnj.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 TWsnj -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "年检名称") -/* */ private String njmc; -/* */ @Excel(name = "通知内容") -/* */ private String tznr; -/* */ @Excel(name = "年检时间") -/* */ private String njsj; -/* */ @Excel(name = "下发单位") -/* */ private String xfdw; -/* */ @Excel(name = "创建单位") -/* */ private String cjdw; -/* */ @Excel(name = "下发状态") -/* */ private String xfzt; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ -/* */ public void setId(Long id) { -/* 51 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 56 */ return this.id; -/* */ } -/* */ -/* */ public void setNjmc(String njmc) { -/* 60 */ this.njmc = njmc; -/* */ } -/* */ -/* */ -/* */ public String getNjmc() { -/* 65 */ return this.njmc; -/* */ } -/* */ -/* */ public void setTznr(String tznr) { -/* 69 */ this.tznr = tznr; -/* */ } -/* */ -/* */ -/* */ public String getTznr() { -/* 74 */ return this.tznr; -/* */ } -/* */ -/* */ public void setNjsj(String njsj) { -/* 78 */ this.njsj = njsj; -/* */ } -/* */ -/* */ -/* */ public String getNjsj() { -/* 83 */ return this.njsj; -/* */ } -/* */ -/* */ public void setXfdw(String xfdw) { -/* 87 */ this.xfdw = xfdw; -/* */ } -/* */ -/* */ -/* */ public String getXfdw() { -/* 92 */ return this.xfdw; -/* */ } -/* */ -/* */ public void setCjdw(String cjdw) { -/* 96 */ this.cjdw = cjdw; -/* */ } -/* */ -/* */ -/* */ public String getCjdw() { -/* 101 */ return this.cjdw; -/* */ } -/* */ -/* */ public void setXfzt(String xfzt) { -/* 105 */ this.xfzt = xfzt; -/* */ } -/* */ -/* */ -/* */ public String getXfzt() { -/* 110 */ return this.xfzt; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 114 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 119 */ return this.bz; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 124 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 125 */ .append("id", getId()) -/* 126 */ .append("njmc", getNjmc()) -/* 127 */ .append("tznr", getTznr()) -/* 128 */ .append("njsj", getNjsj()) -/* 129 */ .append("xfdw", getXfdw()) -/* 130 */ .append("cjdw", getCjdw()) -/* 131 */ .append("xfzt", getXfzt()) -/* 132 */ .append("bz", getBz()) -/* 133 */ .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 TWsnj + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "年检名称") + private String njmc; + @Excel(name = "通知内容") + private String tznr; + @Excel(name = "年检时间") + private String njsj; + @Excel(name = "下发单位") + private String xfdw; + @Excel(name = "创建单位") + private String cjdw; + @Excel(name = "下发状态") + private String xfzt; + @Excel(name = "备注") + private String bz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setNjmc(String njmc) { + this.njmc = njmc; + } + + + public String getNjmc() { + return this.njmc; + } + + public void setTznr(String tznr) { + this.tznr = tznr; + } + + + public String getTznr() { + return this.tznr; + } + + public void setNjsj(String njsj) { + this.njsj = njsj; + } + + + public String getNjsj() { + return this.njsj; + } + + public void setXfdw(String xfdw) { + this.xfdw = xfdw; + } + + + public String getXfdw() { + return this.xfdw; + } + + public void setCjdw(String cjdw) { + this.cjdw = cjdw; + } + + + public String getCjdw() { + return this.cjdw; + } + + public void setXfzt(String xfzt) { + this.xfzt = xfzt; + } + + + public String getXfzt() { + return this.xfzt; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("njmc", getNjmc()) + .append("tznr", getTznr()) + .append("njsj", getNjsj()) + .append("xfdw", getXfdw()) + .append("cjdw", getCjdw()) + .append("xfzt", getXfzt()) + .append("bz", getBz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\wsnj\domain\TWsnj.class diff --git a/src/main/java/com/archive/project/dazl/wsnj/service/impl/TWsnjServiceImpl.java b/src/main/java/com/archive/project/dazl/wsnj/service/impl/TWsnjServiceImpl.java index 0724ad1..bd49b73 100644 --- a/src/main/java/com/archive/project/dazl/wsnj/service/impl/TWsnjServiceImpl.java +++ b/src/main/java/com/archive/project/dazl/wsnj/service/impl/TWsnjServiceImpl.java @@ -1,99 +1,99 @@ -/* */ package com.archive.project.dazl.wsnj.service.impl + package com.archive.project.dazl.wsnj.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.dazl.wsnj.domain.TWsnj; -/* */ import com.archive.project.dazl.wsnj.mapper.TWsnjMapper; -/* */ import com.archive.project.dazl.wsnj.service.ITWsnjService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TWsnjServiceImpl -/* */ implements ITWsnjService -/* */ { -/* */ @Autowired -/* */ private TWsnjMapper tWsnjMapper; -/* */ -/* */ public TWsnj selectTWsnjById(Long id) { -/* 32 */ return this.tWsnjMapper.selectTWsnjById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTWsnjList(TWsnj tWsnj) { -/* 44 */ return this.tWsnjMapper.selectTWsnjList(tWsnj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTWsnj(TWsnj tWsnj) { -/* 56 */ return this.tWsnjMapper.insertTWsnj(tWsnj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTWsnj(TWsnj tWsnj) { -/* 68 */ return this.tWsnjMapper.updateTWsnj(tWsnj); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTWsnjByIds(String ids) { -/* 80 */ return this.tWsnjMapper.deleteTWsnjByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTWsnjById(Long id) { -/* 92 */ return this.tWsnjMapper.deleteTWsnjById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.dazl.wsnj.domain.TWsnj; + import com.archive.project.dazl.wsnj.mapper.TWsnjMapper; + import com.archive.project.dazl.wsnj.service.ITWsnjService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + @Service + public class TWsnjServiceImpl + implements ITWsnjService + { + @Autowired + private TWsnjMapper tWsnjMapper; + + public TWsnj selectTWsnjById(Long id) { + return this.tWsnjMapper.selectTWsnjById(id); + } + + + + + + + + + + public List selectTWsnjList(TWsnj tWsnj) { + return this.tWsnjMapper.selectTWsnjList(tWsnj); + } + + + + + + + + + + public int insertTWsnj(TWsnj tWsnj) { + return this.tWsnjMapper.insertTWsnj(tWsnj); + } + + + + + + + + + + public int updateTWsnj(TWsnj tWsnj) { + return this.tWsnjMapper.updateTWsnj(tWsnj); + } + + + + + + + + + + public int deleteTWsnjByIds(String ids) { + return this.tWsnjMapper.deleteTWsnjByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTWsnjById(Long id) { + return this.tWsnjMapper.deleteTWsnjById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dazl\wsnj\service\impl\TWsnjServiceImpl.class diff --git a/src/main/java/com/archive/project/jyly/borrow/controller/TArchiveBorrowController.java b/src/main/java/com/archive/project/jyly/borrow/controller/TArchiveBorrowController.java index d1e2cab..fb11c38 100644 --- a/src/main/java/com/archive/project/jyly/borrow/controller/TArchiveBorrowController.java +++ b/src/main/java/com/archive/project/jyly/borrow/controller/TArchiveBorrowController.java @@ -1,169 +1,169 @@ -/* */ package com.archive.project.jyly.borrow.controller + package com.archive.project.jyly.borrow.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.common.utils.security.ShiroUtils; -/* */ 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.jyly.borrow.domain.TArchiveBorrow; -/* */ import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; -/* */ import com.archive.project.system.user.domain.User; -/* */ import java.text.SimpleDateFormat; -/* */ import java.util.Date; -/* */ 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({"/jyly/borrow"}) -/* */ public class TArchiveBorrowController -/* */ extends BaseController -/* */ { -/* 44 */ private String prefix = "jyly/borrow"; -/* */ -/* */ @Autowired -/* */ private ITArchiveBorrowService tArchiveBorrowService; -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:view"}) -/* */ @GetMapping -/* */ public String borrow() { -/* 53 */ return this.prefix + "/borrow"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TArchiveBorrow tArchiveBorrow) { -/* 64 */ startPage(); -/* 65 */ List list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow); -/* 66 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:export"}) -/* */ @Log(title = "档案借阅登记", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TArchiveBorrow tArchiveBorrow) { -/* 78 */ List list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow); -/* 79 */ ExcelUtil util = new ExcelUtil(TArchiveBorrow.class); -/* 80 */ return util.exportExcel(list, "borrow"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 89 */ Date date = new Date(); -/* 90 */ SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd"); -/* 91 */ String data = formatter.format(date); -/* 92 */ int in = (int)(Math.random() * 900.0D) + 100; -/* 93 */ String borrowId = "JY" + data + in; -/* */ -/* 95 */ mmap.put("batchNo", borrowId); -/* 96 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:add"}) -/* */ @Log(title = "档案借阅登记", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TArchiveBorrow tArchiveBorrow) { -/* 109 */ User currentUser = ShiroUtils.getSysUser(); -/* 110 */ tArchiveBorrow.setRecordperson(currentUser.getUserName()); -/* 111 */ return toAjax(this.tArchiveBorrowService.insertTArchiveBorrow(tArchiveBorrow)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 120 */ TArchiveBorrow tArchiveBorrow = this.tArchiveBorrowService.selectTArchiveBorrowById(id); -/* 121 */ mmap.put("tArchiveBorrow", tArchiveBorrow); -/* 122 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:edit"}) -/* */ @Log(title = "档案借阅登记", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TArchiveBorrow tArchiveBorrow) { -/* 135 */ if (tArchiveBorrow.getUsingEffect() != null) { -/* 136 */ tArchiveBorrow.setExborrowState("1"); -/* */ } -/* 138 */ return toAjax(this.tArchiveBorrowService.updateTArchiveBorrow(tArchiveBorrow)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:borrow:remove"}) -/* */ @Log(title = "档案借阅登记", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 150 */ return toAjax(this.tArchiveBorrowService.deleteTArchiveBorrowByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/lywb/{id}"}) -/* */ public String lywb(@PathVariable("id") Long id, ModelMap mmap) { -/* 160 */ TArchiveBorrow tArchiveBorrow = this.tArchiveBorrowService.selectTArchiveBorrowById(id); -/* 161 */ mmap.put("tArchiveBorrow", tArchiveBorrow); -/* 162 */ return this.prefix + "/lywb"; -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.common.utils.security.ShiroUtils; + 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.jyly.borrow.domain.TArchiveBorrow; + import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; + import com.archive.project.system.user.domain.User; + import java.text.SimpleDateFormat; + import java.util.Date; + 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({"/jyly/borrow"}) + public class TArchiveBorrowController + extends BaseController + { + private String prefix = "jyly/borrow"; + + @Autowired + private ITArchiveBorrowService tArchiveBorrowService; + + + @RequiresPermissions({"jyly:borrow:view"}) + @GetMapping + public String borrow() { + return this.prefix + "/borrow"; + } + + + + + + @RequiresPermissions({"jyly:borrow:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TArchiveBorrow tArchiveBorrow) { + startPage(); + List list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"jyly:borrow:export"}) + @Log(title = "档案借阅登记", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TArchiveBorrow tArchiveBorrow) { + List list = this.tArchiveBorrowService.selectTArchiveBorrowList(tArchiveBorrow); + ExcelUtil util = new ExcelUtil(TArchiveBorrow.class); + return util.exportExcel(list, "borrow"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + Date date = new Date(); + SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd"); + String data = formatter.format(date); + int in = (int)(Math.random() * 900.0D) + 100; + String borrowId = "JY" + data + in; + + mmap.put("batchNo", borrowId); + return this.prefix + "/add"; + } + + + + + + + @RequiresPermissions({"jyly:borrow:add"}) + @Log(title = "档案借阅登记", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TArchiveBorrow tArchiveBorrow) { + User currentUser = ShiroUtils.getSysUser(); + tArchiveBorrow.setRecordperson(currentUser.getUserName()); + return toAjax(this.tArchiveBorrowService.insertTArchiveBorrow(tArchiveBorrow)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TArchiveBorrow tArchiveBorrow = this.tArchiveBorrowService.selectTArchiveBorrowById(id); + mmap.put("tArchiveBorrow", tArchiveBorrow); + return this.prefix + "/edit"; + } + + + + + + + @RequiresPermissions({"jyly:borrow:edit"}) + @Log(title = "档案借阅登记", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TArchiveBorrow tArchiveBorrow) { + if (tArchiveBorrow.getUsingEffect() != null) { + tArchiveBorrow.setExborrowState("1"); + } + return toAjax(this.tArchiveBorrowService.updateTArchiveBorrow(tArchiveBorrow)); + } + + + + + + @RequiresPermissions({"jyly:borrow:remove"}) + @Log(title = "档案借阅登记", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tArchiveBorrowService.deleteTArchiveBorrowByIds(ids)); + } + + + + + + + @GetMapping({"/lywb/{id}"}) + public String lywb(@PathVariable("id") Long id, ModelMap mmap) { + TArchiveBorrow tArchiveBorrow = this.tArchiveBorrowService.selectTArchiveBorrowById(id); + mmap.put("tArchiveBorrow", tArchiveBorrow); + return this.prefix + "/lywb"; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\borrow\controller\TArchiveBorrowController.class diff --git a/src/main/java/com/archive/project/jyly/borrow/domain/TArchiveBorrow.java b/src/main/java/com/archive/project/jyly/borrow/domain/TArchiveBorrow.java index 07eceb6..e0839ec 100644 --- a/src/main/java/com/archive/project/jyly/borrow/domain/TArchiveBorrow.java +++ b/src/main/java/com/archive/project/jyly/borrow/domain/TArchiveBorrow.java @@ -1,564 +1,564 @@ -/* */ package com.archive.project.jyly.borrow.domain + package com.archive.project.jyly.borrow.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import com.fasterxml.jackson.annotation.JsonFormat; -/* */ import java.util.Date; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TArchiveBorrow -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "登记编号") -/* */ private String borrowNo; -/* */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") -/* */ @Excel(name = "登记时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss") -/* */ private Date borrowData; -/* */ @Excel(name = "部门") -/* */ private String depatment; -/* */ @Excel(name = "姓名") -/* */ private String name; -/* */ @Excel(name = "电话") -/* */ private String phone; -/* */ @Excel(name = "证件名称:0身份证1军官证2护照") -/* */ private String cardName; -/* */ @Excel(name = "证件编号") -/* */ private String cardNo; -/* */ @Excel(name = "性别:1男2女") -/* */ private String gender; -/* */ @JsonFormat(pattern = "yyyy-MM-dd") -/* */ @Excel(name = "出生年月", width = 30.0D, dateFormat = "yyyy-MM-dd") -/* */ private Date birthday; -/* */ @Excel(name = "联系地址") -/* */ private String address; -/* */ @Excel(name = "类型:1个人2单位") -/* */ private String userType; -/* */ @Excel(name = "利用方式:1查阅2外借3电询") -/* */ private String usingType; -/* */ @Excel(name = "利用目的:1工作查考2学术研究3咨询4其他") -/* */ private String usingAim; -/* */ @Excel(name = "查阅内容") -/* */ private String usingContent; -/* */ @Excel(name = "借阅天数") -/* */ private String usingDate; -/* */ @Excel(name = "利用效果:1全部满意2部分满意3不满意") -/* */ private String usingEffect; -/* */ @Excel(name = "借阅类型:1电子2纸质") -/* */ private String borrowType; -/* */ @Excel(name = "身份证照片存放路径") -/* */ private String cardPhoto; -/* */ @Excel(name = "借阅状态:1借阅2完毕") -/* */ private String exborrowState; -/* */ @Excel(name = "人次") -/* */ private int pborrowState; -/* */ @Excel(name = "电子总数") -/* */ private String dzSum; -/* */ @Excel(name = "纸质总数") -/* */ private String zzSum; -/* */ @Excel(name = "是否查到:0否1是") -/* */ private String isSelected; -/* */ @Excel(name = "登记人") -/* */ private String recordperson; -/* */ @Excel(name = "卷数") -/* */ private Integer juanpage; -/* */ @Excel(name = "件数") -/* */ private Integer jianpage; -/* */ @Excel(name = "页数") -/* */ private Integer page; -/* */ @Excel(name = "拍摄数") -/* */ private Integer photopage; -/* */ @Excel(name = "复印数") -/* */ private Integer copypage; -/* */ @Excel(name = "摘抄数") -/* */ private Integer writepage; -/* */ @Excel(name = "是否审批:0否,2是") -/* */ private String isApprove; -/* */ @Excel(name = "电子授权审核:0未生效1生效") -/* */ private String dzStatus; -/* */ @Excel(name = "实物授权审核:0未生效1生效") -/* */ private String swStatus; -/* */ @Excel(name = "是否授权") -/* */ private String sqFlag; -/* */ @Excel(name = "介绍信说明") -/* */ private String reference; -/* */ @Excel(name = "领导意见") -/* */ private String reviewidea; -/* */ private String flagBy; -/* */ -/* */ public void setId(Long id) { -/* 174 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 179 */ return this.id; -/* */ } -/* */ -/* */ public void setBorrowNo(String borrowNo) { -/* 183 */ this.borrowNo = borrowNo; -/* */ } -/* */ -/* */ -/* */ public String getBorrowNo() { -/* 188 */ return this.borrowNo; -/* */ } -/* */ -/* */ public void setBorrowData(Date borrowData) { -/* 192 */ this.borrowData = borrowData; -/* */ } -/* */ -/* */ -/* */ public Date getBorrowData() { -/* 197 */ return this.borrowData; -/* */ } -/* */ -/* */ public void setDepatment(String depatment) { -/* 201 */ this.depatment = depatment; -/* */ } -/* */ -/* */ -/* */ public String getDepatment() { -/* 206 */ return this.depatment; -/* */ } -/* */ -/* */ public void setName(String name) { -/* 210 */ this.name = name; -/* */ } -/* */ -/* */ -/* */ public String getName() { -/* 215 */ return this.name; -/* */ } -/* */ -/* */ public void setPhone(String phone) { -/* 219 */ this.phone = phone; -/* */ } -/* */ -/* */ -/* */ public String getPhone() { -/* 224 */ return this.phone; -/* */ } -/* */ -/* */ public void setCardName(String cardName) { -/* 228 */ this.cardName = cardName; -/* */ } -/* */ -/* */ -/* */ public String getCardName() { -/* 233 */ return this.cardName; -/* */ } -/* */ -/* */ public void setCardNo(String cardNo) { -/* 237 */ this.cardNo = cardNo; -/* */ } -/* */ -/* */ -/* */ public String getCardNo() { -/* 242 */ return this.cardNo; -/* */ } -/* */ -/* */ public void setGender(String gender) { -/* 246 */ this.gender = gender; -/* */ } -/* */ -/* */ -/* */ public String getGender() { -/* 251 */ return this.gender; -/* */ } -/* */ -/* */ public void setBirthday(Date birthday) { -/* 255 */ this.birthday = birthday; -/* */ } -/* */ -/* */ -/* */ public Date getBirthday() { -/* 260 */ return this.birthday; -/* */ } -/* */ -/* */ public void setAddress(String address) { -/* 264 */ this.address = address; -/* */ } -/* */ -/* */ -/* */ public String getAddress() { -/* 269 */ return this.address; -/* */ } -/* */ -/* */ public void setUserType(String userType) { -/* 273 */ this.userType = userType; -/* */ } -/* */ -/* */ -/* */ public String getUserType() { -/* 278 */ return this.userType; -/* */ } -/* */ -/* */ public void setUsingType(String usingType) { -/* 282 */ this.usingType = usingType; -/* */ } -/* */ -/* */ -/* */ public String getUsingType() { -/* 287 */ return this.usingType; -/* */ } -/* */ -/* */ public void setUsingAim(String usingAim) { -/* 291 */ this.usingAim = usingAim; -/* */ } -/* */ -/* */ -/* */ public String getUsingAim() { -/* 296 */ return this.usingAim; -/* */ } -/* */ -/* */ public void setUsingContent(String usingContent) { -/* 300 */ this.usingContent = usingContent; -/* */ } -/* */ -/* */ -/* */ public String getUsingContent() { -/* 305 */ return this.usingContent; -/* */ } -/* */ -/* */ public void setUsingDate(String usingDate) { -/* 309 */ this.usingDate = usingDate; -/* */ } -/* */ -/* */ -/* */ public String getUsingDate() { -/* 314 */ return this.usingDate; -/* */ } -/* */ -/* */ public void setUsingEffect(String usingEffect) { -/* 318 */ this.usingEffect = usingEffect; -/* */ } -/* */ -/* */ -/* */ public String getUsingEffect() { -/* 323 */ return this.usingEffect; -/* */ } -/* */ -/* */ public void setBorrowType(String borrowType) { -/* 327 */ this.borrowType = borrowType; -/* */ } -/* */ -/* */ -/* */ public String getBorrowType() { -/* 332 */ return this.borrowType; -/* */ } -/* */ -/* */ public void setCardPhoto(String cardPhoto) { -/* 336 */ this.cardPhoto = cardPhoto; -/* */ } -/* */ -/* */ -/* */ public String getCardPhoto() { -/* 341 */ return this.cardPhoto; -/* */ } -/* */ -/* */ public void setExborrowState(String exborrowState) { -/* 345 */ this.exborrowState = exborrowState; -/* */ } -/* */ -/* */ -/* */ public String getExborrowState() { -/* 350 */ return this.exborrowState; -/* */ } -/* */ -/* */ public void setPborrowState(int pborrowState) { -/* 354 */ this.pborrowState = pborrowState; -/* */ } -/* */ -/* */ -/* */ public int getPborrowState() { -/* 359 */ return this.pborrowState; -/* */ } -/* */ -/* */ public void setDzSum(String dzSum) { -/* 363 */ this.dzSum = dzSum; -/* */ } -/* */ -/* */ -/* */ public String getDzSum() { -/* 368 */ return this.dzSum; -/* */ } -/* */ -/* */ public void setZzSum(String zzSum) { -/* 372 */ this.zzSum = zzSum; -/* */ } -/* */ -/* */ -/* */ public String getZzSum() { -/* 377 */ return this.zzSum; -/* */ } -/* */ -/* */ public void setIsSelected(String isSelected) { -/* 381 */ this.isSelected = isSelected; -/* */ } -/* */ -/* */ -/* */ public String getIsSelected() { -/* 386 */ return this.isSelected; -/* */ } -/* */ -/* */ public void setRecordperson(String recordperson) { -/* 390 */ this.recordperson = recordperson; -/* */ } -/* */ -/* */ -/* */ public String getRecordperson() { -/* 395 */ return this.recordperson; -/* */ } -/* */ -/* */ public void setJuanpage(Integer juanpage) { -/* 399 */ this.juanpage = juanpage; -/* */ } -/* */ -/* */ -/* */ public Integer getJuanpage() { -/* 404 */ return this.juanpage; -/* */ } -/* */ -/* */ public void setJianpage(Integer jianpage) { -/* 408 */ this.jianpage = jianpage; -/* */ } -/* */ -/* */ -/* */ public Integer getJianpage() { -/* 413 */ return this.jianpage; -/* */ } -/* */ -/* */ public void setPage(Integer page) { -/* 417 */ this.page = page; -/* */ } -/* */ -/* */ -/* */ public Integer getPage() { -/* 422 */ return this.page; -/* */ } -/* */ -/* */ public void setPhotopage(Integer photopage) { -/* 426 */ this.photopage = photopage; -/* */ } -/* */ -/* */ -/* */ public Integer getPhotopage() { -/* 431 */ return this.photopage; -/* */ } -/* */ -/* */ public void setCopypage(Integer copypage) { -/* 435 */ this.copypage = copypage; -/* */ } -/* */ -/* */ -/* */ public Integer getCopypage() { -/* 440 */ return this.copypage; -/* */ } -/* */ -/* */ public void setWritepage(Integer writepage) { -/* 444 */ this.writepage = writepage; -/* */ } -/* */ -/* */ -/* */ public Integer getWritepage() { -/* 449 */ return this.writepage; -/* */ } -/* */ -/* */ public void setIsApprove(String isApprove) { -/* 453 */ this.isApprove = isApprove; -/* */ } -/* */ -/* */ -/* */ public String getIsApprove() { -/* 458 */ return this.isApprove; -/* */ } -/* */ -/* */ public void setDzStatus(String dzStatus) { -/* 462 */ this.dzStatus = dzStatus; -/* */ } -/* */ -/* */ -/* */ public String getDzStatus() { -/* 467 */ return this.dzStatus; -/* */ } -/* */ -/* */ public void setSwStatus(String swStatus) { -/* 471 */ this.swStatus = swStatus; -/* */ } -/* */ -/* */ -/* */ public String getSwStatus() { -/* 476 */ return this.swStatus; -/* */ } -/* */ -/* */ public void setSqFlag(String sqFlag) { -/* 480 */ this.sqFlag = sqFlag; -/* */ } -/* */ -/* */ -/* */ public String getSqFlag() { -/* 485 */ return this.sqFlag; -/* */ } -/* */ -/* */ public void setReference(String reference) { -/* 489 */ this.reference = reference; -/* */ } -/* */ -/* */ -/* */ public String getReference() { -/* 494 */ return this.reference; -/* */ } -/* */ -/* */ public void setReviewidea(String reviewidea) { -/* 498 */ this.reviewidea = reviewidea; -/* */ } -/* */ -/* */ -/* */ public String getReviewidea() { -/* 503 */ return this.reviewidea; -/* */ } -/* */ -/* */ public void setFlagBy(String flagBy) { -/* 507 */ this.flagBy = flagBy; -/* */ } -/* */ -/* */ -/* */ public String getFlagBy() { -/* 512 */ return this.flagBy; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 517 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 518 */ .append("id", getId()) -/* 519 */ .append("borrowNo", getBorrowNo()) -/* 520 */ .append("borrowData", getBorrowData()) -/* 521 */ .append("depatment", getDepatment()) -/* 522 */ .append("name", getName()) -/* 523 */ .append("phone", getPhone()) -/* 524 */ .append("cardName", getCardName()) -/* 525 */ .append("cardNo", getCardNo()) -/* 526 */ .append("gender", getGender()) -/* 527 */ .append("birthday", getBirthday()) -/* 528 */ .append("address", getAddress()) -/* 529 */ .append("userType", getUserType()) -/* 530 */ .append("usingType", getUsingType()) -/* 531 */ .append("usingAim", getUsingAim()) -/* 532 */ .append("usingContent", getUsingContent()) -/* 533 */ .append("usingDate", getUsingDate()) -/* 534 */ .append("usingEffect", getUsingEffect()) -/* 535 */ .append("borrowType", getBorrowType()) -/* 536 */ .append("cardPhoto", getCardPhoto()) -/* 537 */ .append("exborrowState", getExborrowState()) -/* 538 */ .append("pborrowState", getPborrowState()) -/* 539 */ .append("dzSum", getDzSum()) -/* 540 */ .append("zzSum", getZzSum()) -/* 541 */ .append("isSelected", getIsSelected()) -/* 542 */ .append("recordperson", getRecordperson()) -/* 543 */ .append("juanpage", getJuanpage()) -/* 544 */ .append("jianpage", getJianpage()) -/* 545 */ .append("remark", getRemark()) -/* 546 */ .append("page", getPage()) -/* 547 */ .append("photopage", getPhotopage()) -/* 548 */ .append("copypage", getCopypage()) -/* 549 */ .append("writepage", getWritepage()) -/* 550 */ .append("isApprove", getIsApprove()) -/* 551 */ .append("dzStatus", getDzStatus()) -/* 552 */ .append("swStatus", getSwStatus()) -/* 553 */ .append("sqFlag", getSqFlag()) -/* 554 */ .append("reference", getReference()) -/* 555 */ .append("reviewidea", getReviewidea()) -/* 556 */ .append("flagBy", getFlagBy()) -/* 557 */ .toString(); -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + import com.archive.framework.web.domain.BaseEntity; + import com.fasterxml.jackson.annotation.JsonFormat; + import java.util.Date; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class TArchiveBorrow + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "登记编号") + private String borrowNo; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "登记时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date borrowData; + @Excel(name = "部门") + private String depatment; + @Excel(name = "姓名") + private String name; + @Excel(name = "电话") + private String phone; + @Excel(name = "证件名称:0身份证1军官证2护照") + private String cardName; + @Excel(name = "证件编号") + private String cardNo; + @Excel(name = "性别:1男2女") + private String gender; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出生年月", width = 30.0D, dateFormat = "yyyy-MM-dd") + private Date birthday; + @Excel(name = "联系地址") + private String address; + @Excel(name = "类型:1个人2单位") + private String userType; + @Excel(name = "利用方式:1查阅2外借3电询") + private String usingType; + @Excel(name = "利用目的:1工作查考2学术研究3咨询4其他") + private String usingAim; + @Excel(name = "查阅内容") + private String usingContent; + @Excel(name = "借阅天数") + private String usingDate; + @Excel(name = "利用效果:1全部满意2部分满意3不满意") + private String usingEffect; + @Excel(name = "借阅类型:1电子2纸质") + private String borrowType; + @Excel(name = "身份证照片存放路径") + private String cardPhoto; + @Excel(name = "借阅状态:1借阅2完毕") + private String exborrowState; + @Excel(name = "人次") + private int pborrowState; + @Excel(name = "电子总数") + private String dzSum; + @Excel(name = "纸质总数") + private String zzSum; + @Excel(name = "是否查到:0否1是") + private String isSelected; + @Excel(name = "登记人") + private String recordperson; + @Excel(name = "卷数") + private Integer juanpage; + @Excel(name = "件数") + private Integer jianpage; + @Excel(name = "页数") + private Integer page; + @Excel(name = "拍摄数") + private Integer photopage; + @Excel(name = "复印数") + private Integer copypage; + @Excel(name = "摘抄数") + private Integer writepage; + @Excel(name = "是否审批:0否,2是") + private String isApprove; + @Excel(name = "电子授权审核:0未生效1生效") + private String dzStatus; + @Excel(name = "实物授权审核:0未生效1生效") + private String swStatus; + @Excel(name = "是否授权") + private String sqFlag; + @Excel(name = "介绍信说明") + private String reference; + @Excel(name = "领导意见") + private String reviewidea; + private String flagBy; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setBorrowNo(String borrowNo) { + this.borrowNo = borrowNo; + } + + + public String getBorrowNo() { + return this.borrowNo; + } + + public void setBorrowData(Date borrowData) { + this.borrowData = borrowData; + } + + + public Date getBorrowData() { + return this.borrowData; + } + + public void setDepatment(String depatment) { + this.depatment = depatment; + } + + + public String getDepatment() { + return this.depatment; + } + + public void setName(String name) { + this.name = name; + } + + + public String getName() { + return this.name; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + + public String getPhone() { + return this.phone; + } + + public void setCardName(String cardName) { + this.cardName = cardName; + } + + + public String getCardName() { + return this.cardName; + } + + public void setCardNo(String cardNo) { + this.cardNo = cardNo; + } + + + public String getCardNo() { + return this.cardNo; + } + + public void setGender(String gender) { + this.gender = gender; + } + + + public String getGender() { + return this.gender; + } + + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + + public Date getBirthday() { + return this.birthday; + } + + public void setAddress(String address) { + this.address = address; + } + + + public String getAddress() { + return this.address; + } + + public void setUserType(String userType) { + this.userType = userType; + } + + + public String getUserType() { + return this.userType; + } + + public void setUsingType(String usingType) { + this.usingType = usingType; + } + + + public String getUsingType() { + return this.usingType; + } + + public void setUsingAim(String usingAim) { + this.usingAim = usingAim; + } + + + public String getUsingAim() { + return this.usingAim; + } + + public void setUsingContent(String usingContent) { + this.usingContent = usingContent; + } + + + public String getUsingContent() { + return this.usingContent; + } + + public void setUsingDate(String usingDate) { + this.usingDate = usingDate; + } + + + public String getUsingDate() { + return this.usingDate; + } + + public void setUsingEffect(String usingEffect) { + this.usingEffect = usingEffect; + } + + + public String getUsingEffect() { + return this.usingEffect; + } + + public void setBorrowType(String borrowType) { + this.borrowType = borrowType; + } + + + public String getBorrowType() { + return this.borrowType; + } + + public void setCardPhoto(String cardPhoto) { + this.cardPhoto = cardPhoto; + } + + + public String getCardPhoto() { + return this.cardPhoto; + } + + public void setExborrowState(String exborrowState) { + this.exborrowState = exborrowState; + } + + + public String getExborrowState() { + return this.exborrowState; + } + + public void setPborrowState(int pborrowState) { + this.pborrowState = pborrowState; + } + + + public int getPborrowState() { + return this.pborrowState; + } + + public void setDzSum(String dzSum) { + this.dzSum = dzSum; + } + + + public String getDzSum() { + return this.dzSum; + } + + public void setZzSum(String zzSum) { + this.zzSum = zzSum; + } + + + public String getZzSum() { + return this.zzSum; + } + + public void setIsSelected(String isSelected) { + this.isSelected = isSelected; + } + + + public String getIsSelected() { + return this.isSelected; + } + + public void setRecordperson(String recordperson) { + this.recordperson = recordperson; + } + + + public String getRecordperson() { + return this.recordperson; + } + + public void setJuanpage(Integer juanpage) { + this.juanpage = juanpage; + } + + + public Integer getJuanpage() { + return this.juanpage; + } + + public void setJianpage(Integer jianpage) { + this.jianpage = jianpage; + } + + + public Integer getJianpage() { + return this.jianpage; + } + + public void setPage(Integer page) { + this.page = page; + } + + + public Integer getPage() { + return this.page; + } + + public void setPhotopage(Integer photopage) { + this.photopage = photopage; + } + + + public Integer getPhotopage() { + return this.photopage; + } + + public void setCopypage(Integer copypage) { + this.copypage = copypage; + } + + + public Integer getCopypage() { + return this.copypage; + } + + public void setWritepage(Integer writepage) { + this.writepage = writepage; + } + + + public Integer getWritepage() { + return this.writepage; + } + + public void setIsApprove(String isApprove) { + this.isApprove = isApprove; + } + + + public String getIsApprove() { + return this.isApprove; + } + + public void setDzStatus(String dzStatus) { + this.dzStatus = dzStatus; + } + + + public String getDzStatus() { + return this.dzStatus; + } + + public void setSwStatus(String swStatus) { + this.swStatus = swStatus; + } + + + public String getSwStatus() { + return this.swStatus; + } + + public void setSqFlag(String sqFlag) { + this.sqFlag = sqFlag; + } + + + public String getSqFlag() { + return this.sqFlag; + } + + public void setReference(String reference) { + this.reference = reference; + } + + + public String getReference() { + return this.reference; + } + + public void setReviewidea(String reviewidea) { + this.reviewidea = reviewidea; + } + + + public String getReviewidea() { + return this.reviewidea; + } + + public void setFlagBy(String flagBy) { + this.flagBy = flagBy; + } + + + public String getFlagBy() { + return this.flagBy; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("borrowNo", getBorrowNo()) + .append("borrowData", getBorrowData()) + .append("depatment", getDepatment()) + .append("name", getName()) + .append("phone", getPhone()) + .append("cardName", getCardName()) + .append("cardNo", getCardNo()) + .append("gender", getGender()) + .append("birthday", getBirthday()) + .append("address", getAddress()) + .append("userType", getUserType()) + .append("usingType", getUsingType()) + .append("usingAim", getUsingAim()) + .append("usingContent", getUsingContent()) + .append("usingDate", getUsingDate()) + .append("usingEffect", getUsingEffect()) + .append("borrowType", getBorrowType()) + .append("cardPhoto", getCardPhoto()) + .append("exborrowState", getExborrowState()) + .append("pborrowState", getPborrowState()) + .append("dzSum", getDzSum()) + .append("zzSum", getZzSum()) + .append("isSelected", getIsSelected()) + .append("recordperson", getRecordperson()) + .append("juanpage", getJuanpage()) + .append("jianpage", getJianpage()) + .append("remark", getRemark()) + .append("page", getPage()) + .append("photopage", getPhotopage()) + .append("copypage", getCopypage()) + .append("writepage", getWritepage()) + .append("isApprove", getIsApprove()) + .append("dzStatus", getDzStatus()) + .append("swStatus", getSwStatus()) + .append("sqFlag", getSqFlag()) + .append("reference", getReference()) + .append("reviewidea", getReviewidea()) + .append("flagBy", getFlagBy()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\borrow\domain\TArchiveBorrow.class diff --git a/src/main/java/com/archive/project/jyly/borrow/service/impl/TArchiveBorrowServiceImpl.java b/src/main/java/com/archive/project/jyly/borrow/service/impl/TArchiveBorrowServiceImpl.java index 27c7eb9..df9d4dc 100644 --- a/src/main/java/com/archive/project/jyly/borrow/service/impl/TArchiveBorrowServiceImpl.java +++ b/src/main/java/com/archive/project/jyly/borrow/service/impl/TArchiveBorrowServiceImpl.java @@ -1,114 +1,114 @@ -/* */ package com.archive.project.jyly.borrow.service.impl + package com.archive.project.jyly.borrow.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.jyly.borrow.domain.TArchiveBorrow; -/* */ import com.archive.project.jyly.borrow.mapper.TArchiveBorrowMapper; -/* */ import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TArchiveBorrowServiceImpl -/* */ implements ITArchiveBorrowService -/* */ { -/* */ @Autowired -/* */ private TArchiveBorrowMapper tArchiveBorrowMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public TArchiveBorrow selectTArchiveBorrowById(Long id) { -/* 39 */ return this.tArchiveBorrowMapper.selectTArchiveBorrowById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTArchiveBorrowList(TArchiveBorrow tArchiveBorrow) { -/* 51 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 52 */ return this.tArchiveBorrowMapper.selectTArchiveBorrowList(tArchiveBorrow); -/* */ } -/* 54 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 55 */ return this.tArchiveBorrowMapper.selectTArchiveBorrowListSqlite(tArchiveBorrow); -/* */ } -/* 57 */ return this.tArchiveBorrowMapper.selectTArchiveBorrowList(tArchiveBorrow); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTArchiveBorrow(TArchiveBorrow tArchiveBorrow) { -/* 71 */ return this.tArchiveBorrowMapper.insertTArchiveBorrow(tArchiveBorrow); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTArchiveBorrow(TArchiveBorrow tArchiveBorrow) { -/* 83 */ return this.tArchiveBorrowMapper.updateTArchiveBorrow(tArchiveBorrow); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchiveBorrowByIds(String ids) { -/* 95 */ return this.tArchiveBorrowMapper.deleteTArchiveBorrowByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchiveBorrowById(Long id) { -/* 107 */ return this.tArchiveBorrowMapper.deleteTArchiveBorrowById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.jyly.borrow.domain.TArchiveBorrow; + import com.archive.project.jyly.borrow.mapper.TArchiveBorrowMapper; + import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + + @Service + public class TArchiveBorrowServiceImpl + implements ITArchiveBorrowService + { + @Autowired + private TArchiveBorrowMapper tArchiveBorrowMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public TArchiveBorrow selectTArchiveBorrowById(Long id) { + return this.tArchiveBorrowMapper.selectTArchiveBorrowById(id); + } + + + + + + + + + + public List selectTArchiveBorrowList(TArchiveBorrow tArchiveBorrow) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.tArchiveBorrowMapper.selectTArchiveBorrowList(tArchiveBorrow); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.tArchiveBorrowMapper.selectTArchiveBorrowListSqlite(tArchiveBorrow); + } + return this.tArchiveBorrowMapper.selectTArchiveBorrowList(tArchiveBorrow); + } + + + + + + + + + + + + public int insertTArchiveBorrow(TArchiveBorrow tArchiveBorrow) { + return this.tArchiveBorrowMapper.insertTArchiveBorrow(tArchiveBorrow); + } + + + + + + + + + + public int updateTArchiveBorrow(TArchiveBorrow tArchiveBorrow) { + return this.tArchiveBorrowMapper.updateTArchiveBorrow(tArchiveBorrow); + } + + + + + + + + + + public int deleteTArchiveBorrowByIds(String ids) { + return this.tArchiveBorrowMapper.deleteTArchiveBorrowByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTArchiveBorrowById(Long id) { + return this.tArchiveBorrowMapper.deleteTArchiveBorrowById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\borrow\service\impl\TArchiveBorrowServiceImpl.class diff --git a/src/main/java/com/archive/project/jyly/detail/controller/TArchiveBorrowDetailController.java b/src/main/java/com/archive/project/jyly/detail/controller/TArchiveBorrowDetailController.java index 973333a..0aeded9 100644 --- a/src/main/java/com/archive/project/jyly/detail/controller/TArchiveBorrowDetailController.java +++ b/src/main/java/com/archive/project/jyly/detail/controller/TArchiveBorrowDetailController.java @@ -1,163 +1,163 @@ -/* */ package com.archive.project.jyly.detail.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.jyly.borrow.domain.TArchiveBorrow; -/* */ import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; -/* */ import com.archive.project.jyly.detail.domain.TArchiveBorrowDetail; -/* */ import com.archive.project.jyly.detail.service.ITArchiveBorrowDetailService; -/* */ 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({"/jyly/detail"}) -/* */ public class TArchiveBorrowDetailController -/* */ extends BaseController -/* */ { -/* 36 */ private String prefix = "jyly/detail"; -/* */ -/* */ @Autowired -/* */ private ITArchiveBorrowDetailService tArchiveBorrowDetailService; -/* */ -/* */ @Autowired -/* */ private ITArchiveBorrowService archiveBorrowService; -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:view"}) -/* */ @GetMapping({"/{ownerid}"}) -/* */ public String detail(@PathVariable("ownerid") Long ownerid, ModelMap mmap) { -/* 48 */ TArchiveBorrow archiveBorrow = this.archiveBorrowService.selectTArchiveBorrowById(ownerid); -/* 49 */ mmap.put("ownerId", String.valueOf(ownerid)); -/* 50 */ mmap.put("exborrowState", archiveBorrow.getExborrowState()); -/* 51 */ return this.prefix + "/detail"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:list"}) -/* */ @PostMapping({"/list/{ownerId}"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(@PathVariable("ownerId") Long ownerId, TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 62 */ startPage(); -/* 63 */ tArchiveBorrowDetail.setOwnerId(ownerId); -/* 64 */ List list = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); -/* 65 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:export"}) -/* */ @Log(title = "档案借阅登记明细导出", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 77 */ List list = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); -/* 78 */ ExcelUtil util = new ExcelUtil(TArchiveBorrowDetail.class); -/* 79 */ return util.exportExcel(list, "detail"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add/{ownerId}"}) -/* */ public String add(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { -/* 88 */ mmap.put("ownerId", ownerId); -/* 89 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:add"}) -/* */ @Log(title = "档案借阅登记实体登记", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 101 */ return toAjax(this.tArchiveBorrowDetailService.insertTArchiveBorrowDetail(tArchiveBorrowDetail)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 110 */ TArchiveBorrowDetail tArchiveBorrowDetail = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailById(id); -/* 111 */ mmap.put("tArchiveBorrowDetail", tArchiveBorrowDetail); -/* 112 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:edit"}) -/* */ @Log(title = "档案借阅登记明细修改", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 124 */ return toAjax(this.tArchiveBorrowDetailService.updateTArchiveBorrowDetail(tArchiveBorrowDetail)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:detail:remove"}) -/* */ @Log(title = "档案借阅登记明细删除", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 136 */ return toAjax(this.tArchiveBorrowDetailService.deleteTArchiveBorrowDetailByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/borrowsearch/{ownerId}"}) -/* */ public String borrowsearch(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { -/* 146 */ mmap.put("ownerId", ownerId); -/* 147 */ return this.prefix + "/borrowsearch"; -/* */ } -/* */ -/* */ @Log(title = "档案利用-明细调档保存", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/saveBorrowDetail"}) -/* */ @ResponseBody -/* */ public AjaxResult saveBorrowDetail(@Validated String ownerId, @Validated String ids) { -/* 154 */ boolean res = this.tArchiveBorrowDetailService.saveBorrowDetail(ownerId, ids); -/* 155 */ if (res) { -/* 156 */ return success(); -/* */ } -/* 158 */ return error(); -/* */ } -/* */ } + package com.archive.project.jyly.detail.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.jyly.borrow.domain.TArchiveBorrow; + import com.archive.project.jyly.borrow.service.ITArchiveBorrowService; + import com.archive.project.jyly.detail.domain.TArchiveBorrowDetail; + import com.archive.project.jyly.detail.service.ITArchiveBorrowDetailService; + 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({"/jyly/detail"}) + public class TArchiveBorrowDetailController + extends BaseController + { + private String prefix = "jyly/detail"; + + @Autowired + private ITArchiveBorrowDetailService tArchiveBorrowDetailService; + + @Autowired + private ITArchiveBorrowService archiveBorrowService; + + + @RequiresPermissions({"jyly:detail:view"}) + @GetMapping({"/{ownerid}"}) + public String detail(@PathVariable("ownerid") Long ownerid, ModelMap mmap) { + TArchiveBorrow archiveBorrow = this.archiveBorrowService.selectTArchiveBorrowById(ownerid); + mmap.put("ownerId", String.valueOf(ownerid)); + mmap.put("exborrowState", archiveBorrow.getExborrowState()); + return this.prefix + "/detail"; + } + + + + + + @RequiresPermissions({"jyly:detail:list"}) + @PostMapping({"/list/{ownerId}"}) + @ResponseBody + public TableDataInfo list(@PathVariable("ownerId") Long ownerId, TArchiveBorrowDetail tArchiveBorrowDetail) { + startPage(); + tArchiveBorrowDetail.setOwnerId(ownerId); + List list = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"jyly:detail:export"}) + @Log(title = "档案借阅登记明细导出", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TArchiveBorrowDetail tArchiveBorrowDetail) { + List list = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); + ExcelUtil util = new ExcelUtil(TArchiveBorrowDetail.class); + return util.exportExcel(list, "detail"); + } + + + + + + @GetMapping({"/add/{ownerId}"}) + public String add(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { + mmap.put("ownerId", ownerId); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"jyly:detail:add"}) + @Log(title = "档案借阅登记实体登记", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TArchiveBorrowDetail tArchiveBorrowDetail) { + return toAjax(this.tArchiveBorrowDetailService.insertTArchiveBorrowDetail(tArchiveBorrowDetail)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TArchiveBorrowDetail tArchiveBorrowDetail = this.tArchiveBorrowDetailService.selectTArchiveBorrowDetailById(id); + mmap.put("tArchiveBorrowDetail", tArchiveBorrowDetail); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"jyly:detail:edit"}) + @Log(title = "档案借阅登记明细修改", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TArchiveBorrowDetail tArchiveBorrowDetail) { + return toAjax(this.tArchiveBorrowDetailService.updateTArchiveBorrowDetail(tArchiveBorrowDetail)); + } + + + + + + @RequiresPermissions({"jyly:detail:remove"}) + @Log(title = "档案借阅登记明细删除", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tArchiveBorrowDetailService.deleteTArchiveBorrowDetailByIds(ids)); + } + + + + + + + @GetMapping({"/borrowsearch/{ownerId}"}) + public String borrowsearch(@PathVariable("ownerId") Long ownerId, ModelMap mmap) { + mmap.put("ownerId", ownerId); + return this.prefix + "/borrowsearch"; + } + + @Log(title = "档案利用-明细调档保存", businessType = BusinessType.INSERT) + @PostMapping({"/saveBorrowDetail"}) + @ResponseBody + public AjaxResult saveBorrowDetail(@Validated String ownerId, @Validated String ids) { + boolean res = this.tArchiveBorrowDetailService.saveBorrowDetail(ownerId, ids); + if (res) { + return success(); + } + return error(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\detail\controller\TArchiveBorrowDetailController.class diff --git a/src/main/java/com/archive/project/jyly/detail/domain/TArchiveBorrowDetail.java b/src/main/java/com/archive/project/jyly/detail/domain/TArchiveBorrowDetail.java index 482a4ac..ee199d1 100644 --- a/src/main/java/com/archive/project/jyly/detail/domain/TArchiveBorrowDetail.java +++ b/src/main/java/com/archive/project/jyly/detail/domain/TArchiveBorrowDetail.java @@ -1,366 +1,366 @@ -/* */ package com.archive.project.jyly.detail.domain + package com.archive.project.jyly.detail.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 TArchiveBorrowDetail -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "借阅单ID") -/* */ private Long ownerId; -/* */ @Excel(name = "创建人") -/* */ private String createUser; -/* */ @Excel(name = "借阅状态") -/* */ private String status; -/* */ @Excel(name = "档号") -/* */ private String dh; -/* */ private String tableId; -/* */ private String tableName; -/* */ private Long archiveId; -/* */ @Excel(name = "全宗") -/* */ private String fondsCode; -/* */ @Excel(name = "题名") -/* */ private String titleProper; -/* */ @Excel(name = "页数") -/* */ private Integer pageNumber; -/* */ @Excel(name = "保管期限") -/* */ private String bgqx; -/* */ @Excel(name = "电子全文数") -/* */ private Integer documentNumber; -/* */ private String isOpen; -/* */ private String borrowType; -/* */ private String showOrder; -/* */ private String isOut; -/* */ @Excel(name = "责任者") -/* */ private String author; -/* */ private String copy; -/* */ private String excerpt; -/* */ private String shot; -/* */ private String scan; -/* */ private String printTime; -/* */ private String uploadTime; -/* */ private String flag1; -/* */ -/* */ public void setId(Long id) { -/* 105 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 110 */ return this.id; -/* */ } -/* */ -/* */ public void setOwnerId(Long ownerId) { -/* 114 */ this.ownerId = ownerId; -/* */ } -/* */ -/* */ -/* */ public Long getOwnerId() { -/* 119 */ return this.ownerId; -/* */ } -/* */ -/* */ public void setCreateUser(String createUser) { -/* 123 */ this.createUser = createUser; -/* */ } -/* */ -/* */ -/* */ public String getCreateUser() { -/* 128 */ return this.createUser; -/* */ } -/* */ -/* */ public void setStatus(String status) { -/* 132 */ this.status = status; -/* */ } -/* */ -/* */ -/* */ public String getStatus() { -/* 137 */ return this.status; -/* */ } -/* */ -/* */ public void setDh(String dh) { -/* 141 */ this.dh = dh; -/* */ } -/* */ -/* */ -/* */ public String getDh() { -/* 146 */ return this.dh; -/* */ } -/* */ -/* */ public void setTableId(String tableId) { -/* 150 */ this.tableId = tableId; -/* */ } -/* */ -/* */ -/* */ public String getTableId() { -/* 155 */ return this.tableId; -/* */ } -/* */ -/* */ public void setTableName(String tableName) { -/* 159 */ this.tableName = tableName; -/* */ } -/* */ -/* */ -/* */ public String getTableName() { -/* 164 */ return this.tableName; -/* */ } -/* */ -/* */ public void setArchiveId(Long archiveId) { -/* 168 */ this.archiveId = archiveId; -/* */ } -/* */ -/* */ -/* */ public Long getArchiveId() { -/* 173 */ return this.archiveId; -/* */ } -/* */ -/* */ public void setFondsCode(String fondsCode) { -/* 177 */ this.fondsCode = fondsCode; -/* */ } -/* */ -/* */ -/* */ public String getFondsCode() { -/* 182 */ return this.fondsCode; -/* */ } -/* */ -/* */ public void setTitleProper(String titleProper) { -/* 186 */ this.titleProper = titleProper; -/* */ } -/* */ -/* */ -/* */ public String getTitleProper() { -/* 191 */ return this.titleProper; -/* */ } -/* */ -/* */ public void setPageNumber(Integer pageNumber) { -/* 195 */ this.pageNumber = pageNumber; -/* */ } -/* */ -/* */ -/* */ public Integer getPageNumber() { -/* 200 */ return this.pageNumber; -/* */ } -/* */ -/* */ public void setBgqx(String bgqx) { -/* 204 */ this.bgqx = bgqx; -/* */ } -/* */ -/* */ -/* */ public String getBgqx() { -/* 209 */ return this.bgqx; -/* */ } -/* */ -/* */ public void setDocumentNumber(Integer documentNumber) { -/* 213 */ this.documentNumber = documentNumber; -/* */ } -/* */ -/* */ -/* */ public Integer getDocumentNumber() { -/* 218 */ return this.documentNumber; -/* */ } -/* */ -/* */ public void setIsOpen(String isOpen) { -/* 222 */ this.isOpen = isOpen; -/* */ } -/* */ -/* */ -/* */ public String getIsOpen() { -/* 227 */ return this.isOpen; -/* */ } -/* */ -/* */ public void setBorrowType(String borrowType) { -/* 231 */ this.borrowType = borrowType; -/* */ } -/* */ -/* */ -/* */ public String getBorrowType() { -/* 236 */ return this.borrowType; -/* */ } -/* */ -/* */ public void setShowOrder(String showOrder) { -/* 240 */ this.showOrder = showOrder; -/* */ } -/* */ -/* */ -/* */ public String getShowOrder() { -/* 245 */ return this.showOrder; -/* */ } -/* */ -/* */ public void setIsOut(String isOut) { -/* 249 */ this.isOut = isOut; -/* */ } -/* */ -/* */ -/* */ public String getIsOut() { -/* 254 */ return this.isOut; -/* */ } -/* */ -/* */ public void setAuthor(String author) { -/* 258 */ this.author = author; -/* */ } -/* */ -/* */ -/* */ public String getAuthor() { -/* 263 */ return this.author; -/* */ } -/* */ -/* */ public void setCopy(String copy) { -/* 267 */ this.copy = copy; -/* */ } -/* */ -/* */ -/* */ public String getCopy() { -/* 272 */ return this.copy; -/* */ } -/* */ -/* */ public void setExcerpt(String excerpt) { -/* 276 */ this.excerpt = excerpt; -/* */ } -/* */ -/* */ -/* */ public String getExcerpt() { -/* 281 */ return this.excerpt; -/* */ } -/* */ -/* */ public void setShot(String shot) { -/* 285 */ this.shot = shot; -/* */ } -/* */ -/* */ -/* */ public String getShot() { -/* 290 */ return this.shot; -/* */ } -/* */ -/* */ public void setScan(String scan) { -/* 294 */ this.scan = scan; -/* */ } -/* */ -/* */ -/* */ public String getScan() { -/* 299 */ return this.scan; -/* */ } -/* */ -/* */ public void setPrintTime(String printTime) { -/* 303 */ this.printTime = printTime; -/* */ } -/* */ -/* */ -/* */ public String getPrintTime() { -/* 308 */ return this.printTime; -/* */ } -/* */ -/* */ public void setUploadTime(String uploadTime) { -/* 312 */ this.uploadTime = uploadTime; -/* */ } -/* */ -/* */ -/* */ public String getUploadTime() { -/* 317 */ return this.uploadTime; -/* */ } -/* */ -/* */ public void setFlag1(String flag1) { -/* 321 */ this.flag1 = flag1; -/* */ } -/* */ -/* */ -/* */ public String getFlag1() { -/* 326 */ return this.flag1; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 331 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 332 */ .append("id", getId()) -/* 333 */ .append("ownerId", getOwnerId()) -/* 334 */ .append("createUser", getCreateUser()) -/* 335 */ .append("createTime", getCreateTime()) -/* 336 */ .append("status", getStatus()) -/* 337 */ .append("dh", getDh()) -/* 338 */ .append("tableId", getTableId()) -/* 339 */ .append("tableName", getTableName()) -/* 340 */ .append("archiveId", getArchiveId()) -/* 341 */ .append("fondsCode", getFondsCode()) -/* 342 */ .append("titleProper", getTitleProper()) -/* 343 */ .append("pageNumber", getPageNumber()) -/* 344 */ .append("bgqx", getBgqx()) -/* 345 */ .append("documentNumber", getDocumentNumber()) -/* 346 */ .append("remark", getRemark()) -/* 347 */ .append("isOpen", getIsOpen()) -/* 348 */ .append("borrowType", getBorrowType()) -/* 349 */ .append("showOrder", getShowOrder()) -/* 350 */ .append("isOut", getIsOut()) -/* 351 */ .append("author", getAuthor()) -/* 352 */ .append("copy", getCopy()) -/* 353 */ .append("excerpt", getExcerpt()) -/* 354 */ .append("shot", getShot()) -/* 355 */ .append("scan", getScan()) -/* 356 */ .append("printTime", getPrintTime()) -/* 357 */ .append("uploadTime", getUploadTime()) -/* 358 */ .append("flag1", getFlag1()) -/* 359 */ .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 TArchiveBorrowDetail + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "借阅单ID") + private Long ownerId; + @Excel(name = "创建人") + private String createUser; + @Excel(name = "借阅状态") + private String status; + @Excel(name = "档号") + private String dh; + private String tableId; + private String tableName; + private Long archiveId; + @Excel(name = "全宗") + private String fondsCode; + @Excel(name = "题名") + private String titleProper; + @Excel(name = "页数") + private Integer pageNumber; + @Excel(name = "保管期限") + private String bgqx; + @Excel(name = "电子全文数") + private Integer documentNumber; + private String isOpen; + private String borrowType; + private String showOrder; + private String isOut; + @Excel(name = "责任者") + private String author; + private String copy; + private String excerpt; + private String shot; + private String scan; + private String printTime; + private String uploadTime; + private String flag1; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + } + + + public Long getOwnerId() { + return this.ownerId; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + + public String getCreateUser() { + return this.createUser; + } + + public void setStatus(String status) { + this.status = status; + } + + + public String getStatus() { + return this.status; + } + + public void setDh(String dh) { + this.dh = dh; + } + + + public String getDh() { + return this.dh; + } + + public void setTableId(String tableId) { + this.tableId = tableId; + } + + + public String getTableId() { + return this.tableId; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + + public String getTableName() { + return this.tableName; + } + + public void setArchiveId(Long archiveId) { + this.archiveId = archiveId; + } + + + public Long getArchiveId() { + return this.archiveId; + } + + public void setFondsCode(String fondsCode) { + this.fondsCode = fondsCode; + } + + + public String getFondsCode() { + return this.fondsCode; + } + + public void setTitleProper(String titleProper) { + this.titleProper = titleProper; + } + + + public String getTitleProper() { + return this.titleProper; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setBgqx(String bgqx) { + this.bgqx = bgqx; + } + + + public String getBgqx() { + return this.bgqx; + } + + public void setDocumentNumber(Integer documentNumber) { + this.documentNumber = documentNumber; + } + + + public Integer getDocumentNumber() { + return this.documentNumber; + } + + public void setIsOpen(String isOpen) { + this.isOpen = isOpen; + } + + + public String getIsOpen() { + return this.isOpen; + } + + public void setBorrowType(String borrowType) { + this.borrowType = borrowType; + } + + + public String getBorrowType() { + return this.borrowType; + } + + public void setShowOrder(String showOrder) { + this.showOrder = showOrder; + } + + + public String getShowOrder() { + return this.showOrder; + } + + public void setIsOut(String isOut) { + this.isOut = isOut; + } + + + public String getIsOut() { + return this.isOut; + } + + public void setAuthor(String author) { + this.author = author; + } + + + public String getAuthor() { + return this.author; + } + + public void setCopy(String copy) { + this.copy = copy; + } + + + public String getCopy() { + return this.copy; + } + + public void setExcerpt(String excerpt) { + this.excerpt = excerpt; + } + + + public String getExcerpt() { + return this.excerpt; + } + + public void setShot(String shot) { + this.shot = shot; + } + + + public String getShot() { + return this.shot; + } + + public void setScan(String scan) { + this.scan = scan; + } + + + public String getScan() { + return this.scan; + } + + public void setPrintTime(String printTime) { + this.printTime = printTime; + } + + + public String getPrintTime() { + return this.printTime; + } + + public void setUploadTime(String uploadTime) { + this.uploadTime = uploadTime; + } + + + public String getUploadTime() { + return this.uploadTime; + } + + public void setFlag1(String flag1) { + this.flag1 = flag1; + } + + + public String getFlag1() { + return this.flag1; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("ownerId", getOwnerId()) + .append("createUser", getCreateUser()) + .append("createTime", getCreateTime()) + .append("status", getStatus()) + .append("dh", getDh()) + .append("tableId", getTableId()) + .append("tableName", getTableName()) + .append("archiveId", getArchiveId()) + .append("fondsCode", getFondsCode()) + .append("titleProper", getTitleProper()) + .append("pageNumber", getPageNumber()) + .append("bgqx", getBgqx()) + .append("documentNumber", getDocumentNumber()) + .append("remark", getRemark()) + .append("isOpen", getIsOpen()) + .append("borrowType", getBorrowType()) + .append("showOrder", getShowOrder()) + .append("isOut", getIsOut()) + .append("author", getAuthor()) + .append("copy", getCopy()) + .append("excerpt", getExcerpt()) + .append("shot", getShot()) + .append("scan", getScan()) + .append("printTime", getPrintTime()) + .append("uploadTime", getUploadTime()) + .append("flag1", getFlag1()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\detail\domain\TArchiveBorrowDetail.class diff --git a/src/main/java/com/archive/project/jyly/detail/service/impl/TArchiveBorrowDetailServiceImpl.java b/src/main/java/com/archive/project/jyly/detail/service/impl/TArchiveBorrowDetailServiceImpl.java index 48499a1..5326424 100644 --- a/src/main/java/com/archive/project/jyly/detail/service/impl/TArchiveBorrowDetailServiceImpl.java +++ b/src/main/java/com/archive/project/jyly/detail/service/impl/TArchiveBorrowDetailServiceImpl.java @@ -1,159 +1,159 @@ -/* */ package com.archive.project.jyly.detail.service.impl + package com.archive.project.jyly.detail.service.impl ; -/* */ -/* */ import com.archive.common.utils.DateUtils; -/* */ import com.archive.common.utils.security.ShiroUtils; -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.common.service.IExecuteSqlService; -/* */ import com.archive.project.jyly.detail.domain.TArchiveBorrowDetail; -/* */ import com.archive.project.jyly.detail.mapper.TArchiveBorrowDetailMapper; -/* */ import com.archive.project.jyly.detail.service.ITArchiveBorrowDetailService; -/* */ import com.archive.project.system.user.domain.User; -/* */ import java.util.LinkedHashMap; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TArchiveBorrowDetailServiceImpl -/* */ implements ITArchiveBorrowDetailService -/* */ { -/* */ @Autowired -/* */ private TArchiveBorrowDetailMapper tArchiveBorrowDetailMapper; -/* */ @Autowired -/* */ private IExecuteSqlService executeSqlService; -/* */ -/* */ public TArchiveBorrowDetail selectTArchiveBorrowDetailById(Long id) { -/* 42 */ return this.tArchiveBorrowDetailMapper.selectTArchiveBorrowDetailById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTArchiveBorrowDetailList(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 54 */ return this.tArchiveBorrowDetailMapper.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTArchiveBorrowDetail(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 66 */ tArchiveBorrowDetail.setCreateTime(DateUtils.getNowDate()); -/* 67 */ return this.tArchiveBorrowDetailMapper.insertTArchiveBorrowDetail(tArchiveBorrowDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTArchiveBorrowDetail(TArchiveBorrowDetail tArchiveBorrowDetail) { -/* 79 */ return this.tArchiveBorrowDetailMapper.updateTArchiveBorrowDetail(tArchiveBorrowDetail); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchiveBorrowDetailByIds(String ids) { -/* 91 */ return this.tArchiveBorrowDetailMapper.deleteTArchiveBorrowDetailByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchiveBorrowDetailById(Long id) { -/* 103 */ return this.tArchiveBorrowDetailMapper.deleteTArchiveBorrowDetailById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public boolean saveBorrowDetail(String ownerId, String ids) { -/* 115 */ boolean res = false; -/* */ try { -/* 117 */ String[] sttr = ids.split(","); -/* 118 */ for (int i = 0; i < sttr.length; i++) { -/* 119 */ String[] idcode = sttr[i].split("-"); -/* 120 */ String archiveId = idcode[0]; -/* 121 */ String tableId = idcode[1]; -/* 122 */ String sql = "select qzh,dh,tm,ys,bgqx,zrz,archiveTypeName,kfkz from t_ar_total where archiveId='" + archiveId + "' and tableId='" + tableId + "'"; -/* */ -/* 124 */ List> datalist = this.executeSqlService.queryList(sql); -/* 125 */ if (datalist.size() > 0 && datalist.get(0) != null) { -/* 126 */ TArchiveBorrowDetail tArchiveBorrowDetail = new TArchiveBorrowDetail(); -/* 127 */ tArchiveBorrowDetail.setOwnerId(Long.valueOf(Long.parseLong(ownerId))); -/* 128 */ tArchiveBorrowDetail.setArchiveId(Long.valueOf(Long.parseLong(archiveId))); -/* 129 */ tArchiveBorrowDetail.setTableId(tableId); -/* 130 */ tArchiveBorrowDetail.setTableName((((LinkedHashMap)datalist.get(0)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeName").toString()); -/* 131 */ tArchiveBorrowDetail.setAuthor((((LinkedHashMap)datalist.get(0)).get("zrz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("zrz").toString()); -/* 132 */ tArchiveBorrowDetail.setBgqx((((LinkedHashMap)datalist.get(0)).get("bgqx") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("bgqx").toString()); -/* 133 */ tArchiveBorrowDetail.setDh((((LinkedHashMap)datalist.get(0)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("dh").toString()); -/* 134 */ tArchiveBorrowDetail.setFondsCode((((LinkedHashMap)datalist.get(0)).get("qzh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("qzh").toString()); -/* 135 */ tArchiveBorrowDetail.setIsOpen((((LinkedHashMap)datalist.get(0)).get("kfkz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("kfkz").toString()); -/* 136 */ tArchiveBorrowDetail.setTitleProper((((LinkedHashMap)datalist.get(0)).get("tm") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("tm").toString()); -/* 137 */ tArchiveBorrowDetail.setPageNumber(Integer.valueOf((((LinkedHashMap)datalist.get(0)).get("ys") == null) ? 0 : Integer.parseInt(((LinkedHashMap)datalist.get(0)).get("ys").toString().equals("") ? "0" : ((LinkedHashMap)datalist.get(0)).get("ys").toString()))); -/* 138 */ tArchiveBorrowDetail.setCreateTime(DateUtils.getNowDate()); -/* 139 */ User currentUser = ShiroUtils.getSysUser(); -/* 140 */ if (currentUser != null) { -/* 141 */ tArchiveBorrowDetail.setCreateUser(currentUser.getUserName()); -/* */ } -/* 143 */ this.tArchiveBorrowDetailMapper.insertTArchiveBorrowDetail(tArchiveBorrowDetail); -/* */ } else { -/* 145 */ System.out.println("没有查询到数据"); -/* */ } -/* */ } -/* 148 */ res = true; -/* 149 */ } catch (Exception ex) { -/* 150 */ System.out.println("ERROR出现异常:" + ex.getMessage()); -/* */ } -/* 152 */ return res; -/* */ } -/* */ } + + import com.archive.common.utils.DateUtils; + import com.archive.common.utils.security.ShiroUtils; + import com.archive.common.utils.text.Convert; + import com.archive.project.common.service.IExecuteSqlService; + import com.archive.project.jyly.detail.domain.TArchiveBorrowDetail; + import com.archive.project.jyly.detail.mapper.TArchiveBorrowDetailMapper; + import com.archive.project.jyly.detail.service.ITArchiveBorrowDetailService; + import com.archive.project.system.user.domain.User; + import java.util.LinkedHashMap; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class TArchiveBorrowDetailServiceImpl + implements ITArchiveBorrowDetailService + { + @Autowired + private TArchiveBorrowDetailMapper tArchiveBorrowDetailMapper; + @Autowired + private IExecuteSqlService executeSqlService; + + public TArchiveBorrowDetail selectTArchiveBorrowDetailById(Long id) { + return this.tArchiveBorrowDetailMapper.selectTArchiveBorrowDetailById(id); + } + + + + + + + + + + public List selectTArchiveBorrowDetailList(TArchiveBorrowDetail tArchiveBorrowDetail) { + return this.tArchiveBorrowDetailMapper.selectTArchiveBorrowDetailList(tArchiveBorrowDetail); + } + + + + + + + + + + public int insertTArchiveBorrowDetail(TArchiveBorrowDetail tArchiveBorrowDetail) { + tArchiveBorrowDetail.setCreateTime(DateUtils.getNowDate()); + return this.tArchiveBorrowDetailMapper.insertTArchiveBorrowDetail(tArchiveBorrowDetail); + } + + + + + + + + + + public int updateTArchiveBorrowDetail(TArchiveBorrowDetail tArchiveBorrowDetail) { + return this.tArchiveBorrowDetailMapper.updateTArchiveBorrowDetail(tArchiveBorrowDetail); + } + + + + + + + + + + public int deleteTArchiveBorrowDetailByIds(String ids) { + return this.tArchiveBorrowDetailMapper.deleteTArchiveBorrowDetailByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTArchiveBorrowDetailById(Long id) { + return this.tArchiveBorrowDetailMapper.deleteTArchiveBorrowDetailById(id); + } + + + + + + + + + + public boolean saveBorrowDetail(String ownerId, String ids) { + boolean res = false; + try { + String[] sttr = ids.split(","); + for (int i = 0; i < sttr.length; i++) { + String[] idcode = sttr[i].split("-"); + String archiveId = idcode[0]; + String tableId = idcode[1]; + String sql = "select qzh,dh,tm,ys,bgqx,zrz,archiveTypeName,kfkz from t_ar_total where archiveId='" + archiveId + "' and tableId='" + tableId + "'"; + + List> datalist = this.executeSqlService.queryList(sql); + if (datalist.size() > 0 && datalist.get(0) != null) { + TArchiveBorrowDetail tArchiveBorrowDetail = new TArchiveBorrowDetail(); + tArchiveBorrowDetail.setOwnerId(Long.valueOf(Long.parseLong(ownerId))); + tArchiveBorrowDetail.setArchiveId(Long.valueOf(Long.parseLong(archiveId))); + tArchiveBorrowDetail.setTableId(tableId); + tArchiveBorrowDetail.setTableName((((LinkedHashMap)datalist.get(0)).get("archiveTypeName") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("archiveTypeName").toString()); + tArchiveBorrowDetail.setAuthor((((LinkedHashMap)datalist.get(0)).get("zrz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("zrz").toString()); + tArchiveBorrowDetail.setBgqx((((LinkedHashMap)datalist.get(0)).get("bgqx") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("bgqx").toString()); + tArchiveBorrowDetail.setDh((((LinkedHashMap)datalist.get(0)).get("dh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("dh").toString()); + tArchiveBorrowDetail.setFondsCode((((LinkedHashMap)datalist.get(0)).get("qzh") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("qzh").toString()); + tArchiveBorrowDetail.setIsOpen((((LinkedHashMap)datalist.get(0)).get("kfkz") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("kfkz").toString()); + tArchiveBorrowDetail.setTitleProper((((LinkedHashMap)datalist.get(0)).get("tm") == null) ? "" : ((LinkedHashMap)datalist.get(0)).get("tm").toString()); + tArchiveBorrowDetail.setPageNumber(Integer.valueOf((((LinkedHashMap)datalist.get(0)).get("ys") == null) ? 0 : Integer.parseInt(((LinkedHashMap)datalist.get(0)).get("ys").toString().equals("") ? "0" : ((LinkedHashMap)datalist.get(0)).get("ys").toString()))); + tArchiveBorrowDetail.setCreateTime(DateUtils.getNowDate()); + User currentUser = ShiroUtils.getSysUser(); + if (currentUser != null) { + tArchiveBorrowDetail.setCreateUser(currentUser.getUserName()); + } + this.tArchiveBorrowDetailMapper.insertTArchiveBorrowDetail(tArchiveBorrowDetail); + } else { + System.out.println("没有查询到数据"); + } + } + res = true; + } catch (Exception ex) { + System.out.println("ERROR出现异常:" + ex.getMessage()); + } + return res; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\detail\service\impl\TArchiveBorrowDetailServiceImpl.class diff --git a/src/main/java/com/archive/project/jyly/person/controller/TArchivePersonController.java b/src/main/java/com/archive/project/jyly/person/controller/TArchivePersonController.java index cb61c2b..a8fb710 100644 --- a/src/main/java/com/archive/project/jyly/person/controller/TArchivePersonController.java +++ b/src/main/java/com/archive/project/jyly/person/controller/TArchivePersonController.java @@ -1,131 +1,131 @@ -/* */ package com.archive.project.jyly.person.controller + package com.archive.project.jyly.person.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.jyly.person.domain.TArchivePerson; -/* */ import com.archive.project.jyly.person.service.ITArchivePersonService; -/* */ 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({"/jyly/person"}) -/* */ public class TArchivePersonController -/* */ extends BaseController -/* */ { -/* 32 */ private String prefix = "jyly/person"; -/* */ -/* */ @Autowired -/* */ private ITArchivePersonService tArchivePersonService; -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:view"}) -/* */ @GetMapping -/* */ public String person() { -/* 41 */ return this.prefix + "/person"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(TArchivePerson tArchivePerson) { -/* 52 */ startPage(); -/* 53 */ List list = this.tArchivePersonService.selectTArchivePersonList(tArchivePerson); -/* 54 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:export"}) -/* */ @Log(title = "查档者管理", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(TArchivePerson tArchivePerson) { -/* 66 */ List list = this.tArchivePersonService.selectTArchivePersonList(tArchivePerson); -/* 67 */ ExcelUtil util = new ExcelUtil(TArchivePerson.class); -/* 68 */ return util.exportExcel(list, "person"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 77 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:add"}) -/* */ @Log(title = "查档者管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(TArchivePerson tArchivePerson) { -/* 89 */ return toAjax(this.tArchivePersonService.insertTArchivePerson(tArchivePerson)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 98 */ TArchivePerson tArchivePerson = this.tArchivePersonService.selectTArchivePersonById(id); -/* 99 */ mmap.put("tArchivePerson", tArchivePerson); -/* 100 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:edit"}) -/* */ @Log(title = "查档者管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(TArchivePerson tArchivePerson) { -/* 112 */ return toAjax(this.tArchivePersonService.updateTArchivePerson(tArchivePerson)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"jyly:person:remove"}) -/* */ @Log(title = "查档者管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 124 */ return toAjax(this.tArchivePersonService.deleteTArchivePersonByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.jyly.person.domain.TArchivePerson; + import com.archive.project.jyly.person.service.ITArchivePersonService; + 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({"/jyly/person"}) + public class TArchivePersonController + extends BaseController + { + private String prefix = "jyly/person"; + + @Autowired + private ITArchivePersonService tArchivePersonService; + + + @RequiresPermissions({"jyly:person:view"}) + @GetMapping + public String person() { + return this.prefix + "/person"; + } + + + + + + @RequiresPermissions({"jyly:person:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(TArchivePerson tArchivePerson) { + startPage(); + List list = this.tArchivePersonService.selectTArchivePersonList(tArchivePerson); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"jyly:person:export"}) + @Log(title = "查档者管理", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(TArchivePerson tArchivePerson) { + List list = this.tArchivePersonService.selectTArchivePersonList(tArchivePerson); + ExcelUtil util = new ExcelUtil(TArchivePerson.class); + return util.exportExcel(list, "person"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"jyly:person:add"}) + @Log(title = "查档者管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(TArchivePerson tArchivePerson) { + return toAjax(this.tArchivePersonService.insertTArchivePerson(tArchivePerson)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + TArchivePerson tArchivePerson = this.tArchivePersonService.selectTArchivePersonById(id); + mmap.put("tArchivePerson", tArchivePerson); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"jyly:person:edit"}) + @Log(title = "查档者管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(TArchivePerson tArchivePerson) { + return toAjax(this.tArchivePersonService.updateTArchivePerson(tArchivePerson)); + } + + + + + + @RequiresPermissions({"jyly:person:remove"}) + @Log(title = "查档者管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.tArchivePersonService.deleteTArchivePersonByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\person\controller\TArchivePersonController.class diff --git a/src/main/java/com/archive/project/jyly/person/domain/TArchivePerson.java b/src/main/java/com/archive/project/jyly/person/domain/TArchivePerson.java index 7e7b23e..c17452c 100644 --- a/src/main/java/com/archive/project/jyly/person/domain/TArchivePerson.java +++ b/src/main/java/com/archive/project/jyly/person/domain/TArchivePerson.java @@ -1,269 +1,269 @@ -/* */ package com.archive.project.jyly.person.domain + package com.archive.project.jyly.person.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import com.fasterxml.jackson.annotation.JsonFormat; -/* */ import java.util.Date; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class TArchivePerson -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "状态") -/* */ private String status; -/* */ @Excel(name = "姓名") -/* */ private String name; -/* */ @Excel(name = "电话") -/* */ private String phone; -/* */ @Excel(name = "证件类型") -/* */ private String cardName; -/* */ @Excel(name = "证件号码") -/* */ private String cardNo; -/* */ @Excel(name = "性别") -/* */ private String gender; -/* */ @Excel(name = "住址") -/* */ private String address; -/* */ @Excel(name = "民族") -/* */ private String nation; -/* */ @JsonFormat(pattern = "yyyy-MM-dd") -/* */ @Excel(name = "生日", width = 30.0D, dateFormat = "yyyy-MM-dd") -/* */ private Date birthday; -/* */ @Excel(name = "最后访问日期") -/* */ private String lastDate; -/* */ @Excel(name = "所属数据ID") -/* */ private Long ownerId; -/* */ @Excel(name = "公司名称") -/* */ private String compantname; -/* */ @Excel(name = "登陆密码") -/* */ private String password; -/* */ @Excel(name = "授权状态") -/* */ private String enablestatus; -/* */ @Excel(name = "照片路径") -/* */ private String photo; -/* */ @Excel(name = "BASE64照片") -/* */ private String photobase64; -/* */ -/* */ public void setId(Long id) { -/* 90 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 95 */ return this.id; -/* */ } -/* */ -/* */ public void setStatus(String status) { -/* 99 */ this.status = status; -/* */ } -/* */ -/* */ -/* */ public String getStatus() { -/* 104 */ return this.status; -/* */ } -/* */ -/* */ public void setName(String name) { -/* 108 */ this.name = name; -/* */ } -/* */ -/* */ -/* */ public String getName() { -/* 113 */ return this.name; -/* */ } -/* */ -/* */ public void setPhone(String phone) { -/* 117 */ this.phone = phone; -/* */ } -/* */ -/* */ -/* */ public String getPhone() { -/* 122 */ return this.phone; -/* */ } -/* */ -/* */ public void setCardName(String cardName) { -/* 126 */ this.cardName = cardName; -/* */ } -/* */ -/* */ -/* */ public String getCardName() { -/* 131 */ return this.cardName; -/* */ } -/* */ -/* */ public void setCardNo(String cardNo) { -/* 135 */ this.cardNo = cardNo; -/* */ } -/* */ -/* */ -/* */ public String getCardNo() { -/* 140 */ return this.cardNo; -/* */ } -/* */ -/* */ public void setGender(String gender) { -/* 144 */ this.gender = gender; -/* */ } -/* */ -/* */ -/* */ public String getGender() { -/* 149 */ return this.gender; -/* */ } -/* */ -/* */ public void setAddress(String address) { -/* 153 */ this.address = address; -/* */ } -/* */ -/* */ -/* */ public String getAddress() { -/* 158 */ return this.address; -/* */ } -/* */ -/* */ public void setNation(String nation) { -/* 162 */ this.nation = nation; -/* */ } -/* */ -/* */ -/* */ public String getNation() { -/* 167 */ return this.nation; -/* */ } -/* */ -/* */ public void setBirthday(Date birthday) { -/* 171 */ this.birthday = birthday; -/* */ } -/* */ -/* */ -/* */ public Date getBirthday() { -/* 176 */ return this.birthday; -/* */ } -/* */ -/* */ public void setLastDate(String lastDate) { -/* 180 */ this.lastDate = lastDate; -/* */ } -/* */ -/* */ -/* */ public String getLastDate() { -/* 185 */ return this.lastDate; -/* */ } -/* */ -/* */ public void setOwnerId(Long ownerId) { -/* 189 */ this.ownerId = ownerId; -/* */ } -/* */ -/* */ -/* */ public Long getOwnerId() { -/* 194 */ return this.ownerId; -/* */ } -/* */ -/* */ public void setCompantname(String compantname) { -/* 198 */ this.compantname = compantname; -/* */ } -/* */ -/* */ -/* */ public String getCompantname() { -/* 203 */ return this.compantname; -/* */ } -/* */ -/* */ public void setPassword(String password) { -/* 207 */ this.password = password; -/* */ } -/* */ -/* */ -/* */ public String getPassword() { -/* 212 */ return this.password; -/* */ } -/* */ -/* */ public void setEnablestatus(String enablestatus) { -/* 216 */ this.enablestatus = enablestatus; -/* */ } -/* */ -/* */ -/* */ public String getEnablestatus() { -/* 221 */ return this.enablestatus; -/* */ } -/* */ -/* */ public void setPhoto(String photo) { -/* 225 */ this.photo = photo; -/* */ } -/* */ -/* */ -/* */ public String getPhoto() { -/* 230 */ return this.photo; -/* */ } -/* */ -/* */ public void setPhotobase64(String photobase64) { -/* 234 */ this.photobase64 = photobase64; -/* */ } -/* */ -/* */ -/* */ public String getPhotobase64() { -/* 239 */ return this.photobase64; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 244 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 245 */ .append("id", getId()) -/* 246 */ .append("status", getStatus()) -/* 247 */ .append("name", getName()) -/* 248 */ .append("phone", getPhone()) -/* 249 */ .append("cardName", getCardName()) -/* 250 */ .append("cardNo", getCardNo()) -/* 251 */ .append("gender", getGender()) -/* 252 */ .append("address", getAddress()) -/* 253 */ .append("nation", getNation()) -/* 254 */ .append("birthday", getBirthday()) -/* 255 */ .append("lastDate", getLastDate()) -/* 256 */ .append("ownerId", getOwnerId()) -/* 257 */ .append("compantname", getCompantname()) -/* 258 */ .append("password", getPassword()) -/* 259 */ .append("enablestatus", getEnablestatus()) -/* 260 */ .append("photo", getPhoto()) -/* 261 */ .append("photobase64", getPhotobase64()) -/* 262 */ .toString(); -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + import com.archive.framework.web.domain.BaseEntity; + import com.fasterxml.jackson.annotation.JsonFormat; + import java.util.Date; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class TArchivePerson + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "状态") + private String status; + @Excel(name = "姓名") + private String name; + @Excel(name = "电话") + private String phone; + @Excel(name = "证件类型") + private String cardName; + @Excel(name = "证件号码") + private String cardNo; + @Excel(name = "性别") + private String gender; + @Excel(name = "住址") + private String address; + @Excel(name = "民族") + private String nation; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "生日", width = 30.0D, dateFormat = "yyyy-MM-dd") + private Date birthday; + @Excel(name = "最后访问日期") + private String lastDate; + @Excel(name = "所属数据ID") + private Long ownerId; + @Excel(name = "公司名称") + private String compantname; + @Excel(name = "登陆密码") + private String password; + @Excel(name = "授权状态") + private String enablestatus; + @Excel(name = "照片路径") + private String photo; + @Excel(name = "BASE64照片") + private String photobase64; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setStatus(String status) { + this.status = status; + } + + + public String getStatus() { + return this.status; + } + + public void setName(String name) { + this.name = name; + } + + + public String getName() { + return this.name; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + + public String getPhone() { + return this.phone; + } + + public void setCardName(String cardName) { + this.cardName = cardName; + } + + + public String getCardName() { + return this.cardName; + } + + public void setCardNo(String cardNo) { + this.cardNo = cardNo; + } + + + public String getCardNo() { + return this.cardNo; + } + + public void setGender(String gender) { + this.gender = gender; + } + + + public String getGender() { + return this.gender; + } + + public void setAddress(String address) { + this.address = address; + } + + + public String getAddress() { + return this.address; + } + + public void setNation(String nation) { + this.nation = nation; + } + + + public String getNation() { + return this.nation; + } + + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + + public Date getBirthday() { + return this.birthday; + } + + public void setLastDate(String lastDate) { + this.lastDate = lastDate; + } + + + public String getLastDate() { + return this.lastDate; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + } + + + public Long getOwnerId() { + return this.ownerId; + } + + public void setCompantname(String compantname) { + this.compantname = compantname; + } + + + public String getCompantname() { + return this.compantname; + } + + public void setPassword(String password) { + this.password = password; + } + + + public String getPassword() { + return this.password; + } + + public void setEnablestatus(String enablestatus) { + this.enablestatus = enablestatus; + } + + + public String getEnablestatus() { + return this.enablestatus; + } + + public void setPhoto(String photo) { + this.photo = photo; + } + + + public String getPhoto() { + return this.photo; + } + + public void setPhotobase64(String photobase64) { + this.photobase64 = photobase64; + } + + + public String getPhotobase64() { + return this.photobase64; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("status", getStatus()) + .append("name", getName()) + .append("phone", getPhone()) + .append("cardName", getCardName()) + .append("cardNo", getCardNo()) + .append("gender", getGender()) + .append("address", getAddress()) + .append("nation", getNation()) + .append("birthday", getBirthday()) + .append("lastDate", getLastDate()) + .append("ownerId", getOwnerId()) + .append("compantname", getCompantname()) + .append("password", getPassword()) + .append("enablestatus", getEnablestatus()) + .append("photo", getPhoto()) + .append("photobase64", getPhotobase64()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\person\domain\TArchivePerson.class diff --git a/src/main/java/com/archive/project/jyly/person/service/impl/TArchivePersonServiceImpl.java b/src/main/java/com/archive/project/jyly/person/service/impl/TArchivePersonServiceImpl.java index b09c63b..0af8e53 100644 --- a/src/main/java/com/archive/project/jyly/person/service/impl/TArchivePersonServiceImpl.java +++ b/src/main/java/com/archive/project/jyly/person/service/impl/TArchivePersonServiceImpl.java @@ -1,98 +1,98 @@ -/* */ package com.archive.project.jyly.person.service.impl + package com.archive.project.jyly.person.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.project.jyly.person.domain.TArchivePerson; -/* */ import com.archive.project.jyly.person.mapper.TArchivePersonMapper; -/* */ import com.archive.project.jyly.person.service.ITArchivePersonService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class TArchivePersonServiceImpl -/* */ implements ITArchivePersonService -/* */ { -/* */ @Autowired -/* */ private TArchivePersonMapper tArchivePersonMapper; -/* */ -/* */ public TArchivePerson selectTArchivePersonById(Long id) { -/* 32 */ return this.tArchivePersonMapper.selectTArchivePersonById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectTArchivePersonList(TArchivePerson tArchivePerson) { -/* 44 */ return this.tArchivePersonMapper.selectTArchivePersonList(tArchivePerson); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertTArchivePerson(TArchivePerson tArchivePerson) { -/* 56 */ return this.tArchivePersonMapper.insertTArchivePerson(tArchivePerson); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateTArchivePerson(TArchivePerson tArchivePerson) { -/* 68 */ return this.tArchivePersonMapper.updateTArchivePerson(tArchivePerson); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchivePersonByIds(String ids) { -/* 80 */ return this.tArchivePersonMapper.deleteTArchivePersonByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteTArchivePersonById(Long id) { -/* 92 */ return this.tArchivePersonMapper.deleteTArchivePersonById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.project.jyly.person.domain.TArchivePerson; + import com.archive.project.jyly.person.mapper.TArchivePersonMapper; + import com.archive.project.jyly.person.service.ITArchivePersonService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + @Service + public class TArchivePersonServiceImpl + implements ITArchivePersonService + { + @Autowired + private TArchivePersonMapper tArchivePersonMapper; + + public TArchivePerson selectTArchivePersonById(Long id) { + return this.tArchivePersonMapper.selectTArchivePersonById(id); + } + + + + + + + + + + public List selectTArchivePersonList(TArchivePerson tArchivePerson) { + return this.tArchivePersonMapper.selectTArchivePersonList(tArchivePerson); + } + + + + + + + + + + public int insertTArchivePerson(TArchivePerson tArchivePerson) { + return this.tArchivePersonMapper.insertTArchivePerson(tArchivePerson); + } + + + + + + + + + + public int updateTArchivePerson(TArchivePerson tArchivePerson) { + return this.tArchivePersonMapper.updateTArchivePerson(tArchivePerson); + } + + + + + + + + + + public int deleteTArchivePersonByIds(String ids) { + return this.tArchivePersonMapper.deleteTArchivePersonByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteTArchivePersonById(Long id) { + return this.tArchivePersonMapper.deleteTArchivePersonById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\jyly\person\service\impl\TArchivePersonServiceImpl.class diff --git a/src/main/java/com/archive/project/monitor/server/domain/Sys.java b/src/main/java/com/archive/project/monitor/server/domain/Sys.java index b4c1cfc..075149f 100644 --- a/src/main/java/com/archive/project/monitor/server/domain/Sys.java +++ b/src/main/java/com/archive/project/monitor/server/domain/Sys.java @@ -1,87 +1,87 @@ -/* */ package com.archive.project.monitor.server.domain; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class Sys -/* */ { -/* */ private String computerName; -/* */ private String computerIp; -/* */ private String userDir; -/* */ private String osName; -/* */ private String osArch; -/* */ -/* */ public String getComputerName() { -/* 37 */ return this.computerName; -/* */ } -/* */ -/* */ -/* */ public void setComputerName(String computerName) { -/* 42 */ this.computerName = computerName; -/* */ } -/* */ -/* */ -/* */ public String getComputerIp() { -/* 47 */ return this.computerIp; -/* */ } -/* */ -/* */ -/* */ public void setComputerIp(String computerIp) { -/* 52 */ this.computerIp = computerIp; -/* */ } -/* */ -/* */ -/* */ public String getUserDir() { -/* 57 */ return this.userDir; -/* */ } -/* */ -/* */ -/* */ public void setUserDir(String userDir) { -/* 62 */ this.userDir = userDir; -/* */ } -/* */ -/* */ -/* */ public String getOsName() { -/* 67 */ return this.osName; -/* */ } -/* */ -/* */ -/* */ public void setOsName(String osName) { -/* 72 */ this.osName = osName; -/* */ } -/* */ -/* */ -/* */ public String getOsArch() { -/* 77 */ return this.osArch; -/* */ } -/* */ -/* */ -/* */ public void setOsArch(String osArch) { -/* 82 */ this.osArch = osArch; -/* */ } -/* */ } + package com.archive.project.monitor.server.domain; + + + + + + + + + + + + + + + + + + + + + + + + + + + public class Sys + { + private String computerName; + private String computerIp; + private String userDir; + private String osName; + private String osArch; + + public String getComputerName() { + return this.computerName; + } + + + public void setComputerName(String computerName) { + this.computerName = computerName; + } + + + public String getComputerIp() { + return this.computerIp; + } + + + public void setComputerIp(String computerIp) { + this.computerIp = computerIp; + } + + + public String getUserDir() { + return this.userDir; + } + + + public void setUserDir(String userDir) { + this.userDir = userDir; + } + + + public String getOsName() { + return this.osName; + } + + + public void setOsName(String osName) { + this.osName = osName; + } + + + public String getOsArch() { + return this.osArch; + } + + + public void setOsArch(String osArch) { + this.osArch = osArch; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\server\domain\Sys.class diff --git a/src/main/java/com/archive/project/monitor/server/domain/SysFile.java b/src/main/java/com/archive/project/monitor/server/domain/SysFile.java index 1386fd8..c55dbe8 100644 --- a/src/main/java/com/archive/project/monitor/server/domain/SysFile.java +++ b/src/main/java/com/archive/project/monitor/server/domain/SysFile.java @@ -1,117 +1,117 @@ -/* */ package com.archive.project.monitor.server.domain; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class SysFile -/* */ { -/* */ private String dirName; -/* */ private String sysTypeName; -/* */ private String typeName; -/* */ private String total; -/* */ private String free; -/* */ private String used; -/* */ private double usage; -/* */ -/* */ public String getDirName() { -/* 47 */ return this.dirName; -/* */ } -/* */ -/* */ -/* */ public void setDirName(String dirName) { -/* 52 */ this.dirName = dirName; -/* */ } -/* */ -/* */ -/* */ public String getSysTypeName() { -/* 57 */ return this.sysTypeName; -/* */ } -/* */ -/* */ -/* */ public void setSysTypeName(String sysTypeName) { -/* 62 */ this.sysTypeName = sysTypeName; -/* */ } -/* */ -/* */ -/* */ public String getTypeName() { -/* 67 */ return this.typeName; -/* */ } -/* */ -/* */ -/* */ public void setTypeName(String typeName) { -/* 72 */ this.typeName = typeName; -/* */ } -/* */ -/* */ -/* */ public String getTotal() { -/* 77 */ return this.total; -/* */ } -/* */ -/* */ -/* */ public void setTotal(String total) { -/* 82 */ this.total = total; -/* */ } -/* */ -/* */ -/* */ public String getFree() { -/* 87 */ return this.free; -/* */ } -/* */ -/* */ -/* */ public void setFree(String free) { -/* 92 */ this.free = free; -/* */ } -/* */ -/* */ -/* */ public String getUsed() { -/* 97 */ return this.used; -/* */ } -/* */ -/* */ -/* */ public void setUsed(String used) { -/* 102 */ this.used = used; -/* */ } -/* */ -/* */ -/* */ public double getUsage() { -/* 107 */ return this.usage; -/* */ } -/* */ -/* */ -/* */ public void setUsage(double usage) { -/* 112 */ this.usage = usage; -/* */ } -/* */ } + package com.archive.project.monitor.server.domain; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class SysFile + { + private String dirName; + private String sysTypeName; + private String typeName; + private String total; + private String free; + private String used; + private double usage; + + public String getDirName() { + return this.dirName; + } + + + public void setDirName(String dirName) { + this.dirName = dirName; + } + + + public String getSysTypeName() { + return this.sysTypeName; + } + + + public void setSysTypeName(String sysTypeName) { + this.sysTypeName = sysTypeName; + } + + + public String getTypeName() { + return this.typeName; + } + + + public void setTypeName(String typeName) { + this.typeName = typeName; + } + + + public String getTotal() { + return this.total; + } + + + public void setTotal(String total) { + this.total = total; + } + + + public String getFree() { + return this.free; + } + + + public void setFree(String free) { + this.free = free; + } + + + public String getUsed() { + return this.used; + } + + + public void setUsed(String used) { + this.used = used; + } + + + public double getUsage() { + return this.usage; + } + + + public void setUsage(double usage) { + this.usage = usage; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\server\domain\SysFile.class diff --git a/src/main/java/com/archive/project/system/user/controller/UserController.java b/src/main/java/com/archive/project/system/user/controller/UserController.java index bda9a13..951da09 100644 --- a/src/main/java/com/archive/project/system/user/controller/UserController.java +++ b/src/main/java/com/archive/project/system/user/controller/UserController.java @@ -1,282 +1,282 @@ -/* */ package com.archive.project.system.user.controller + package com.archive.project.system.user.controller ; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.common.utils.security.ShiroUtils; -/* */ 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.service.IPostService; -/* */ import com.archive.project.system.role.domain.Role; -/* */ import com.archive.project.system.role.service.IRoleService; -/* */ import com.archive.project.system.user.domain.User; -/* */ import com.archive.project.system.user.service.IUserService; -/* */ import java.util.List; -/* */ import java.util.stream.Collectors; -/* */ 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; -/* */ import org.springframework.web.multipart.MultipartFile; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/system/user"}) -/* */ public class UserController -/* */ extends BaseController -/* */ { -/* 40 */ private String prefix = "system/user"; -/* */ -/* */ @Autowired -/* */ private IUserService userService; -/* */ -/* */ @Autowired -/* */ private IRoleService roleService; -/* */ -/* */ @Autowired -/* */ private IPostService postService; -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:view"}) -/* */ @GetMapping -/* */ public String user() { -/* 55 */ return this.prefix + "/user"; -/* */ } -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(User user) { -/* 63 */ startPage(); -/* 64 */ List list = this.userService.selectUserList(user); -/* 65 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ @Log(title = "用户管理", businessType = BusinessType.EXPORT) -/* */ @RequiresPermissions({"system:user:export"}) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(User user) { -/* 74 */ List list = this.userService.selectUserList(user); -/* 75 */ ExcelUtil util = new ExcelUtil(User.class); -/* 76 */ return util.exportExcel(list, "用户数据"); -/* */ } -/* */ -/* */ -/* */ @Log(title = "用户管理", businessType = BusinessType.IMPORT) -/* */ @RequiresPermissions({"system:user:import"}) -/* */ @PostMapping({"/importData"}) -/* */ @ResponseBody -/* */ public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { -/* 85 */ ExcelUtil util = new ExcelUtil(User.class); -/* 86 */ List userList = util.importExcel(file.getInputStream()); -/* 87 */ String message = this.userService.importUser(userList, Boolean.valueOf(updateSupport)); -/* 88 */ return AjaxResult.success(message); -/* */ } -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:view"}) -/* */ @GetMapping({"/importTemplate"}) -/* */ @ResponseBody -/* */ public AjaxResult importTemplate() { -/* 96 */ ExcelUtil util = new ExcelUtil(User.class); -/* 97 */ return util.importTemplateExcel("用户数据"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 106 */ mmap.put("roles", this.roleService.selectRoleAll().stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); -/* 107 */ mmap.put("posts", this.postService.selectPostAll()); -/* 108 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:add"}) -/* */ @Log(title = "用户管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(@Validated User user) { -/* 120 */ if ("1".equals(this.userService.checkLoginNameUnique(user.getLoginName()))) -/* */ { -/* 122 */ return error("新增用户'" + user.getLoginName() + "'失败,登录账号已存在"); -/* */ } -/* 124 */ if (StringUtils.isNotEmpty(user.getPhonenumber()) && "1" -/* 125 */ .equals(this.userService.checkPhoneUnique(user))) -/* */ { -/* 127 */ return error("新增用户'" + user.getLoginName() + "'失败,手机号码已存在"); -/* */ } -/* 129 */ if (StringUtils.isNotEmpty(user.getEmail()) && "1" -/* 130 */ .equals(this.userService.checkEmailUnique(user))) -/* */ { -/* 132 */ return error("新增用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); -/* */ } -/* 134 */ return toAjax(this.userService.insertUser(user)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{userId}"}) -/* */ public String edit(@PathVariable("userId") Long userId, ModelMap mmap) { -/* 143 */ List roles = this.roleService.selectRolesByUserId(userId); -/* 144 */ mmap.put("user", this.userService.selectUserById(userId)); -/* 145 */ mmap.put("roles", User.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); -/* 146 */ mmap.put("posts", this.postService.selectPostsByUserId(userId)); -/* 147 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:edit"}) -/* */ @Log(title = "用户管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(@Validated User user) { -/* 159 */ this.userService.checkUserAllowed(user); -/* 160 */ if (StringUtils.isNotEmpty(user.getPhonenumber()) && "1" -/* 161 */ .equals(this.userService.checkPhoneUnique(user))) -/* */ { -/* 163 */ return error("修改用户'" + user.getLoginName() + "'失败,手机号码已存在"); -/* */ } -/* 165 */ if (StringUtils.isNotEmpty(user.getEmail()) && "1" -/* 166 */ .equals(this.userService.checkEmailUnique(user))) -/* */ { -/* 168 */ return error("修改用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); -/* */ } -/* 170 */ return toAjax(this.userService.updateUser(user)); -/* */ } -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:resetPwd"}) -/* */ @GetMapping({"/resetPwd/{userId}"}) -/* */ public String resetPwd(@PathVariable("userId") Long userId, ModelMap mmap) { -/* 177 */ mmap.put("user", this.userService.selectUserById(userId)); -/* 178 */ return this.prefix + "/resetPwd"; -/* */ } -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:resetPwd"}) -/* */ @Log(title = "重置密码", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/resetPwd"}) -/* */ @ResponseBody -/* */ public AjaxResult resetPwdSave(User user) { -/* 187 */ this.userService.checkUserAllowed(user); -/* 188 */ if (this.userService.resetUserPwd(user) > 0) { -/* */ -/* 190 */ if (ShiroUtils.getUserId().longValue() == user.getUserId().longValue()) -/* */ { -/* 192 */ setSysUser(this.userService.selectUserById(user.getUserId())); -/* */ } -/* 194 */ return success(); -/* */ } -/* 196 */ return error(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/authRole/{userId}"}) -/* */ public String authRole(@PathVariable("userId") Long userId, ModelMap mmap) { -/* 205 */ User user = this.userService.selectUserById(userId); -/* */ -/* 207 */ List roles = this.roleService.selectRolesByUserId(userId); -/* 208 */ mmap.put("user", user); -/* 209 */ mmap.put("roles", User.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); -/* 210 */ return this.prefix + "/authRole"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:add"}) -/* */ @Log(title = "用户管理", businessType = BusinessType.GRANT) -/* */ @PostMapping({"/authRole/insertAuthRole"}) -/* */ @ResponseBody -/* */ public AjaxResult insertAuthRole(Long userId, Long[] roleIds) { -/* 222 */ this.userService.insertUserAuth(userId, roleIds); -/* 223 */ return success(); -/* */ } -/* */ -/* */ -/* */ @RequiresPermissions({"system:user:remove"}) -/* */ @Log(title = "用户管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 232 */ return toAjax(this.userService.deleteUserByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/checkLoginNameUnique"}) -/* */ @ResponseBody -/* */ public String checkLoginNameUnique(User user) { -/* 242 */ return this.userService.checkLoginNameUnique(user.getLoginName()); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/checkPhoneUnique"}) -/* */ @ResponseBody -/* */ public String checkPhoneUnique(User user) { -/* 252 */ return this.userService.checkPhoneUnique(user); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/checkEmailUnique"}) -/* */ @ResponseBody -/* */ public String checkEmailUnique(User user) { -/* 262 */ return this.userService.checkEmailUnique(user); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Log(title = "用户管理", businessType = BusinessType.UPDATE) -/* */ @RequiresPermissions({"system:user:edit"}) -/* */ @PostMapping({"/changeStatus"}) -/* */ @ResponseBody -/* */ public AjaxResult changeStatus(User user) { -/* 274 */ this.userService.checkUserAllowed(user); -/* 275 */ return toAjax(this.userService.changeStatus(user)); -/* */ } -/* */ } + + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.common.utils.security.ShiroUtils; + 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.service.IPostService; + import com.archive.project.system.role.domain.Role; + import com.archive.project.system.role.service.IRoleService; + import com.archive.project.system.user.domain.User; + import com.archive.project.system.user.service.IUserService; + import java.util.List; + import java.util.stream.Collectors; + 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; + import org.springframework.web.multipart.MultipartFile; + + + + + + + @Controller + @RequestMapping({"/system/user"}) + public class UserController + extends BaseController + { + private String prefix = "system/user"; + + @Autowired + private IUserService userService; + + @Autowired + private IRoleService roleService; + + @Autowired + private IPostService postService; + + + @RequiresPermissions({"system:user:view"}) + @GetMapping + public String user() { + return this.prefix + "/user"; + } + + + @RequiresPermissions({"system:user:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(User user) { + startPage(); + List list = this.userService.selectUserList(user); + return getDataTable(list); + } + + + @Log(title = "用户管理", businessType = BusinessType.EXPORT) + @RequiresPermissions({"system:user:export"}) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(User user) { + List list = this.userService.selectUserList(user); + ExcelUtil util = new ExcelUtil(User.class); + return util.exportExcel(list, "用户数据"); + } + + + @Log(title = "用户管理", businessType = BusinessType.IMPORT) + @RequiresPermissions({"system:user:import"}) + @PostMapping({"/importData"}) + @ResponseBody + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { + ExcelUtil util = new ExcelUtil(User.class); + List userList = util.importExcel(file.getInputStream()); + String message = this.userService.importUser(userList, Boolean.valueOf(updateSupport)); + return AjaxResult.success(message); + } + + + @RequiresPermissions({"system:user:view"}) + @GetMapping({"/importTemplate"}) + @ResponseBody + public AjaxResult importTemplate() { + ExcelUtil util = new ExcelUtil(User.class); + return util.importTemplateExcel("用户数据"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + mmap.put("roles", this.roleService.selectRoleAll().stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + mmap.put("posts", this.postService.selectPostAll()); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"system:user:add"}) + @Log(title = "用户管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(@Validated User user) { + if ("1".equals(this.userService.checkLoginNameUnique(user.getLoginName()))) + { + return error("新增用户'" + user.getLoginName() + "'失败,登录账号已存在"); + } + if (StringUtils.isNotEmpty(user.getPhonenumber()) && "1" + .equals(this.userService.checkPhoneUnique(user))) + { + return error("新增用户'" + user.getLoginName() + "'失败,手机号码已存在"); + } + if (StringUtils.isNotEmpty(user.getEmail()) && "1" + .equals(this.userService.checkEmailUnique(user))) + { + return error("新增用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); + } + return toAjax(this.userService.insertUser(user)); + } + + + + + + @GetMapping({"/edit/{userId}"}) + public String edit(@PathVariable("userId") Long userId, ModelMap mmap) { + List roles = this.roleService.selectRolesByUserId(userId); + mmap.put("user", this.userService.selectUserById(userId)); + mmap.put("roles", User.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + mmap.put("posts", this.postService.selectPostsByUserId(userId)); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"system:user:edit"}) + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(@Validated User user) { + this.userService.checkUserAllowed(user); + if (StringUtils.isNotEmpty(user.getPhonenumber()) && "1" + .equals(this.userService.checkPhoneUnique(user))) + { + return error("修改用户'" + user.getLoginName() + "'失败,手机号码已存在"); + } + if (StringUtils.isNotEmpty(user.getEmail()) && "1" + .equals(this.userService.checkEmailUnique(user))) + { + return error("修改用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); + } + return toAjax(this.userService.updateUser(user)); + } + + + @RequiresPermissions({"system:user:resetPwd"}) + @GetMapping({"/resetPwd/{userId}"}) + public String resetPwd(@PathVariable("userId") Long userId, ModelMap mmap) { + mmap.put("user", this.userService.selectUserById(userId)); + return this.prefix + "/resetPwd"; + } + + + @RequiresPermissions({"system:user:resetPwd"}) + @Log(title = "重置密码", businessType = BusinessType.UPDATE) + @PostMapping({"/resetPwd"}) + @ResponseBody + public AjaxResult resetPwdSave(User user) { + this.userService.checkUserAllowed(user); + if (this.userService.resetUserPwd(user) > 0) { + + if (ShiroUtils.getUserId().longValue() == user.getUserId().longValue()) + { + setSysUser(this.userService.selectUserById(user.getUserId())); + } + return success(); + } + return error(); + } + + + + + + @GetMapping({"/authRole/{userId}"}) + public String authRole(@PathVariable("userId") Long userId, ModelMap mmap) { + User user = this.userService.selectUserById(userId); + + List roles = this.roleService.selectRolesByUserId(userId); + mmap.put("user", user); + mmap.put("roles", User.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + return this.prefix + "/authRole"; + } + + + + + + @RequiresPermissions({"system:user:add"}) + @Log(title = "用户管理", businessType = BusinessType.GRANT) + @PostMapping({"/authRole/insertAuthRole"}) + @ResponseBody + public AjaxResult insertAuthRole(Long userId, Long[] roleIds) { + this.userService.insertUserAuth(userId, roleIds); + return success(); + } + + + @RequiresPermissions({"system:user:remove"}) + @Log(title = "用户管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.userService.deleteUserByIds(ids)); + } + + + + + + @PostMapping({"/checkLoginNameUnique"}) + @ResponseBody + public String checkLoginNameUnique(User user) { + return this.userService.checkLoginNameUnique(user.getLoginName()); + } + + + + + + @PostMapping({"/checkPhoneUnique"}) + @ResponseBody + public String checkPhoneUnique(User user) { + return this.userService.checkPhoneUnique(user); + } + + + + + + @PostMapping({"/checkEmailUnique"}) + @ResponseBody + public String checkEmailUnique(User user) { + return this.userService.checkEmailUnique(user); + } + + + + + + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @RequiresPermissions({"system:user:edit"}) + @PostMapping({"/changeStatus"}) + @ResponseBody + public AjaxResult changeStatus(User user) { + this.userService.checkUserAllowed(user); + return toAjax(this.userService.changeStatus(user)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\controller\UserController.class diff --git a/src/main/java/com/archive/project/system/user/domain/User.java b/src/main/java/com/archive/project/system/user/domain/User.java index 0f0d129..624528b 100644 --- a/src/main/java/com/archive/project/system/user/domain/User.java +++ b/src/main/java/com/archive/project/system/user/domain/User.java @@ -1,402 +1,402 @@ -/* */ package com.archive.project.system.user.domain + package com.archive.project.system.user.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType; + + import com.archive.framework.aspectj.lang.annotation.ColumnType; import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.aspectj.lang.annotation.Excels; -/* */ import com.archive.framework.aspectj.lang.annotation.Type; + import com.archive.framework.aspectj.lang.annotation.Excels; + import com.archive.framework.aspectj.lang.annotation.Type; import com.archive.framework.web.domain.BaseEntity; -/* */ import com.archive.project.system.dept.domain.Dept; -/* */ import com.archive.project.system.role.domain.Role; -/* */ import com.fasterxml.jackson.annotation.JsonIgnore; -/* */ import java.util.Date; -/* */ import java.util.List; -/* */ import javax.validation.constraints.Email; -/* */ import javax.validation.constraints.NotBlank; -/* */ import javax.validation.constraints.Size; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ import org.apache.shiro.crypto.SecureRandomNumberGenerator; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class User -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") -/* */ private Long userId; -/* */ @Excel(name = "部门编号", type = Type.IMPORT) -/* */ private Long deptId; -/* */ private Long parentId; -/* */ private Long roleId; -/* */ @Excel(name = "登录名称") -/* */ private String loginName; -/* */ @Excel(name = "用户名称") -/* */ private String userName; -/* */ private String userType; -/* */ @Excel(name = "用户邮箱") -/* */ private String email; -/* */ @Excel(name = "手机号码") -/* */ private String phonenumber; -/* */ @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") -/* */ private String sex; -/* */ private String avatar; -/* */ private String password; -/* */ private String salt; -/* */ @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用") -/* */ private String status; -/* */ private String delFlag; -/* */ @Excel(name = "最后登录IP", type = Type.EXPORT) -/* */ private String loginIp; -/* */ @Excel(name = "最后登录时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) -/* */ private Date loginDate; -/* */ private Date pwdUpdateDate; -/* */ @Excels({@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT), @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)}) -/* */ private Dept dept; -/* */ private List roles; -/* */ private Long[] roleIds; -/* */ private Long[] postIds; -/* */ -/* */ public User() {} -/* */ -/* */ public User(Long userId) { -/* 113 */ this.userId = userId; -/* */ } -/* */ -/* */ -/* */ public Long getUserId() { -/* 118 */ return this.userId; -/* */ } -/* */ -/* */ -/* */ public void setUserId(Long userId) { -/* 123 */ this.userId = userId; -/* */ } -/* */ -/* */ -/* */ public boolean isAdmin() { -/* 128 */ return isAdmin(this.userId); -/* */ } -/* */ -/* */ -/* */ public static boolean isAdmin(Long userId) { -/* 133 */ return (userId != null && 1L == userId.longValue()); -/* */ } -/* */ -/* */ -/* */ public Long getDeptId() { -/* 138 */ return this.deptId; -/* */ } -/* */ -/* */ -/* */ public void setDeptId(Long deptId) { -/* 143 */ this.deptId = deptId; -/* */ } -/* */ -/* */ -/* */ public Long getParentId() { -/* 148 */ return this.parentId; -/* */ } -/* */ -/* */ -/* */ public void setParentId(Long parentId) { -/* 153 */ this.parentId = parentId; -/* */ } -/* */ -/* */ -/* */ public Long getRoleId() { -/* 158 */ return this.roleId; -/* */ } -/* */ -/* */ -/* */ public void setRoleId(Long roleId) { -/* 163 */ this.roleId = roleId; -/* */ } -/* */ -/* */ -/* */ @NotBlank(message = "登录账号不能为空") -/* */ @Size(min = 0, max = 30, message = "登录账号长度不能超过30个字符") -/* */ public String getLoginName() { -/* 170 */ return this.loginName; -/* */ } -/* */ -/* */ -/* */ public void setLoginName(String loginName) { -/* 175 */ this.loginName = loginName; -/* */ } -/* */ -/* */ -/* */ @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") -/* */ public String getUserName() { -/* 181 */ return this.userName; -/* */ } -/* */ -/* */ -/* */ public void setUserName(String userName) { -/* 186 */ this.userName = userName; -/* */ } -/* */ -/* */ -/* */ public String getUserType() { -/* 191 */ return this.userType; -/* */ } -/* */ -/* */ -/* */ public void setUserType(String userType) { -/* 196 */ this.userType = userType; -/* */ } -/* */ -/* */ -/* */ @Email(message = "邮箱格式不正确") -/* */ @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") -/* */ public String getEmail() { -/* 203 */ return this.email; -/* */ } -/* */ -/* */ -/* */ public void setEmail(String email) { -/* 208 */ this.email = email; -/* */ } -/* */ -/* */ -/* */ @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符") -/* */ public String getPhonenumber() { -/* 214 */ return this.phonenumber; -/* */ } -/* */ -/* */ -/* */ public void setPhonenumber(String phonenumber) { -/* 219 */ this.phonenumber = phonenumber; -/* */ } -/* */ -/* */ -/* */ public String getSex() { -/* 224 */ return this.sex; -/* */ } -/* */ -/* */ -/* */ public void setSex(String sex) { -/* 229 */ this.sex = sex; -/* */ } -/* */ -/* */ -/* */ public String getAvatar() { -/* 234 */ return this.avatar; -/* */ } -/* */ -/* */ -/* */ public void setAvatar(String avatar) { -/* 239 */ this.avatar = avatar; -/* */ } -/* */ -/* */ -/* */ @JsonIgnore -/* */ public String getPassword() { -/* 245 */ return this.password; -/* */ } -/* */ -/* */ -/* */ public void setPassword(String password) { -/* 250 */ this.password = password; -/* */ } -/* */ -/* */ -/* */ public String getSalt() { -/* 255 */ return this.salt; -/* */ } -/* */ -/* */ -/* */ public void setSalt(String salt) { -/* 260 */ this.salt = salt; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void randomSalt() { -/* 269 */ SecureRandomNumberGenerator secureRandom = new SecureRandomNumberGenerator(); -/* 270 */ String hex = secureRandom.nextBytes(3).toHex(); -/* 271 */ setSalt(hex); -/* */ } -/* */ -/* */ -/* */ public String getStatus() { -/* 276 */ return this.status; -/* */ } -/* */ -/* */ -/* */ public void setStatus(String status) { -/* 281 */ this.status = status; -/* */ } -/* */ -/* */ -/* */ public String getDelFlag() { -/* 286 */ return this.delFlag; -/* */ } -/* */ -/* */ -/* */ public void setDelFlag(String delFlag) { -/* 291 */ this.delFlag = delFlag; -/* */ } -/* */ -/* */ -/* */ public String getLoginIp() { -/* 296 */ return this.loginIp; -/* */ } -/* */ -/* */ -/* */ public void setLoginIp(String loginIp) { -/* 301 */ this.loginIp = loginIp; -/* */ } -/* */ -/* */ -/* */ public Date getLoginDate() { -/* 306 */ return this.loginDate; -/* */ } -/* */ -/* */ -/* */ public void setLoginDate(Date loginDate) { -/* 311 */ this.loginDate = loginDate; -/* */ } -/* */ -/* */ -/* */ public Date getPwdUpdateDate() { -/* 316 */ return this.pwdUpdateDate; -/* */ } -/* */ -/* */ -/* */ public void setPwdUpdateDate(Date pwdUpdateDate) { -/* 321 */ this.pwdUpdateDate = pwdUpdateDate; -/* */ } -/* */ -/* */ -/* */ public Dept getDept() { -/* 326 */ if (this.dept == null) -/* */ { -/* 328 */ this.dept = new Dept(); -/* */ } -/* 330 */ return this.dept; -/* */ } -/* */ -/* */ -/* */ public void setDept(Dept dept) { -/* 335 */ this.dept = dept; -/* */ } -/* */ -/* */ -/* */ public List getRoles() { -/* 340 */ return this.roles; -/* */ } -/* */ -/* */ -/* */ public void setRoles(List roles) { -/* 345 */ this.roles = roles; -/* */ } -/* */ -/* */ -/* */ public Long[] getRoleIds() { -/* 350 */ return this.roleIds; -/* */ } -/* */ -/* */ -/* */ public void setRoleIds(Long[] roleIds) { -/* 355 */ this.roleIds = roleIds; -/* */ } -/* */ -/* */ -/* */ public Long[] getPostIds() { -/* 360 */ return this.postIds; -/* */ } -/* */ -/* */ -/* */ public void setPostIds(Long[] postIds) { -/* 365 */ this.postIds = postIds; -/* */ } -/* */ -/* */ @Override -/* */ public String toString() { -/* 370 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 371 */ .append("userId", getUserId()) -/* 372 */ .append("deptId", getDeptId()) -/* 373 */ .append("loginName", getLoginName()) -/* 374 */ .append("userName", getUserName()) -/* 375 */ .append("userType", getUserType()) -/* 376 */ .append("email", getEmail()) -/* 377 */ .append("phonenumber", getPhonenumber()) -/* 378 */ .append("sex", getSex()) -/* 379 */ .append("avatar", getAvatar()) -/* 380 */ .append("password", getPassword()) -/* 381 */ .append("salt", getSalt()) -/* 382 */ .append("status", getStatus()) -/* 383 */ .append("delFlag", getDelFlag()) -/* 384 */ .append("loginIp", getLoginIp()) -/* 385 */ .append("loginDate", getLoginDate()) -/* 386 */ .append("createBy", getCreateBy()) -/* 387 */ .append("createTime", getCreateTime()) -/* 388 */ .append("updateBy", getUpdateBy()) -/* 389 */ .append("updateTime", getUpdateTime()) -/* 390 */ .append("remark", getRemark()) -/* 391 */ .append("dept", getDept()) -/* 392 */ .append("roles", getRoles()) -/* 393 */ .toString(); -/* */ } -/* */ } + import com.archive.project.system.dept.domain.Dept; + import com.archive.project.system.role.domain.Role; + import com.fasterxml.jackson.annotation.JsonIgnore; + import java.util.Date; + import java.util.List; + import javax.validation.constraints.Email; + import javax.validation.constraints.NotBlank; + import javax.validation.constraints.Size; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + import org.apache.shiro.crypto.SecureRandomNumberGenerator; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class User + extends BaseEntity + { + private static final long serialVersionUID = 1L; + @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") + private Long userId; + @Excel(name = "部门编号", type = Type.IMPORT) + private Long deptId; + private Long parentId; + private Long roleId; + @Excel(name = "登录名称") + private String loginName; + @Excel(name = "用户名称") + private String userName; + private String userType; + @Excel(name = "用户邮箱") + private String email; + @Excel(name = "手机号码") + private String phonenumber; + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String sex; + private String avatar; + private String password; + private String salt; + @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用") + private String status; + private String delFlag; + @Excel(name = "最后登录IP", type = Type.EXPORT) + private String loginIp; + @Excel(name = "最后登录时间", width = 30.0D, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) + private Date loginDate; + private Date pwdUpdateDate; + @Excels({@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT), @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)}) + private Dept dept; + private List roles; + private Long[] roleIds; + private Long[] postIds; + + public User() {} + + public User(Long userId) { + this.userId = userId; + } + + + public Long getUserId() { + return this.userId; + } + + + public void setUserId(Long userId) { + this.userId = userId; + } + + + public boolean isAdmin() { + return isAdmin(this.userId); + } + + + public static boolean isAdmin(Long userId) { + return (userId != null && 1L == userId.longValue()); + } + + + public Long getDeptId() { + return this.deptId; + } + + + public void setDeptId(Long deptId) { + this.deptId = deptId; + } + + + public Long getParentId() { + return this.parentId; + } + + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + + public Long getRoleId() { + return this.roleId; + } + + + public void setRoleId(Long roleId) { + this.roleId = roleId; + } + + + @NotBlank(message = "登录账号不能为空") + @Size(min = 0, max = 30, message = "登录账号长度不能超过30个字符") + public String getLoginName() { + return this.loginName; + } + + + public void setLoginName(String loginName) { + this.loginName = loginName; + } + + + @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") + public String getUserName() { + return this.userName; + } + + + public void setUserName(String userName) { + this.userName = userName; + } + + + public String getUserType() { + return this.userType; + } + + + public void setUserType(String userType) { + this.userType = userType; + } + + + @Email(message = "邮箱格式不正确") + @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") + public String getEmail() { + return this.email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符") + public String getPhonenumber() { + return this.phonenumber; + } + + + public void setPhonenumber(String phonenumber) { + this.phonenumber = phonenumber; + } + + + public String getSex() { + return this.sex; + } + + + public void setSex(String sex) { + this.sex = sex; + } + + + public String getAvatar() { + return this.avatar; + } + + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + + @JsonIgnore + public String getPassword() { + return this.password; + } + + + public void setPassword(String password) { + this.password = password; + } + + + public String getSalt() { + return this.salt; + } + + + public void setSalt(String salt) { + this.salt = salt; + } + + + + + + + public void randomSalt() { + SecureRandomNumberGenerator secureRandom = new SecureRandomNumberGenerator(); + String hex = secureRandom.nextBytes(3).toHex(); + setSalt(hex); + } + + + public String getStatus() { + return this.status; + } + + + public void setStatus(String status) { + this.status = status; + } + + + public String getDelFlag() { + return this.delFlag; + } + + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag; + } + + + public String getLoginIp() { + return this.loginIp; + } + + + public void setLoginIp(String loginIp) { + this.loginIp = loginIp; + } + + + public Date getLoginDate() { + return this.loginDate; + } + + + public void setLoginDate(Date loginDate) { + this.loginDate = loginDate; + } + + + public Date getPwdUpdateDate() { + return this.pwdUpdateDate; + } + + + public void setPwdUpdateDate(Date pwdUpdateDate) { + this.pwdUpdateDate = pwdUpdateDate; + } + + + public Dept getDept() { + if (this.dept == null) + { + this.dept = new Dept(); + } + return this.dept; + } + + + public void setDept(Dept dept) { + this.dept = dept; + } + + + public List getRoles() { + return this.roles; + } + + + public void setRoles(List roles) { + this.roles = roles; + } + + + public Long[] getRoleIds() { + return this.roleIds; + } + + + public void setRoleIds(Long[] roleIds) { + this.roleIds = roleIds; + } + + + public Long[] getPostIds() { + return this.postIds; + } + + + public void setPostIds(Long[] postIds) { + this.postIds = postIds; + } + + @Override + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("userId", getUserId()) + .append("deptId", getDeptId()) + .append("loginName", getLoginName()) + .append("userName", getUserName()) + .append("userType", getUserType()) + .append("email", getEmail()) + .append("phonenumber", getPhonenumber()) + .append("sex", getSex()) + .append("avatar", getAvatar()) + .append("password", getPassword()) + .append("salt", getSalt()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("loginIp", getLoginIp()) + .append("loginDate", getLoginDate()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("dept", getDept()) + .append("roles", getRoles()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\User.class diff --git a/src/main/java/com/archive/project/tool/swagger/SwaggerController.java b/src/main/java/com/archive/project/tool/swagger/SwaggerController.java index be94988..cb29598 100644 --- a/src/main/java/com/archive/project/tool/swagger/SwaggerController.java +++ b/src/main/java/com/archive/project/tool/swagger/SwaggerController.java @@ -1,29 +1,29 @@ -/* */ package com.archive.project.tool.swagger + package com.archive.project.tool.swagger ; -/* */ -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/tool/swagger"}) -/* */ public class SwaggerController -/* */ extends BaseController -/* */ { -/* */ @RequiresPermissions({"tool:swagger:view"}) -/* */ @GetMapping -/* */ public String index() { -/* 22 */ return redirect("/swagger-ui.html"); -/* */ } -/* */ } + + import com.archive.framework.web.controller.BaseController; + import org.apache.shiro.authz.annotation.RequiresPermissions; + import org.springframework.stereotype.Controller; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.RequestMapping; + + + + + + + @Controller + @RequestMapping({"/tool/swagger"}) + public class SwaggerController + extends BaseController + { + @RequiresPermissions({"tool:swagger:view"}) + @GetMapping + public String index() { + return redirect("/swagger-ui.html"); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\swagger\SwaggerController.class diff --git a/src/main/java/com/archive/project/tool/swagger/TestController.java b/src/main/java/com/archive/project/tool/swagger/TestController.java index b4fef95..a07cb80 100644 --- a/src/main/java/com/archive/project/tool/swagger/TestController.java +++ b/src/main/java/com/archive/project/tool/swagger/TestController.java @@ -1,110 +1,110 @@ -/* */ package com.archive.project.tool.swagger + package com.archive.project.tool.swagger ; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.project.tool.swagger.UserEntity; -/* */ import io.swagger.annotations.Api; -/* */ import io.swagger.annotations.ApiImplicitParam; -/* */ import io.swagger.annotations.ApiOperation; -/* */ import java.util.ArrayList; -/* */ import java.util.LinkedHashMap; -/* */ import java.util.List; -/* */ import java.util.Map; -/* */ import org.springframework.web.bind.annotation.DeleteMapping; -/* */ 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.PutMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.RestController; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Api("用户信息管理") -/* */ @RestController -/* */ @RequestMapping({"/test/user"}) -/* */ public class TestController -/* */ extends BaseController -/* */ { -/* */ public TestController() { -/* 35 */ users.put(Integer.valueOf(1), new UserEntity(Integer.valueOf(1), "admin", "admin123", "15888888888")); -/* 36 */ users.put(Integer.valueOf(2), new UserEntity(Integer.valueOf(2), "ry", "admin123", "15666666666")); -/* */ } -/* */ -/* */ -/* */ @ApiOperation("获取用户列表") -/* */ @GetMapping({"/list"}) -/* */ public AjaxResult userList() { -/* 43 */ List userList = new ArrayList<>(users.values()); -/* 44 */ return AjaxResult.success(userList); -/* */ } -/* */ private static final Map users = new LinkedHashMap<>(); -/* */ -/* */ @ApiOperation("获取用户详细") -/* */ @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") -/* */ @GetMapping({"/{userId}"}) -/* */ public AjaxResult getUser(@PathVariable Integer userId) { -/* 52 */ if (!users.isEmpty() && users.containsKey(userId)) -/* */ { -/* 54 */ return AjaxResult.success(users.get(userId)); -/* */ } -/* */ -/* */ -/* 58 */ return error("用户不存在"); -/* */ } -/* */ -/* */ -/* */ -/* */ @ApiOperation("新增用户") -/* */ @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") -/* */ @PostMapping({"/save"}) -/* */ public AjaxResult save(UserEntity user) { -/* 67 */ if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) -/* */ { -/* 69 */ return error("用户ID不能为空"); -/* */ } -/* 71 */ return AjaxResult.success(users.put(user.getUserId(), user)); -/* */ } -/* */ -/* */ -/* */ @ApiOperation("更新用户") -/* */ @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") -/* */ @PutMapping({"/update"}) -/* */ public AjaxResult update(UserEntity user) { -/* 79 */ if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) -/* */ { -/* 81 */ return error("用户ID不能为空"); -/* */ } -/* 83 */ if (users.isEmpty() || !users.containsKey(user.getUserId())) -/* */ { -/* 85 */ return error("用户不存在"); -/* */ } -/* 87 */ users.remove(user.getUserId()); -/* 88 */ return AjaxResult.success(users.put(user.getUserId(), user)); -/* */ } -/* */ -/* */ -/* */ @ApiOperation("删除用户信息") -/* */ @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") -/* */ @DeleteMapping({"/{userId}"}) -/* */ public AjaxResult delete(@PathVariable Integer userId) { -/* 96 */ if (!users.isEmpty() && users.containsKey(userId)) { -/* */ -/* 98 */ users.remove(userId); -/* 99 */ return success(); -/* */ } -/* */ -/* */ -/* 103 */ return error("用户不存在"); -/* */ } -/* */ } + + import com.archive.common.utils.StringUtils; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.project.tool.swagger.UserEntity; + import io.swagger.annotations.Api; + import io.swagger.annotations.ApiImplicitParam; + import io.swagger.annotations.ApiOperation; + import java.util.ArrayList; + import java.util.LinkedHashMap; + import java.util.List; + import java.util.Map; + import org.springframework.web.bind.annotation.DeleteMapping; + 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.PutMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.RestController; + + + + + + + + @Api("用户信息管理") + @RestController + @RequestMapping({"/test/user"}) + public class TestController + extends BaseController + { + public TestController() { + users.put(Integer.valueOf(1), new UserEntity(Integer.valueOf(1), "admin", "admin123", "15888888888")); + users.put(Integer.valueOf(2), new UserEntity(Integer.valueOf(2), "ry", "admin123", "15666666666")); + } + + + @ApiOperation("获取用户列表") + @GetMapping({"/list"}) + public AjaxResult userList() { + List userList = new ArrayList<>(users.values()); + return AjaxResult.success(userList); + } + private static final Map users = new LinkedHashMap<>(); + + @ApiOperation("获取用户详细") + @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") + @GetMapping({"/{userId}"}) + public AjaxResult getUser(@PathVariable Integer userId) { + if (!users.isEmpty() && users.containsKey(userId)) + { + return AjaxResult.success(users.get(userId)); + } + + + return error("用户不存在"); + } + + + + @ApiOperation("新增用户") + @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") + @PostMapping({"/save"}) + public AjaxResult save(UserEntity user) { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) + { + return error("用户ID不能为空"); + } + return AjaxResult.success(users.put(user.getUserId(), user)); + } + + + @ApiOperation("更新用户") + @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") + @PutMapping({"/update"}) + public AjaxResult update(UserEntity user) { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) + { + return error("用户ID不能为空"); + } + if (users.isEmpty() || !users.containsKey(user.getUserId())) + { + return error("用户不存在"); + } + users.remove(user.getUserId()); + return AjaxResult.success(users.put(user.getUserId(), user)); + } + + + @ApiOperation("删除用户信息") + @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") + @DeleteMapping({"/{userId}"}) + public AjaxResult delete(@PathVariable Integer userId) { + if (!users.isEmpty() && users.containsKey(userId)) { + + users.remove(userId); + return success(); + } + + + return error("用户不存在"); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\swagger\TestController.class diff --git a/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css b/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css index f5c4d92..dd5e58d 100644 --- a/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css +++ b/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css @@ -544,10 +544,10 @@ .note-editor .dl-horizontal dd:before, .note-editor .dl-horizontal dd:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .dl-horizontal dd:after { @@ -556,10 +556,10 @@ .note-editor .dl-horizontal dd:before, .note-editor .dl-horizontal dd:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .dl-horizontal dd:after { @@ -672,10 +672,10 @@ .note-editor .container:before, .note-editor .container:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .container:after { @@ -684,10 +684,10 @@ .note-editor .container:before, .note-editor .container:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .container:after { @@ -700,10 +700,10 @@ .note-editor .row:before, .note-editor .row:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .row:after { @@ -712,10 +712,10 @@ .note-editor .row:before, .note-editor .row:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .row:after { @@ -1837,10 +1837,10 @@ textarea.note-editor .input-lg { .note-editor .form-horizontal .form-group:before, .note-editor .form-horizontal .form-group:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .form-horizontal .form-group:after { @@ -1849,10 +1849,10 @@ textarea.note-editor .input-lg { .note-editor .form-horizontal .form-group:before, .note-editor .form-horizontal .form-group:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .form-horizontal .form-group:after { @@ -3019,10 +3019,10 @@ fieldset[disabled] .note-editor .btn-link:focus { .note-editor .btn-toolbar:before, .note-editor .btn-toolbar:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .btn-toolbar:after { @@ -3031,10 +3031,10 @@ fieldset[disabled] .note-editor .btn-link:focus { .note-editor .btn-toolbar:before, .note-editor .btn-toolbar:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .btn-toolbar:after { @@ -3134,10 +3134,10 @@ fieldset[disabled] .note-editor .btn-link:focus { .note-editor .btn-group-vertical > .btn-group:before, .note-editor .btn-group-vertical > .btn-group:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .btn-group-vertical > .btn-group:after { @@ -3146,10 +3146,10 @@ fieldset[disabled] .note-editor .btn-link:focus { .note-editor .btn-group-vertical > .btn-group:before, .note-editor .btn-group-vertical > .btn-group:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .btn-group-vertical > .btn-group:after { @@ -3350,10 +3350,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .nav:before, .note-editor .nav:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .nav:after { @@ -3362,10 +3362,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .nav:before, .note-editor .nav:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .nav:after { @@ -3580,10 +3580,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar:before, .note-editor .navbar:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar:after { @@ -3592,10 +3592,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar:before, .note-editor .navbar:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar:after { @@ -3609,10 +3609,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar-header:before, .note-editor .navbar-header:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar-header:after { @@ -3621,10 +3621,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar-header:before, .note-editor .navbar-header:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar-header:after { @@ -3647,10 +3647,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar-collapse:before, .note-editor .navbar-collapse:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar-collapse:after { @@ -3659,10 +3659,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .navbar-collapse:before, .note-editor .navbar-collapse:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .navbar-collapse:after { @@ -4222,10 +4222,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .pager:before, .note-editor .pager:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .pager:after { @@ -4234,10 +4234,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .pager:before, .note-editor .pager:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .pager:after { @@ -4721,10 +4721,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .panel-body:before, .note-editor .panel-body:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .panel-body:after { @@ -4733,10 +4733,10 @@ textarea.note-editor .input-group-sm > .input-group-btn > .btn { .note-editor .panel-body:before, .note-editor .panel-body:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .note-editor .panel-body:after { @@ -5072,10 +5072,10 @@ button.note-editor .close { .modal-footer:before, .modal-footer:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .modal-footer:after { @@ -5084,10 +5084,10 @@ button.note-editor .close { .modal-footer:before, .modal-footer:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .modal-footer:after { @@ -5516,10 +5516,10 @@ button.note-editor .close { .clearfix:before, .clearfix:after { content: " "; - /* 1 */ + display: table; - /* 2 */ + } .clearfix:after {