Compare commits

..

6 Commits

Author SHA1 Message Date
刘武 7f00c32dc7 数据处理模块新增 2024-09-28 12:28:18 +08:00
刘武 702817e275 数据处理模块新增 2024-09-28 11:48:28 +08:00
刘武 dc19916bca 数据处理模块新增 2024-09-27 22:30:09 +08:00
刘武 b1d3d51c7f 数据处理模块新增 2024-09-26 22:32:43 +08:00
刘武 b25c3bb686 数据处理模块新增 2024-09-26 22:03:38 +08:00
刘武 3ce339dbf9 数据处理模块新增 2024-09-26 21:23:38 +08:00
160 changed files with 785 additions and 3122 deletions

View File

@ -21,9 +21,9 @@ public class SysPasswordService {
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
private final int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT; private int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
private final Long lockTime = CacheConstants.PASSWORD_LOCK_TIME; private Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
@Autowired @Autowired
private SysRecordLogService recordLogService; private SysRecordLogService recordLogService;

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: lgy namespace: four
# Spring # Spring
spring: spring:
application: application:

View File

@ -21,134 +21,134 @@ public @interface Excel {
/** /**
* excel * excel
*/ */
int sort() default Integer.MAX_VALUE; public int sort () default Integer.MAX_VALUE;
/** /**
* Excel. * Excel.
*/ */
String name() default ""; public String name () default "";
/** /**
* , : yyyy-MM-dd * , : yyyy-MM-dd
*/ */
String dateFormat() default ""; public String dateFormat () default "";
/** /**
* (: 0=,1=,2=) * (: 0=,1=,2=)
*/ */
String readConverterExp() default ""; public String readConverterExp () default "";
/** /**
* *
*/ */
String separator() default ","; public String separator () default ",";
/** /**
* BigDecimal :-1(BigDecimal) * BigDecimal :-1(BigDecimal)
*/ */
int scale() default -1; public int scale () default -1;
/** /**
* BigDecimal :BigDecimal.ROUND_HALF_EVEN * BigDecimal :BigDecimal.ROUND_HALF_EVEN
*/ */
int roundingMode() default BigDecimal.ROUND_HALF_EVEN; public int roundingMode () default BigDecimal.ROUND_HALF_EVEN;
/** /**
* excel * excel
*/ */
double height() default 14; public double height () default 14;
/** /**
* excel * excel
*/ */
double width() default 16; public double width () default 16;
/** /**
* ,% 90 90% * ,% 90 90%
*/ */
String suffix() default ""; public String suffix () default "";
/** /**
* , * ,
*/ */
String defaultValue() default ""; public String defaultValue () default "";
/** /**
* *
*/ */
String prompt() default ""; public String prompt () default "";
/** /**
* . * .
*/ */
String[] combo() default {}; public String[] combo () default {};
/** /**
* ,:list) * ,:list)
*/ */
boolean needMerge() default false; public boolean needMerge () default false;
/** /**
* ,:,. * ,:,.
*/ */
boolean isExport() default true; public boolean isExport () default true;
/** /**
* ,, * ,,
*/ */
String targetAttr() default ""; public String targetAttr () default "";
/** /**
* , * ,
*/ */
boolean isStatistics() default false; public boolean isStatistics () default false;
/** /**
* 0 1 * 0 1
*/ */
ColumnType cellType() default ColumnType.STRING; public ColumnType cellType () default ColumnType.STRING;
/** /**
* *
*/ */
IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT; public IndexedColors headerBackgroundColor () default IndexedColors.GREY_50_PERCENT;
/** /**
* *
*/ */
IndexedColors headerColor() default IndexedColors.WHITE; public IndexedColors headerColor () default IndexedColors.WHITE;
/** /**
* *
*/ */
IndexedColors backgroundColor() default IndexedColors.WHITE; public IndexedColors backgroundColor () default IndexedColors.WHITE;
/** /**
* *
*/ */
IndexedColors color() default IndexedColors.BLACK; public IndexedColors color () default IndexedColors.BLACK;
/** /**
* *
*/ */
HorizontalAlignment align() default HorizontalAlignment.CENTER; public HorizontalAlignment align () default HorizontalAlignment.CENTER;
/** /**
* *
*/ */
Class<?> handler() default ExcelHandlerAdapter.class; public Class<?> handler () default ExcelHandlerAdapter.class;
/** /**
* *
*/ */
String[] args() default {}; public String[] args () default {};
/** /**
* 012 * 012
*/ */
Type type () default Type.ALL; Type type () default Type.ALL;
enum Type { public enum Type {
ALL(0), EXPORT(1), IMPORT(2); ALL(0), EXPORT(1), IMPORT(2);
private final int value; private final int value;
@ -161,7 +161,7 @@ public @interface Excel {
} }
} }
enum ColumnType { public enum ColumnType {
NUMERIC(0), STRING(1), IMAGE(2); NUMERIC(0), STRING(1), IMAGE(2);
private final int value; private final int value;

View File

@ -43,9 +43,9 @@ public class ScheduleConstants {
*/ */
PAUSE("1"); PAUSE("1");
private final String value; private String value;
Status(String value) { private Status (String value) {
this.value = value; this.value = value;
} }

View File

@ -11,22 +11,22 @@ public class BaseException extends RuntimeException {
/** /**
* *
*/ */
private final String module; private String module;
/** /**
* *
*/ */
private final String code; private String code;
/** /**
* *
*/ */
private final Object[] args; private Object[] args;
/** /**
* *
*/ */
private final String defaultMessage; private String defaultMessage;
public BaseException (String module, String code, Object[] args, String defaultMessage) { public BaseException (String module, String code, Object[] args, String defaultMessage) {
this.module = module; this.module = module;

View File

@ -10,9 +10,9 @@ import java.util.Arrays;
public class InvalidExtensionException extends FileUploadException { public class InvalidExtensionException extends FileUploadException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private final String[] allowedExtension; private String[] allowedExtension;
private final String extension; private String extension;
private final String filename; private String filename;
public InvalidExtensionException (String[] allowedExtension, String extension, String filename) { public InvalidExtensionException (String[] allowedExtension, String extension, String filename) {
super("filename : [" + filename + "], extension : [" + extension + "], allowed extension : [" + Arrays.toString(allowedExtension) + "]"); super("filename : [" + filename + "], extension : [" + extension + "], allowed extension : [" + Arrays.toString(allowedExtension) + "]");

View File

@ -8,7 +8,7 @@ package com.muyu.common.core.exception.job;
public class TaskException extends Exception { public class TaskException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private final Code code; private Code code;
public TaskException (String msg, Code code) { public TaskException (String msg, Code code) {
this(msg, code, null); this(msg, code, null);

View File

@ -27,11 +27,11 @@ public class CharsetKit {
/** /**
* ISO-8859-1 * ISO-8859-1
*/ */
public static final Charset CHARSET_ISO_8859_1 = StandardCharsets.ISO_8859_1; public static final Charset CHARSET_ISO_8859_1 = Charset.forName(ISO_8859_1);
/** /**
* UTF-8 * UTF-8
*/ */
public static final Charset CHARSET_UTF_8 = StandardCharsets.UTF_8; public static final Charset CHARSET_UTF_8 = Charset.forName(UTF_8);
/** /**
* GBK * GBK
*/ */

View File

@ -24,7 +24,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
private static final String[] parsePatterns = { private static String[] parsePatterns = {
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
"yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
"yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};

View File

@ -211,7 +211,11 @@ public class ServletUtils {
* @return * @return
*/ */
public static String urlEncode (String str) { public static String urlEncode (String str) {
return URLEncoder.encode(str, StandardCharsets.UTF_8); try {
return URLEncoder.encode(str, Constants.UTF8);
} catch (UnsupportedEncodingException e) {
return StringUtils.EMPTY;
}
} }
/** /**

View File

@ -43,7 +43,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor {
* @throws org.springframework.beans.BeansException * @throws org.springframework.beans.BeansException
*/ */
public static <T> T getBean (Class<T> clz) throws BeansException { public static <T> T getBean (Class<T> clz) throws BeansException {
T result = beanFactory.getBean(clz); T result = (T) beanFactory.getBean(clz);
return result; return result;
} }

View File

@ -125,17 +125,17 @@ public class FileUtils {
String filename = fileName; String filename = fileName;
if (agent.contains("MSIE")) { if (agent.contains("MSIE")) {
// IE浏览器 // IE浏览器
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8); filename = URLEncoder.encode(filename, "utf-8");
filename = filename.replace("+", " "); filename = filename.replace("+", " ");
} else if (agent.contains("Firefox")) { } else if (agent.contains("Firefox")) {
// 火狐浏览器 // 火狐浏览器
filename = new String(fileName.getBytes(), "ISO8859-1"); filename = new String(fileName.getBytes(), "ISO8859-1");
} else if (agent.contains("Chrome")) { } else if (agent.contains("Chrome")) {
// google浏览器 // google浏览器
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8); filename = URLEncoder.encode(filename, "utf-8");
} else { } else {
// 其它浏览器 // 其它浏览器
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8); filename = URLEncoder.encode(filename, "utf-8");
} }
return filename; return filename;
} }
@ -197,14 +197,15 @@ public class FileUtils {
public static void setAttachmentResponseHeader (HttpServletResponse response, String realFileName) throws UnsupportedEncodingException { public static void setAttachmentResponseHeader (HttpServletResponse response, String realFileName) throws UnsupportedEncodingException {
String percentEncodedFileName = percentEncode(realFileName); String percentEncodedFileName = percentEncode(realFileName);
String contentDispositionValue = "attachment; filename=" + StringBuilder contentDispositionValue = new StringBuilder();
percentEncodedFileName + contentDispositionValue.append("attachment; filename=")
";" + .append(percentEncodedFileName)
"filename*=" + .append(";")
"utf-8''" + .append("filename*=")
percentEncodedFileName; .append("utf-8''")
.append(percentEncodedFileName);
response.setHeader("Content-disposition", contentDispositionValue); response.setHeader("Content-disposition", contentDispositionValue.toString());
response.setHeader("download-filename", percentEncodedFileName); response.setHeader("download-filename", percentEncodedFileName);
} }
@ -216,7 +217,7 @@ public class FileUtils {
* @return * @return
*/ */
public static String percentEncode (String s) throws UnsupportedEncodingException { public static String percentEncode (String s) throws UnsupportedEncodingException {
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8); String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString());
return encode.replaceAll("\\+", "%20"); return encode.replaceAll("\\+", "%20");
} }
} }

View File

@ -124,7 +124,7 @@ public class EscapeUtil {
tmp.append(content.substring(lastPos)); tmp.append(content.substring(lastPos));
lastPos = content.length(); lastPos = content.length();
} else { } else {
tmp.append(content, lastPos, pos); tmp.append(content.substring(lastPos, pos));
lastPos = pos; lastPos = pos;
} }
} }

View File

@ -225,7 +225,7 @@ public class IpUtils {
if (ip != null && ip.indexOf(",") > 0) { if (ip != null && ip.indexOf(",") > 0) {
final String[] ips = ip.trim().split(","); final String[] ips = ip.trim().split(",");
for (String subIp : ips) { for (String subIp : ips) {
if (!isUnknown(subIp)) { if (false == isUnknown(subIp)) {
ip = subIp; ip = subIp;
break; break;
} }

View File

@ -121,7 +121,7 @@ public class ExcelUtil<T> {
/** /**
* *
*/ */
private final Map<Integer, Double> statistics = new HashMap<Integer, Double>(); private Map<Integer, Double> statistics = new HashMap<Integer, Double>();
public ExcelUtil (Class<T> clazz) { public ExcelUtil (Class<T> clazz) {
this.clazz = clazz; this.clazz = clazz;
@ -531,7 +531,7 @@ public class ExcelUtil<T> {
rowNo = isSubList() ? (i > 1 ? rowNo + 1 : rowNo + i) : i + 1 + rownum - startNo; rowNo = isSubList() ? (i > 1 ? rowNo + 1 : rowNo + i) : i + 1 + rownum - startNo;
row = sheet.createRow(rowNo); row = sheet.createRow(rowNo);
// 得到导出对象. // 得到导出对象.
T vo = list.get(i); T vo = (T) list.get(i);
Collection<?> subList = null; Collection<?> subList = null;
if (isSubList()) { if (isSubList()) {
if (isSubListValue(vo)) { if (isSubListValue(vo)) {
@ -913,7 +913,7 @@ public class ExcelUtil<T> {
public String dataFormatHandlerAdapter (Object value, Excel excel, Cell cell) { public String dataFormatHandlerAdapter (Object value, Excel excel, Cell cell) {
try { try {
Object instance = excel.handler().newInstance(); Object instance = excel.handler().newInstance();
Method formatMethod = excel.handler().getMethod("format", Object.class, String[].class, Cell.class, Workbook.class); Method formatMethod = excel.handler().getMethod("format", new Class[]{Object.class, String[].class, Cell.class, Workbook.class});
value = formatMethod.invoke(instance, value, excel.args(), cell, this.wb); value = formatMethod.invoke(instance, value, excel.args(), cell, this.wb);
} catch (Exception e) { } catch (Exception e) {
log.error("不能格式化数据 " + excel.handler(), e.getMessage()); log.error("不能格式化数据 " + excel.handler(), e.getMessage());
@ -1200,7 +1200,7 @@ public class ExcelUtil<T> {
public Collection<?> getListCellValue (Object obj) { public Collection<?> getListCellValue (Object obj) {
Object value; Object value;
try { try {
value = subMethod.invoke(obj); value = subMethod.invoke(obj, new Object[]{});
} catch (Exception e) { } catch (Exception e) {
return new ArrayList<Object>(); return new ArrayList<Object>();
} }
@ -1221,7 +1221,7 @@ public class ExcelUtil<T> {
getMethodName.append(name.substring(1)); getMethodName.append(name.substring(1));
Method method = null; Method method = null;
try { try {
method = pojoClass.getMethod(getMethodName.toString()); method = pojoClass.getMethod(getMethodName.toString(), new Class[]{});
} catch (Exception e) { } catch (Exception e) {
log.error("获取对象异常{}", e.getMessage()); log.error("获取对象异常{}", e.getMessage());
} }

View File

@ -24,7 +24,7 @@ public class ReflectUtils {
private static final String CGLIB_CLASS_SEPARATOR = "$$"; private static final String CGLIB_CLASS_SEPARATOR = "$$";
private static final Logger logger = LoggerFactory.getLogger(ReflectUtils.class); private static Logger logger = LoggerFactory.getLogger(ReflectUtils.class);
/** /**
* Getter. * Getter.
@ -113,7 +113,7 @@ public class ReflectUtils {
try { try {
return (E) method.invoke(obj, args); return (E) method.invoke(obj, args);
} catch (Exception e) { } catch (Exception e) {
String msg = "method: " + method + ", obj: " + obj + ", args: " + args; String msg = "method: " + method + ", obj: " + obj + ", args: " + args + "";
throw convertReflectionExceptionToUnchecked(msg, e); throw convertReflectionExceptionToUnchecked(msg, e);
} }
} }
@ -162,7 +162,7 @@ public class ReflectUtils {
} }
return (E) method.invoke(obj, args); return (E) method.invoke(obj, args);
} catch (Exception e) { } catch (Exception e) {
String msg = "method: " + method + ", obj: " + obj + ", args: " + args; String msg = "method: " + method + ", obj: " + obj + ", args: " + args + "";
throw convertReflectionExceptionToUnchecked(msg, e); throw convertReflectionExceptionToUnchecked(msg, e);
} }
} }

View File

@ -46,8 +46,8 @@ public final class Base64 {
for (int i = 52, j = 0 ; i <= 61 ; i++, j++) { for (int i = 52, j = 0 ; i <= 61 ; i++, j++) {
lookUpBase64Alphabet[i] = (char) ('0' + j); lookUpBase64Alphabet[i] = (char) ('0' + j);
} }
lookUpBase64Alphabet[62] = '+'; lookUpBase64Alphabet[62] = (char) '+';
lookUpBase64Alphabet[63] = '/'; lookUpBase64Alphabet[63] = (char) '/';
} }
private static boolean isWhiteSpace (char octect) { private static boolean isWhiteSpace (char octect) {
@ -82,7 +82,7 @@ public final class Base64 {
int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP; int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;
int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP; int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;
int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets; int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;
char[] encodedData = null; char encodedData[] = null;
encodedData = new char[numberQuartet * 4]; encodedData = new char[numberQuartet * 4];
@ -161,7 +161,7 @@ public final class Base64 {
return new byte[0]; return new byte[0];
} }
byte[] decodedData = null; byte decodedData[] = null;
byte b1 = 0, b2 = 0, b3 = 0, b4 = 0; byte b1 = 0, b2 = 0, b3 = 0, b4 = 0;
char d1 = 0, d2 = 0, d3 = 0, d4 = 0; char d1 = 0, d2 = 0, d3 = 0, d4 = 0;

View File

@ -17,9 +17,9 @@ public class Seq {
// 机器标识 // 机器标识
private static final String machineCode = "A"; private static final String machineCode = "A";
// 通用接口序列数 // 通用接口序列数
private static final AtomicInteger commSeq = new AtomicInteger(1); private static AtomicInteger commSeq = new AtomicInteger(1);
// 上传接口序列数 // 上传接口序列数
private static final AtomicInteger uploadSeq = new AtomicInteger(1); private static AtomicInteger uploadSeq = new AtomicInteger(1);
/** /**
* *

View File

@ -353,22 +353,22 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36); final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36);
// time_low // time_low
builder.append(digits(mostSigBits >> 32, 8)); builder.append(digits(mostSigBits >> 32, 8));
if (!isSimple) { if (false == isSimple) {
builder.append('-'); builder.append('-');
} }
// time_mid // time_mid
builder.append(digits(mostSigBits >> 16, 4)); builder.append(digits(mostSigBits >> 16, 4));
if (!isSimple) { if (false == isSimple) {
builder.append('-'); builder.append('-');
} }
// time_high_and_version // time_high_and_version
builder.append(digits(mostSigBits, 4)); builder.append(digits(mostSigBits, 4));
if (!isSimple) { if (false == isSimple) {
builder.append('-'); builder.append('-');
} }
// variant_and_sequence // variant_and_sequence
builder.append(digits(leastSigBits >> 48, 4)); builder.append(digits(leastSigBits >> 48, 4));
if (!isSimple) { if (false == isSimple) {
builder.append('-'); builder.append('-');
} }
// node // node

View File

@ -14,15 +14,15 @@ public @interface DataScope {
/** /**
* *
*/ */
String deptAlias() default ""; public String deptAlias () default "";
/** /**
* *
*/ */
String userAlias() default ""; public String userAlias () default "";
/** /**
* @RequiresPermissions * @RequiresPermissions
*/ */
String permission() default ""; public String permission () default "";
} }

View File

@ -109,7 +109,8 @@ public class DataScopeAspect {
if (StringUtils.isNotBlank(sqlString.toString())) { if (StringUtils.isNotBlank(sqlString.toString())) {
Object params = joinPoint.getArgs()[0]; Object params = joinPoint.getArgs()[0];
if (StringUtils.isNotNull(params) && params instanceof BaseEntity baseEntity) { if (StringUtils.isNotNull(params) && params instanceof BaseEntity) {
BaseEntity baseEntity = (BaseEntity) params;
baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")"); baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")");
} }
} }
@ -140,7 +141,8 @@ public class DataScopeAspect {
*/ */
private void clearDataScope (final JoinPoint joinPoint) { private void clearDataScope (final JoinPoint joinPoint) {
Object params = joinPoint.getArgs()[0]; Object params = joinPoint.getArgs()[0];
if (StringUtils.isNotNull(params) && params instanceof BaseEntity baseEntity) { if (StringUtils.isNotNull(params) && params instanceof BaseEntity) {
BaseEntity baseEntity = (BaseEntity) params;
baseEntity.getParams().put(DATA_SCOPE, ""); baseEntity.getParams().put(DATA_SCOPE, "");
} }
} }

View File

@ -17,30 +17,30 @@ public @interface Log {
/** /**
* *
*/ */
String title() default ""; public String title () default "";
/** /**
* *
*/ */
BusinessType businessType() default BusinessType.OTHER; public BusinessType businessType () default BusinessType.OTHER;
/** /**
* *
*/ */
OperatorType operatorType() default OperatorType.MANAGE; public OperatorType operatorType () default OperatorType.MANAGE;
/** /**
* *
*/ */
boolean isSaveRequestData() default true; public boolean isSaveRequestData () default true;
/** /**
* *
*/ */
boolean isSaveResponseData() default true; public boolean isSaveResponseData () default true;
/** /**
* *
*/ */
String[] excludeParamNames() default {}; public String[] excludeParamNames () default {};
} }

View File

@ -169,12 +169,12 @@ public class LogAspect {
*/ */
private String argsArrayToString (Object[] paramsArray, String[] excludeParamNames) { private String argsArrayToString (Object[] paramsArray, String[] excludeParamNames) {
String params = ""; String params = "";
if (paramsArray != null) { if (paramsArray != null && paramsArray.length > 0) {
for (Object o : paramsArray) { for (Object o : paramsArray) {
if (StringUtils.isNotNull(o) && !isFilterObject(o)) { if (StringUtils.isNotNull(o) && !isFilterObject(o)) {
try { try {
String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter(excludeParamNames)); String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter(excludeParamNames));
params += jsonObj + " "; params += jsonObj.toString() + " ";
} catch (Exception e) { } catch (Exception e) {
} }
} }

View File

@ -22,7 +22,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR); static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR);
private final Class<T> clazz; private Class<T> clazz;
public FastJson2JsonRedisSerializer (Class<T> clazz) { public FastJson2JsonRedisSerializer (Class<T> clazz) {
super(); super();

View File

@ -25,5 +25,5 @@ public interface RemoteFileService {
* @return * @return
*/ */
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
Result<SysFile> upload(@RequestPart(value = "file") MultipartFile file); public Result<SysFile> upload (@RequestPart(value = "file") MultipartFile file);
} }

View File

@ -27,7 +27,7 @@ public interface RemoteLogService {
* @return * @return
*/ */
@PostMapping("/operlog") @PostMapping("/operlog")
Result<Boolean> saveLog(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception; public Result<Boolean> saveLog (@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception;
/** /**
* 访 * 访
@ -38,5 +38,5 @@ public interface RemoteLogService {
* @return * @return
*/ */
@PostMapping("/logininfor") @PostMapping("/logininfor")
Result<Boolean> saveLogininfor(@RequestBody SysLogininfor sysLogininfor, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public Result<Boolean> saveLogininfor (@RequestBody SysLogininfor sysLogininfor, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
} }

View File

@ -22,7 +22,7 @@ import java.util.List;
public interface RemoteSaaSService { public interface RemoteSaaSService {
@GetMapping("/saas/findDatabaseList") @GetMapping("/saas/findDatabaseList")
Result<List<Datasource>> findDatabaseList(); public Result<List<Datasource>> findDatabaseList();

View File

@ -4,6 +4,7 @@ import com.muyu.common.core.constant.SecurityConstants;
import com.muyu.common.core.constant.ServiceNameConstants; import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result; import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.system.domain.Firm;
import com.muyu.common.system.domain.SysFirmUser; import com.muyu.common.system.domain.SysFirmUser;
import com.muyu.common.system.domain.SysUser; import com.muyu.common.system.domain.SysUser;
import com.muyu.common.system.remote.factory.RemoteUserFallbackFactory; import com.muyu.common.system.remote.factory.RemoteUserFallbackFactory;
@ -23,13 +24,13 @@ public interface RemoteUserService {
/** /**
* *
* *
* @param username * @param
* @param source * @param source
* *
* @return * @return
*/ */
@GetMapping("/user/info/{username}") @PostMapping("/user/info")
Result<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public Result<LoginUser> getUserInfo (@RequestBody Firm firm, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**
* *
@ -40,8 +41,8 @@ public interface RemoteUserService {
* @return * @return
*/ */
@PostMapping("/user/register") @PostMapping("/user/register")
Result<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public Result<Boolean> registerUserInfo (@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
@GetMapping("/user/companyList") @GetMapping("/user/companyList")
Result<List<SysUser>> companyList(); public Result<List<SysUser>> companyList ();
} }

View File

@ -36,7 +36,7 @@ public class BlackListUrlFilter extends AbstractGatewayFilterFactory<BlackListUr
public static class Config { public static class Config {
private List<String> blacklistUrl; private List<String> blacklistUrl;
private final List<Pattern> blacklistUrlPattern = new ArrayList<>(); private List<Pattern> blacklistUrlPattern = new ArrayList<>();
public boolean matchBlacklist (String url) { public boolean matchBlacklist (String url) {
return !blacklistUrlPattern.isEmpty() && blacklistUrlPattern.stream().anyMatch(p -> p.matcher(url).find()); return !blacklistUrlPattern.isEmpty() && blacklistUrlPattern.stream().anyMatch(p -> p.matcher(url).find());

View File

@ -34,7 +34,8 @@ public class GatewayExceptionHandler implements ErrorWebExceptionHandler {
if (ex instanceof NotFoundException) { if (ex instanceof NotFoundException) {
msg = "服务未找到"; msg = "服务未找到";
} else if (ex instanceof ResponseStatusException responseStatusException) { } else if (ex instanceof ResponseStatusException) {
ResponseStatusException responseStatusException = (ResponseStatusException) ex;
msg = responseStatusException.getMessage(); msg = responseStatusException.getMessage();
} else { } else {
msg = "内部服务器错误"; msg = "内部服务器错误";

View File

@ -14,10 +14,10 @@ public interface ValidateCodeService {
/** /**
* *
*/ */
Result createCaptcha() throws IOException, CaptchaException; public Result createCaptcha () throws IOException, CaptchaException;
/** /**
* *
*/ */
void checkCaptcha(String key, String value) throws CaptchaException; public void checkCaptcha (String key, String value) throws CaptchaException;
} }

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: lgy namespace: four
# Spring # Spring
spring: spring:

View File

@ -105,7 +105,16 @@
</dependency> </dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-session</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>node-commons</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies> </dependencies>

View File

@ -0,0 +1,29 @@
package com.muyu.data.util;
import org.apache.iotdb.isession.util.Version;
import org.apache.iotdb.rpc.IoTDBConnectionException;
import org.apache.iotdb.session.Session;
public class Iotdb {
public static void main(String[] args) throws IoTDBConnectionException {
System.out.println("测试数据库开始~~~~~");
// 初始化与连接
Session session = new Session.Builder()
.host("47.101.53.251")
.port(6667)
.username("root")
.password("root")
.version(Version.V_1_0)
.build();
// 开启session Rpc不压缩
session.open(false);
//
}
}

View File

@ -1,43 +1,53 @@
package com.muyu.data.util; package com.muyu.data.util;
import org.eclipse.paho.client.mqttv3.*;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
public class Receive { public class Receive {
public static MqttClient mqttClient= null;
private static MemoryPersistence memoryPersistence=null;
private static MqttConnectOptions mqttConnectOptions=null;
private static String ClientName="";
private static String IP="";
public static void main(String[] args) { public static void main(String[] args) {
String topic = "vehicle";
String broker = "tcp://47.101.53.251:1883";
String clientId="lw";
} try {
MqttClient mqttClient= new MqttClient(broker,clientId);
MqttConnectOptions connectOptions=new MqttConnectOptions();
connectOptions.setCleanSession(true);
System.out.println("Connecting to broker" + broker);
mqttClient.connect(connectOptions);
System.out.println("已连接");
mqttClient.setCallback(new MqttCallback(){
public static void start(String clientId){ @Override
//初始化连接设置对象 public void connectionLost(Throwable throwable) {
mqttConnectOptions = new MqttConnectOptions(); System.out.println("Connect lost!");
//设置是否情 }
@Override
public void messageArrived(String s, MqttMessage mqttMessage) throws Exception {
System.out.println("Message arrived. topic:"+topic);
}
@Override
public void deliveryComplete(IMqttDeliveryToken iMqttDeliveryToken) {
}
});
mqttClient.subscribe(topic);
System.out.println("Subscribed to topic " + topic);
} catch (MqttException e) {
System.out.println("reason "+e.getReasonCode());
System.out.println("msg " +e.getMessage());
System.out.println("loc " +e.getLocalizedMessage());
System.out.println("cause "+e.getCause());
System.out.println("excep "+e);
e.printStackTrace();
}
} }
} }

View File

@ -1,53 +0,0 @@
package com.muyu.data.util;
import org.eclipse.paho.client.mqttv3.*;
public class ReceiveTwo {
public static void main(String[] args) {
String topic = "vehicle";
String broker = "tcp://47.101.53.251:1883";
String clientId="lw";
try {
MqttClient mqttClient= new MqttClient(broker,clientId);
MqttConnectOptions connectOptions=new MqttConnectOptions();
connectOptions.setCleanSession(true);
System.out.println("Connecting to broker" + broker);
mqttClient.connect(connectOptions);
System.out.println("已连接");
mqttClient.setCallback(new MqttCallback(){
@Override
public void connectionLost(Throwable throwable) {
System.out.println("Connect lost!");
}
@Override
public void messageArrived(String s, MqttMessage mqttMessage) throws Exception {
System.out.println("Message arrived. topic:"+topic);
}
@Override
public void deliveryComplete(IMqttDeliveryToken iMqttDeliveryToken) {
}
});
mqttClient.subscribe(topic);
System.out.println("Subscribed to topic " + topic);
} catch (MqttException e) {
System.out.println("reason "+e.getReasonCode());
System.out.println("msg " +e.getMessage());
System.out.println("loc " +e.getLocalizedMessage());
System.out.println("cause "+e.getCause());
System.out.println("excep "+e);
e.printStackTrace();
}
}
}

View File

@ -42,8 +42,6 @@ public class SysCarFaultController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
/** /**
* *
*/ */
@ -74,13 +72,9 @@ public class SysCarFaultController extends BaseController
public Result<Integer> add( public Result<Integer> add(
@Validated @RequestBody SysCarFault sysCarFault) @Validated @RequestBody SysCarFault sysCarFault)
{ {
//判断故障码是否重复 if (sysCarFaultService.checkIdUnique(sysCarFault)) {
SysCarFault selectFaultByFaultCode = sysCarFaultService.selectFaultByFaultCode(sysCarFault.getFaultCode()); return error("新增 车辆故障管理 ,失败,车辆故障码已存在");
if (selectFaultByFaultCode!=null){
return error("新增车辆故障 ,故障码已存在");
} }
sysCarFault.setCreateBy(SecurityUtils.getUsername()); sysCarFault.setCreateBy(SecurityUtils.getUsername());
return toAjax(sysCarFaultService.save(sysCarFault)); return toAjax(sysCarFaultService.save(sysCarFault));
} }
@ -94,7 +88,9 @@ public class SysCarFaultController extends BaseController
public Result<Integer> edit( public Result<Integer> edit(
@Validated @RequestBody SysCarFault sysCarFault) @Validated @RequestBody SysCarFault sysCarFault)
{ {
if (!sysCarFaultService.checkIdUnique(sysCarFault)) {
return error("修改 车辆故障管理 '" + sysCarFault + "'失败,车辆故障管理不存在");
}
sysCarFault.setUpdateBy(SecurityUtils.getUsername()); sysCarFault.setUpdateBy(SecurityUtils.getUsername());
return toAjax(sysCarFaultService.updateById(sysCarFault)); return toAjax(sysCarFaultService.updateById(sysCarFault));
} }

View File

@ -1,13 +1,14 @@
package com.muyu.breakdown.controller; package com.muyu.breakdown.controller;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.muyu.breakdown.domain.SysCarFaultMessage; import com.muyu.breakdown.domain.SysCarFaultMessage;
import com.muyu.breakdown.service.SysCarFaultMessageService; import com.muyu.breakdown.service.SysCarFaultMessageService;
import com.muyu.common.core.domain.Result; import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
@ -24,10 +25,6 @@ public class SysCarFaultMessageController extends BaseController {
@Autowired @Autowired
private SysCarFaultMessageService service; private SysCarFaultMessageService service;
/**
*
* @return
*/
@GetMapping("/list") @GetMapping("/list")
public Result<TableDataInfo<SysCarFaultMessage>> list(){ public Result<TableDataInfo<SysCarFaultMessage>> list(){
startPage(); startPage();
@ -35,11 +32,6 @@ public class SysCarFaultMessageController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
/**
* 1
* @return
*/
@GetMapping("/listStatusOne") @GetMapping("/listStatusOne")
public Result<TableDataInfo<SysCarFaultMessage>>listStatusOne(){ public Result<TableDataInfo<SysCarFaultMessage>>listStatusOne(){
startPage(); startPage();
@ -47,27 +39,10 @@ public class SysCarFaultMessageController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
/**
* 2
* @return
*/
@GetMapping("/listStatusTwo") @GetMapping("/listStatusTwo")
public Result<TableDataInfo<SysCarFaultMessage>>listStatusTwo(){ public Result<TableDataInfo<SysCarFaultMessage>>listStatusTwo(){
startPage(); startPage();
List<SysCarFaultMessage> list = service.listStatusTwo(); List<SysCarFaultMessage> list = service.listStatusTwo();
return getDataTable(list); return getDataTable(list);
} }
/**
*
* @param id
* @return
*/
@PutMapping("/updateStatusById/{id}")
public Result updateStatusById(@PathVariable("id")Long id){
UpdateWrapper<SysCarFaultMessage> wrapper = new UpdateWrapper<>();
wrapper.eq("id",id);
wrapper.set("status",1);
boolean update = service.update(wrapper);
return Result.success(update);
}
} }

View File

@ -1,18 +1,13 @@
package com.muyu.breakdown.controller; package com.muyu.breakdown.controller;
import cn.hutool.http.server.HttpServerResponse;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.muyu.breakdown.domain.SysCarFaultLog; import com.muyu.breakdown.domain.SysCarFaultLog;
import com.muyu.breakdown.service.SysCarFaultLogService; import com.muyu.breakdown.service.SysCarFaultLogService;
import com.muyu.common.core.domain.Result; import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
@ -64,28 +59,4 @@ public class sysCarFaultLogController extends BaseController {
return toAjax(service.save(sysCarFaultLog)); return toAjax(service.save(sysCarFaultLog));
} }
@PostMapping("/export")
public void export(HttpServletResponse response, SysCarFaultLog sysCarFaultLog){
List<SysCarFaultLog> list = service.selectSysCarFaultLogList(sysCarFaultLog);
ExcelUtil<SysCarFaultLog> util = new ExcelUtil<SysCarFaultLog>(SysCarFaultLog.class);
util.exportExcel(response,list,"车辆故障记录数据");
}
/**
*
* @param idsStr
* @return
*/
@PutMapping("/updateStatusById/{ids}")
public Result updateStatusById(@PathVariable("ids")String idsStr){
Long[] ids = Arrays.stream(idsStr.split(","))
.map(Long::valueOf)
.toArray(Long[]::new);
UpdateWrapper<SysCarFaultLog> wrapper = new UpdateWrapper<>();
wrapper.in("id",ids).set("status",3);
boolean update = service.update(null, wrapper);
return Result.success(update);
}
} }

View File

@ -83,10 +83,6 @@ public class SysCarFault extends BaseEntity{
@Excel(name = "是否警告(0.开启 1.禁止)") @Excel(name = "是否警告(0.开启 1.禁止)")
private Integer warnStatus; private Integer warnStatus;
/**车辆类型 */
@Excel(name = "车辆类型")
private Integer carTypeId;
@Override @Override

View File

@ -3,7 +3,6 @@ package com.muyu.breakdown.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity; import com.muyu.common.core.web.domain.BaseEntity;
import lombok.*; import lombok.*;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -29,28 +28,19 @@ public class SysCarFaultLog extends BaseEntity {
/** 参数主键 */ /** 参数主键 */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO)
private Long id; private Long id;
/** 故障码编码 */ /** 故障码编码 */
private Integer sysCarFaultId; private Integer sysCarFaultId;
@Excel(name = "故障码编码")
private String faultCode;
/**记录时间*/ /**记录时间*/
@Excel(name = "记录时间")
private Date createTime; private Date createTime;
/** 结束时间*/ /** 结束时间*/
@Excel(name = "结束时间")
private Date updateTime; private Date updateTime;
/** VIN码 */ /** VIN码 */
@Excel(name = "VIN码")
private String vin; private String vin;
/** 处理状态 1-解决 2-处理中 3-忽略 */ /** 处理状态 1-解决 2-处理中 3-忽略 */
@Excel(name = "处理状态 1-解决 2-处理中 3-忽略")
private Integer status; private Integer status;

View File

@ -1,58 +0,0 @@
package com.muyu.breakdown.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.*;
/**
* @ClassDescription:
* @JdkVersion: 1.8
* @Author: YZL
* @Created: 2024/9/26 19:54
*/
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_car_enterprise")
public class sysCarEnterprise extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业id*/
@TableId(type = IdType.AUTO)
private Long id;
/** 企业名称*/
@Excel(name = "企业名称")
private String enterpriseName;
/** 用户姓名 */
@Excel(name = "用户姓名")
private String name;
@Excel(name = "用户职位")
private String position;
@Excel(name = "公司所在省")
private String province;
@Excel(name = "公司所在市")
private String city;
@Excel(name = "公司所在县/区")
private String county;
@Excel(name = "公司详细地址")
private String address;
@Excel(name = "统一社会信用代码")
private String creditCode;
@Excel(name = "营业执照")
private String businessLicense;
}

View File

@ -19,7 +19,7 @@ public interface SysCarFaultLogMapper extends BaseMapper<SysCarFaultLog> {
@Select("select * from sys_car_fault_log where is_read=1") @Select("select * from sys_car_fault_log where is_read=1")
List<SysCarFaultLog> listIsReadAlready(); public List<SysCarFaultLog> listIsReadAlready( );
@Select("select * from sys_car_fault_log where is_read=2") @Select("select * from sys_car_fault_log where is_read=2")
List<SysCarFaultLog>listISReadNotYet(); public List<SysCarFaultLog>listISReadNotYet( );
} }

View File

@ -3,9 +3,6 @@ package com.muyu.breakdown.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.breakdown.domain.SysCarFault; import com.muyu.breakdown.domain.SysCarFault;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/** /**
* @ClassDescription: Mapper * @ClassDescription: Mapper
@ -16,18 +13,4 @@ import java.util.List;
@Mapper @Mapper
public interface SysCarFaultMapper extends BaseMapper<SysCarFault>{ public interface SysCarFaultMapper extends BaseMapper<SysCarFault>{
//根据添加的故障码进行查询
@Select("select fault_code from sys_car_fault where fault_code=#{faultCode}")
SysCarFault selectFaultByFaultCode(String faultCode);
/**
*
* @param ids
* @return
*/
public List<SysCarFault> selectSysCarFaultIds(String[] ids);
} }

View File

@ -17,8 +17,8 @@ import java.util.List;
public interface SysCarFaultMessageMapper extends BaseMapper<SysCarFaultMessage> { public interface SysCarFaultMessageMapper extends BaseMapper<SysCarFaultMessage> {
@Select("select * from sys_car_fault_message where status=1") @Select("select * from sys_car_fault_message where status=1")
List<SysCarFaultMessage>listStatusOnt(); public List<SysCarFaultMessage>listStatusOnt( );
@Select("select * from sys_car_fault_message where status=2") @Select("select * from sys_car_fault_message where status=2")
List<SysCarFaultMessage>listStatusTwo(); public List<SysCarFaultMessage>listStatusTwo( );
} }

View File

@ -15,10 +15,10 @@ import java.util.List;
*/ */
public interface SysCarFaultLogService extends IService<SysCarFaultLog> { public interface SysCarFaultLogService extends IService<SysCarFaultLog> {
List<SysCarFaultLog>selectSysCarFaultLogList(SysCarFaultLog sysCarFaultLog); public List<SysCarFaultLog>selectSysCarFaultLogList(SysCarFaultLog sysCarFaultLog);
List<SysCarFaultLog> listStatusIgnore(SysCarFaultLog sysCarFaultLog); public List<SysCarFaultLog> listStatusIgnore(SysCarFaultLog sysCarFaultLog);
List<SysCarFaultLog>listStatusProcess(SysCarFaultLog sysCarFaultLog); public List<SysCarFaultLog>listStatusProcess(SysCarFaultLog sysCarFaultLog );
List<SysCarFaultLog>listStatusSolve(SysCarFaultLog sysCarFaultLog); public List<SysCarFaultLog>listStatusSolve(SysCarFaultLog sysCarFaultLog);
} }

View File

@ -14,8 +14,8 @@ import java.util.stream.IntStream;
* @Created: 2024/9/22 14:35 * @Created: 2024/9/22 14:35
*/ */
public interface SysCarFaultMessageService extends IService<SysCarFaultMessage> { public interface SysCarFaultMessageService extends IService<SysCarFaultMessage> {
List<SysCarFaultMessage> selectSysCarFaultMessageList(SysCarFaultMessage sysCarFaultMessage); public List<SysCarFaultMessage> selectSysCarFaultMessageList(SysCarFaultMessage sysCarFaultMessage);
List<SysCarFaultMessage>listStatusOnt(); public List<SysCarFaultMessage>listStatusOnt( );
List<SysCarFaultMessage>listStatusTwo(); public List<SysCarFaultMessage>listStatusTwo( );
} }

View File

@ -18,7 +18,7 @@ public interface SysCarFaultService extends IService<SysCarFault> {
* @param id * @param id
* @return * @return
*/ */
SysCarFault selectSysCarFaultById(Long id); public SysCarFault selectSysCarFaultById(Long id);
/** /**
* *
@ -26,16 +26,14 @@ public interface SysCarFaultService extends IService<SysCarFault> {
* @param sysCarFault * @param sysCarFault
* @return * @return
*/ */
List<SysCarFault> selectSysCarFaultList(SysCarFault sysCarFault); public List<SysCarFault> selectSysCarFaultList(SysCarFault sysCarFault);
/** /**
* faultCode() * id
* @param faultCode * @param sysCarFault
* @return * @return
*/ */
Boolean checkIdUnique(SysCarFault sysCarFault);
SysCarFault selectFaultByFaultCode(String faultCode);

View File

@ -20,30 +20,17 @@ import java.util.List;
@Service @Service
public class SysCarFaultMessageServiceImpl extends ServiceImpl<SysCarFaultMessageMapper, SysCarFaultMessage> implements SysCarFaultMessageService { public class SysCarFaultMessageServiceImpl extends ServiceImpl<SysCarFaultMessageMapper, SysCarFaultMessage> implements SysCarFaultMessageService {
/**
*
* @param sysCarFaultMessage
* @return
*/
@Override @Override
public List<SysCarFaultMessage> selectSysCarFaultMessageList(SysCarFaultMessage sysCarFaultMessage) { public List<SysCarFaultMessage> selectSysCarFaultMessageList(SysCarFaultMessage sysCarFaultMessage) {
LambdaQueryWrapper<SysCarFaultMessage> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<SysCarFaultMessage> wrapper = new LambdaQueryWrapper<>();
return baseMapper.selectList(wrapper); return baseMapper.selectList(wrapper);
} }
/**
* 1
* @return
*/
@Override @Override
public List<SysCarFaultMessage> listStatusOnt( ) { public List<SysCarFaultMessage> listStatusOnt( ) {
return baseMapper.listStatusOnt(); return baseMapper.listStatusOnt();
} }
/**
* 2
* @return
*/
@Override @Override
public List<SysCarFaultMessage> listStatusTwo( ) { public List<SysCarFaultMessage> listStatusTwo( ) {
return baseMapper.listStatusTwo(); return baseMapper.listStatusTwo();

View File

@ -6,7 +6,6 @@ import com.muyu.breakdown.domain.SysCarFault;
import com.muyu.breakdown.mapper.SysCarFaultMapper; import com.muyu.breakdown.mapper.SysCarFaultMapper;
import com.muyu.breakdown.service.SysCarFaultService; import com.muyu.breakdown.service.SysCarFaultService;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.util.Assert;
@ -23,9 +22,6 @@ public class SysCarFaultServiceImpl
extends ServiceImpl<SysCarFaultMapper, SysCarFault> extends ServiceImpl<SysCarFaultMapper, SysCarFault>
implements SysCarFaultService { implements SysCarFaultService {
@Autowired
private SysCarFaultMapper mapper;
/** /**
* *
* *
@ -61,29 +57,25 @@ public class SysCarFaultServiceImpl
if (sysCarFault.getFaultRank()!=null){ if (sysCarFault.getFaultRank()!=null){
queryWrapper.eq(SysCarFault::getFaultRank, sysCarFault.getFaultRank()); queryWrapper.eq(SysCarFault::getFaultRank, sysCarFault.getFaultRank());
} }
//故障码类型
if (sysCarFault.getTypeId()!=null){ if (sysCarFault.getTypeId()!=null){
queryWrapper.eq(SysCarFault::getTypeId,sysCarFault.getTypeId()); queryWrapper.eq(SysCarFault::getTypeId,sysCarFault.getTypeId());
} }
//车辆类型查询
if (sysCarFault.getCarTypeId()!=null){
queryWrapper.eq(SysCarFault::getCarTypeId,sysCarFault.getTypeId());
}
return this.list(queryWrapper); return this.list(queryWrapper);
} }
/** /**
* *
* @param faultCode * @param sysCarFault
* @return * @return
*/ */
@Override @Override
public SysCarFault selectFaultByFaultCode(String faultCode) { public Boolean checkIdUnique(SysCarFault sysCarFault) {
return mapper.selectFaultByFaultCode(faultCode); LambdaQueryWrapper<SysCarFault> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysCarFault::getId, sysCarFault.getId());
queryWrapper.eq(SysCarFault::getFaultCode,sysCarFault.getFaultCode());
return this.count(queryWrapper) == 0;
} }
} }

View File

@ -3,7 +3,6 @@ package com.muyu.breakdown.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.breakdown.domain.SysCarFault;
import com.muyu.breakdown.domain.SysCarFaultLog; import com.muyu.breakdown.domain.SysCarFaultLog;
import com.muyu.breakdown.domain.SysCarFaultLog; import com.muyu.breakdown.domain.SysCarFaultLog;
import com.muyu.breakdown.mapper.SysCarFaultLogMapper; import com.muyu.breakdown.mapper.SysCarFaultLogMapper;
@ -27,13 +26,17 @@ import java.util.List;
public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper, SysCarFaultLog> implements SysCarFaultLogService { public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper, SysCarFaultLog> implements SysCarFaultLogService {
@Autowired
private SysCarFaultLogMapper sysCarFaultLogMapper;
@Override @Override
public List<SysCarFaultLog> selectSysCarFaultLogList(SysCarFaultLog sysCarFaultLog) { public List<SysCarFaultLog> selectSysCarFaultLogList(SysCarFaultLog sysCarFaultLog) {
LambdaQueryWrapper<SysCarFaultLog> wrapper = new LambdaQueryWrapper<>();
return sysCarFaultLogMapper.selectSysCarFaultLogList(sysCarFaultLog); if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
}
if (sysCarFaultLog.getStatus()!=null){
wrapper.eq(SysCarFaultLog::getStatus,sysCarFaultLog.getStatus());
}
return this.list(wrapper);
} }
/** /**
@ -43,8 +46,12 @@ public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper,
*/ */
@Override @Override
public List<SysCarFaultLog> listStatusIgnore(SysCarFaultLog sysCarFaultLog) { public List<SysCarFaultLog> listStatusIgnore(SysCarFaultLog sysCarFaultLog) {
LambdaQueryWrapper<SysCarFaultLog> wrapper = new LambdaQueryWrapper<>();
return sysCarFaultLogMapper.listStatusIgnore(sysCarFaultLog); wrapper.eq(SysCarFaultLog::getStatus,3);
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
}
return this.list(wrapper);
} }
/** /**
@ -54,16 +61,24 @@ public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper,
*/ */
@Override @Override
public List<SysCarFaultLog> listStatusProcess(SysCarFaultLog sysCarFaultLog) { public List<SysCarFaultLog> listStatusProcess(SysCarFaultLog sysCarFaultLog) {
LambdaQueryWrapper<SysCarFaultLog> wrapper = new LambdaQueryWrapper<>();
return sysCarFaultLogMapper.listStatusProcess(sysCarFaultLog); wrapper.eq(SysCarFaultLog::getStatus,2);
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
}
return this.list(wrapper);
} }
//只展示已解决的数据 //只展示已解决的数据
@Override @Override
public List<SysCarFaultLog> listStatusSolve(SysCarFaultLog sysCarFaultLog) { public List<SysCarFaultLog> listStatusSolve(SysCarFaultLog sysCarFaultLog) {
return sysCarFaultLogMapper.listStatusSolve(sysCarFaultLog); LambdaQueryWrapper<SysCarFaultLog> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(SysCarFaultLog::getStatus,1);
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
}
return this.list(wrapper);
} }
} }

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: yzl namespace: four
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all # SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
# Spring # Spring
spring: spring:

View File

@ -1,66 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.breakdown.mapper.SysCarFaultLogMapper">
<resultMap type="com.muyu.breakdown.domain.SysCarFaultLog" id="SysCarFaultLogResult">
<result property="id" column="id" />
<result property="sysCarFaultId" column="sys_car_fault_id"/>
<result property="faultCode" column="fault_code"/>
<result property="vin" column="vin"/>
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSysCarFaultLogVo">
SELECT fault.fault_code,log.update_time,log.create_time,log.vin,log.status FROM sys_car_fault_log log LEFT JOIN sys_car_fault fault on log.sys_car_fault_id=fault.id
</sql>
<select id="selectSysCarFaultLogList" parameterType="com.muyu.breakdown.domain.SysCarFaultLog" resultMap="SysCarFaultLogResult">
<include refid="selectSysCarFaultLogVo"/>
<where>
<if test="faultCode != null and faultCode != ''"> and fault.fault_code = #{faultCode}</if>
<if test="vin != null and vin != ''"> and log.vin = #{vin}</if>
<if test="status != null "> and log.status = #{status}</if>
</where>
</select>
<select id="listStatusSolve" resultType="com.muyu.breakdown.domain.SysCarFaultLog" resultMap="SysCarFaultLogResult">
<include refid="selectSysCarFaultLogVo" />
<where>
<if test="faultCode!=null and faultCode!=''">and fault.fault_code=#{faultCode}</if>
<if test="vin!=null and vin!=''">and log.vin=#{vin}</if>
and log.status=1
</where>
</select>
<select id="listStatusProcess" resultType="com.muyu.breakdown.domain.SysCarFaultLog" resultMap="SysCarFaultLogResult">
<include refid="selectSysCarFaultLogVo" />
<where>
<if test="faultCode!=null and faultCode!=''">and fault.fault_code=#{faultCode}</if>
<if test="vin!=null and vin!=''">and log.vin=#{vin}</if>
and log.status=2
</where>
</select>
<select id="listStatusIgnore" resultType="com.muyu.breakdown.domain.SysCarFaultLog" resultMap="SysCarFaultLogResult">
<include refid="selectSysCarFaultLogVo" />
<where>
<if test="faultCode!=null and faultCode!=''">and fault.fault_code=#{faultCode}</if>
<if test="vin!=null and vin!=''">and log.vin=#{vin}</if>
and log.status=3
</where>
</select>
<delete id="deleteSysCarFaultByIds" parameterType="String">
delete from sys_car_fault where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -23,11 +23,10 @@
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="carTypeId" column="car_type_id"/>
</resultMap> </resultMap>
<sql id="selectSysCarFaultVo"> <sql id="selectSysCarFaultVo">
select id, fault_code, fault_name, type_id, fault_label, fault_bit, fault_value, fault_rank, fault_desc, fault_min_threshold, fault_max_threshold, status, warn_status, remark, create_by, create_time, update_by, update_time,car_type_id from sys_car_fault select id, fault_code, fault_name, type_id, fault_label, fault_bit, fault_value, fault_rank, fault_desc, fault_min_threshold, fault_max_threshold, status, warn_status, remark, create_by, create_time, update_by, update_time from sys_car_fault
</sql> </sql>
<select id="selectSysCarFaultList" parameterType="com.muyu.breakdown.domain.SysCarFault" resultMap="SysCarFaultResult"> <select id="selectSysCarFaultList" parameterType="com.muyu.breakdown.domain.SysCarFault" resultMap="SysCarFaultResult">
@ -43,13 +42,6 @@
<include refid="selectSysCarFaultVo"/> <include refid="selectSysCarFaultVo"/>
where id = #{id} where id = #{id}
</select> </select>
<select id="selectSysCarFaultIds" resultMap="SysCarFaultResult">
<include refid="selectSysCarFaultVo"/>
where id in
<foreach collection="array" item="id" index="index" open="(" separator="," close=")">
#{id}
</foreach>
</select>
<insert id="insertSysCarFault" parameterType="com.muyu.breakdown.domain.SysCarFault" useGeneratedKeys="true" keyProperty="id"> <insert id="insertSysCarFault" parameterType="com.muyu.breakdown.domain.SysCarFault" useGeneratedKeys="true" keyProperty="id">
insert into sys_car_fault insert into sys_car_fault
@ -71,7 +63,6 @@
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="carTypeId !=null">car_type_id</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="faultCode != null and faultCode != ''">#{faultCode},</if> <if test="faultCode != null and faultCode != ''">#{faultCode},</if>
@ -91,7 +82,6 @@
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="carTypeId != null">#{catTypeId}</if>
</trim> </trim>
</insert> </insert>
@ -115,7 +105,6 @@
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="carTypeId !=null">car_type_id=#{catTypeId}</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>

View File

@ -25,6 +25,5 @@ public class SysCar extends BaseEntity {
private String carBatteryManufacturer; private String carBatteryManufacturer;
private String carBatteryModel; private String carBatteryModel;
private Long strategyId; private Long strategyId;
private Long groupId;
} }

View File

@ -17,8 +17,6 @@ public class SysCarVo extends SysCar {
private String typeName; private String typeName;
@Excel(name = "策略名称") @Excel(name = "策略名称")
private String strategyName; private String strategyName;
@Excel(name = "围栏组名称")
private String groupName;

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: yzl namespace: four
# Spring # Spring
spring: spring:

View File

@ -6,9 +6,9 @@
<insert id="addSysCar"> <insert id="addSysCar">
INSERT INTO `four`.`sys_car` INSERT INTO `four`.`sys_car`
( `car_vin`, `car_type_id`, `state`, `car_motor_manufacturer`, `car_motor_model`, ( `car_vin`, `car_type_id`, `state`, `car_motor_manufacturer`, `car_motor_model`,
`car_battery_manufacturer`, `car_battery_model`, `strategy_id`,`group_id`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`,) `car_battery_manufacturer`, `car_battery_model`, `strategy_id`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)
VALUES (#{carVin}, #{carTypeId}, '1', #{carMotorManufacturer}, #{carMotorModel}, VALUES (#{carVin}, #{carTypeId}, '1', #{carMotorManufacturer}, #{carMotorModel},
#{carBatteryManufacturer}, #{carBatteryModel}, #{strategyId},#{groupId},#{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}) #{carBatteryManufacturer}, #{carBatteryModel}, #{strategyId},#{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark})
</insert> </insert>
<update id="updSysCarById"> <update id="updSysCarById">
UPDATE `four`.`sys_car` UPDATE `four`.`sys_car`
@ -20,7 +20,6 @@
`car_battery_manufacturer` = #{carBatteryManufacturer}, `car_battery_manufacturer` = #{carBatteryManufacturer},
`car_battery_model` = #{carBatteryModel}, `car_battery_model` = #{carBatteryModel},
`strategy_id` = #{strategyId}, `strategy_id` = #{strategyId},
`group_id`=#{groupId}
`create_by` = #{createBy}, `create_by` = #{createBy},
`create_time` = #{createTime}, `create_time` = #{createTime},
`update_by` = #{updateBy}, `update_by` = #{updateBy},
@ -28,11 +27,10 @@
`remark` = #{remark} WHERE `id` = #{id} `remark` = #{remark} WHERE `id` = #{id}
</update> </update>
<select id="selectSysCarVoList" resultType="com.muyu.domain.resp.SysCarVo"> <select id="selectSysCarVoList" resultType="com.muyu.domain.resp.SysCarVo">
SELECT * ,car_type.type_name,warn_strategy.strategy_name,electronic_fence_group.group_name SELECT * ,car_type.type_name,warn_strategy.strategy_name
FROM `sys_car` FROM `sys_car`
LEFT JOIN car_type ON sys_car.car_type_id=car_type.id LEFT JOIN car_type ON sys_car.car_type_id=car_type.id
LEFT JOIN warn_strategy ON sys_car.strategy_id=warn_strategy.id LEFT JOIN warn_strategy ON sys_car.strategy_id=warn_strategy.id
LEFT JOIN electronic_fence_group ON sys_car.group_id=electronic_fence_group.id
<where> <where>
<if test="carVin!=null and carVin!=''"> <if test="carVin!=null and carVin!=''">
sys_car.car_vin=#{carVin} sys_car.car_vin=#{carVin}
@ -57,11 +55,10 @@
<select id="selectSysCarVoById" resultType="com.muyu.domain.resp.SysCarVo"> <select id="selectSysCarVoById" resultType="com.muyu.domain.resp.SysCarVo">
SELECT * ,car_type.type_name,warn_strategy.strategy_name,electronic_fence_group.group_name SELECT * ,car_type.type_name,warn_strategy.strategy_name
FROM `sys_car` FROM `sys_car`
LEFT JOIN car_type ON sys_car.car_type_id=car_type.id LEFT JOIN car_type ON sys_car.car_type_id=car_type.id
LEFT JOIN warn_strategy ON sys_car.strategy_id=warn_strategy.id LEFT JOIN warn_strategy ON sys_car.strategy_id=warn_strategy.id
LEFT JOIN electronic_fence_group ON sys_car.group_id=electronic_fence_group.id
where sys_car.id=#{id} where sys_car.id=#{id}
</select> </select>
<select id="findFenceByCarVin" resultType="com.muyu.domain.resp.SysCarFaultLogVo"> <select id="findFenceByCarVin" resultType="com.muyu.domain.resp.SysCarFaultLogVo">

View File

@ -1,102 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-modules</artifactId>
<version>3.6.3</version>
</parent>
<groupId>com.muyu.processing</groupId>
<artifactId>cloud-modules-data-processing</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- MuYu Common DataSource -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datasource</artifactId>
</dependency>
<!-- MuYu Common DataScope -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datascope</artifactId>
</dependency>
<!-- 接口模块 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-api-doc</artifactId>
</dependency>
<!-- XllJob定时任务 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-xxl</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-rabbit</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,18 +0,0 @@
package com.muyu.processing;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-09-26 15:03:29
*/
@SpringBootApplication
public class ProcessingApplication {
public static void main(String[] args) {
SpringApplication.run(ProcessingApplication.class, args);
}
}

View File

@ -17,6 +17,10 @@
</description> </description>
<dependencies> <dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-saas</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos --> <!-- SpringCloud Alibaba Nacos -->
<dependency> <dependency>

View File

@ -13,5 +13,4 @@ import org.apache.ibatis.annotations.Mapper;
*/ */
@Mapper @Mapper
public interface ElectronicFenceMapper extends BaseMapper<ElectronicFence> { public interface ElectronicFenceMapper extends BaseMapper<ElectronicFence> {
} }

View File

@ -6,7 +6,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: yzl namespace: four
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all # SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
# Spring # Spring
spring: spring:

View File

@ -17,5 +17,5 @@ public interface ISysFileService {
* *
* @throws Exception * @throws Exception
*/ */
String uploadFile(MultipartFile file) throws Exception; public String uploadFile (MultipartFile file) throws Exception;
} }

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: yzl namespace: four
# Spring # Spring
spring: spring:

View File

@ -20,7 +20,7 @@ public interface GenTableColumnMapper
* @param dbName * @param dbName
* @return * @return
*/ */
List<GenTableColumn> selectDbTableColumnsByName(@Param("tableName") String tableName, @Param("dbName") String dbName); public List<GenTableColumn> selectDbTableColumnsByName(@Param("tableName") String tableName, @Param("dbName") String dbName);
/** /**
* *
@ -28,7 +28,7 @@ public interface GenTableColumnMapper
* @param tableId * @param tableId
* @return * @return
*/ */
List<GenTableColumn> selectGenTableColumnListByTableId(@Param("tableId") Long tableId); public List<GenTableColumn> selectGenTableColumnListByTableId(@Param("tableId") Long tableId);
/** /**
* *
@ -36,7 +36,7 @@ public interface GenTableColumnMapper
* @param genTableColumn * @param genTableColumn
* @return * @return
*/ */
int insertGenTableColumn(GenTableColumn genTableColumn); public int insertGenTableColumn(GenTableColumn genTableColumn);
/** /**
* *
@ -44,7 +44,7 @@ public interface GenTableColumnMapper
* @param genTableColumn * @param genTableColumn
* @return * @return
*/ */
int updateGenTableColumn(GenTableColumn genTableColumn); public int updateGenTableColumn(GenTableColumn genTableColumn);
/** /**
* *
@ -52,7 +52,7 @@ public interface GenTableColumnMapper
* @param genTableColumns * @param genTableColumns
* @return * @return
*/ */
int deleteGenTableColumns(@Param("genTableColumns") List<GenTableColumn> genTableColumns); public int deleteGenTableColumns(@Param("genTableColumns") List<GenTableColumn> genTableColumns);
/** /**
* *
@ -60,5 +60,5 @@ public interface GenTableColumnMapper
* @param ids ID * @param ids ID
* @return * @return
*/ */
int deleteGenTableColumnByIds(@Param("ids") Long[] ids); public int deleteGenTableColumnByIds(@Param("ids") Long[] ids);
} }

View File

@ -19,7 +19,7 @@ public interface GenTableMapper
* @param genTable * @param genTable
* @return * @return
*/ */
List<GenTable> selectGenTableList(GenTable genTable); public List<GenTable> selectGenTableList(GenTable genTable);
/** /**
* *
@ -27,7 +27,7 @@ public interface GenTableMapper
* @param genTable * @param genTable
* @return * @return
*/ */
List<GenTable> selectDbTableList(GenTable genTable); public List<GenTable> selectDbTableList(GenTable genTable);
/** /**
* *
@ -36,14 +36,14 @@ public interface GenTableMapper
* @param dbName * @param dbName
* @return * @return
*/ */
List<GenTable> selectDbTableListByNames(@Param("tableNames") String[] tableNames, @Param("dbName") String dbName); public List<GenTable> selectDbTableListByNames(@Param("tableNames") String[] tableNames, @Param("dbName") String dbName);
/** /**
* *
* *
* @return * @return
*/ */
List<GenTable> selectGenTableAll(); public List<GenTable> selectGenTableAll();
/** /**
* ID * ID
@ -51,7 +51,7 @@ public interface GenTableMapper
* @param id ID * @param id ID
* @return * @return
*/ */
GenTable selectGenTableById(@Param("id") Long id); public GenTable selectGenTableById(@Param("id") Long id);
/** /**
* *
@ -59,7 +59,7 @@ public interface GenTableMapper
* @param tableName * @param tableName
* @return * @return
*/ */
GenTable selectGenTableByName(@Param("tableName") String tableName); public GenTable selectGenTableByName(@Param("tableName") String tableName);
/** /**
* *
@ -67,7 +67,7 @@ public interface GenTableMapper
* @param genTable * @param genTable
* @return * @return
*/ */
int insertGenTable(GenTable genTable); public int insertGenTable(GenTable genTable);
/** /**
* *
@ -75,7 +75,7 @@ public interface GenTableMapper
* @param genTable * @param genTable
* @return * @return
*/ */
int updateGenTable(GenTable genTable); public int updateGenTable(GenTable genTable);
/** /**
* *
@ -83,7 +83,7 @@ public interface GenTableMapper
* @param ids ID * @param ids ID
* @return * @return
*/ */
int deleteGenTableByIds(@Param("ids") Long[] ids); public int deleteGenTableByIds(@Param("ids") Long[] ids);
List<String> selDbNameAll(); List<String> selDbNameAll();

View File

@ -17,7 +17,7 @@ public interface IGenTableColumnService
* @param tableId * @param tableId
* @return * @return
*/ */
List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId); public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId);
/** /**
* *
@ -25,7 +25,7 @@ public interface IGenTableColumnService
* @param genTableColumn * @param genTableColumn
* @return * @return
*/ */
int insertGenTableColumn(GenTableColumn genTableColumn); public int insertGenTableColumn(GenTableColumn genTableColumn);
/** /**
* *
@ -33,7 +33,7 @@ public interface IGenTableColumnService
* @param genTableColumn * @param genTableColumn
* @return * @return
*/ */
int updateGenTableColumn(GenTableColumn genTableColumn); public int updateGenTableColumn(GenTableColumn genTableColumn);
/** /**
* *
@ -41,7 +41,7 @@ public interface IGenTableColumnService
* @param ids ID * @param ids ID
* @return * @return
*/ */
int deleteGenTableColumnByIds(String ids); public int deleteGenTableColumnByIds(String ids);
List<GenTableColumn> selectDbTableColumnsByName(String table, String dbName); List<GenTableColumn> selectDbTableColumnsByName(String table, String dbName);
} }

View File

@ -19,7 +19,7 @@ public interface IGenTableService
* @param genTable * @param genTable
* @return * @return
*/ */
List<GenTable> selectGenTableList(GenTable genTable); public List<GenTable> selectGenTableList(GenTable genTable);
/** /**
* *
@ -27,7 +27,7 @@ public interface IGenTableService
* @param genTable * @param genTable
* @return * @return
*/ */
List<GenTable> selectDbTableList(GenTable genTable); public List<GenTable> selectDbTableList(GenTable genTable);
/** /**
* *
@ -36,14 +36,14 @@ public interface IGenTableService
* @param dbName * @param dbName
* @return * @return
*/ */
List<GenTable> selectDbTableListByNames(String[] tableNames, String dbName); public List<GenTable> selectDbTableListByNames(String[] tableNames, String dbName);
/** /**
* *
* *
* @return * @return
*/ */
List<GenTable> selectGenTableAll(); public List<GenTable> selectGenTableAll();
/** /**
* *
@ -51,7 +51,7 @@ public interface IGenTableService
* @param id ID * @param id ID
* @return * @return
*/ */
GenTable selectGenTableById(Long id); public GenTable selectGenTableById(Long id);
/** /**
* *
@ -59,7 +59,7 @@ public interface IGenTableService
* @param genTable * @param genTable
* @return * @return
*/ */
void updateGenTable(GenTable genTable); public void updateGenTable(GenTable genTable);
/** /**
* *
@ -67,14 +67,14 @@ public interface IGenTableService
* @param tableIds ID * @param tableIds ID
* @return * @return
*/ */
void deleteGenTableByIds(Long[] tableIds); public void deleteGenTableByIds(Long[] tableIds);
/** /**
* *
* *
* @param tableList * @param tableList
*/ */
void importGenTable(List<GenTable> tableList); public void importGenTable(List<GenTable> tableList);
/** /**
* *
@ -82,7 +82,7 @@ public interface IGenTableService
* @param tableId * @param tableId
* @return * @return
*/ */
Map<String, String> previewCode(Long tableId); public Map<String, String> previewCode(Long tableId);
/** /**
* *
@ -90,7 +90,7 @@ public interface IGenTableService
* @param tableName * @param tableName
* @return * @return
*/ */
byte[] downloadCode(String tableName); public byte[] downloadCode(String tableName);
/** /**
* *
@ -98,7 +98,7 @@ public interface IGenTableService
* @param tableName * @param tableName
* @return * @return
*/ */
void generatorCode(String tableName); public void generatorCode(String tableName);
/** /**
* *
@ -106,7 +106,7 @@ public interface IGenTableService
* @param tableName * @param tableName
* @param dbName * @param dbName
*/ */
void synchDb(String tableName, String dbName); public void synchDb(String tableName, String dbName);
/** /**
* *
@ -114,14 +114,14 @@ public interface IGenTableService
* @param tableNames * @param tableNames
* @return * @return
*/ */
byte[] downloadCode(String[] tableNames); public byte[] downloadCode(String[] tableNames);
/** /**
* *
* *
* @param genTable * @param genTable
*/ */
void validateEdit(GenTable genTable); public void validateEdit(GenTable genTable);
List<String> selDbNameAll(); List<String> selDbNameAll();

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.53.251:8848 addr: 47.101.53.251:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: yzl namespace: four
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all # SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
# Spring # Spring
spring: spring:

View File

@ -17,7 +17,7 @@ public interface I${ClassName}Service extends IService<${ClassName}> {
* @param ${pkColumn.javaField} ${functionName}主键 * @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName} * @return ${functionName}
*/ */
${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
@ -25,7 +25,7 @@ public interface I${ClassName}Service extends IService<${ClassName}> {
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return ${functionName}集合 * @return ${functionName}集合
*/ */
List<${ClassName}> select${ClassName}List(${ClassName} ${className}); public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/** /**
* 判断 ${functionName} id是否唯一 * 判断 ${functionName} id是否唯一

View File

@ -494,7 +494,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() { this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField}) return del${BusinessName}(row.${pkColumn.javaField});
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.#[[$modal]]#.msgSuccess("删除成功"); this.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -580,7 +580,7 @@ export default {
this.#[[$modal]]#.msgError("请先选择要删除的${subTable.functionName}数据"); this.#[[$modal]]#.msgError("请先选择要删除的${subTable.functionName}数据");
} else { } else {
const ${subclassName}List = this.${subclassName}List; const ${subclassName}List = this.${subclassName}List;
const checked${subClassName} = this.checked${subClassName} const checked${subClassName} = this.checked${subClassName};
this.${subclassName}List = ${subclassName}List.filter(function(item) { this.${subclassName}List = ${subclassName}List.filter(function(item) {
return checked${subClassName}.indexOf(item.index) == -1 return checked${subClassName}.indexOf(item.index) == -1
}); });
@ -598,5 +598,5 @@ export default {
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`) }, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
} }
} }
} };
</script> </script>

View File

@ -355,7 +355,7 @@ function getTreeselect() {
${businessName}Options.value.push(data); ${businessName}Options.value.push(data);
}); });
} }
// 取消按钮 // 取消按钮
function cancel() { function cancel() {
open.value = false; open.value = false;
@ -463,7 +463,7 @@ function submitForm() {
/** 删除按钮操作 */ /** 删除按钮操作 */
function handleDelete(row) { function handleDelete(row) {
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() { proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField}) return del${BusinessName}(row.${pkColumn.javaField});
}).then(() => { }).then(() => {
getList(); getList();
proxy.#[[$modal]]#.msgSuccess("删除成功"); proxy.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -153,7 +153,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -535,7 +535,7 @@ function submitForm() {
function handleDelete(row) { function handleDelete(row) {
const _${pkColumn.javaField}s = row.${pkColumn.javaField} || ids.value; const _${pkColumn.javaField}s = row.${pkColumn.javaField} || ids.value;
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + _${pkColumn.javaField}s + '"的数据项?').then(function() { proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + _${pkColumn.javaField}s + '"的数据项?').then(function() {
return del${BusinessName}(_${pkColumn.javaField}s) return del${BusinessName}(_${pkColumn.javaField}s);
}).then(() => { }).then(() => {
getList(); getList();
proxy.#[[$modal]]#.msgSuccess("删除成功"); proxy.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -19,7 +19,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectDeptList(SysDept dept); public List<SysDept> selectDeptList (SysDept dept);
/** /**
* ID * ID
@ -29,7 +29,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); public List<Long> selectDeptListByRoleId (@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
/** /**
* ID * ID
@ -38,7 +38,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
SysDept selectDeptById(Long deptId); public SysDept selectDeptById (Long deptId);
/** /**
* ID * ID
@ -47,7 +47,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectChildrenDeptById(Long deptId); public List<SysDept> selectChildrenDeptById (Long deptId);
/** /**
* ID * ID
@ -56,7 +56,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int selectNormalChildrenDeptById(Long deptId); public int selectNormalChildrenDeptById (Long deptId);
/** /**
* *
@ -65,7 +65,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int hasChildByDeptId(Long deptId); public int hasChildByDeptId (Long deptId);
/** /**
* *
@ -74,7 +74,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int checkDeptExistUser(Long deptId); public int checkDeptExistUser (Long deptId);
/** /**
* *
@ -84,7 +84,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); public SysDept checkDeptNameUnique (@Param("deptName") String deptName, @Param("parentId") Long parentId);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int insertDept(SysDept dept); public int insertDept (SysDept dept);
/** /**
* *
@ -102,14 +102,14 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int updateDept(SysDept dept); public int updateDept (SysDept dept);
/** /**
* *
* *
* @param deptIds ID * @param deptIds ID
*/ */
void updateDeptStatusNormal(Long[] deptIds); public void updateDeptStatusNormal (Long[] deptIds);
/** /**
* *
@ -118,7 +118,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int updateDeptChildren(@Param("depts") List<SysDept> depts); public int updateDeptChildren (@Param("depts") List<SysDept> depts);
/** /**
* *
@ -127,5 +127,5 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int deleteDeptById(Long deptId); public int deleteDeptById (Long deptId);
} }

View File

@ -19,7 +19,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataList(SysDictData dictData); public List<SysDictData> selectDictDataList (SysDictData dictData);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataByType(String dictType); public List<SysDictData> selectDictDataByType (String dictType);
/** /**
* *
@ -38,7 +38,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); public String selectDictLabel (@Param("dictType") String dictType, @Param("dictValue") String dictValue);
/** /**
* ID * ID
@ -47,7 +47,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
SysDictData selectDictDataById(Long dictCode); public SysDictData selectDictDataById (Long dictCode);
/** /**
* *
@ -56,7 +56,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int countDictDataByType(String dictType); public int countDictDataByType (String dictType);
/** /**
* ID * ID
@ -65,7 +65,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int deleteDictDataById(Long dictCode); public int deleteDictDataById (Long dictCode);
/** /**
* *
@ -74,7 +74,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int deleteDictDataByIds(Long[] dictCodes); public int deleteDictDataByIds (Long[] dictCodes);
/** /**
* *
@ -83,7 +83,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int insertDictData(SysDictData dictData); public int insertDictData (SysDictData dictData);
/** /**
* *
@ -92,7 +92,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int updateDictData(SysDictData dictData); public int updateDictData (SysDictData dictData);
/** /**
* *
@ -102,5 +102,5 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); public int updateDictDataType (@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
} }

View File

@ -18,14 +18,15 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeList(SysDictType dictType);
public List<SysDictType> selectDictTypeList (SysDictType dictType);
/** /**
* *
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeAll(); public List<SysDictType> selectDictTypeAll ();
/** /**
* ID * ID
@ -34,7 +35,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeById(Long dictId); public SysDictType selectDictTypeById (Long dictId);
/** /**
* *
@ -43,7 +44,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeByType(String dictType); public SysDictType selectDictTypeByType (String dictType);
/** /**
* ID * ID
@ -52,7 +53,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int deleteDictTypeById(Long dictId); public int deleteDictTypeById (Long dictId);
/** /**
* *
@ -61,7 +62,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int deleteDictTypeByIds(Long[] dictIds); public int deleteDictTypeByIds (Long[] dictIds);
/** /**
* *
@ -70,7 +71,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int insertDictType(SysDictType dictType); public int insertDictType (SysDictType dictType);
/** /**
* *
@ -79,7 +80,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int updateDictType(SysDictType dictType); public int updateDictType (SysDictType dictType);
/** /**
* *
@ -88,5 +89,5 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType checkDictTypeUnique(String dictType); public SysDictType checkDictTypeUnique (String dictType);
} }

View File

@ -16,7 +16,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @param logininfor 访 * @param logininfor 访
*/ */
int insertLogininfor(SysLogininfor logininfor); public int insertLogininfor (SysLogininfor logininfor);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @return * @return
*/ */
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); public List<SysLogininfor> selectLogininforList (SysLogininfor logininfor);
/** /**
* *
@ -34,12 +34,12 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @return * @return
*/ */
int deleteLogininforByIds(Long[] infoIds); public int deleteLogininforByIds (Long[] infoIds);
/** /**
* *
* *
* @return * @return
*/ */
int cleanLogininfor(); public int cleanLogininfor ();
} }

View File

@ -19,14 +19,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(SysMenu menu); public List<SysMenu> selectMenuList (SysMenu menu);
/** /**
* *
* *
* @return * @return
*/ */
List<String> selectMenuPerms(); public List<String> selectMenuPerms ();
/** /**
* *
@ -35,7 +35,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuListByUserId(SysMenu menu); public List<SysMenu> selectMenuListByUserId (SysMenu menu);
/** /**
* ID * ID
@ -44,7 +44,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<String> selectMenuPermsByRoleId(Long roleId); public List<String> selectMenuPermsByRoleId (Long roleId);
/** /**
* ID * ID
@ -53,14 +53,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<String> selectMenuPermsByUserId(Long userId); public List<String> selectMenuPermsByUserId (Long userId);
/** /**
* ID * ID
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeAll(); public List<SysMenu> selectMenuTreeAll ();
/** /**
* ID * ID
@ -69,7 +69,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeByUserId(Long userId); public List<SysMenu> selectMenuTreeByUserId (Long userId);
/** /**
* ID * ID
@ -79,7 +79,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); public List<Long> selectMenuListByRoleId (@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
/** /**
* ID * ID
@ -88,7 +88,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
SysMenu selectMenuById(Long menuId); public SysMenu selectMenuById (Long menuId);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int hasChildByMenuId(Long menuId); public int hasChildByMenuId (Long menuId);
/** /**
* *
@ -106,7 +106,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int insertMenu(SysMenu menu); public int insertMenu (SysMenu menu);
/** /**
* *
@ -115,7 +115,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int updateMenu(SysMenu menu); public int updateMenu (SysMenu menu);
/** /**
* *
@ -124,7 +124,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int deleteMenuById(Long menuId); public int deleteMenuById (Long menuId);
/** /**
* *
@ -134,5 +134,5 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); public SysMenu checkMenuNameUnique (@Param("menuName") String menuName, @Param("parentId") Long parentId);
} }

View File

@ -18,7 +18,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
SysNotice selectNoticeById(Long noticeId); public SysNotice selectNoticeById (Long noticeId);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
List<SysNotice> selectNoticeList(SysNotice notice); public List<SysNotice> selectNoticeList (SysNotice notice);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int insertNotice(SysNotice notice); public int insertNotice (SysNotice notice);
/** /**
* *
@ -45,7 +45,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int updateNotice(SysNotice notice); public int updateNotice (SysNotice notice);
/** /**
* *
@ -54,7 +54,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeById(Long noticeId); public int deleteNoticeById (Long noticeId);
/** /**
* *
@ -63,5 +63,5 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeByIds(Long[] noticeIds); public int deleteNoticeByIds (Long[] noticeIds);
} }

View File

@ -16,7 +16,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @param operLog * @param operLog
*/ */
int insertOperlog(SysOperLog operLog); public int insertOperlog (SysOperLog operLog);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
List<SysOperLog> selectOperLogList(SysOperLog operLog); public List<SysOperLog> selectOperLogList (SysOperLog operLog);
/** /**
* *
@ -34,7 +34,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
int deleteOperLogByIds(Long[] operIds); public int deleteOperLogByIds (Long[] operIds);
/** /**
* *
@ -43,10 +43,10 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
SysOperLog selectOperLogById(Long operId); public SysOperLog selectOperLogById (Long operId);
/** /**
* *
*/ */
void cleanOperLog(); public void cleanOperLog ();
} }

View File

@ -18,14 +18,14 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostList(SysPost post); public List<SysPost> selectPostList (SysPost post);
/** /**
* *
* *
* @return * @return
*/ */
List<SysPost> selectPostAll(); public List<SysPost> selectPostAll ();
/** /**
* ID * ID
@ -34,7 +34,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost selectPostById(Long postId); public SysPost selectPostById (Long postId);
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return ID * @return ID
*/ */
List<Long> selectPostListByUserId(Long userId); public List<Long> selectPostListByUserId (Long userId);
/** /**
* *
@ -52,7 +52,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostsByUserName(String userName); public List<SysPost> selectPostsByUserName (String userName);
/** /**
* *
@ -61,7 +61,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int deletePostById(Long postId); public int deletePostById (Long postId);
/** /**
* *
@ -70,7 +70,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int deletePostByIds(Long[] postIds); public int deletePostByIds (Long[] postIds);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int updatePost(SysPost post); public int updatePost (SysPost post);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int insertPost(SysPost post); public int insertPost (SysPost post);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost checkPostNameUnique(String postName); public SysPost checkPostNameUnique (String postName);
/** /**
* *
@ -106,5 +106,5 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost checkPostCodeUnique(String postCode); public SysPost checkPostCodeUnique (String postCode);
} }

View File

@ -19,7 +19,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int deleteRoleDeptByRoleId(Long roleId); public int deleteRoleDeptByRoleId (Long roleId);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int deleteRoleDept(Long[] ids); public int deleteRoleDept (Long[] ids);
/** /**
* 使 * 使
@ -37,7 +37,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int selectCountRoleDeptByDeptId(Long deptId); public int selectCountRoleDeptByDeptId (Long deptId);
/** /**
* *
@ -46,5 +46,5 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int batchRoleDept(List<SysRoleDept> roleDeptList); public int batchRoleDept (List<SysRoleDept> roleDeptList);
} }

View File

@ -18,7 +18,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRoleList(SysRole role); public List<SysRole> selectRoleList (SysRole role);
/** /**
* ID * ID
@ -27,14 +27,14 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolePermissionByUserId(Long userId); public List<SysRole> selectRolePermissionByUserId (Long userId);
/** /**
* *
* *
* @return * @return
*/ */
List<SysRole> selectRoleAll(); public List<SysRole> selectRoleAll ();
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return ID * @return ID
*/ */
List<Long> selectRoleListByUserId(Long userId); public List<Long> selectRoleListByUserId (Long userId);
/** /**
* ID * ID
@ -52,7 +52,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole selectRoleById(Long roleId); public SysRole selectRoleById (Long roleId);
/** /**
* ID * ID
@ -61,7 +61,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolesByUserName(String userName); public List<SysRole> selectRolesByUserName (String userName);
/** /**
* *
@ -70,7 +70,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole checkRoleNameUnique(String roleName); public SysRole checkRoleNameUnique (String roleName);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole checkRoleKeyUnique(String roleKey); public SysRole checkRoleKeyUnique (String roleKey);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int updateRole(SysRole role); public int updateRole (SysRole role);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int insertRole(SysRole role); public int insertRole (SysRole role);
/** /**
* ID * ID
@ -106,7 +106,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleById(Long roleId); public int deleteRoleById (Long roleId);
/** /**
* *
@ -115,5 +115,5 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleByIds(Long[] roleIds); public int deleteRoleByIds (Long[] roleIds);
} }

View File

@ -19,7 +19,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int checkMenuExistRole(Long menuId); public int checkMenuExistRole (Long menuId);
/** /**
* ID * ID
@ -28,7 +28,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int deleteRoleMenuByRoleId(Long roleId); public int deleteRoleMenuByRoleId (Long roleId);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int deleteRoleMenu(Long[] ids); public int deleteRoleMenu (Long[] ids);
/** /**
* *
@ -46,5 +46,5 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int batchRoleMenu(List<SysRoleMenu> roleMenuList); public int batchRoleMenu (List<SysRoleMenu> roleMenuList);
} }

View File

@ -19,7 +19,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUserList(SysUser sysUser); public List<SysUser> selectUserList (SysUser sysUser);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectAllocatedList(SysUser user); public List<SysUser> selectAllocatedList (SysUser user);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUnallocatedList(SysUser user); public List<SysUser> selectUnallocatedList (SysUser user);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserByUserName(String userName); public SysUser selectUserByUserName (@Param("userName") String userName);
/** /**
* ID * ID
@ -55,7 +55,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserById(Long userId); public SysUser selectUserById (Long userId);
/** /**
* *
@ -64,7 +64,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int insertUser(SysUser user); public int insertUser (SysUser user);
/** /**
* *
@ -73,7 +73,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int updateUser(SysUser user); public int updateUser (SysUser user);
/** /**
* *
@ -83,7 +83,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar); public int updateUserAvatar (@Param("userName") String userName, @Param("avatar") String avatar);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int resetUserPwd(@Param("userName") String userName, @Param("password") String password); public int resetUserPwd (@Param("userName") String userName, @Param("password") String password);
/** /**
* ID * ID
@ -102,7 +102,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int deleteUserById(Long userId); public int deleteUserById (Long userId);
/** /**
* *
@ -111,7 +111,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int deleteUserByIds(Long[] userIds); public int deleteUserByIds (Long[] userIds);
/** /**
* *
@ -120,7 +120,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkUserNameUnique(String userName); public SysUser checkUserNameUnique (String userName);
/** /**
* *
@ -129,7 +129,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkPhoneUnique(String phonenumber); public SysUser checkPhoneUnique (String phonenumber);
/** /**
* email * email
@ -138,7 +138,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkEmailUnique(String email); public SysUser checkEmailUnique (String email);
List<SysUser> selectCompanyList(); List<SysUser> selectCompanyList();

View File

@ -18,7 +18,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int deleteUserPostByUserId(Long userId); public int deleteUserPostByUserId (Long userId);
/** /**
* ID使 * ID使
@ -27,7 +27,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int countUserPostById(Long postId); public int countUserPostById (Long postId);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int deleteUserPost(Long[] ids); public int deleteUserPost (Long[] ids);
/** /**
* *
@ -45,5 +45,5 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int batchUserPost(List<SysUserPost> userPostList); public int batchUserPost (List<SysUserPost> userPostList);
} }

View File

@ -19,7 +19,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleByUserId(Long userId); public int deleteUserRoleByUserId (Long userId);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRole(Long[] ids); public int deleteUserRole (Long[] ids);
/** /**
* ID使 * ID使
@ -37,7 +37,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int countUserRoleByRoleId(Long roleId); public int countUserRoleByRoleId (Long roleId);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int batchUserRole(List<SysUserRole> userRoleList); public int batchUserRole (List<SysUserRole> userRoleList);
/** /**
* *
@ -55,7 +55,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleInfo(SysUserRole userRole); public int deleteUserRoleInfo (SysUserRole userRole);
/** /**
* *
@ -65,5 +65,5 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); public int deleteUserRoleInfos (@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
} }

View File

@ -35,10 +35,10 @@ public interface SysConfigService extends IService<SysConfig> {
/** /**
* *
*/ */
void clearConfigCache(); public void clearConfigCache ();
/** /**
* *
*/ */
void loadingConfigCache(); public void loadingConfigCache ();
} }

View File

@ -19,7 +19,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectDeptList(SysDept dept); public List<SysDept> selectDeptList (SysDept dept);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<TreeSelect> selectDeptTreeList(SysDept dept); public List<TreeSelect> selectDeptTreeList (SysDept dept);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> buildDeptTree(List<SysDept> depts); public List<SysDept> buildDeptTree (List<SysDept> depts);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts); public List<TreeSelect> buildDeptTreeSelect (List<SysDept> depts);
/** /**
* ID * ID
@ -55,7 +55,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<Long> selectDeptListByRoleId(Long roleId); public List<Long> selectDeptListByRoleId (Long roleId);
/** /**
* ID * ID
@ -64,7 +64,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
SysDept selectDeptById(Long deptId); public SysDept selectDeptById (Long deptId);
/** /**
* ID * ID
@ -73,7 +73,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int selectNormalChildrenDeptById(Long deptId); public int selectNormalChildrenDeptById (Long deptId);
/** /**
* *
@ -82,7 +82,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
boolean hasChildByDeptId(Long deptId); public boolean hasChildByDeptId (Long deptId);
/** /**
* *
@ -91,7 +91,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return true false * @return true false
*/ */
boolean checkDeptExistUser(Long deptId); public boolean checkDeptExistUser (Long deptId);
/** /**
* *
@ -100,14 +100,14 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
boolean checkDeptNameUnique(SysDept dept); public boolean checkDeptNameUnique (SysDept dept);
/** /**
* *
* *
* @param deptId id * @param deptId id
*/ */
void checkDeptDataScope(Long deptId); public void checkDeptDataScope (Long deptId);
/** /**
* *
@ -116,7 +116,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int insertDept(SysDept dept); public int insertDept (SysDept dept);
/** /**
* *
@ -125,7 +125,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int updateDept(SysDept dept); public int updateDept (SysDept dept);
/** /**
* *
@ -134,5 +134,5 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int deleteDeptById(Long deptId); public int deleteDeptById (Long deptId);
} }

View File

@ -18,7 +18,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataList(SysDictData dictData); public List<SysDictData> selectDictDataList (SysDictData dictData);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
String selectDictLabel(String dictType, String dictValue); public String selectDictLabel (String dictType, String dictValue);
/** /**
* ID * ID
@ -37,14 +37,14 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
SysDictData selectDictDataById(Long dictCode); public SysDictData selectDictDataById (Long dictCode);
/** /**
* *
* *
* @param dictCodes ID * @param dictCodes ID
*/ */
void deleteDictDataByIds(Long[] dictCodes); public void deleteDictDataByIds (Long[] dictCodes);
/** /**
* *
@ -53,7 +53,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
int insertDictData(SysDictData dictData); public int insertDictData (SysDictData dictData);
/** /**
* *
@ -62,5 +62,5 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
int updateDictData(SysDictData dictData); public int updateDictData (SysDictData dictData);
} }

View File

@ -19,14 +19,14 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeList(SysDictType dictType); public List<SysDictType> selectDictTypeList (SysDictType dictType);
/** /**
* *
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeAll(); public List<SysDictType> selectDictTypeAll ();
/** /**
* *
@ -35,7 +35,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataByType(String dictType); public List<SysDictData> selectDictDataByType (String dictType);
/** /**
* ID * ID
@ -44,7 +44,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeById(Long dictId); public SysDictType selectDictTypeById (Long dictId);
/** /**
* *
@ -53,29 +53,29 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeByType(String dictType); public SysDictType selectDictTypeByType (String dictType);
/** /**
* *
* *
* @param dictIds ID * @param dictIds ID
*/ */
void deleteDictTypeByIds(Long[] dictIds); public void deleteDictTypeByIds (Long[] dictIds);
/** /**
* *
*/ */
void loadingDictCache(); public void loadingDictCache ();
/** /**
* *
*/ */
void clearDictCache(); public void clearDictCache ();
/** /**
* *
*/ */
void resetDictCache(); public void resetDictCache ();
/** /**
* *
@ -84,7 +84,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
int insertDictType(SysDictType dictType); public int insertDictType (SysDictType dictType);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
int updateDictType(SysDictType dictType); public int updateDictType (SysDictType dictType);
/** /**
* *
@ -102,5 +102,5 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
boolean checkDictTypeUnique(SysDictType dictType); public boolean checkDictTypeUnique (SysDictType dictType);
} }

View File

@ -16,7 +16,7 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @param logininfor 访 * @param logininfor 访
*/ */
int insertLogininfor(SysLogininfor logininfor); public int insertLogininfor (SysLogininfor logininfor);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @return * @return
*/ */
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); public List<SysLogininfor> selectLogininforList (SysLogininfor logininfor);
/** /**
* *
@ -34,10 +34,10 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @return * @return
*/ */
int deleteLogininforByIds(Long[] infoIds); public int deleteLogininforByIds (Long[] infoIds);
/** /**
* *
*/ */
void cleanLogininfor(); public void cleanLogininfor ();
} }

View File

@ -21,7 +21,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(Long userId); public List<SysMenu> selectMenuList (Long userId);
/** /**
* *
@ -31,7 +31,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(SysMenu menu, Long userId); public List<SysMenu> selectMenuList (SysMenu menu, Long userId);
/** /**
* ID * ID
@ -40,7 +40,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
Set<String> selectMenuPermsByUserId(Long userId); public Set<String> selectMenuPermsByUserId (Long userId);
/** /**
* ID * ID
@ -49,7 +49,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
Set<String> selectMenuPermsByRoleId(Long roleId); public Set<String> selectMenuPermsByRoleId (Long roleId);
/** /**
* ID * ID
@ -58,7 +58,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeByUserId(Long userId); public List<SysMenu> selectMenuTreeByUserId (Long userId);
/** /**
* ID * ID
@ -67,7 +67,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<Long> selectMenuListByRoleId(Long roleId); public List<Long> selectMenuListByRoleId (Long roleId);
/** /**
* *
@ -76,7 +76,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<RouterVo> buildMenus(List<SysMenu> menus); public List<RouterVo> buildMenus (List<SysMenu> menus);
/** /**
* *
@ -85,7 +85,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> buildMenuTree(List<SysMenu> menus); public List<SysMenu> buildMenuTree (List<SysMenu> menus);
/** /**
* *
@ -94,7 +94,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus); public List<TreeSelect> buildMenuTreeSelect (List<SysMenu> menus);
/** /**
* ID * ID
@ -103,7 +103,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
SysMenu selectMenuById(Long menuId); public SysMenu selectMenuById (Long menuId);
/** /**
* *
@ -112,7 +112,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return true false * @return true false
*/ */
boolean hasChildByMenuId(Long menuId); public boolean hasChildByMenuId (Long menuId);
/** /**
* *
@ -121,7 +121,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return true false * @return true false
*/ */
boolean checkMenuExistRole(Long menuId); public boolean checkMenuExistRole (Long menuId);
/** /**
* *
@ -130,7 +130,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int insertMenu(SysMenu menu); public int insertMenu (SysMenu menu);
/** /**
* *
@ -139,7 +139,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int updateMenu(SysMenu menu); public int updateMenu (SysMenu menu);
/** /**
* *
@ -148,7 +148,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int deleteMenuById(Long menuId); public int deleteMenuById (Long menuId);
/** /**
* *
@ -157,5 +157,5 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
boolean checkMenuNameUnique(SysMenu menu); public boolean checkMenuNameUnique (SysMenu menu);
} }

View File

@ -18,7 +18,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
SysNotice selectNoticeById(Long noticeId); public SysNotice selectNoticeById (Long noticeId);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
List<SysNotice> selectNoticeList(SysNotice notice); public List<SysNotice> selectNoticeList (SysNotice notice);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int insertNotice(SysNotice notice); public int insertNotice (SysNotice notice);
/** /**
* *
@ -45,7 +45,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int updateNotice(SysNotice notice); public int updateNotice (SysNotice notice);
/** /**
* *
@ -54,7 +54,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeById(Long noticeId); public int deleteNoticeById (Long noticeId);
/** /**
* *
@ -63,5 +63,5 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeByIds(Long[] noticeIds); public int deleteNoticeByIds (Long[] noticeIds);
} }

View File

@ -18,7 +18,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
int insertOperlog(SysOperLog operLog); public int insertOperlog (SysOperLog operLog);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
List<SysOperLog> selectOperLogList(SysOperLog operLog); public List<SysOperLog> selectOperLogList (SysOperLog operLog);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
int deleteOperLogByIds(Long[] operIds); public int deleteOperLogByIds (Long[] operIds);
/** /**
* *
@ -45,10 +45,10 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
SysOperLog selectOperLogById(Long operId); public SysOperLog selectOperLogById (Long operId);
/** /**
* *
*/ */
void cleanOperLog(); public void cleanOperLog ();
} }

View File

@ -17,7 +17,7 @@ public interface SysPermissionService {
* *
* @return * @return
*/ */
Set<String> getRolePermission(SysUser user); public Set<String> getRolePermission (SysUser user);
/** /**
* *
@ -26,5 +26,5 @@ public interface SysPermissionService {
* *
* @return * @return
*/ */
Set<String> getMenuPermission(SysUser user); public Set<String> getMenuPermission (SysUser user);
} }

View File

@ -18,14 +18,14 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostList(SysPost post); public List<SysPost> selectPostList (SysPost post);
/** /**
* *
* *
* @return * @return
*/ */
List<SysPost> selectPostAll(); public List<SysPost> selectPostAll ();
/** /**
* ID * ID
@ -34,7 +34,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
SysPost selectPostById(Long postId); public SysPost selectPostById (Long postId);
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return ID * @return ID
*/ */
List<Long> selectPostListByUserId(Long userId); public List<Long> selectPostListByUserId (Long userId);
/** /**
* *
@ -52,7 +52,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
boolean checkPostNameUnique(SysPost post); public boolean checkPostNameUnique (SysPost post);
/** /**
* *
@ -61,7 +61,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
boolean checkPostCodeUnique(SysPost post); public boolean checkPostCodeUnique (SysPost post);
/** /**
* ID使 * ID使
@ -70,7 +70,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int countUserPostById(Long postId); public int countUserPostById (Long postId);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int deletePostById(Long postId); public int deletePostById (Long postId);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int deletePostByIds(Long[] postIds); public int deletePostByIds (Long[] postIds);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int insertPost(SysPost post); public int insertPost (SysPost post);
/** /**
* *
@ -106,5 +106,5 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int updatePost(SysPost post); public int updatePost (SysPost post);
} }

View File

@ -20,7 +20,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRoleList(SysRole role); public List<SysRole> selectRoleList (SysRole role);
/** /**
* ID * ID
@ -29,7 +29,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolesByUserId(Long userId); public List<SysRole> selectRolesByUserId (Long userId);
/** /**
* ID * ID
@ -38,14 +38,14 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
Set<String> selectRolePermissionByUserId(Long userId); public Set<String> selectRolePermissionByUserId (Long userId);
/** /**
* *
* *
* @return * @return
*/ */
List<SysRole> selectRoleAll(); public List<SysRole> selectRoleAll ();
/** /**
* ID * ID
@ -54,7 +54,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return ID * @return ID
*/ */
List<Long> selectRoleListByUserId(Long userId); public List<Long> selectRoleListByUserId (Long userId);
/** /**
* ID * ID
@ -63,7 +63,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
SysRole selectRoleById(Long roleId); public SysRole selectRoleById (Long roleId);
/** /**
* *
@ -72,7 +72,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
boolean checkRoleNameUnique(SysRole role); public boolean checkRoleNameUnique (SysRole role);
/** /**
* *
@ -81,21 +81,21 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
boolean checkRoleKeyUnique(SysRole role); public boolean checkRoleKeyUnique (SysRole role);
/** /**
* *
* *
* @param role * @param role
*/ */
void checkRoleAllowed(SysRole role); public void checkRoleAllowed (SysRole role);
/** /**
* *
* *
* @param roleId id * @param roleId id
*/ */
void checkRoleDataScope(Long roleId); public void checkRoleDataScope (Long roleId);
/** /**
* ID使 * ID使
@ -104,7 +104,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int countUserRoleByRoleId(Long roleId); public int countUserRoleByRoleId (Long roleId);
/** /**
* *
@ -113,7 +113,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int insertRole(SysRole role); public int insertRole (SysRole role);
/** /**
* *
@ -122,7 +122,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int updateRole(SysRole role); public int updateRole (SysRole role);
/** /**
* *
@ -131,7 +131,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int updateRoleStatus(SysRole role); public int updateRoleStatus (SysRole role);
/** /**
* *
@ -140,7 +140,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int authDataScope(SysRole role); public int authDataScope (SysRole role);
/** /**
* ID * ID
@ -149,7 +149,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleById(Long roleId); public int deleteRoleById (Long roleId);
/** /**
* *
@ -158,7 +158,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleByIds(Long[] roleIds); public int deleteRoleByIds (Long[] roleIds);
/** /**
* *
@ -167,7 +167,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteAuthUser(SysUserRole userRole); public int deleteAuthUser (SysUserRole userRole);
/** /**
* *
@ -177,7 +177,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteAuthUsers(Long roleId, Long[] userIds); public int deleteAuthUsers (Long roleId, Long[] userIds);
/** /**
* *
@ -187,5 +187,5 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int insertAuthUsers(Long roleId, Long[] userIds); public int insertAuthUsers (Long roleId, Long[] userIds);
} }

Some files were not shown because too many files have changed in this diff Show More