From 29cd0f7c3a098f3b2dafff2ba0be2f756e81f340 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 21 May 2025 08:53:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/archive/common/utils/CookieUtils.java | 276 +-- .../archive/common/utils/text/CharsetKit.java | 174 +- .../archive/common/utils/text/Convert.java | 1998 ++++++++--------- .../aspectj/lang/annotation/ColumnType.java | 328 +-- .../framework/web/service/ConfigService.java | 56 +- .../project/common/CommonController.java | 240 +- .../controller/ColumnFileController.java | 286 +-- .../controller/ColumnFolderController.java | 286 +-- .../controller/ColumnInfoController.java | 286 +-- .../dasz/basecolumn/domain/ColumnFile.java | 406 ++-- .../dasz/basecolumn/domain/ColumnFolder.java | 406 ++-- .../dasz/basecolumn/domain/ColumnInfo.java | 406 ++-- .../impl/ColumnDocumentServiceImpl.java | 216 +- .../service/impl/ColumnFileServiceImpl.java | 216 +- .../service/impl/ColumnFolderServiceImpl.java | 216 +- .../service/impl/ColumnInfoServiceImpl.java | 214 +- .../config/controller/ConfigController.java | 308 +-- .../project/system/config/domain/Config.java | 220 +- .../config/service/ConfigServiceImpl.java | 456 ++-- 19 files changed, 3497 insertions(+), 3497 deletions(-) diff --git a/src/main/java/com/archive/common/utils/CookieUtils.java b/src/main/java/com/archive/common/utils/CookieUtils.java index 3c786e4..8306a79 100644 --- a/src/main/java/com/archive/common/utils/CookieUtils.java +++ b/src/main/java/com/archive/common/utils/CookieUtils.java @@ -1,143 +1,143 @@ -/* */ package com.archive.common.utils + package com.archive.common.utils ; -/* */ -/* */ import java.io.UnsupportedEncodingException; -/* */ import java.net.URLDecoder; -/* */ import java.net.URLEncoder; -/* */ import javax.servlet.http.Cookie; -/* */ import javax.servlet.http.HttpServletRequest; -/* */ import javax.servlet.http.HttpServletResponse; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class CookieUtils -/* */ { -/* */ public static void setCookie(HttpServletResponse response, String name, String value) { -/* 25 */ setCookie(response, name, value, 86400); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void setCookie(HttpServletResponse response, String name, String value, String path) { -/* 38 */ setCookie(response, name, value, path, 86400); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) { -/* 51 */ setCookie(response, name, value, "/", maxAge); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static void setCookie(HttpServletResponse response, String name, String value, String path, int maxAge) { -/* 64 */ Cookie cookie = new Cookie(name, null); -/* 65 */ cookie.setPath(path); -/* 66 */ cookie.setMaxAge(maxAge); -/* */ -/* */ try { -/* 69 */ cookie.setValue(URLEncoder.encode(value, "utf-8")); -/* */ } -/* 71 */ catch (UnsupportedEncodingException e) { -/* */ -/* 73 */ e.printStackTrace(); -/* */ } -/* 75 */ response.addCookie(cookie); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String getCookie(HttpServletRequest request, String name) { -/* 86 */ return getCookie(request, null, name, false); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name) { -/* 97 */ return getCookie(request, response, name, true); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name, boolean isRemove) { -/* 112 */ String value = null; -/* 113 */ Cookie[] cookies = request.getCookies(); -/* 114 */ if (cookies != null) -/* */ { -/* 116 */ for (Cookie cookie : cookies) { -/* */ -/* 118 */ if (cookie.getName().equals(name)) { -/* */ -/* */ -/* */ try { -/* 122 */ value = URLDecoder.decode(cookie.getValue(), "utf-8"); -/* */ } -/* 124 */ catch (UnsupportedEncodingException e) { -/* */ -/* 126 */ e.printStackTrace(); -/* */ } -/* 128 */ if (isRemove) { -/* */ -/* 130 */ cookie.setMaxAge(0); -/* 131 */ response.addCookie(cookie); -/* */ } -/* */ } -/* */ } -/* */ } -/* 136 */ return value; -/* */ } -/* */ } + + import java.io.UnsupportedEncodingException; + import java.net.URLDecoder; + import java.net.URLEncoder; + import javax.servlet.http.Cookie; + import javax.servlet.http.HttpServletRequest; + import javax.servlet.http.HttpServletResponse; + + + + + + + + + + + + + + public class CookieUtils + { + public static void setCookie(HttpServletResponse response, String name, String value) { + setCookie(response, name, value, 86400); + } + + + + + + + + + + + public static void setCookie(HttpServletResponse response, String name, String value, String path) { + setCookie(response, name, value, path, 86400); + } + + + + + + + + + + + public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) { + setCookie(response, name, value, "/", maxAge); + } + + + + + + + + + + + public static void setCookie(HttpServletResponse response, String name, String value, String path, int maxAge) { + Cookie cookie = new Cookie(name, null); + cookie.setPath(path); + cookie.setMaxAge(maxAge); + + try { + cookie.setValue(URLEncoder.encode(value, "utf-8")); + } + catch (UnsupportedEncodingException e) { + + e.printStackTrace(); + } + response.addCookie(cookie); + } + + + + + + + + + public static String getCookie(HttpServletRequest request, String name) { + return getCookie(request, null, name, false); + } + + + + + + + + + public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name) { + return getCookie(request, response, name, true); + } + + + + + + + + + + + + + public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name, boolean isRemove) { + String value = null; + Cookie[] cookies = request.getCookies(); + if (cookies != null) + { + for (Cookie cookie : cookies) { + + if (cookie.getName().equals(name)) { + + + try { + value = URLDecoder.decode(cookie.getValue(), "utf-8"); + } + catch (UnsupportedEncodingException e) { + + e.printStackTrace(); + } + if (isRemove) { + + cookie.setMaxAge(0); + response.addCookie(cookie); + } + } + } + } + return value; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\CookieUtils.class diff --git a/src/main/java/com/archive/common/utils/text/CharsetKit.java b/src/main/java/com/archive/common/utils/text/CharsetKit.java index fef0dd7..d2e69f7 100644 --- a/src/main/java/com/archive/common/utils/text/CharsetKit.java +++ b/src/main/java/com/archive/common/utils/text/CharsetKit.java @@ -1,90 +1,90 @@ -/* */ package com.archive.common.utils.text; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import java.nio.charset.Charset; -/* */ import java.nio.charset.StandardCharsets; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class CharsetKit -/* */ { -/* */ public static final String ISO_8859_1 = "ISO-8859-1"; -/* */ public static final String UTF_8 = "UTF-8"; -/* */ public static final String GBK = "GBK"; -/* 23 */ public static final Charset CHARSET_ISO_8859_1 = Charset.forName("ISO-8859-1"); -/* */ -/* 25 */ public static final Charset CHARSET_UTF_8 = Charset.forName("UTF-8"); -/* */ -/* 27 */ public static final Charset CHARSET_GBK = Charset.forName("GBK"); -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Charset charset(String charset) { -/* 37 */ return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String convert(String source, String srcCharset, String destCharset) { -/* 50 */ return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String convert(String source, Charset srcCharset, Charset destCharset) { -/* 63 */ if (null == srcCharset) -/* */ { -/* 65 */ srcCharset = StandardCharsets.ISO_8859_1; -/* */ } -/* */ -/* 68 */ if (null == destCharset) -/* */ { -/* 70 */ destCharset = StandardCharsets.UTF_8; -/* */ } -/* */ -/* 73 */ if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) -/* */ { -/* 75 */ return source; -/* */ } -/* 77 */ return new String(source.getBytes(srcCharset), destCharset); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String systemCharset() { -/* 85 */ return Charset.defaultCharset().name(); -/* */ } -/* */ } + package com.archive.common.utils.text; + + import com.archive.common.utils.StringUtils; + import java.nio.charset.Charset; + import java.nio.charset.StandardCharsets; + + + + + + + + + + + + + public class CharsetKit + { + public static final String ISO_8859_1 = "ISO-8859-1"; + public static final String UTF_8 = "UTF-8"; + public static final String GBK = "GBK"; + public static final Charset CHARSET_ISO_8859_1 = Charset.forName("ISO-8859-1"); + + public static final Charset CHARSET_UTF_8 = Charset.forName("UTF-8"); + + public static final Charset CHARSET_GBK = Charset.forName("GBK"); + + + + + + + + + public static Charset charset(String charset) { + return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset); + } + + + + + + + + + + + public static String convert(String source, String srcCharset, String destCharset) { + return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset)); + } + + + + + + + + + + + public static String convert(String source, Charset srcCharset, Charset destCharset) { + if (null == srcCharset) + { + srcCharset = StandardCharsets.ISO_8859_1; + } + + if (null == destCharset) + { + destCharset = StandardCharsets.UTF_8; + } + + if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) + { + return source; + } + return new String(source.getBytes(srcCharset), destCharset); + } + + + + + + public static String systemCharset() { + return Charset.defaultCharset().name(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\text\CharsetKit.class diff --git a/src/main/java/com/archive/common/utils/text/Convert.java b/src/main/java/com/archive/common/utils/text/Convert.java index 9b8f995..63d4c49 100644 --- a/src/main/java/com/archive/common/utils/text/Convert.java +++ b/src/main/java/com/archive/common/utils/text/Convert.java @@ -1,1002 +1,1002 @@ -/* */ package com.archive.common.utils.text; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.text.CharsetKit; -/* */ import java.math.BigDecimal; -/* */ import java.math.BigInteger; -/* */ import java.nio.ByteBuffer; -/* */ import java.nio.charset.Charset; -/* */ import java.text.NumberFormat; -/* */ import java.util.Set; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class Convert -/* */ { -/* */ public static String toStr(Object value, String defaultValue) { -/* 29 */ if (null == value) -/* */ { -/* 31 */ return defaultValue; -/* */ } -/* 33 */ if (value instanceof String) -/* */ { -/* 35 */ return (String)value; -/* */ } -/* 37 */ return value.toString(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String toStr(Object value) { -/* 50 */ return toStr(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Character toChar(Object value, Character defaultValue) { -/* 64 */ if (null == value) -/* */ { -/* 66 */ return defaultValue; -/* */ } -/* 68 */ if (value instanceof Character) -/* */ { -/* 70 */ return (Character)value; -/* */ } -/* */ -/* 73 */ String valueStr = toStr(value, null); -/* 74 */ return Character.valueOf(StringUtils.isEmpty(valueStr) ? defaultValue.charValue() : valueStr.charAt(0)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Character toChar(Object value) { -/* 87 */ return toChar(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Byte toByte(Object value, Byte defaultValue) { -/* 101 */ if (value == null) -/* */ { -/* 103 */ return defaultValue; -/* */ } -/* 105 */ if (value instanceof Byte) -/* */ { -/* 107 */ return (Byte)value; -/* */ } -/* 109 */ if (value instanceof Number) -/* */ { -/* 111 */ return Byte.valueOf(((Number)value).byteValue()); -/* */ } -/* 113 */ String valueStr = toStr(value, null); -/* 114 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 116 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 120 */ return Byte.valueOf(Byte.parseByte(valueStr)); -/* */ } -/* 122 */ catch (Exception e) { -/* */ -/* 124 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Byte toByte(Object value) { -/* 138 */ return toByte(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Short toShort(Object value, Short defaultValue) { -/* 152 */ if (value == null) -/* */ { -/* 154 */ return defaultValue; -/* */ } -/* 156 */ if (value instanceof Short) -/* */ { -/* 158 */ return (Short)value; -/* */ } -/* 160 */ if (value instanceof Number) -/* */ { -/* 162 */ return Short.valueOf(((Number)value).shortValue()); -/* */ } -/* 164 */ String valueStr = toStr(value, null); -/* 165 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 167 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 171 */ return Short.valueOf(Short.parseShort(valueStr.trim())); -/* */ } -/* 173 */ catch (Exception e) { -/* */ -/* 175 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Short toShort(Object value) { -/* 189 */ return toShort(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Number toNumber(Object value, Number defaultValue) { -/* 203 */ if (value == null) -/* */ { -/* 205 */ return defaultValue; -/* */ } -/* 207 */ if (value instanceof Number) -/* */ { -/* 209 */ return (Number)value; -/* */ } -/* 211 */ String valueStr = toStr(value, null); -/* 212 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 214 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 218 */ return NumberFormat.getInstance().parse(valueStr); -/* */ } -/* 220 */ catch (Exception e) { -/* */ -/* 222 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Number toNumber(Object value) { -/* 236 */ return toNumber(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Integer toInt(Object value, Integer defaultValue) { -/* 250 */ if (value == null) -/* */ { -/* 252 */ return defaultValue; -/* */ } -/* 254 */ if (value instanceof Integer) -/* */ { -/* 256 */ return (Integer)value; -/* */ } -/* 258 */ if (value instanceof Number) -/* */ { -/* 260 */ return Integer.valueOf(((Number)value).intValue()); -/* */ } -/* 262 */ String valueStr = toStr(value, null); -/* 263 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 265 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 269 */ return Integer.valueOf(Integer.parseInt(valueStr.trim())); -/* */ } -/* 271 */ catch (Exception e) { -/* */ -/* 273 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Integer toInt(Object value) { -/* 287 */ return toInt(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Integer[] toIntArray(String str) { -/* 298 */ return toIntArray(",", str); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Long[] toLongArray(String str) { -/* 309 */ return toLongArray(",", str); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Integer[] toIntArray(String split, String str) { -/* 321 */ if (StringUtils.isEmpty(str)) -/* */ { -/* 323 */ return new Integer[0]; -/* */ } -/* 325 */ String[] arr = str.split(split); -/* 326 */ Integer[] ints = new Integer[arr.length]; -/* 327 */ for (int i = 0; i < arr.length; i++) { -/* */ -/* 329 */ Integer v = toInt(arr[i], Integer.valueOf(0)); -/* 330 */ ints[i] = v; -/* */ } -/* 332 */ return ints; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Long[] toLongArray(String split, String str) { -/* 344 */ if (StringUtils.isEmpty(str)) -/* */ { -/* 346 */ return new Long[0]; -/* */ } -/* 348 */ String[] arr = str.split(split); -/* 349 */ Long[] longs = new Long[arr.length]; -/* 350 */ for (int i = 0; i < arr.length; i++) { -/* */ -/* 352 */ Long v = toLong(arr[i], null); -/* 353 */ longs[i] = v; -/* */ } -/* 355 */ return longs; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String[] toStrArray(String str) { -/* 366 */ return toStrArray(",", str); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String[] toStrArray(String split, String str) { -/* 378 */ return str.split(split); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Long toLong(Object value, Long defaultValue) { -/* 392 */ if (value == null) -/* */ { -/* 394 */ return defaultValue; -/* */ } -/* 396 */ if (value instanceof Long) -/* */ { -/* 398 */ return (Long)value; -/* */ } -/* 400 */ if (value instanceof Number) -/* */ { -/* 402 */ return Long.valueOf(((Number)value).longValue()); -/* */ } -/* 404 */ String valueStr = toStr(value, null); -/* 405 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 407 */ return defaultValue; -/* */ } -/* */ -/* */ -/* */ try { -/* 412 */ return Long.valueOf((new BigDecimal(valueStr.trim())).longValue()); -/* */ } -/* 414 */ catch (Exception e) { -/* */ -/* 416 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Long toLong(Object value) { -/* 430 */ return toLong(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Double toDouble(Object value, Double defaultValue) { -/* 444 */ if (value == null) -/* */ { -/* 446 */ return defaultValue; -/* */ } -/* 448 */ if (value instanceof Double) -/* */ { -/* 450 */ return (Double)value; -/* */ } -/* 452 */ if (value instanceof Number) -/* */ { -/* 454 */ return Double.valueOf(((Number)value).doubleValue()); -/* */ } -/* 456 */ String valueStr = toStr(value, null); -/* 457 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 459 */ return defaultValue; -/* */ } -/* */ -/* */ -/* */ try { -/* 464 */ return Double.valueOf((new BigDecimal(valueStr.trim())).doubleValue()); -/* */ } -/* 466 */ catch (Exception e) { -/* */ -/* 468 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Double toDouble(Object value) { -/* 482 */ return toDouble(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Float toFloat(Object value, Float defaultValue) { -/* 496 */ if (value == null) -/* */ { -/* 498 */ return defaultValue; -/* */ } -/* 500 */ if (value instanceof Float) -/* */ { -/* 502 */ return (Float)value; -/* */ } -/* 504 */ if (value instanceof Number) -/* */ { -/* 506 */ return Float.valueOf(((Number)value).floatValue()); -/* */ } -/* 508 */ String valueStr = toStr(value, null); -/* 509 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 511 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 515 */ return Float.valueOf(Float.parseFloat(valueStr.trim())); -/* */ } -/* 517 */ catch (Exception e) { -/* */ -/* 519 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Float toFloat(Object value) { -/* 533 */ return toFloat(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Boolean toBool(Object value, Boolean defaultValue) { -/* 547 */ if (value == null) -/* */ { -/* 549 */ return defaultValue; -/* */ } -/* 551 */ if (value instanceof Boolean) -/* */ { -/* 553 */ return (Boolean)value; -/* */ } -/* 555 */ String valueStr = toStr(value, null); -/* 556 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 558 */ return defaultValue; -/* */ } -/* 560 */ valueStr = valueStr.trim().toLowerCase(); -/* 561 */ switch (valueStr) { -/* */ -/* */ case "true": -/* 564 */ return Boolean.valueOf(true); -/* */ case "false": -/* 566 */ return Boolean.valueOf(false); -/* */ case "yes": -/* 568 */ return Boolean.valueOf(true); -/* */ case "ok": -/* 570 */ return Boolean.valueOf(true); -/* */ case "no": -/* 572 */ return Boolean.valueOf(false); -/* */ case "1": -/* 574 */ return Boolean.valueOf(true); -/* */ case "0": -/* 576 */ return Boolean.valueOf(false); -/* */ } -/* 578 */ return defaultValue; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static Boolean toBool(Object value) { -/* 592 */ return toBool(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static > E toEnum(Class clazz, Object value, E defaultValue) { -/* 606 */ if (value == null) -/* */ { -/* 608 */ return defaultValue; -/* */ } -/* 610 */ if (clazz.isAssignableFrom(value.getClass())) -/* */ { -/* */ -/* 613 */ return (E)value; -/* */ } -/* */ -/* 616 */ String valueStr = toStr(value, null); -/* 617 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 619 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 623 */ return Enum.valueOf(clazz, valueStr); -/* */ } -/* 625 */ catch (Exception e) { -/* */ -/* 627 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static > E toEnum(Class clazz, Object value) { -/* 641 */ return toEnum(clazz, value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static BigInteger toBigInteger(Object value, BigInteger defaultValue) { -/* 655 */ if (value == null) -/* */ { -/* 657 */ return defaultValue; -/* */ } -/* 659 */ if (value instanceof BigInteger) -/* */ { -/* 661 */ return (BigInteger)value; -/* */ } -/* 663 */ if (value instanceof Long) -/* */ { -/* 665 */ return BigInteger.valueOf(((Long)value).longValue()); -/* */ } -/* 667 */ String valueStr = toStr(value, null); -/* 668 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 670 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 674 */ return new BigInteger(valueStr); -/* */ } -/* 676 */ catch (Exception e) { -/* */ -/* 678 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static BigInteger toBigInteger(Object value) { -/* 692 */ return toBigInteger(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) { -/* 706 */ if (value == null) -/* */ { -/* 708 */ return defaultValue; -/* */ } -/* 710 */ if (value instanceof BigDecimal) -/* */ { -/* 712 */ return (BigDecimal)value; -/* */ } -/* 714 */ if (value instanceof Long) -/* */ { -/* 716 */ return new BigDecimal(((Long)value).longValue()); -/* */ } -/* 718 */ if (value instanceof Double) -/* */ { -/* 720 */ return new BigDecimal(((Double)value).doubleValue()); -/* */ } -/* 722 */ if (value instanceof Integer) -/* */ { -/* 724 */ return new BigDecimal(((Integer)value).intValue()); -/* */ } -/* 726 */ String valueStr = toStr(value, null); -/* 727 */ if (StringUtils.isEmpty(valueStr)) -/* */ { -/* 729 */ return defaultValue; -/* */ } -/* */ -/* */ try { -/* 733 */ return new BigDecimal(valueStr); -/* */ } -/* 735 */ catch (Exception e) { -/* */ -/* 737 */ return defaultValue; -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static BigDecimal toBigDecimal(Object value) { -/* 751 */ return toBigDecimal(value, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String utf8Str(Object obj) { -/* 763 */ return str(obj, CharsetKit.CHARSET_UTF_8); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(Object obj, String charsetName) { -/* 776 */ return str(obj, Charset.forName(charsetName)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(Object obj, Charset charset) { -/* 789 */ if (null == obj) -/* */ { -/* 791 */ return null; -/* */ } -/* */ -/* 794 */ if (obj instanceof String) -/* */ { -/* 796 */ return (String)obj; -/* */ } -/* 798 */ if (obj instanceof byte[] || obj instanceof Byte[]) -/* */ { -/* 800 */ return str(obj, charset); -/* */ } -/* 802 */ if (obj instanceof ByteBuffer) -/* */ { -/* 804 */ return str((ByteBuffer)obj, charset); -/* */ } -/* 806 */ return obj.toString(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(byte[] bytes, String charset) { -/* 818 */ return str(bytes, StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(byte[] data, Charset charset) { -/* 830 */ if (data == null) -/* */ { -/* 832 */ return null; -/* */ } -/* */ -/* 835 */ if (null == charset) -/* */ { -/* 837 */ return new String(data); -/* */ } -/* 839 */ return new String(data, charset); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(ByteBuffer data, String charset) { -/* 851 */ if (data == null) -/* */ { -/* 853 */ return null; -/* */ } -/* */ -/* 856 */ return str(data, Charset.forName(charset)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String str(ByteBuffer data, Charset charset) { -/* 868 */ if (null == charset) -/* */ { -/* 870 */ charset = Charset.defaultCharset(); -/* */ } -/* 872 */ return charset.decode(data).toString(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String toSBC(String input) { -/* 884 */ return toSBC(input, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String toSBC(String input, Set notConvertSet) { -/* 896 */ char[] c = input.toCharArray(); -/* 897 */ for (int i = 0; i < c.length; i++) { -/* */ -/* 899 */ if (null == notConvertSet || !notConvertSet.contains(Character.valueOf(c[i]))) -/* */ { -/* */ -/* */ -/* */ -/* */ -/* 905 */ if (c[i] == ' ') { -/* */ -/* 907 */ c[i] = ' '; -/* */ } -/* 909 */ else if (c[i] < '') { -/* */ -/* 911 */ c[i] = (char)(c[i] + 65248); -/* */ } -/* */ } -/* */ } -/* 915 */ return new String(c); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String toDBC(String input) { -/* 926 */ return toDBC(input, null); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String toDBC(String text, Set notConvertSet) { -/* 938 */ char[] c = text.toCharArray(); -/* 939 */ for (int i = 0; i < c.length; i++) { -/* */ -/* 941 */ if (null == notConvertSet || !notConvertSet.contains(Character.valueOf(c[i]))) -/* */ { -/* */ -/* */ -/* */ -/* */ -/* 947 */ if (c[i] == ' ') { -/* */ -/* 949 */ c[i] = ' '; -/* */ } -/* 951 */ else if (c[i] > '＀' && c[i] < '⦅') { -/* */ -/* 953 */ c[i] = (char)(c[i] - 65248); -/* */ } } -/* */ } -/* 956 */ String returnString = new String(c); -/* */ -/* 958 */ return returnString; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public static String digitUppercase(double n) { -/* 969 */ String[] fraction = { "角", "分" }; -/* 970 */ String[] digit = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; -/* 971 */ String[][] unit = { { "元", "万", "亿" }, { "", "拾", "佰", "仟" } }; -/* */ -/* 973 */ String head = (n < 0.0D) ? "负" : ""; -/* 974 */ n = Math.abs(n); -/* */ -/* 976 */ String s = ""; -/* 977 */ for (int i = 0; i < fraction.length; i++) -/* */ { -/* 979 */ s = s + (digit[(int)(Math.floor(n * 10.0D * Math.pow(10.0D, i)) % 10.0D)] + fraction[i]).replaceAll("(零.)+", ""); -/* */ } -/* 981 */ if (s.length() < 1) -/* */ { -/* 983 */ s = "整"; -/* */ } -/* 985 */ int integerPart = (int)Math.floor(n); -/* */ -/* 987 */ for (int j = 0; j < (unit[0]).length && integerPart > 0; j++) { -/* */ -/* 989 */ String p = ""; -/* 990 */ for (int k = 0; k < (unit[1]).length && n > 0.0D; k++) { -/* */ -/* 992 */ p = digit[integerPart % 10] + unit[1][k] + p; -/* 993 */ integerPart /= 10; -/* */ } -/* 995 */ s = p.replaceAll("(零.)*零$", "").replaceAll("^$", "零") + unit[0][j] + s; -/* */ } -/* 997 */ return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$", "零元整"); -/* */ } -/* */ } + package com.archive.common.utils.text; + + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.text.CharsetKit; + import java.math.BigDecimal; + import java.math.BigInteger; + import java.nio.ByteBuffer; + import java.nio.charset.Charset; + import java.text.NumberFormat; + import java.util.Set; + + + + + + + + + + + + + + + + public class Convert + { + public static String toStr(Object value, String defaultValue) { + if (null == value) + { + return defaultValue; + } + if (value instanceof String) + { + return (String)value; + } + return value.toString(); + } + + + + + + + + + + + public static String toStr(Object value) { + return toStr(value, null); + } + + + + + + + + + + + + public static Character toChar(Object value, Character defaultValue) { + if (null == value) + { + return defaultValue; + } + if (value instanceof Character) + { + return (Character)value; + } + + String valueStr = toStr(value, null); + return Character.valueOf(StringUtils.isEmpty(valueStr) ? defaultValue.charValue() : valueStr.charAt(0)); + } + + + + + + + + + + + public static Character toChar(Object value) { + return toChar(value, null); + } + + + + + + + + + + + + public static Byte toByte(Object value, Byte defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Byte) + { + return (Byte)value; + } + if (value instanceof Number) + { + return Byte.valueOf(((Number)value).byteValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return Byte.valueOf(Byte.parseByte(valueStr)); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Byte toByte(Object value) { + return toByte(value, null); + } + + + + + + + + + + + + public static Short toShort(Object value, Short defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Short) + { + return (Short)value; + } + if (value instanceof Number) + { + return Short.valueOf(((Number)value).shortValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return Short.valueOf(Short.parseShort(valueStr.trim())); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Short toShort(Object value) { + return toShort(value, null); + } + + + + + + + + + + + + public static Number toNumber(Object value, Number defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Number) + { + return (Number)value; + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return NumberFormat.getInstance().parse(valueStr); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Number toNumber(Object value) { + return toNumber(value, null); + } + + + + + + + + + + + + public static Integer toInt(Object value, Integer defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Integer) + { + return (Integer)value; + } + if (value instanceof Number) + { + return Integer.valueOf(((Number)value).intValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return Integer.valueOf(Integer.parseInt(valueStr.trim())); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Integer toInt(Object value) { + return toInt(value, null); + } + + + + + + + + + public static Integer[] toIntArray(String str) { + return toIntArray(",", str); + } + + + + + + + + + public static Long[] toLongArray(String str) { + return toLongArray(",", str); + } + + + + + + + + + + public static Integer[] toIntArray(String split, String str) { + if (StringUtils.isEmpty(str)) + { + return new Integer[0]; + } + String[] arr = str.split(split); + Integer[] ints = new Integer[arr.length]; + for (int i = 0; i < arr.length; i++) { + + Integer v = toInt(arr[i], Integer.valueOf(0)); + ints[i] = v; + } + return ints; + } + + + + + + + + + + public static Long[] toLongArray(String split, String str) { + if (StringUtils.isEmpty(str)) + { + return new Long[0]; + } + String[] arr = str.split(split); + Long[] longs = new Long[arr.length]; + for (int i = 0; i < arr.length; i++) { + + Long v = toLong(arr[i], null); + longs[i] = v; + } + return longs; + } + + + + + + + + + public static String[] toStrArray(String str) { + return toStrArray(",", str); + } + + + + + + + + + + public static String[] toStrArray(String split, String str) { + return str.split(split); + } + + + + + + + + + + + + public static Long toLong(Object value, Long defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Long) + { + return (Long)value; + } + if (value instanceof Number) + { + return Long.valueOf(((Number)value).longValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + + try { + return Long.valueOf((new BigDecimal(valueStr.trim())).longValue()); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Long toLong(Object value) { + return toLong(value, null); + } + + + + + + + + + + + + public static Double toDouble(Object value, Double defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Double) + { + return (Double)value; + } + if (value instanceof Number) + { + return Double.valueOf(((Number)value).doubleValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + + try { + return Double.valueOf((new BigDecimal(valueStr.trim())).doubleValue()); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Double toDouble(Object value) { + return toDouble(value, null); + } + + + + + + + + + + + + public static Float toFloat(Object value, Float defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Float) + { + return (Float)value; + } + if (value instanceof Number) + { + return Float.valueOf(((Number)value).floatValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return Float.valueOf(Float.parseFloat(valueStr.trim())); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static Float toFloat(Object value) { + return toFloat(value, null); + } + + + + + + + + + + + + public static Boolean toBool(Object value, Boolean defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof Boolean) + { + return (Boolean)value; + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + valueStr = valueStr.trim().toLowerCase(); + switch (valueStr) { + + case "true": + return Boolean.valueOf(true); + case "false": + return Boolean.valueOf(false); + case "yes": + return Boolean.valueOf(true); + case "ok": + return Boolean.valueOf(true); + case "no": + return Boolean.valueOf(false); + case "1": + return Boolean.valueOf(true); + case "0": + return Boolean.valueOf(false); + } + return defaultValue; + } + + + + + + + + + + + + public static Boolean toBool(Object value) { + return toBool(value, null); + } + + + + + + + + + + + + public static > E toEnum(Class clazz, Object value, E defaultValue) { + if (value == null) + { + return defaultValue; + } + if (clazz.isAssignableFrom(value.getClass())) + { + + return (E)value; + } + + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return Enum.valueOf(clazz, valueStr); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static > E toEnum(Class clazz, Object value) { + return toEnum(clazz, value, null); + } + + + + + + + + + + + + public static BigInteger toBigInteger(Object value, BigInteger defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigInteger) + { + return (BigInteger)value; + } + if (value instanceof Long) + { + return BigInteger.valueOf(((Long)value).longValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return new BigInteger(valueStr); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static BigInteger toBigInteger(Object value) { + return toBigInteger(value, null); + } + + + + + + + + + + + + public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigDecimal) + { + return (BigDecimal)value; + } + if (value instanceof Long) + { + return new BigDecimal(((Long)value).longValue()); + } + if (value instanceof Double) + { + return new BigDecimal(((Double)value).doubleValue()); + } + if (value instanceof Integer) + { + return new BigDecimal(((Integer)value).intValue()); + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + + try { + return new BigDecimal(valueStr); + } + catch (Exception e) { + + return defaultValue; + } + } + + + + + + + + + + + public static BigDecimal toBigDecimal(Object value) { + return toBigDecimal(value, null); + } + + + + + + + + + + public static String utf8Str(Object obj) { + return str(obj, CharsetKit.CHARSET_UTF_8); + } + + + + + + + + + + + public static String str(Object obj, String charsetName) { + return str(obj, Charset.forName(charsetName)); + } + + + + + + + + + + + public static String str(Object obj, Charset charset) { + if (null == obj) + { + return null; + } + + if (obj instanceof String) + { + return (String)obj; + } + if (obj instanceof byte[] || obj instanceof Byte[]) + { + return str(obj, charset); + } + if (obj instanceof ByteBuffer) + { + return str((ByteBuffer)obj, charset); + } + return obj.toString(); + } + + + + + + + + + + public static String str(byte[] bytes, String charset) { + return str(bytes, StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset)); + } + + + + + + + + + + public static String str(byte[] data, Charset charset) { + if (data == null) + { + return null; + } + + if (null == charset) + { + return new String(data); + } + return new String(data, charset); + } + + + + + + + + + + public static String str(ByteBuffer data, String charset) { + if (data == null) + { + return null; + } + + return str(data, Charset.forName(charset)); + } + + + + + + + + + + public static String str(ByteBuffer data, Charset charset) { + if (null == charset) + { + charset = Charset.defaultCharset(); + } + return charset.decode(data).toString(); + } + + + + + + + + + + public static String toSBC(String input) { + return toSBC(input, null); + } + + + + + + + + + + public static String toSBC(String input, Set notConvertSet) { + char[] c = input.toCharArray(); + for (int i = 0; i < c.length; i++) { + + if (null == notConvertSet || !notConvertSet.contains(Character.valueOf(c[i]))) + { + + + + + if (c[i] == ' ') { + + c[i] = ' '; + } + else if (c[i] < '') { + + c[i] = (char)(c[i] + 65248); + } + } + } + return new String(c); + } + + + + + + + + + public static String toDBC(String input) { + return toDBC(input, null); + } + + + + + + + + + + public static String toDBC(String text, Set notConvertSet) { + char[] c = text.toCharArray(); + for (int i = 0; i < c.length; i++) { + + if (null == notConvertSet || !notConvertSet.contains(Character.valueOf(c[i]))) + { + + + + + if (c[i] == ' ') { + + c[i] = ' '; + } + else if (c[i] > '＀' && c[i] < '⦅') { + + c[i] = (char)(c[i] - 65248); + } } + } + String returnString = new String(c); + + return returnString; + } + + + + + + + + + public static String digitUppercase(double n) { + String[] fraction = { "角", "分" }; + String[] digit = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; + String[][] unit = { { "元", "万", "亿" }, { "", "拾", "佰", "仟" } }; + + String head = (n < 0.0D) ? "负" : ""; + n = Math.abs(n); + + String s = ""; + for (int i = 0; i < fraction.length; i++) + { + s = s + (digit[(int)(Math.floor(n * 10.0D * Math.pow(10.0D, i)) % 10.0D)] + fraction[i]).replaceAll("(零.)+", ""); + } + if (s.length() < 1) + { + s = "整"; + } + int integerPart = (int)Math.floor(n); + + for (int j = 0; j < (unit[0]).length && integerPart > 0; j++) { + + String p = ""; + for (int k = 0; k < (unit[1]).length && n > 0.0D; k++) { + + p = digit[integerPart % 10] + unit[1][k] + p; + integerPart /= 10; + } + s = p.replaceAll("(零.)*零$", "").replaceAll("^$", "零") + unit[0][j] + s; + } + return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$", "零元整"); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\utils\text\Convert.class diff --git a/src/main/java/com/archive/framework/aspectj/lang/annotation/ColumnType.java b/src/main/java/com/archive/framework/aspectj/lang/annotation/ColumnType.java index 0f2e446..6292c43 100644 --- a/src/main/java/com/archive/framework/aspectj/lang/annotation/ColumnType.java +++ b/src/main/java/com/archive/framework/aspectj/lang/annotation/ColumnType.java @@ -1,168 +1,168 @@ -/* */ package com.archive.framework.aspectj.lang.annotation + package com.archive.framework.aspectj.lang.annotation ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public enum ColumnType -/* */ { -/* 152 */ NUMERIC(0), STRING(1), IMAGE(2); -/* */ -/* */ private final int value; -/* */ -/* */ ColumnType(int value) { -/* 157 */ this.value = value; -/* */ } -/* */ -/* */ -/* */ public int value() { -/* 162 */ return this.value; -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public enum ColumnType + { + NUMERIC(0), STRING(1), IMAGE(2); + + private final int value; + + ColumnType(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$ColumnType.class diff --git a/src/main/java/com/archive/framework/web/service/ConfigService.java b/src/main/java/com/archive/framework/web/service/ConfigService.java index e98dc9d..86913cf 100644 --- a/src/main/java/com/archive/framework/web/service/ConfigService.java +++ b/src/main/java/com/archive/framework/web/service/ConfigService.java @@ -1,33 +1,33 @@ -/* */ package com.archive.framework.web.service + package com.archive.framework.web.service ; -/* */ -/* */ import com.archive.project.system.config.service.IConfigService; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service("config") -/* */ public class ConfigService -/* */ { -/* */ @Autowired -/* */ private IConfigService configService; -/* */ -/* */ public String getKey(String configKey) { -/* 26 */ return this.configService.selectConfigByKey(configKey); -/* */ } -/* */ } + + import com.archive.project.system.config.service.IConfigService; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + @Service("config") + public class ConfigService + { + @Autowired + private IConfigService configService; + + public String getKey(String configKey) { + return this.configService.selectConfigByKey(configKey); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\service\ConfigService.class diff --git a/src/main/java/com/archive/project/common/CommonController.java b/src/main/java/com/archive/project/common/CommonController.java index fefa5dc..1452eb9 100644 --- a/src/main/java/com/archive/project/common/CommonController.java +++ b/src/main/java/com/archive/project/common/CommonController.java @@ -1,125 +1,125 @@ -/* */ package com.archive.project.common + package com.archive.project.common ; -/* */ -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.file.FileUploadUtils; -/* */ import com.archive.common.utils.file.FileUtils; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.framework.config.ServerConfig; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import java.io.OutputStream; -/* */ import javax.servlet.http.HttpServletRequest; -/* */ import javax.servlet.http.HttpServletResponse; -/* */ import org.slf4j.Logger; -/* */ import org.slf4j.LoggerFactory; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.PostMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ import org.springframework.web.multipart.MultipartFile; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ public class CommonController -/* */ { -/* 30 */ private static final Logger log = LoggerFactory.getLogger(com.archive.project.common.CommonController.class); -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Autowired -/* */ private ServerConfig serverConfig; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"common/download"}) -/* */ public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) { -/* */ try { -/* 46 */ if (!FileUtils.checkAllowDownload(fileName)) -/* */ { -/* 48 */ throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", new Object[] { fileName })); -/* */ } -/* */ -/* 51 */ String filePath = ArchiveConfig.getInstance().getDownloadPath() + fileName; -/* */ -/* 53 */ response.setContentType("application/octet-stream"); -/* 54 */ FileUtils.setAttachmentResponseHeader(response, fileName); -/* 55 */ FileUtils.writeBytes(filePath, (OutputStream)response.getOutputStream()); -/* */ -/* */ -/* */ -/* */ -/* */ } -/* 61 */ catch (Exception e) { -/* */ -/* 63 */ log.error("下载文件失败", e); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/common/upload"}) -/* */ @ResponseBody -/* */ public AjaxResult uploadFile(MultipartFile file) throws Exception { -/* */ try { -/* 77 */ String filePath = ArchiveConfig.getInstance().getUploadPath(); -/* */ -/* 79 */ String fileName = FileUploadUtils.upload(filePath, file); -/* 80 */ String url = this.serverConfig.getUrl() + fileName; -/* 81 */ AjaxResult ajax = AjaxResult.success(); -/* 82 */ ajax.put("fileName", fileName); -/* 83 */ ajax.put("url", url); -/* 84 */ return ajax; -/* */ } -/* 86 */ catch (Exception e) { -/* */ -/* 88 */ return AjaxResult.error(e.getMessage()); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/common/download/resource"}) -/* */ public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception { -/* */ try { -/* 101 */ if (!FileUtils.checkAllowDownload(resource)) -/* */ { -/* 103 */ throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", new Object[] { resource })); -/* */ } -/* */ -/* 106 */ String localPath = ArchiveConfig.getInstance().getProfile(); -/* */ -/* 108 */ String downloadPath = localPath + StringUtils.substringAfter(resource, "/profile"); -/* */ -/* 110 */ String downloadName = StringUtils.substringAfterLast(downloadPath, "/"); -/* 111 */ response.setContentType("application/octet-stream"); -/* 112 */ FileUtils.setAttachmentResponseHeader(response, downloadName); -/* 113 */ FileUtils.writeBytes(downloadPath, (OutputStream)response.getOutputStream()); -/* */ } -/* 115 */ catch (Exception e) { -/* */ -/* 117 */ log.error("下载文件失败", e); -/* */ } -/* */ } -/* */ } + + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.file.FileUploadUtils; + import com.archive.common.utils.file.FileUtils; + import com.archive.framework.config.ArchiveConfig; + import com.archive.framework.config.ServerConfig; + import com.archive.framework.web.domain.AjaxResult; + import java.io.OutputStream; + import javax.servlet.http.HttpServletRequest; + import javax.servlet.http.HttpServletResponse; + import org.slf4j.Logger; + import org.slf4j.LoggerFactory; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Controller; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.PostMapping; + import org.springframework.web.bind.annotation.ResponseBody; + import org.springframework.web.multipart.MultipartFile; + + + + + + + + @Controller + public class CommonController + { + private static final Logger log = LoggerFactory.getLogger(com.archive.project.common.CommonController.class); + + + + + + @Autowired + private ServerConfig serverConfig; + + + + + + @GetMapping({"common/download"}) + public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) { + try { + if (!FileUtils.checkAllowDownload(fileName)) + { + throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", new Object[] { fileName })); + } + + String filePath = ArchiveConfig.getInstance().getDownloadPath() + fileName; + + response.setContentType("application/octet-stream"); + FileUtils.setAttachmentResponseHeader(response, fileName); + FileUtils.writeBytes(filePath, (OutputStream)response.getOutputStream()); + + + + + } + catch (Exception e) { + + log.error("下载文件失败", e); + } + } + + + + + + + + @PostMapping({"/common/upload"}) + @ResponseBody + public AjaxResult uploadFile(MultipartFile file) throws Exception { + try { + String filePath = ArchiveConfig.getInstance().getUploadPath(); + + String fileName = FileUploadUtils.upload(filePath, file); + String url = this.serverConfig.getUrl() + fileName; + AjaxResult ajax = AjaxResult.success(); + ajax.put("fileName", fileName); + ajax.put("url", url); + return ajax; + } + catch (Exception e) { + + return AjaxResult.error(e.getMessage()); + } + } + + + + + + + + @GetMapping({"/common/download/resource"}) + public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception { + try { + if (!FileUtils.checkAllowDownload(resource)) + { + throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", new Object[] { resource })); + } + + String localPath = ArchiveConfig.getInstance().getProfile(); + + String downloadPath = localPath + StringUtils.substringAfter(resource, "/profile"); + + String downloadName = StringUtils.substringAfterLast(downloadPath, "/"); + response.setContentType("application/octet-stream"); + FileUtils.setAttachmentResponseHeader(response, downloadName); + FileUtils.writeBytes(downloadPath, (OutputStream)response.getOutputStream()); + } + catch (Exception e) { + + log.error("下载文件失败", e); + } + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\common\CommonController.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFileController.java b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFileController.java index a657bc2..f19a804 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFileController.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFileController.java @@ -1,148 +1,148 @@ -/* */ package com.archive.project.dasz.basecolumn.controller + package com.archive.project.dasz.basecolumn.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFile; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnFileService; -/* */ import com.archive.project.system.dict.domain.DictType; -/* */ import com.archive.project.system.dict.service.IDictTypeService; -/* */ import java.util.List; -/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.ui.ModelMap; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.PathVariable; -/* */ import org.springframework.web.bind.annotation.PostMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/dasz/basecolumn/columnfile"}) -/* */ public class ColumnFileController -/* */ extends BaseController -/* */ { -/* 34 */ private String prefix = "dasz/basecolumn/columnfile"; -/* */ -/* */ @Autowired -/* */ private IColumnFileService columnFileService; -/* */ -/* */ @Autowired -/* */ private IDictTypeService dictTypeService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:view"}) -/* */ @GetMapping -/* */ public String file(ModelMap mmap) { -/* 46 */ DictType dictType = new DictType(); -/* 47 */ dictType.setLabel("column_bind"); -/* 48 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 49 */ mmap.put("dictList", list); -/* 50 */ return this.prefix + "/file"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(ColumnFile columnFile) { -/* 61 */ startPage(); -/* 62 */ List list = this.columnFileService.selectColumnFileList(columnFile); -/* 63 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:export"}) -/* */ @Log(title = "文件基础字段", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(ColumnFile columnFile) { -/* 75 */ List list = this.columnFileService.selectColumnFileList(columnFile); -/* 76 */ ExcelUtil util = new ExcelUtil(ColumnFile.class); -/* 77 */ return util.exportExcel(list, "file"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 86 */ DictType dictType = new DictType(); -/* 87 */ dictType.setLabel("column_bind"); -/* 88 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 89 */ mmap.put("dictList", list); -/* 90 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:add"}) -/* */ @Log(title = "文件基础字段", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(ColumnFile columnFile) { -/* 102 */ return toAjax(this.columnFileService.insertColumnFile(columnFile)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 111 */ ColumnFile columnFile = this.columnFileService.selectColumnFileById(id); -/* 112 */ mmap.put("columnFile", columnFile); -/* 113 */ DictType dictType = new DictType(); -/* 114 */ dictType.setLabel("column_bind"); -/* 115 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 116 */ mmap.put("dictList", list); -/* 117 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:edit"}) -/* */ @Log(title = "文件基础字段", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(ColumnFile columnFile) { -/* 129 */ return toAjax(this.columnFileService.updateColumnFile(columnFile)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfile:remove"}) -/* */ @Log(title = "文件基础字段", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 141 */ return toAjax(this.columnFileService.deleteColumnFileByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dasz.basecolumn.domain.ColumnFile; + import com.archive.project.dasz.basecolumn.service.IColumnFileService; + import com.archive.project.system.dict.domain.DictType; + import com.archive.project.system.dict.service.IDictTypeService; + import java.util.List; + import org.apache.shiro.authz.annotation.RequiresPermissions; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Controller; + import org.springframework.ui.ModelMap; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.PathVariable; + import org.springframework.web.bind.annotation.PostMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.ResponseBody; + + + + + + + @Controller + @RequestMapping({"/dasz/basecolumn/columnfile"}) + public class ColumnFileController + extends BaseController + { + private String prefix = "dasz/basecolumn/columnfile"; + + @Autowired + private IColumnFileService columnFileService; + + @Autowired + private IDictTypeService dictTypeService; + + + @RequiresPermissions({"dasz:columnfile:view"}) + @GetMapping + public String file(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/file"; + } + + + + + + @RequiresPermissions({"dasz:columnfile:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(ColumnFile columnFile) { + startPage(); + List list = this.columnFileService.selectColumnFileList(columnFile); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:columnfile:export"}) + @Log(title = "文件基础字段", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(ColumnFile columnFile) { + List list = this.columnFileService.selectColumnFileList(columnFile); + ExcelUtil util = new ExcelUtil(ColumnFile.class); + return util.exportExcel(list, "file"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:columnfile:add"}) + @Log(title = "文件基础字段", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(ColumnFile columnFile) { + return toAjax(this.columnFileService.insertColumnFile(columnFile)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + ColumnFile columnFile = this.columnFileService.selectColumnFileById(id); + mmap.put("columnFile", columnFile); + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:columnfile:edit"}) + @Log(title = "文件基础字段", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(ColumnFile columnFile) { + return toAjax(this.columnFileService.updateColumnFile(columnFile)); + } + + + + + + @RequiresPermissions({"dasz:columnfile:remove"}) + @Log(title = "文件基础字段", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.columnFileService.deleteColumnFileByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnFileController.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFolderController.java b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFolderController.java index c89ab00..93bf2ed 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFolderController.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnFolderController.java @@ -1,148 +1,148 @@ -/* */ package com.archive.project.dasz.basecolumn.controller + package com.archive.project.dasz.basecolumn.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFolder; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnFolderService; -/* */ import com.archive.project.system.dict.domain.DictType; -/* */ import com.archive.project.system.dict.service.IDictTypeService; -/* */ import java.util.List; -/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.ui.ModelMap; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.PathVariable; -/* */ import org.springframework.web.bind.annotation.PostMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/dasz/basecolumn/columnfolder"}) -/* */ public class ColumnFolderController -/* */ extends BaseController -/* */ { -/* 34 */ private String prefix = "dasz/basecolumn/columnfolder"; -/* */ -/* */ @Autowired -/* */ private IColumnFolderService columnFolderService; -/* */ -/* */ @Autowired -/* */ private IDictTypeService dictTypeService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:view"}) -/* */ @GetMapping -/* */ public String folder(ModelMap mmap) { -/* 46 */ DictType dictType = new DictType(); -/* 47 */ dictType.setLabel("column_bind"); -/* 48 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 49 */ mmap.put("dictList", list); -/* 50 */ return this.prefix + "/folder"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(ColumnFolder columnFolder) { -/* 61 */ startPage(); -/* 62 */ List list = this.columnFolderService.selectColumnFolderList(columnFolder); -/* 63 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:export"}) -/* */ @Log(title = "案卷基础字段", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(ColumnFolder columnFolder) { -/* 75 */ List list = this.columnFolderService.selectColumnFolderList(columnFolder); -/* 76 */ ExcelUtil util = new ExcelUtil(ColumnFolder.class); -/* 77 */ return util.exportExcel(list, "folder"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 86 */ DictType dictType = new DictType(); -/* 87 */ dictType.setLabel("column_bind"); -/* 88 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 89 */ mmap.put("dictList", list); -/* 90 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:add"}) -/* */ @Log(title = "案卷基础字段", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(ColumnFolder columnFolder) { -/* 102 */ return toAjax(this.columnFolderService.insertColumnFolder(columnFolder)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 111 */ ColumnFolder columnFolder = this.columnFolderService.selectColumnFolderById(id); -/* 112 */ mmap.put("columnFolder", columnFolder); -/* 113 */ DictType dictType = new DictType(); -/* 114 */ dictType.setLabel("column_bind"); -/* 115 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 116 */ mmap.put("dictList", list); -/* 117 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:edit"}) -/* */ @Log(title = "案卷基础字段", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(ColumnFolder columnFolder) { -/* 129 */ return toAjax(this.columnFolderService.updateColumnFolder(columnFolder)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columnfolder:remove"}) -/* */ @Log(title = "案卷基础字段", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 141 */ return toAjax(this.columnFolderService.deleteColumnFolderByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dasz.basecolumn.domain.ColumnFolder; + import com.archive.project.dasz.basecolumn.service.IColumnFolderService; + import com.archive.project.system.dict.domain.DictType; + import com.archive.project.system.dict.service.IDictTypeService; + import java.util.List; + import org.apache.shiro.authz.annotation.RequiresPermissions; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Controller; + import org.springframework.ui.ModelMap; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.PathVariable; + import org.springframework.web.bind.annotation.PostMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.ResponseBody; + + + + + + + @Controller + @RequestMapping({"/dasz/basecolumn/columnfolder"}) + public class ColumnFolderController + extends BaseController + { + private String prefix = "dasz/basecolumn/columnfolder"; + + @Autowired + private IColumnFolderService columnFolderService; + + @Autowired + private IDictTypeService dictTypeService; + + + @RequiresPermissions({"dasz:columnfolder:view"}) + @GetMapping + public String folder(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/folder"; + } + + + + + + @RequiresPermissions({"dasz:columnfolder:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(ColumnFolder columnFolder) { + startPage(); + List list = this.columnFolderService.selectColumnFolderList(columnFolder); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:columnfolder:export"}) + @Log(title = "案卷基础字段", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(ColumnFolder columnFolder) { + List list = this.columnFolderService.selectColumnFolderList(columnFolder); + ExcelUtil util = new ExcelUtil(ColumnFolder.class); + return util.exportExcel(list, "folder"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:columnfolder:add"}) + @Log(title = "案卷基础字段", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(ColumnFolder columnFolder) { + return toAjax(this.columnFolderService.insertColumnFolder(columnFolder)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + ColumnFolder columnFolder = this.columnFolderService.selectColumnFolderById(id); + mmap.put("columnFolder", columnFolder); + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:columnfolder:edit"}) + @Log(title = "案卷基础字段", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(ColumnFolder columnFolder) { + return toAjax(this.columnFolderService.updateColumnFolder(columnFolder)); + } + + + + + + @RequiresPermissions({"dasz:columnfolder:remove"}) + @Log(title = "案卷基础字段", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.columnFolderService.deleteColumnFolderByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnFolderController.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnInfoController.java b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnInfoController.java index 50b7f1c..b7c5627 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnInfoController.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/controller/ColumnInfoController.java @@ -1,147 +1,147 @@ -/* */ package com.archive.project.dasz.basecolumn.controller + package com.archive.project.dasz.basecolumn.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnInfo; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnInfoService; -/* */ import com.archive.project.system.dict.domain.DictType; -/* */ import com.archive.project.system.dict.service.IDictTypeService; -/* */ import java.util.List; -/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.ui.ModelMap; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.PathVariable; -/* */ import org.springframework.web.bind.annotation.PostMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/dasz/basecolumn/columninfo"}) -/* */ public class ColumnInfoController -/* */ extends BaseController -/* */ { -/* 34 */ private String prefix = "dasz/basecolumn/columninfo"; -/* */ -/* */ @Autowired -/* */ private IColumnInfoService columnInfoService; -/* */ -/* */ @Autowired -/* */ private IDictTypeService dictTypeService; -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:view"}) -/* */ @GetMapping -/* */ public String info(ModelMap mmap) { -/* 46 */ DictType dictType = new DictType(); -/* 47 */ dictType.setLabel("column_bind"); -/* 48 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 49 */ mmap.put("dictList", list); -/* 50 */ return this.prefix + "/info"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(ColumnInfo columnInfo) { -/* 61 */ startPage(); -/* 62 */ List list = this.columnInfoService.selectColumnInfoList(columnInfo); -/* 63 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:export"}) -/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.EXPORT) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(ColumnInfo columnInfo) { -/* 75 */ List list = this.columnInfoService.selectColumnInfoList(columnInfo); -/* 76 */ ExcelUtil util = new ExcelUtil(ColumnInfo.class); -/* 77 */ return util.exportExcel(list, "info"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add(ModelMap mmap) { -/* 86 */ DictType dictType = new DictType(); -/* 87 */ dictType.setLabel("column_bind"); -/* 88 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 89 */ mmap.put("dictList", list); -/* 90 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:add"}) -/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(ColumnInfo columnInfo) { -/* 102 */ return toAjax(this.columnInfoService.insertColumnInfo(columnInfo)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{id}"}) -/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) { -/* 111 */ ColumnInfo columnInfo = this.columnInfoService.selectColumnInfoById(id); -/* 112 */ mmap.put("columnInfo", columnInfo); -/* 113 */ DictType dictType = new DictType(); -/* 114 */ dictType.setLabel("column_bind"); -/* 115 */ List list = this.dictTypeService.selectDictTypeList(dictType); -/* 116 */ mmap.put("dictList", list); -/* 117 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:edit"}) -/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(ColumnInfo columnInfo) { -/* 129 */ return toAjax(this.columnInfoService.updateColumnInfo(columnInfo)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"dasz:columninfo:remove"}) -/* */ @Log(title = "过程信息基础字段", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 141 */ return toAjax(this.columnInfoService.deleteColumnInfoByIds(ids)); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.dasz.basecolumn.domain.ColumnInfo; + import com.archive.project.dasz.basecolumn.service.IColumnInfoService; + import com.archive.project.system.dict.domain.DictType; + import com.archive.project.system.dict.service.IDictTypeService; + import java.util.List; + import org.apache.shiro.authz.annotation.RequiresPermissions; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Controller; + import org.springframework.ui.ModelMap; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.PathVariable; + import org.springframework.web.bind.annotation.PostMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.ResponseBody; + + + + + + + @Controller + @RequestMapping({"/dasz/basecolumn/columninfo"}) + public class ColumnInfoController + extends BaseController + { + private String prefix = "dasz/basecolumn/columninfo"; + + @Autowired + private IColumnInfoService columnInfoService; + + @Autowired + private IDictTypeService dictTypeService; + + + @RequiresPermissions({"dasz:columninfo:view"}) + @GetMapping + public String info(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/info"; + } + + + + + + @RequiresPermissions({"dasz:columninfo:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(ColumnInfo columnInfo) { + startPage(); + List list = this.columnInfoService.selectColumnInfoList(columnInfo); + return getDataTable(list); + } + + + + + + @RequiresPermissions({"dasz:columninfo:export"}) + @Log(title = "过程信息基础字段", businessType = BusinessType.EXPORT) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(ColumnInfo columnInfo) { + List list = this.columnInfoService.selectColumnInfoList(columnInfo); + ExcelUtil util = new ExcelUtil(ColumnInfo.class); + return util.exportExcel(list, "info"); + } + + + + + + @GetMapping({"/add"}) + public String add(ModelMap mmap) { + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"dasz:columninfo:add"}) + @Log(title = "过程信息基础字段", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(ColumnInfo columnInfo) { + return toAjax(this.columnInfoService.insertColumnInfo(columnInfo)); + } + + + + + + @GetMapping({"/edit/{id}"}) + public String edit(@PathVariable("id") Long id, ModelMap mmap) { + ColumnInfo columnInfo = this.columnInfoService.selectColumnInfoById(id); + mmap.put("columnInfo", columnInfo); + DictType dictType = new DictType(); + dictType.setLabel("column_bind"); + List list = this.dictTypeService.selectDictTypeList(dictType); + mmap.put("dictList", list); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"dasz:columninfo:edit"}) + @Log(title = "过程信息基础字段", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(ColumnInfo columnInfo) { + return toAjax(this.columnInfoService.updateColumnInfo(columnInfo)); + } + + + + + + @RequiresPermissions({"dasz:columninfo:remove"}) + @Log(title = "过程信息基础字段", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.columnInfoService.deleteColumnInfoByIds(ids)); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnInfoController.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFile.java b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFile.java index d57c921..e37055a 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFile.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFile.java @@ -1,208 +1,208 @@ -/* */ package com.archive.project.dasz.basecolumn.domain + package com.archive.project.dasz.basecolumn.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class ColumnFile -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "字段显示名称") -/* */ private String columnName; -/* */ @Excel(name = "字段名称") -/* */ private String columnCode; -/* */ @Excel(name = "字段长度") -/* */ private Long columnLength; -/* */ @Excel(name = "字段类型") -/* */ private String columnType; -/* */ @Excel(name = "字段绑定编码") -/* */ private String columnCodetype; -/* */ @Excel(name = "显示类型") -/* */ private String showType; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "排序项") -/* */ private Long pxx; -/* */ @Excel(name = "列表项") -/* */ private Long lbx; -/* */ @Excel(name = "界面项") -/* */ private Long jmx; -/* */ @Excel(name = "检索项") -/* */ private Long jsx; -/* */ @Excel(name = "默认值") -/* */ private String mrz; -/* */ -/* */ public void setId(Long id) { -/* 71 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 76 */ return this.id; -/* */ } -/* */ -/* */ public void setColumnName(String columnName) { -/* 80 */ this.columnName = columnName; -/* */ } -/* */ -/* */ -/* */ public String getColumnName() { -/* 85 */ return this.columnName; -/* */ } -/* */ -/* */ public void setColumnCode(String columnCode) { -/* 89 */ this.columnCode = columnCode; -/* */ } -/* */ -/* */ -/* */ public String getColumnCode() { -/* 94 */ return this.columnCode; -/* */ } -/* */ -/* */ public void setColumnLength(Long columnLength) { -/* 98 */ this.columnLength = columnLength; -/* */ } -/* */ -/* */ -/* */ public Long getColumnLength() { -/* 103 */ return this.columnLength; -/* */ } -/* */ -/* */ public void setColumnType(String columnType) { -/* 107 */ this.columnType = columnType; -/* */ } -/* */ -/* */ -/* */ public String getColumnType() { -/* 112 */ return this.columnType; -/* */ } -/* */ -/* */ public void setColumnCodetype(String columnCodetype) { -/* 116 */ this.columnCodetype = columnCodetype; -/* */ } -/* */ -/* */ -/* */ public String getColumnCodetype() { -/* 121 */ return this.columnCodetype; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 125 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 130 */ return this.bz; -/* */ } -/* */ -/* */ public void setPxx(Long pxx) { -/* 134 */ this.pxx = pxx; -/* */ } -/* */ -/* */ -/* */ public Long getPxx() { -/* 139 */ return this.pxx; -/* */ } -/* */ -/* */ public void setLbx(Long lbx) { -/* 143 */ this.lbx = lbx; -/* */ } -/* */ -/* */ -/* */ public Long getLbx() { -/* 148 */ return this.lbx; -/* */ } -/* */ -/* */ public void setJmx(Long jmx) { -/* 152 */ this.jmx = jmx; -/* */ } -/* */ -/* */ -/* */ public Long getJmx() { -/* 157 */ return this.jmx; -/* */ } -/* */ -/* */ public void setJsx(Long jsx) { -/* 161 */ this.jsx = jsx; -/* */ } -/* */ -/* */ -/* */ public Long getJsx() { -/* 166 */ return this.jsx; -/* */ } -/* */ -/* */ public void setMrz(String mrz) { -/* 170 */ this.mrz = mrz; -/* */ } -/* */ -/* */ -/* */ public String getMrz() { -/* 175 */ return this.mrz; -/* */ } -/* */ -/* */ public String getShowType() { -/* 179 */ return this.showType; -/* */ } -/* */ -/* */ public void setShowType(String showType) { -/* 183 */ this.showType = showType; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 189 */ .append("id", getId()) -/* 190 */ .append("columnName", getColumnName()) -/* 191 */ .append("columnCode", getColumnCode()) -/* 192 */ .append("columnLength", getColumnLength()) -/* 193 */ .append("columnType", getColumnType()) -/* 194 */ .append("columnCodetype", getColumnCodetype()) -/* 195 */ .append("bz", getBz()) -/* 196 */ .append("pxx", getPxx()) -/* 197 */ .append("lbx", getLbx()) -/* 198 */ .append("jmx", getJmx()) -/* 199 */ .append("jsx", getJsx()) -/* 200 */ .append("mrz", getMrz()) -/* 201 */ .toString(); -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + import com.archive.framework.web.domain.BaseEntity; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class ColumnFile + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "字段显示名称") + private String columnName; + @Excel(name = "字段名称") + private String columnCode; + @Excel(name = "字段长度") + private Long columnLength; + @Excel(name = "字段类型") + private String columnType; + @Excel(name = "字段绑定编码") + private String columnCodetype; + @Excel(name = "显示类型") + private String showType; + @Excel(name = "备注") + private String bz; + @Excel(name = "排序项") + private Long pxx; + @Excel(name = "列表项") + private Long lbx; + @Excel(name = "界面项") + private Long jmx; + @Excel(name = "检索项") + private Long jsx; + @Excel(name = "默认值") + private String mrz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setColumnName(String columnName) { + this.columnName = columnName; + } + + + public String getColumnName() { + return this.columnName; + } + + public void setColumnCode(String columnCode) { + this.columnCode = columnCode; + } + + + public String getColumnCode() { + return this.columnCode; + } + + public void setColumnLength(Long columnLength) { + this.columnLength = columnLength; + } + + + public Long getColumnLength() { + return this.columnLength; + } + + public void setColumnType(String columnType) { + this.columnType = columnType; + } + + + public String getColumnType() { + return this.columnType; + } + + public void setColumnCodetype(String columnCodetype) { + this.columnCodetype = columnCodetype; + } + + + public String getColumnCodetype() { + return this.columnCodetype; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setPxx(Long pxx) { + this.pxx = pxx; + } + + + public Long getPxx() { + return this.pxx; + } + + public void setLbx(Long lbx) { + this.lbx = lbx; + } + + + public Long getLbx() { + return this.lbx; + } + + public void setJmx(Long jmx) { + this.jmx = jmx; + } + + + public Long getJmx() { + return this.jmx; + } + + public void setJsx(Long jsx) { + this.jsx = jsx; + } + + + public Long getJsx() { + return this.jsx; + } + + public void setMrz(String mrz) { + this.mrz = mrz; + } + + + public String getMrz() { + return this.mrz; + } + + public String getShowType() { + return this.showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("columnName", getColumnName()) + .append("columnCode", getColumnCode()) + .append("columnLength", getColumnLength()) + .append("columnType", getColumnType()) + .append("columnCodetype", getColumnCodetype()) + .append("bz", getBz()) + .append("pxx", getPxx()) + .append("lbx", getLbx()) + .append("jmx", getJmx()) + .append("jsx", getJsx()) + .append("mrz", getMrz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnFile.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFolder.java b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFolder.java index 9494f68..176727f 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFolder.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnFolder.java @@ -1,208 +1,208 @@ -/* */ package com.archive.project.dasz.basecolumn.domain + package com.archive.project.dasz.basecolumn.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class ColumnFolder -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "字段显示名称") -/* */ private String columnName; -/* */ @Excel(name = "字段名称") -/* */ private String columnCode; -/* */ @Excel(name = "字段长度") -/* */ private Long columnLength; -/* */ @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本") -/* */ private String columnType; -/* */ @Excel(name = "字段绑定编码") -/* */ private String columnCodetype; -/* */ @Excel(name = "显示类型") -/* */ private String showType; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "排序项(0:否 1:是)") -/* */ private Long pxx; -/* */ @Excel(name = "列表项(0:否 1:是)") -/* */ private Long lbx; -/* */ @Excel(name = "界面项(0:否 1:是)") -/* */ private Long jmx; -/* */ @Excel(name = "检索项(0:否 1:是)") -/* */ private Long jsx; -/* */ @Excel(name = "默认值") -/* */ private String mrz; -/* */ -/* */ public void setId(Long id) { -/* 71 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 76 */ return this.id; -/* */ } -/* */ -/* */ public void setColumnName(String columnName) { -/* 80 */ this.columnName = columnName; -/* */ } -/* */ -/* */ -/* */ public String getColumnName() { -/* 85 */ return this.columnName; -/* */ } -/* */ -/* */ public void setColumnCode(String columnCode) { -/* 89 */ this.columnCode = columnCode; -/* */ } -/* */ -/* */ -/* */ public String getColumnCode() { -/* 94 */ return this.columnCode; -/* */ } -/* */ -/* */ public void setColumnLength(Long columnLength) { -/* 98 */ this.columnLength = columnLength; -/* */ } -/* */ -/* */ -/* */ public Long getColumnLength() { -/* 103 */ return this.columnLength; -/* */ } -/* */ -/* */ public void setColumnType(String columnType) { -/* 107 */ this.columnType = columnType; -/* */ } -/* */ -/* */ -/* */ public String getColumnType() { -/* 112 */ return this.columnType; -/* */ } -/* */ -/* */ public void setColumnCodetype(String columnCodetype) { -/* 116 */ this.columnCodetype = columnCodetype; -/* */ } -/* */ -/* */ -/* */ public String getColumnCodetype() { -/* 121 */ return this.columnCodetype; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 125 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 130 */ return this.bz; -/* */ } -/* */ -/* */ public void setPxx(Long pxx) { -/* 134 */ this.pxx = pxx; -/* */ } -/* */ -/* */ -/* */ public Long getPxx() { -/* 139 */ return this.pxx; -/* */ } -/* */ -/* */ public void setLbx(Long lbx) { -/* 143 */ this.lbx = lbx; -/* */ } -/* */ -/* */ -/* */ public Long getLbx() { -/* 148 */ return this.lbx; -/* */ } -/* */ -/* */ public void setJmx(Long jmx) { -/* 152 */ this.jmx = jmx; -/* */ } -/* */ -/* */ -/* */ public Long getJmx() { -/* 157 */ return this.jmx; -/* */ } -/* */ -/* */ public void setJsx(Long jsx) { -/* 161 */ this.jsx = jsx; -/* */ } -/* */ -/* */ -/* */ public Long getJsx() { -/* 166 */ return this.jsx; -/* */ } -/* */ -/* */ public void setMrz(String mrz) { -/* 170 */ this.mrz = mrz; -/* */ } -/* */ -/* */ -/* */ public String getMrz() { -/* 175 */ return this.mrz; -/* */ } -/* */ -/* */ public String getShowType() { -/* 179 */ return this.showType; -/* */ } -/* */ -/* */ public void setShowType(String showType) { -/* 183 */ this.showType = showType; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 189 */ .append("id", getId()) -/* 190 */ .append("columnName", getColumnName()) -/* 191 */ .append("columnCode", getColumnCode()) -/* 192 */ .append("columnLength", getColumnLength()) -/* 193 */ .append("columnType", getColumnType()) -/* 194 */ .append("columnCodetype", getColumnCodetype()) -/* 195 */ .append("bz", getBz()) -/* 196 */ .append("pxx", getPxx()) -/* 197 */ .append("lbx", getLbx()) -/* 198 */ .append("jmx", getJmx()) -/* 199 */ .append("jsx", getJsx()) -/* 200 */ .append("mrz", getMrz()) -/* 201 */ .toString(); -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + import com.archive.framework.web.domain.BaseEntity; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class ColumnFolder + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "字段显示名称") + private String columnName; + @Excel(name = "字段名称") + private String columnCode; + @Excel(name = "字段长度") + private Long columnLength; + @Excel(name = "字段类型", readConverterExp = "数=字、日期、文本") + private String columnType; + @Excel(name = "字段绑定编码") + private String columnCodetype; + @Excel(name = "显示类型") + private String showType; + @Excel(name = "备注") + private String bz; + @Excel(name = "排序项(0:否 1:是)") + private Long pxx; + @Excel(name = "列表项(0:否 1:是)") + private Long lbx; + @Excel(name = "界面项(0:否 1:是)") + private Long jmx; + @Excel(name = "检索项(0:否 1:是)") + private Long jsx; + @Excel(name = "默认值") + private String mrz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setColumnName(String columnName) { + this.columnName = columnName; + } + + + public String getColumnName() { + return this.columnName; + } + + public void setColumnCode(String columnCode) { + this.columnCode = columnCode; + } + + + public String getColumnCode() { + return this.columnCode; + } + + public void setColumnLength(Long columnLength) { + this.columnLength = columnLength; + } + + + public Long getColumnLength() { + return this.columnLength; + } + + public void setColumnType(String columnType) { + this.columnType = columnType; + } + + + public String getColumnType() { + return this.columnType; + } + + public void setColumnCodetype(String columnCodetype) { + this.columnCodetype = columnCodetype; + } + + + public String getColumnCodetype() { + return this.columnCodetype; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setPxx(Long pxx) { + this.pxx = pxx; + } + + + public Long getPxx() { + return this.pxx; + } + + public void setLbx(Long lbx) { + this.lbx = lbx; + } + + + public Long getLbx() { + return this.lbx; + } + + public void setJmx(Long jmx) { + this.jmx = jmx; + } + + + public Long getJmx() { + return this.jmx; + } + + public void setJsx(Long jsx) { + this.jsx = jsx; + } + + + public Long getJsx() { + return this.jsx; + } + + public void setMrz(String mrz) { + this.mrz = mrz; + } + + + public String getMrz() { + return this.mrz; + } + + public String getShowType() { + return this.showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("columnName", getColumnName()) + .append("columnCode", getColumnCode()) + .append("columnLength", getColumnLength()) + .append("columnType", getColumnType()) + .append("columnCodetype", getColumnCodetype()) + .append("bz", getBz()) + .append("pxx", getPxx()) + .append("lbx", getLbx()) + .append("jmx", getJmx()) + .append("jsx", getJsx()) + .append("mrz", getMrz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnFolder.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnInfo.java b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnInfo.java index 5d9b71a..37e613e 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnInfo.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/domain/ColumnInfo.java @@ -1,208 +1,208 @@ -/* */ package com.archive.project.dasz.basecolumn.domain + package com.archive.project.dasz.basecolumn.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class ColumnInfo -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ private Long id; -/* */ @Excel(name = "字段显示名称") -/* */ private String columnName; -/* */ @Excel(name = "字段名称") -/* */ private String columnCode; -/* */ @Excel(name = "字段长度") -/* */ private Long columnLength; -/* */ @Excel(name = "字段类型") -/* */ private String columnType; -/* */ @Excel(name = "字段绑定编码") -/* */ private String columnCodetype; -/* */ @Excel(name = "显示类型") -/* */ private String showType; -/* */ @Excel(name = "备注") -/* */ private String bz; -/* */ @Excel(name = "排序项") -/* */ private Long pxx; -/* */ @Excel(name = "列表项") -/* */ private Long lbx; -/* */ @Excel(name = "界面项") -/* */ private Long jmx; -/* */ @Excel(name = "检索项") -/* */ private Long jsx; -/* */ @Excel(name = "默认值") -/* */ private String mrz; -/* */ -/* */ public void setId(Long id) { -/* 71 */ this.id = id; -/* */ } -/* */ -/* */ -/* */ public Long getId() { -/* 76 */ return this.id; -/* */ } -/* */ -/* */ public void setColumnName(String columnName) { -/* 80 */ this.columnName = columnName; -/* */ } -/* */ -/* */ -/* */ public String getColumnName() { -/* 85 */ return this.columnName; -/* */ } -/* */ -/* */ public void setColumnCode(String columnCode) { -/* 89 */ this.columnCode = columnCode; -/* */ } -/* */ -/* */ -/* */ public String getColumnCode() { -/* 94 */ return this.columnCode; -/* */ } -/* */ -/* */ public void setColumnLength(Long columnLength) { -/* 98 */ this.columnLength = columnLength; -/* */ } -/* */ -/* */ -/* */ public Long getColumnLength() { -/* 103 */ return this.columnLength; -/* */ } -/* */ -/* */ public void setColumnType(String columnType) { -/* 107 */ this.columnType = columnType; -/* */ } -/* */ -/* */ -/* */ public String getColumnType() { -/* 112 */ return this.columnType; -/* */ } -/* */ -/* */ public void setColumnCodetype(String columnCodetype) { -/* 116 */ this.columnCodetype = columnCodetype; -/* */ } -/* */ -/* */ -/* */ public String getColumnCodetype() { -/* 121 */ return this.columnCodetype; -/* */ } -/* */ -/* */ public void setBz(String bz) { -/* 125 */ this.bz = bz; -/* */ } -/* */ -/* */ -/* */ public String getBz() { -/* 130 */ return this.bz; -/* */ } -/* */ -/* */ public void setPxx(Long pxx) { -/* 134 */ this.pxx = pxx; -/* */ } -/* */ -/* */ -/* */ public Long getPxx() { -/* 139 */ return this.pxx; -/* */ } -/* */ -/* */ public void setLbx(Long lbx) { -/* 143 */ this.lbx = lbx; -/* */ } -/* */ -/* */ -/* */ public Long getLbx() { -/* 148 */ return this.lbx; -/* */ } -/* */ -/* */ public void setJmx(Long jmx) { -/* 152 */ this.jmx = jmx; -/* */ } -/* */ -/* */ -/* */ public Long getJmx() { -/* 157 */ return this.jmx; -/* */ } -/* */ -/* */ public void setJsx(Long jsx) { -/* 161 */ this.jsx = jsx; -/* */ } -/* */ -/* */ -/* */ public Long getJsx() { -/* 166 */ return this.jsx; -/* */ } -/* */ -/* */ public void setMrz(String mrz) { -/* 170 */ this.mrz = mrz; -/* */ } -/* */ -/* */ -/* */ public String getMrz() { -/* 175 */ return this.mrz; -/* */ } -/* */ -/* */ public String getShowType() { -/* 179 */ return this.showType; -/* */ } -/* */ -/* */ public void setShowType(String showType) { -/* 183 */ this.showType = showType; -/* */ } -/* */ -/* */ -/* */ public String toString() { -/* 188 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 189 */ .append("id", getId()) -/* 190 */ .append("columnName", getColumnName()) -/* 191 */ .append("columnCode", getColumnCode()) -/* 192 */ .append("columnLength", getColumnLength()) -/* 193 */ .append("columnType", getColumnType()) -/* 194 */ .append("columnCodetype", getColumnCodetype()) -/* 195 */ .append("bz", getBz()) -/* 196 */ .append("pxx", getPxx()) -/* 197 */ .append("lbx", getLbx()) -/* 198 */ .append("jmx", getJmx()) -/* 199 */ .append("jsx", getJsx()) -/* 200 */ .append("mrz", getMrz()) -/* 201 */ .toString(); -/* */ } -/* */ } + + import com.archive.framework.aspectj.lang.annotation.Excel; + import com.archive.framework.web.domain.BaseEntity; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class ColumnInfo + extends BaseEntity + { + private static final long serialVersionUID = 1L; + private Long id; + @Excel(name = "字段显示名称") + private String columnName; + @Excel(name = "字段名称") + private String columnCode; + @Excel(name = "字段长度") + private Long columnLength; + @Excel(name = "字段类型") + private String columnType; + @Excel(name = "字段绑定编码") + private String columnCodetype; + @Excel(name = "显示类型") + private String showType; + @Excel(name = "备注") + private String bz; + @Excel(name = "排序项") + private Long pxx; + @Excel(name = "列表项") + private Long lbx; + @Excel(name = "界面项") + private Long jmx; + @Excel(name = "检索项") + private Long jsx; + @Excel(name = "默认值") + private String mrz; + + public void setId(Long id) { + this.id = id; + } + + + public Long getId() { + return this.id; + } + + public void setColumnName(String columnName) { + this.columnName = columnName; + } + + + public String getColumnName() { + return this.columnName; + } + + public void setColumnCode(String columnCode) { + this.columnCode = columnCode; + } + + + public String getColumnCode() { + return this.columnCode; + } + + public void setColumnLength(Long columnLength) { + this.columnLength = columnLength; + } + + + public Long getColumnLength() { + return this.columnLength; + } + + public void setColumnType(String columnType) { + this.columnType = columnType; + } + + + public String getColumnType() { + return this.columnType; + } + + public void setColumnCodetype(String columnCodetype) { + this.columnCodetype = columnCodetype; + } + + + public String getColumnCodetype() { + return this.columnCodetype; + } + + public void setBz(String bz) { + this.bz = bz; + } + + + public String getBz() { + return this.bz; + } + + public void setPxx(Long pxx) { + this.pxx = pxx; + } + + + public Long getPxx() { + return this.pxx; + } + + public void setLbx(Long lbx) { + this.lbx = lbx; + } + + + public Long getLbx() { + return this.lbx; + } + + public void setJmx(Long jmx) { + this.jmx = jmx; + } + + + public Long getJmx() { + return this.jmx; + } + + public void setJsx(Long jsx) { + this.jsx = jsx; + } + + + public Long getJsx() { + return this.jsx; + } + + public void setMrz(String mrz) { + this.mrz = mrz; + } + + + public String getMrz() { + return this.mrz; + } + + public String getShowType() { + return this.showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + + + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("id", getId()) + .append("columnName", getColumnName()) + .append("columnCode", getColumnCode()) + .append("columnLength", getColumnLength()) + .append("columnType", getColumnType()) + .append("columnCodetype", getColumnCodetype()) + .append("bz", getBz()) + .append("pxx", getPxx()) + .append("lbx", getLbx()) + .append("jmx", getJmx()) + .append("jsx", getJsx()) + .append("mrz", getMrz()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\domain\ColumnInfo.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnDocumentServiceImpl.java b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnDocumentServiceImpl.java index 065d073..4384870 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnDocumentServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnDocumentServiceImpl.java @@ -1,113 +1,113 @@ -/* */ package com.archive.project.dasz.basecolumn.service.impl + package com.archive.project.dasz.basecolumn.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnDocument; -/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnDocumentMapper; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnDocumentService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class ColumnDocumentServiceImpl -/* */ implements IColumnDocumentService -/* */ { -/* */ @Autowired -/* */ private ColumnDocumentMapper columnDocumentMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public ColumnDocument selectColumnDocumentById(Long id) { -/* 38 */ return this.columnDocumentMapper.selectColumnDocumentById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectColumnDocumentList(ColumnDocument columnDocument) { -/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 51 */ return this.columnDocumentMapper.selectColumnDocumentList(columnDocument); -/* */ } -/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 54 */ return this.columnDocumentMapper.selectColumnDocumentListSqlite(columnDocument); -/* */ } -/* 56 */ return this.columnDocumentMapper.selectColumnDocumentList(columnDocument); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertColumnDocument(ColumnDocument columnDocument) { -/* 70 */ return this.columnDocumentMapper.insertColumnDocument(columnDocument); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateColumnDocument(ColumnDocument columnDocument) { -/* 82 */ return this.columnDocumentMapper.updateColumnDocument(columnDocument); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnDocumentByIds(String ids) { -/* 94 */ return this.columnDocumentMapper.deleteColumnDocumentByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnDocumentById(Long id) { -/* 106 */ return this.columnDocumentMapper.deleteColumnDocumentById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.basecolumn.domain.ColumnDocument; + import com.archive.project.dasz.basecolumn.mapper.ColumnDocumentMapper; + import com.archive.project.dasz.basecolumn.service.IColumnDocumentService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class ColumnDocumentServiceImpl + implements IColumnDocumentService + { + @Autowired + private ColumnDocumentMapper columnDocumentMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public ColumnDocument selectColumnDocumentById(Long id) { + return this.columnDocumentMapper.selectColumnDocumentById(id); + } + + + + + + + + + + public List selectColumnDocumentList(ColumnDocument columnDocument) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.columnDocumentMapper.selectColumnDocumentList(columnDocument); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.columnDocumentMapper.selectColumnDocumentListSqlite(columnDocument); + } + return this.columnDocumentMapper.selectColumnDocumentList(columnDocument); + } + + + + + + + + + + + + public int insertColumnDocument(ColumnDocument columnDocument) { + return this.columnDocumentMapper.insertColumnDocument(columnDocument); + } + + + + + + + + + + public int updateColumnDocument(ColumnDocument columnDocument) { + return this.columnDocumentMapper.updateColumnDocument(columnDocument); + } + + + + + + + + + + public int deleteColumnDocumentByIds(String ids) { + return this.columnDocumentMapper.deleteColumnDocumentByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteColumnDocumentById(Long id) { + return this.columnDocumentMapper.deleteColumnDocumentById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnDocumentServiceImpl.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFileServiceImpl.java b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFileServiceImpl.java index 558ccff..3d39492 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFileServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFileServiceImpl.java @@ -1,113 +1,113 @@ -/* */ package com.archive.project.dasz.basecolumn.service.impl + package com.archive.project.dasz.basecolumn.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFile; -/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnFileMapper; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnFileService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class ColumnFileServiceImpl -/* */ implements IColumnFileService -/* */ { -/* */ @Autowired -/* */ private ColumnFileMapper columnFileMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public ColumnFile selectColumnFileById(Long id) { -/* 38 */ return this.columnFileMapper.selectColumnFileById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectColumnFileList(ColumnFile columnFile) { -/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 51 */ return this.columnFileMapper.selectColumnFileList(columnFile); -/* */ } -/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 54 */ return this.columnFileMapper.selectColumnFileListSqlite(columnFile); -/* */ } -/* 56 */ return this.columnFileMapper.selectColumnFileList(columnFile); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertColumnFile(ColumnFile columnFile) { -/* 70 */ return this.columnFileMapper.insertColumnFile(columnFile); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateColumnFile(ColumnFile columnFile) { -/* 82 */ return this.columnFileMapper.updateColumnFile(columnFile); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnFileByIds(String ids) { -/* 94 */ return this.columnFileMapper.deleteColumnFileByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnFileById(Long id) { -/* 106 */ return this.columnFileMapper.deleteColumnFileById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.basecolumn.domain.ColumnFile; + import com.archive.project.dasz.basecolumn.mapper.ColumnFileMapper; + import com.archive.project.dasz.basecolumn.service.IColumnFileService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class ColumnFileServiceImpl + implements IColumnFileService + { + @Autowired + private ColumnFileMapper columnFileMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public ColumnFile selectColumnFileById(Long id) { + return this.columnFileMapper.selectColumnFileById(id); + } + + + + + + + + + + public List selectColumnFileList(ColumnFile columnFile) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.columnFileMapper.selectColumnFileList(columnFile); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.columnFileMapper.selectColumnFileListSqlite(columnFile); + } + return this.columnFileMapper.selectColumnFileList(columnFile); + } + + + + + + + + + + + + public int insertColumnFile(ColumnFile columnFile) { + return this.columnFileMapper.insertColumnFile(columnFile); + } + + + + + + + + + + public int updateColumnFile(ColumnFile columnFile) { + return this.columnFileMapper.updateColumnFile(columnFile); + } + + + + + + + + + + public int deleteColumnFileByIds(String ids) { + return this.columnFileMapper.deleteColumnFileByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteColumnFileById(Long id) { + return this.columnFileMapper.deleteColumnFileById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnFileServiceImpl.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFolderServiceImpl.java b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFolderServiceImpl.java index c2e90ed..b956656 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFolderServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnFolderServiceImpl.java @@ -1,113 +1,113 @@ -/* */ package com.archive.project.dasz.basecolumn.service.impl + package com.archive.project.dasz.basecolumn.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnFolder; -/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnFolderMapper; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnFolderService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class ColumnFolderServiceImpl -/* */ implements IColumnFolderService -/* */ { -/* */ @Autowired -/* */ private ColumnFolderMapper columnFolderMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public ColumnFolder selectColumnFolderById(Long id) { -/* 38 */ return this.columnFolderMapper.selectColumnFolderById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectColumnFolderList(ColumnFolder columnFolder) { -/* 50 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 51 */ return this.columnFolderMapper.selectColumnFolderList(columnFolder); -/* */ } -/* 53 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 54 */ return this.columnFolderMapper.selectColumnFolderListSqlite(columnFolder); -/* */ } -/* 56 */ return this.columnFolderMapper.selectColumnFolderList(columnFolder); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertColumnFolder(ColumnFolder columnFolder) { -/* 70 */ return this.columnFolderMapper.insertColumnFolder(columnFolder); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateColumnFolder(ColumnFolder columnFolder) { -/* 82 */ return this.columnFolderMapper.updateColumnFolder(columnFolder); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnFolderByIds(String ids) { -/* 94 */ return this.columnFolderMapper.deleteColumnFolderByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnFolderById(Long id) { -/* 106 */ return this.columnFolderMapper.deleteColumnFolderById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.basecolumn.domain.ColumnFolder; + import com.archive.project.dasz.basecolumn.mapper.ColumnFolderMapper; + import com.archive.project.dasz.basecolumn.service.IColumnFolderService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + + @Service + public class ColumnFolderServiceImpl + implements IColumnFolderService + { + @Autowired + private ColumnFolderMapper columnFolderMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public ColumnFolder selectColumnFolderById(Long id) { + return this.columnFolderMapper.selectColumnFolderById(id); + } + + + + + + + + + + public List selectColumnFolderList(ColumnFolder columnFolder) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.columnFolderMapper.selectColumnFolderList(columnFolder); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.columnFolderMapper.selectColumnFolderListSqlite(columnFolder); + } + return this.columnFolderMapper.selectColumnFolderList(columnFolder); + } + + + + + + + + + + + + public int insertColumnFolder(ColumnFolder columnFolder) { + return this.columnFolderMapper.insertColumnFolder(columnFolder); + } + + + + + + + + + + public int updateColumnFolder(ColumnFolder columnFolder) { + return this.columnFolderMapper.updateColumnFolder(columnFolder); + } + + + + + + + + + + public int deleteColumnFolderByIds(String ids) { + return this.columnFolderMapper.deleteColumnFolderByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteColumnFolderById(Long id) { + return this.columnFolderMapper.deleteColumnFolderById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnFolderServiceImpl.class diff --git a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnInfoServiceImpl.java b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnInfoServiceImpl.java index 73c5a80..594622e 100644 --- a/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnInfoServiceImpl.java +++ b/src/main/java/com/archive/project/dasz/basecolumn/service/impl/ColumnInfoServiceImpl.java @@ -1,112 +1,112 @@ -/* */ package com.archive.project.dasz.basecolumn.service.impl + package com.archive.project.dasz.basecolumn.service.impl ; -/* */ -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.dasz.basecolumn.domain.ColumnInfo; -/* */ import com.archive.project.dasz.basecolumn.mapper.ColumnInfoMapper; -/* */ import com.archive.project.dasz.basecolumn.service.IColumnInfoService; -/* */ import java.util.List; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class ColumnInfoServiceImpl -/* */ implements IColumnInfoService -/* */ { -/* */ @Autowired -/* */ private ColumnInfoMapper columnInfoMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ public ColumnInfo selectColumnInfoById(Long id) { -/* 37 */ return this.columnInfoMapper.selectColumnInfoById(id); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectColumnInfoList(ColumnInfo columnInfo) { -/* 49 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 50 */ return this.columnInfoMapper.selectColumnInfoList(columnInfo); -/* */ } -/* 52 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 53 */ return this.columnInfoMapper.selectColumnInfoListSqlite(columnInfo); -/* */ } -/* 55 */ return this.columnInfoMapper.selectColumnInfoList(columnInfo); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertColumnInfo(ColumnInfo columnInfo) { -/* 69 */ return this.columnInfoMapper.insertColumnInfo(columnInfo); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateColumnInfo(ColumnInfo columnInfo) { -/* 81 */ return this.columnInfoMapper.updateColumnInfo(columnInfo); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnInfoByIds(String ids) { -/* 93 */ return this.columnInfoMapper.deleteColumnInfoByIds(Convert.toStrArray(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteColumnInfoById(Long id) { -/* 105 */ return this.columnInfoMapper.deleteColumnInfoById(id); -/* */ } -/* */ } + + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.dasz.basecolumn.domain.ColumnInfo; + import com.archive.project.dasz.basecolumn.mapper.ColumnInfoMapper; + import com.archive.project.dasz.basecolumn.service.IColumnInfoService; + import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + + + + + @Service + public class ColumnInfoServiceImpl + implements IColumnInfoService + { + @Autowired + private ColumnInfoMapper columnInfoMapper; + @Autowired + private ArchiveConfig archiveConfig; + + public ColumnInfo selectColumnInfoById(Long id) { + return this.columnInfoMapper.selectColumnInfoById(id); + } + + + + + + + + + + public List selectColumnInfoList(ColumnInfo columnInfo) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.columnInfoMapper.selectColumnInfoList(columnInfo); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.columnInfoMapper.selectColumnInfoListSqlite(columnInfo); + } + return this.columnInfoMapper.selectColumnInfoList(columnInfo); + } + + + + + + + + + + + + public int insertColumnInfo(ColumnInfo columnInfo) { + return this.columnInfoMapper.insertColumnInfo(columnInfo); + } + + + + + + + + + + public int updateColumnInfo(ColumnInfo columnInfo) { + return this.columnInfoMapper.updateColumnInfo(columnInfo); + } + + + + + + + + + + public int deleteColumnInfoByIds(String ids) { + return this.columnInfoMapper.deleteColumnInfoByIds(Convert.toStrArray(ids)); + } + + + + + + + + + + public int deleteColumnInfoById(Long id) { + return this.columnInfoMapper.deleteColumnInfoById(id); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\service\impl\ColumnInfoServiceImpl.class diff --git a/src/main/java/com/archive/project/system/config/controller/ConfigController.java b/src/main/java/com/archive/project/system/config/controller/ConfigController.java index 9737f74..abfb118 100644 --- a/src/main/java/com/archive/project/system/config/controller/ConfigController.java +++ b/src/main/java/com/archive/project/system/config/controller/ConfigController.java @@ -1,159 +1,159 @@ -/* */ package com.archive.project.system.config.controller + package com.archive.project.system.config.controller ; -/* */ -/* */ import com.archive.common.utils.poi.ExcelUtil; -/* */ import com.archive.framework.aspectj.lang.annotation.Log; -/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; -/* */ import com.archive.framework.web.controller.BaseController; -/* */ import com.archive.framework.web.domain.AjaxResult; -/* */ import com.archive.framework.web.page.TableDataInfo; -/* */ import com.archive.project.system.config.domain.Config; -/* */ import com.archive.project.system.config.service.IConfigService; -/* */ import java.util.List; -/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Controller; -/* */ import org.springframework.ui.ModelMap; -/* */ import org.springframework.validation.annotation.Validated; -/* */ import org.springframework.web.bind.annotation.GetMapping; -/* */ import org.springframework.web.bind.annotation.PathVariable; -/* */ import org.springframework.web.bind.annotation.PostMapping; -/* */ import org.springframework.web.bind.annotation.RequestMapping; -/* */ import org.springframework.web.bind.annotation.ResponseBody; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Controller -/* */ @RequestMapping({"/system/config"}) -/* */ public class ConfigController -/* */ extends BaseController -/* */ { -/* 33 */ private String prefix = "system/config"; -/* */ -/* */ @Autowired -/* */ private IConfigService configService; -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:view"}) -/* */ @GetMapping -/* */ public String config() { -/* 42 */ return this.prefix + "/config"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:list"}) -/* */ @PostMapping({"/list"}) -/* */ @ResponseBody -/* */ public TableDataInfo list(Config config) { -/* 53 */ startPage(); -/* 54 */ List list = this.configService.selectConfigList(config); -/* 55 */ return getDataTable(list); -/* */ } -/* */ -/* */ -/* */ @Log(title = "参数管理", businessType = BusinessType.EXPORT) -/* */ @RequiresPermissions({"system:config:export"}) -/* */ @PostMapping({"/export"}) -/* */ @ResponseBody -/* */ public AjaxResult export(Config config) { -/* 64 */ List list = this.configService.selectConfigList(config); -/* 65 */ ExcelUtil util = new ExcelUtil(Config.class); -/* 66 */ return util.exportExcel(list, "参数数据"); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/add"}) -/* */ public String add() { -/* 75 */ return this.prefix + "/add"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:add"}) -/* */ @Log(title = "参数管理", businessType = BusinessType.INSERT) -/* */ @PostMapping({"/add"}) -/* */ @ResponseBody -/* */ public AjaxResult addSave(@Validated Config config) { -/* 87 */ if ("1".equals(this.configService.checkConfigKeyUnique(config))) -/* */ { -/* 89 */ return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); -/* */ } -/* 91 */ return toAjax(this.configService.insertConfig(config)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @GetMapping({"/edit/{configId}"}) -/* */ public String edit(@PathVariable("configId") Long configId, ModelMap mmap) { -/* 100 */ mmap.put("config", this.configService.selectConfigById(configId)); -/* 101 */ return this.prefix + "/edit"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:edit"}) -/* */ @Log(title = "参数管理", businessType = BusinessType.UPDATE) -/* */ @PostMapping({"/edit"}) -/* */ @ResponseBody -/* */ public AjaxResult editSave(@Validated Config config) { -/* 113 */ if ("1".equals(this.configService.checkConfigKeyUnique(config))) -/* */ { -/* 115 */ return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); -/* */ } -/* 117 */ return toAjax(this.configService.updateConfig(config)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:remove"}) -/* */ @Log(title = "参数管理", businessType = BusinessType.DELETE) -/* */ @PostMapping({"/remove"}) -/* */ @ResponseBody -/* */ public AjaxResult remove(String ids) { -/* 129 */ return toAjax(this.configService.deleteConfigByIds(ids)); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @RequiresPermissions({"system:config:remove"}) -/* */ @Log(title = "参数管理", businessType = BusinessType.CLEAN) -/* */ @GetMapping({"/clearCache"}) -/* */ @ResponseBody -/* */ public AjaxResult clearCache() { -/* 141 */ this.configService.clearCache(); -/* 142 */ return success(); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @PostMapping({"/checkConfigKeyUnique"}) -/* */ @ResponseBody -/* */ public String checkConfigKeyUnique(Config config) { -/* 152 */ return this.configService.checkConfigKeyUnique(config); -/* */ } -/* */ } + + import com.archive.common.utils.poi.ExcelUtil; + import com.archive.framework.aspectj.lang.annotation.Log; + import com.archive.framework.aspectj.lang.enums.BusinessType; + import com.archive.framework.web.controller.BaseController; + import com.archive.framework.web.domain.AjaxResult; + import com.archive.framework.web.page.TableDataInfo; + import com.archive.project.system.config.domain.Config; + import com.archive.project.system.config.service.IConfigService; + import java.util.List; + import org.apache.shiro.authz.annotation.RequiresPermissions; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Controller; + import org.springframework.ui.ModelMap; + import org.springframework.validation.annotation.Validated; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.PathVariable; + import org.springframework.web.bind.annotation.PostMapping; + import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.ResponseBody; + + + + + + + @Controller + @RequestMapping({"/system/config"}) + public class ConfigController + extends BaseController + { + private String prefix = "system/config"; + + @Autowired + private IConfigService configService; + + + @RequiresPermissions({"system:config:view"}) + @GetMapping + public String config() { + return this.prefix + "/config"; + } + + + + + + @RequiresPermissions({"system:config:list"}) + @PostMapping({"/list"}) + @ResponseBody + public TableDataInfo list(Config config) { + startPage(); + List list = this.configService.selectConfigList(config); + return getDataTable(list); + } + + + @Log(title = "参数管理", businessType = BusinessType.EXPORT) + @RequiresPermissions({"system:config:export"}) + @PostMapping({"/export"}) + @ResponseBody + public AjaxResult export(Config config) { + List list = this.configService.selectConfigList(config); + ExcelUtil util = new ExcelUtil(Config.class); + return util.exportExcel(list, "参数数据"); + } + + + + + + @GetMapping({"/add"}) + public String add() { + return this.prefix + "/add"; + } + + + + + + @RequiresPermissions({"system:config:add"}) + @Log(title = "参数管理", businessType = BusinessType.INSERT) + @PostMapping({"/add"}) + @ResponseBody + public AjaxResult addSave(@Validated Config config) { + if ("1".equals(this.configService.checkConfigKeyUnique(config))) + { + return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + return toAjax(this.configService.insertConfig(config)); + } + + + + + + @GetMapping({"/edit/{configId}"}) + public String edit(@PathVariable("configId") Long configId, ModelMap mmap) { + mmap.put("config", this.configService.selectConfigById(configId)); + return this.prefix + "/edit"; + } + + + + + + @RequiresPermissions({"system:config:edit"}) + @Log(title = "参数管理", businessType = BusinessType.UPDATE) + @PostMapping({"/edit"}) + @ResponseBody + public AjaxResult editSave(@Validated Config config) { + if ("1".equals(this.configService.checkConfigKeyUnique(config))) + { + return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + return toAjax(this.configService.updateConfig(config)); + } + + + + + + @RequiresPermissions({"system:config:remove"}) + @Log(title = "参数管理", businessType = BusinessType.DELETE) + @PostMapping({"/remove"}) + @ResponseBody + public AjaxResult remove(String ids) { + return toAjax(this.configService.deleteConfigByIds(ids)); + } + + + + + + @RequiresPermissions({"system:config:remove"}) + @Log(title = "参数管理", businessType = BusinessType.CLEAN) + @GetMapping({"/clearCache"}) + @ResponseBody + public AjaxResult clearCache() { + this.configService.clearCache(); + return success(); + } + + + + + + @PostMapping({"/checkConfigKeyUnique"}) + @ResponseBody + public String checkConfigKeyUnique(Config config) { + return this.configService.checkConfigKeyUnique(config); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\controller\ConfigController.class diff --git a/src/main/java/com/archive/project/system/config/domain/Config.java b/src/main/java/com/archive/project/system/config/domain/Config.java index aa6dc59..c11d7b7 100644 --- a/src/main/java/com/archive/project/system/config/domain/Config.java +++ b/src/main/java/com/archive/project/system/config/domain/Config.java @@ -1,116 +1,116 @@ -/* */ package com.archive.project.system.config.domain + package com.archive.project.system.config.domain ; -/* */ -/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType; + + import com.archive.framework.aspectj.lang.annotation.ColumnType; import com.archive.framework.aspectj.lang.annotation.Excel; -/* */ import com.archive.framework.web.domain.BaseEntity; -/* */ import javax.validation.constraints.NotBlank; -/* */ import javax.validation.constraints.Size; -/* */ import org.apache.commons.lang3.builder.ToStringBuilder; -/* */ import org.apache.commons.lang3.builder.ToStringStyle; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public class Config -/* */ extends BaseEntity -/* */ { -/* */ private static final long serialVersionUID = 1L; -/* */ @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) -/* */ private Long configId; -/* */ @Excel(name = "参数名称") -/* */ private String configName; -/* */ @Excel(name = "参数键名") -/* */ private String configKey; -/* */ @Excel(name = "参数键值") -/* */ private String configValue; -/* */ @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") -/* */ private String configType; -/* */ -/* */ public Long getConfigId() { -/* 41 */ return this.configId; -/* */ } -/* */ -/* */ -/* */ public void setConfigId(Long configId) { -/* 46 */ this.configId = configId; -/* */ } -/* */ -/* */ -/* */ @NotBlank(message = "参数名称不能为空") -/* */ @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") -/* */ public String getConfigName() { -/* 53 */ return this.configName; -/* */ } -/* */ -/* */ -/* */ public void setConfigName(String configName) { -/* 58 */ this.configName = configName; -/* */ } -/* */ -/* */ -/* */ @NotBlank(message = "参数键名长度不能为空") -/* */ @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") -/* */ public String getConfigKey() { -/* 65 */ return this.configKey; -/* */ } -/* */ -/* */ -/* */ public void setConfigKey(String configKey) { -/* 70 */ this.configKey = configKey; -/* */ } -/* */ -/* */ -/* */ @NotBlank(message = "参数键值不能为空") -/* */ @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") -/* */ public String getConfigValue() { -/* 77 */ return this.configValue; -/* */ } -/* */ -/* */ -/* */ public void setConfigValue(String configValue) { -/* 82 */ this.configValue = configValue; -/* */ } -/* */ -/* */ -/* */ public String getConfigType() { -/* 87 */ return this.configType; -/* */ } -/* */ -/* */ -/* */ public void setConfigType(String configType) { -/* 92 */ this.configType = configType; -/* */ } -/* */ -/* */ @Override -/* */ public String toString() { -/* 97 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) -/* 98 */ .append("configId", getConfigId()) -/* 99 */ .append("configName", getConfigName()) -/* 100 */ .append("configKey", getConfigKey()) -/* 101 */ .append("configValue", getConfigValue()) -/* 102 */ .append("configType", getConfigType()) -/* 103 */ .append("createBy", getCreateBy()) -/* 104 */ .append("createTime", getCreateTime()) -/* 105 */ .append("updateBy", getUpdateBy()) -/* 106 */ .append("updateTime", getUpdateTime()) -/* 107 */ .append("remark", getRemark()) -/* 108 */ .toString(); -/* */ } -/* */ } + import com.archive.framework.web.domain.BaseEntity; + import javax.validation.constraints.NotBlank; + import javax.validation.constraints.Size; + import org.apache.commons.lang3.builder.ToStringBuilder; + import org.apache.commons.lang3.builder.ToStringStyle; + + + + + + + + + + + + + + + + + public class Config + extends BaseEntity + { + private static final long serialVersionUID = 1L; + @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) + private Long configId; + @Excel(name = "参数名称") + private String configName; + @Excel(name = "参数键名") + private String configKey; + @Excel(name = "参数键值") + private String configValue; + @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") + private String configType; + + public Long getConfigId() { + return this.configId; + } + + + public void setConfigId(Long configId) { + this.configId = configId; + } + + + @NotBlank(message = "参数名称不能为空") + @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") + public String getConfigName() { + return this.configName; + } + + + public void setConfigName(String configName) { + this.configName = configName; + } + + + @NotBlank(message = "参数键名长度不能为空") + @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") + public String getConfigKey() { + return this.configKey; + } + + + public void setConfigKey(String configKey) { + this.configKey = configKey; + } + + + @NotBlank(message = "参数键值不能为空") + @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") + public String getConfigValue() { + return this.configValue; + } + + + public void setConfigValue(String configValue) { + this.configValue = configValue; + } + + + public String getConfigType() { + return this.configType; + } + + + public void setConfigType(String configType) { + this.configType = configType; + } + + @Override + public String toString() { + return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) + .append("configId", getConfigId()) + .append("configName", getConfigName()) + .append("configKey", getConfigKey()) + .append("configValue", getConfigValue()) + .append("configType", getConfigType()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\domain\Config.class diff --git a/src/main/java/com/archive/project/system/config/service/ConfigServiceImpl.java b/src/main/java/com/archive/project/system/config/service/ConfigServiceImpl.java index f7d872b..1d9e4da 100644 --- a/src/main/java/com/archive/project/system/config/service/ConfigServiceImpl.java +++ b/src/main/java/com/archive/project/system/config/service/ConfigServiceImpl.java @@ -1,233 +1,233 @@ -/* */ package com.archive.project.system.config.service + package com.archive.project.system.config.service ; -/* */ -/* */ import com.archive.common.exception.BusinessException; -/* */ import com.archive.common.utils.CacheUtils; -/* */ import com.archive.common.utils.StringUtils; -/* */ import com.archive.common.utils.security.ShiroUtils; -/* */ import com.archive.common.utils.text.Convert; -/* */ import com.archive.framework.config.ArchiveConfig; -/* */ import com.archive.project.system.config.domain.Config; -/* */ import com.archive.project.system.config.mapper.ConfigMapper; -/* */ import com.archive.project.system.config.service.IConfigService; -/* */ import java.util.List; -/* */ import javax.annotation.PostConstruct; -/* */ import org.springframework.beans.factory.annotation.Autowired; -/* */ import org.springframework.stereotype.Service; -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ @Service -/* */ public class ConfigServiceImpl -/* */ implements IConfigService -/* */ { -/* */ @Autowired -/* */ private ConfigMapper configMapper; -/* */ @Autowired -/* */ private ArchiveConfig archiveConfig; -/* */ -/* */ @PostConstruct -/* */ public void init() { -/* 39 */ List configsList = this.configMapper.selectConfigList(new Config()); -/* 40 */ for (Config config : configsList) -/* */ { -/* 42 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); -/* */ } -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public Config selectConfigById(Long configId) { -/* 55 */ Config config = new Config(); -/* 56 */ config.setConfigId(configId); -/* 57 */ return this.configMapper.selectConfig(config); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public String selectConfigByKey(String configKey) { -/* 69 */ String configValue = Convert.toStr(CacheUtils.get(getCacheName(), getCacheKey(configKey))); -/* 70 */ if (StringUtils.isNotEmpty(configValue)) -/* */ { -/* 72 */ return configValue; -/* */ } -/* 74 */ Config config = new Config(); -/* 75 */ config.setConfigKey(configKey); -/* 76 */ Config retConfig = this.configMapper.selectConfig(config); -/* 77 */ if (StringUtils.isNotNull(retConfig)) { -/* */ -/* 79 */ CacheUtils.put(getCacheName(), getCacheKey(configKey), retConfig.getConfigValue()); -/* 80 */ return retConfig.getConfigValue(); -/* */ } -/* 82 */ return ""; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public List selectConfigList(Config config) { -/* 94 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 95 */ return this.configMapper.selectConfigList(config); -/* */ } -/* 97 */ if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 98 */ return this.configMapper.selectConfigListSqlite(config); -/* */ } -/* 100 */ return this.configMapper.selectConfigList(config); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int insertConfig(Config config) { -/* 114 */ config.setCreateBy(ShiroUtils.getLoginName()); -/* */ -/* 116 */ int row = 0; -/* 117 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 118 */ row = this.configMapper.insertConfig(config); -/* 119 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 120 */ row = this.configMapper.insertConfigSqlite(config); -/* */ } -/* */ -/* 123 */ if (row > 0) -/* */ { -/* 125 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); -/* */ } -/* 127 */ return row; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int updateConfig(Config config) { -/* 139 */ config.setUpdateBy(ShiroUtils.getLoginName()); -/* 140 */ int row = 0; -/* 141 */ if ("mysql".equals(this.archiveConfig.getDatabaseType())) { -/* 142 */ row = this.configMapper.updateConfig(config); -/* 143 */ } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { -/* 144 */ row = this.configMapper.updateConfigSqlite(config); -/* */ } -/* */ -/* 147 */ if (row > 0) -/* */ { -/* 149 */ CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); -/* */ } -/* 151 */ return row; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public int deleteConfigByIds(String ids) { -/* 163 */ Long[] configIds = Convert.toLongArray(ids); -/* 164 */ for (Long configId : configIds) { -/* */ -/* 166 */ Config config = selectConfigById(configId); -/* 167 */ if (StringUtils.equals("Y", config.getConfigType())) -/* */ { -/* 169 */ throw new BusinessException(String.format("内置参数【%1$s】不能删除 ", new Object[] { config.getConfigKey() })); -/* */ } -/* */ } -/* 172 */ int count = this.configMapper.deleteConfigByIds(Convert.toStrArray(ids)); -/* 173 */ if (count > 0) -/* */ { -/* */ -/* 176 */ CacheUtils.removeAll(getCacheName()); -/* */ } -/* 178 */ return count; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public void clearCache() { -/* 187 */ CacheUtils.removeAll(getCacheName()); -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ public String checkConfigKeyUnique(Config config) { -/* 199 */ Long configId = Long.valueOf(StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId().longValue()); -/* 200 */ Config info = this.configMapper.checkConfigKeyUnique(config.getConfigKey()); -/* 201 */ if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue()) -/* */ { -/* 203 */ return "1"; -/* */ } -/* 205 */ return "0"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private String getCacheName() { -/* 215 */ return "sys-config"; -/* */ } -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ private String getCacheKey(String configKey) { -/* 226 */ return "sys_config:" + configKey; -/* */ } -/* */ } + + import com.archive.common.exception.BusinessException; + import com.archive.common.utils.CacheUtils; + import com.archive.common.utils.StringUtils; + import com.archive.common.utils.security.ShiroUtils; + import com.archive.common.utils.text.Convert; + import com.archive.framework.config.ArchiveConfig; + import com.archive.project.system.config.domain.Config; + import com.archive.project.system.config.mapper.ConfigMapper; + import com.archive.project.system.config.service.IConfigService; + import java.util.List; + import javax.annotation.PostConstruct; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + + + + + + + + + + + + @Service + public class ConfigServiceImpl + implements IConfigService + { + @Autowired + private ConfigMapper configMapper; + @Autowired + private ArchiveConfig archiveConfig; + + @PostConstruct + public void init() { + List configsList = this.configMapper.selectConfigList(new Config()); + for (Config config : configsList) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + } + + + + + + + + + + public Config selectConfigById(Long configId) { + Config config = new Config(); + config.setConfigId(configId); + return this.configMapper.selectConfig(config); + } + + + + + + + + + + public String selectConfigByKey(String configKey) { + String configValue = Convert.toStr(CacheUtils.get(getCacheName(), getCacheKey(configKey))); + if (StringUtils.isNotEmpty(configValue)) + { + return configValue; + } + Config config = new Config(); + config.setConfigKey(configKey); + Config retConfig = this.configMapper.selectConfig(config); + if (StringUtils.isNotNull(retConfig)) { + + CacheUtils.put(getCacheName(), getCacheKey(configKey), retConfig.getConfigValue()); + return retConfig.getConfigValue(); + } + return ""; + } + + + + + + + + + + public List selectConfigList(Config config) { + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + return this.configMapper.selectConfigList(config); + } + if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + return this.configMapper.selectConfigListSqlite(config); + } + return this.configMapper.selectConfigList(config); + } + + + + + + + + + + + + public int insertConfig(Config config) { + config.setCreateBy(ShiroUtils.getLoginName()); + + int row = 0; + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + row = this.configMapper.insertConfig(config); + } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + row = this.configMapper.insertConfigSqlite(config); + } + + if (row > 0) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + return row; + } + + + + + + + + + + public int updateConfig(Config config) { + config.setUpdateBy(ShiroUtils.getLoginName()); + int row = 0; + if ("mysql".equals(this.archiveConfig.getDatabaseType())) { + row = this.configMapper.updateConfig(config); + } else if ("sqlite".equals(this.archiveConfig.getDatabaseType())) { + row = this.configMapper.updateConfigSqlite(config); + } + + if (row > 0) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + return row; + } + + + + + + + + + + public int deleteConfigByIds(String ids) { + Long[] configIds = Convert.toLongArray(ids); + for (Long configId : configIds) { + + Config config = selectConfigById(configId); + if (StringUtils.equals("Y", config.getConfigType())) + { + throw new BusinessException(String.format("内置参数【%1$s】不能删除 ", new Object[] { config.getConfigKey() })); + } + } + int count = this.configMapper.deleteConfigByIds(Convert.toStrArray(ids)); + if (count > 0) + { + + CacheUtils.removeAll(getCacheName()); + } + return count; + } + + + + + + + public void clearCache() { + CacheUtils.removeAll(getCacheName()); + } + + + + + + + + + + public String checkConfigKeyUnique(Config config) { + Long configId = Long.valueOf(StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId().longValue()); + Config info = this.configMapper.checkConfigKeyUnique(config.getConfigKey()); + if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue()) + { + return "1"; + } + return "0"; + } + + + + + + + + private String getCacheName() { + return "sys-config"; + } + + + + + + + + + private String getCacheKey(String configKey) { + return "sys_config:" + configKey; + } + } /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\system\config\service\ConfigServiceImpl.class