Compare commits

..

37 Commits

Author SHA1 Message Date
Number7 8e5782e8bc Mqtt的发送和监听 2024-09-28 12:04:58 +08:00
刘武 35fd16ad12 数据处理模块新增 2024-09-28 12:04:58 +08:00
刘武 6e70e3f721 数据处理模块新增 2024-09-28 12:04:56 +08:00
刘武 96123ae891 数据处理模块新增 2024-09-28 12:04:51 +08:00
刘武 16f5b95e1f 数据处理模块新增 2024-09-28 12:04:51 +08:00
刘武 f6013d0f82 数据处理模块新增 2024-09-28 12:04:50 +08:00
86191 dc00a1d299 fix():修复SaaS运营平台 2024-09-28 12:04:46 +08:00
86191 24e91550db feat():SaaS运营平台初始化 2024-09-28 12:04:45 +08:00
袁子龙 43546c4749 feat:站内信信息状态修改 2024-09-28 12:04:26 +08:00
袁子龙 82ae994601 feat:站内信信息状态修改 2024-09-28 12:04:26 +08:00
袁子龙 88865776cd test:故障码管理新增字段(车辆类型) 2024-09-28 12:04:26 +08:00
袁子龙 37486c58c4 test:故障码管理新增字段(车辆类型) 2024-09-28 12:04:25 +08:00
袁子龙 0994a54363 refactor:更改nacos命名空间名称 2024-09-28 12:04:25 +08:00
袁子龙 8a7e779783 text:修改故障展示(改为双表) 2024-09-28 12:04:25 +08:00
袁子龙 4e4d7c2f82 text:修改故障展示(改为双表) 2024-09-28 12:04:25 +08:00
袁子龙 e39c5cb11c text:修改故障展示(改为双表) 2024-09-28 12:04:25 +08:00
袁子龙 9ae19e1144 text:修改故障展示(改为双表) 2024-09-28 12:04:25 +08:00
袁子龙 79f2041468 text:修改故障展示(改为双表) 2024-09-28 12:04:25 +08:00
袁子龙 35f694f7b2 text:故障记录状态修改(批量) 2024-09-28 12:04:25 +08:00
袁子龙 7f05431f41 text:故障记录状态修改(批量) 2024-09-28 12:04:25 +08:00
袁子龙 6ab4dbf279 feat:故障记录状态修改 2024-09-28 12:04:25 +08:00
袁子龙 e9de4fbd3b feat:故障记录状态修改 2024-09-28 12:04:24 +08:00
袁子龙 c64f4eddc6 feat:故障记录状态修改 2024-09-28 12:04:24 +08:00
袁子龙 b78a8cab1b feat:故障记录导出 2024-09-28 12:04:24 +08:00
袁子龙 7336085f6b feat:故障记录导出 2024-09-28 12:04:24 +08:00
袁子龙 bf6cbc41a2 feat:故障记录导出 2024-09-28 12:04:24 +08:00
袁子龙 46bbf326c4 feat:故障记录导出 2024-09-28 12:04:24 +08:00
袁子龙 aa7127a66b style:添加合适的注释 2024-09-28 12:04:24 +08:00
袁子龙 0de8218ea0 style:添加合适的注释 2024-09-28 12:04:24 +08:00
袁子龙 1cc1af4cd9 text:修改故障码添加 2024-09-28 12:04:24 +08:00
袁子龙 89903d759c text:修改故障码添加 2024-09-28 12:04:23 +08:00
袁子龙 af333df7cb text:修改故障码添加 2024-09-28 12:04:23 +08:00
袁子龙 8fbb00151b text:修改故障码添加 2024-09-28 12:04:23 +08:00
袁子龙 abe99dccce text:修改故障码添加 2024-09-28 12:04:23 +08:00
SuiXxx 6de8bc74b8 Merge remote-tracking branch 'origin/dev.warn' 2024-09-27 11:57:27 +08:00
SuiXxx 830dc64d08 feat():修改车辆管理 2024-09-27 11:51:43 +08:00
SuiXxx 92595bf769 feat():车辆网关 2024-09-26 08:26:44 +08:00
160 changed files with 3122 additions and 785 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,9 +10,9 @@ import java.util.Arrays;
public class InvalidExtensionException extends FileUploadException {
private static final long serialVersionUID = 1L;
private String[] allowedExtension;
private String extension;
private String filename;
private final String[] allowedExtension;
private final String extension;
private final String filename;
public InvalidExtensionException (String[] allowedExtension, String extension, String filename) {
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 {
private static final long serialVersionUID = 1L;
private Code code;
private final Code code;
public TaskException (String msg, Code code) {
this(msg, code, null);

View File

@ -27,11 +27,11 @@ public class CharsetKit {
/**
* ISO-8859-1
*/
public static final Charset CHARSET_ISO_8859_1 = Charset.forName(ISO_8859_1);
public static final Charset CHARSET_ISO_8859_1 = StandardCharsets.ISO_8859_1;
/**
* UTF-8
*/
public static final Charset CHARSET_UTF_8 = Charset.forName(UTF_8);
public static final Charset CHARSET_UTF_8 = StandardCharsets.UTF_8;
/**
* 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";
private static String[] parsePatterns = {
private static final 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"};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -46,8 +46,8 @@ public final class Base64 {
for (int i = 52, j = 0 ; i <= 61 ; i++, j++) {
lookUpBase64Alphabet[i] = (char) ('0' + j);
}
lookUpBase64Alphabet[62] = (char) '+';
lookUpBase64Alphabet[63] = (char) '/';
lookUpBase64Alphabet[62] = '+';
lookUpBase64Alphabet[63] = '/';
}
private static boolean isWhiteSpace (char octect) {
@ -82,7 +82,7 @@ public final class Base64 {
int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;
int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;
int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;
char encodedData[] = null;
char[] encodedData = null;
encodedData = new char[numberQuartet * 4];
@ -161,7 +161,7 @@ public final class Base64 {
return new byte[0];
}
byte decodedData[] = null;
byte[] decodedData = null;
byte b1 = 0, b2 = 0, b3 = 0, b4 = 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 AtomicInteger commSeq = new AtomicInteger(1);
private static final AtomicInteger commSeq = new AtomicInteger(1);
// 上传接口序列数
private static AtomicInteger uploadSeq = new AtomicInteger(1);
private static final 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);
// time_low
builder.append(digits(mostSigBits >> 32, 8));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// time_mid
builder.append(digits(mostSigBits >> 16, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// time_high_and_version
builder.append(digits(mostSigBits, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// variant_and_sequence
builder.append(digits(leastSigBits >> 48, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// node

View File

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

View File

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

View File

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

View File

@ -169,12 +169,12 @@ public class LogAspect {
*/
private String argsArrayToString (Object[] paramsArray, String[] excludeParamNames) {
String params = "";
if (paramsArray != null && paramsArray.length > 0) {
if (paramsArray != null) {
for (Object o : paramsArray) {
if (StringUtils.isNotNull(o) && !isFilterObject(o)) {
try {
String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter(excludeParamNames));
params += jsonObj.toString() + " ";
params += jsonObj + " ";
} 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);
private Class<T> clazz;
private final Class<T> clazz;
public FastJson2JsonRedisSerializer (Class<T> clazz) {
super();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -105,16 +105,7 @@
</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>

View File

@ -1,29 +0,0 @@
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,53 +1,43 @@
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 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) {
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();
}
public static void start(String clientId){
//初始化连接设置对象
mqttConnectOptions = new MqttConnectOptions();
//设置是否情
}
}

View File

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

View File

@ -1,14 +1,13 @@
package com.muyu.breakdown.controller;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.muyu.breakdown.domain.SysCarFaultMessage;
import com.muyu.breakdown.service.SysCarFaultMessageService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@ -25,6 +24,10 @@ public class SysCarFaultMessageController extends BaseController {
@Autowired
private SysCarFaultMessageService service;
/**
*
* @return
*/
@GetMapping("/list")
public Result<TableDataInfo<SysCarFaultMessage>> list(){
startPage();
@ -32,6 +35,11 @@ public class SysCarFaultMessageController extends BaseController {
return getDataTable(list);
}
/**
* 1
* @return
*/
@GetMapping("/listStatusOne")
public Result<TableDataInfo<SysCarFaultMessage>>listStatusOne(){
startPage();
@ -39,10 +47,27 @@ public class SysCarFaultMessageController extends BaseController {
return getDataTable(list);
}
/**
* 2
* @return
*/
@GetMapping("/listStatusTwo")
public Result<TableDataInfo<SysCarFaultMessage>>listStatusTwo(){
startPage();
List<SysCarFaultMessage> list = service.listStatusTwo();
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,13 +1,18 @@
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.service.SysCarFaultLogService;
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.page.TableDataInfo;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
/**
@ -59,4 +64,28 @@ public class sysCarFaultLogController extends BaseController {
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,6 +83,10 @@ public class SysCarFault extends BaseEntity{
@Excel(name = "是否警告(0.开启 1.禁止)")
private Integer warnStatus;
/**车辆类型 */
@Excel(name = "车辆类型")
private Integer carTypeId;
@Override

View File

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

View File

@ -0,0 +1,58 @@
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")
public List<SysCarFaultLog> listIsReadAlready( );
List<SysCarFaultLog> listIsReadAlready();
@Select("select * from sys_car_fault_log where is_read=2")
public List<SysCarFaultLog>listISReadNotYet( );
List<SysCarFaultLog>listISReadNotYet();
}

View File

@ -3,6 +3,9 @@ package com.muyu.breakdown.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.breakdown.domain.SysCarFault;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @ClassDescription: Mapper
@ -13,4 +16,18 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
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> {
@Select("select * from sys_car_fault_message where status=1")
public List<SysCarFaultMessage>listStatusOnt( );
List<SysCarFaultMessage>listStatusOnt();
@Select("select * from sys_car_fault_message where status=2")
public List<SysCarFaultMessage>listStatusTwo( );
List<SysCarFaultMessage>listStatusTwo();
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,66 @@
<?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,10 +23,11 @@
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="carTypeId" column="car_type_id"/>
</resultMap>
<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 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,car_type_id from sys_car_fault
</sql>
<select id="selectSysCarFaultList" parameterType="com.muyu.breakdown.domain.SysCarFault" resultMap="SysCarFaultResult">
@ -42,6 +43,13 @@
<include refid="selectSysCarFaultVo"/>
where id = #{id}
</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 into sys_car_fault
@ -63,6 +71,7 @@
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="carTypeId !=null">car_type_id</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="faultCode != null and faultCode != ''">#{faultCode},</if>
@ -82,6 +91,7 @@
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="carTypeId != null">#{catTypeId}</if>
</trim>
</insert>
@ -105,6 +115,7 @@
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="carTypeId !=null">car_type_id=#{catTypeId}</if>
</trim>
where id = #{id}
</update>

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,102 @@
<?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

@ -0,0 +1,18 @@
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,10 +17,6 @@
</description>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-saas</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos -->
<dependency>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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