Compare commits
21 Commits
1e19d99748
...
3ac5b84ef6
Author | SHA1 | Date |
---|---|---|
|
3ac5b84ef6 | |
|
93f78cdc3e | |
|
3953642310 | |
|
29f08cbb46 | |
|
05e6ecb947 | |
|
1f98e4ea26 | |
|
6eb46f53ae | |
|
db16c57199 | |
|
90195a9226 | |
|
70ee6d0628 | |
|
7971b67277 | |
|
49a7e0df4d | |
|
e491c7de89 | |
|
0303b4fe72 | |
|
1b982ed5a2 | |
|
244ceb5b46 | |
|
0ae1ddbbca | |
|
5994bf1550 | |
|
aa39403714 | |
|
7ae5082c3d | |
|
40e3a1ceb7 |
|
@ -20,4 +20,10 @@ public class ServiceNameConstants {
|
|||
* 文件服务的serviceid
|
||||
*/
|
||||
public static final String FILE_SERVICE = "cloud-file";
|
||||
|
||||
/**
|
||||
* 车辆服务的serviceid
|
||||
*/
|
||||
public static final String ENTERPRISE_SERVICE = "cloud-saas";
|
||||
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo;
|
|||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.common.core.utils.PageUtils;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -19,7 +20,7 @@ import java.util.List;
|
|||
*
|
||||
* @author muyu
|
||||
*/
|
||||
public class BaseController {
|
||||
public class BaseController<M extends BaseEntity> {
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -48,13 +48,13 @@ public class FaultLog {
|
|||
* 开始报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date startwarningTime;
|
||||
/**
|
||||
* 结束报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date endwarningTime;
|
||||
/**
|
||||
* 故障码
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -55,7 +55,7 @@ public class Message {
|
|||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 登录人Id
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -49,6 +49,6 @@ public class MessageSendReq {
|
|||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "String")
|
||||
@Excel(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "String")
|
||||
private Date createTime;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.fault.domain.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -36,13 +36,13 @@ public class FaultLogListReq {
|
|||
* 开始报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date startwarningTime;
|
||||
/**
|
||||
* 结束报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date endwarningTime;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.muyu.fault.domain.resp;
|
|||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import com.muyu.fault.domain.FaultLog;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -45,13 +45,13 @@ public class FaultLogListResp {
|
|||
* 开始报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date startwarningTime;
|
||||
/**
|
||||
* 结束报警时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date endwarningTime;
|
||||
/**
|
||||
* 故障码
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
package com.muyu.controller;
|
||||
|
||||
import com.muyu.service.FaultDetectionStrategyService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @className: FaultDetectionStrategyController ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description: 车辆故障码
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/faultdetectionstrategy")
|
||||
@Tag(name = "车辆故障码",description = "车辆故障码")
|
||||
public class FaultDetectionStrategyController {
|
||||
|
||||
@Autowired
|
||||
private FaultDetectionStrategyService faultDetectionStrategyService;
|
||||
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author:yan
|
||||
* @Package:com.muyu.car.domain
|
||||
* @Project:plues
|
||||
* @name:CarFaultMessage
|
||||
* @Date:2024/9/25 23:45
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@Tag(name = "bioa")
|
||||
@TableName(value = "car_fault_message",autoResultMap = true)
|
||||
public class CarFaultMessage {
|
||||
private Integer id;
|
||||
private String sender;
|
||||
private String receiver;
|
||||
private String content;
|
||||
private Integer status;
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
private Date createTime;
|
||||
private Integer userId;
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: CarType ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:01 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_type",autoResultMap = true)
|
||||
public class CarType {
|
||||
/**
|
||||
* 车辆类型ID
|
||||
*/
|
||||
private long carTypeId;
|
||||
/**
|
||||
* 车辆类型名
|
||||
*/
|
||||
private String carTypeName;
|
||||
/**
|
||||
* 车辆规则外键ID
|
||||
*/
|
||||
private long carTypeRules;
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package com.muyu.domain;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultReport ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:05 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class FaultReport {
|
||||
private String VehicleType;
|
||||
private String FaultDescription;
|
||||
}
|
|
@ -1,54 +0,0 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.muyu.domain.message.Message;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: MessageService ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:01 ⏰
|
||||
* @Version: 1.0
|
||||
* @description: 业务逻辑层将负责实现消息的发送逻辑
|
||||
*/
|
||||
|
||||
public class MessageService {
|
||||
private MessageDao messageDao;
|
||||
|
||||
public MessageService(MessageDao messageDao){
|
||||
this.messageDao=messageDao;
|
||||
}
|
||||
|
||||
public void sendMessage(String content,String sender,String receiver){
|
||||
|
||||
// 定义一个DateTimeFormatter对象,用于格式化日期时间为yyyy-MM-dd HH:mm:ss
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
// 获取当前日期和时间
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
// 使用formatter格式化当前日期和时间
|
||||
String formattedDateTime = now.format(formatter);
|
||||
// 使用formatter将字符串解析回LocalDateTime
|
||||
LocalDateTime parsedDateTime = LocalDateTime.parse(formattedDateTime, formatter);
|
||||
// 然后按照上面的步骤将LocalDateTime转换为Date
|
||||
ZonedDateTime zdt = parsedDateTime.atZone(ZoneId.systemDefault());
|
||||
Date date = Date.from(zdt.toInstant());
|
||||
|
||||
|
||||
Message message = new Message();
|
||||
message.setContent(content);
|
||||
message.setSender(sender);
|
||||
message.setReceiver(receiver);
|
||||
message.setCreateTime(date);
|
||||
|
||||
try {
|
||||
messageDao.sendMessage(message);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
public enum WarnLevel {
|
||||
LOW, MEDIUM, HIGH
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
package com.muyu.domain.message.message;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: Message ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/22 10:55 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_message",autoResultMap = true)
|
||||
public class Message {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* 发送者
|
||||
*/
|
||||
private String sender;
|
||||
|
||||
/**
|
||||
* 接收者
|
||||
*/
|
||||
private String receiver;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 消息状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
private long userId;
|
||||
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.muyu.mapper;
|
||||
|
||||
/**
|
||||
* @className: FaultDetectionStrategyMapper ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 23:59 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
public interface FaultDetectionStrategyMapper {
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package com.muyu.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.domain.MessageValue;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @ClassName MessageValueMapper
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
@Mapper
|
||||
public interface MessageValueMapper extends BaseMapper<MessageValue> {
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package com.muyu.service;
|
||||
|
||||
import com.muyu.domain.CarFaultRule;
|
||||
import com.muyu.domain.FaultReport;
|
||||
/**
|
||||
* @className: FaultDetectionStrategy ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
public interface FaultDetectionStrategy {
|
||||
|
||||
FaultReport detectFaults(CarFaultRule carFaultRule);
|
||||
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
package com.muyu.service;
|
||||
|
||||
public interface FaultDetectionStrategyService {
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package com.muyu.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.domain.FaultType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @className: FaultTypeService ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description: 故障检测
|
||||
*/
|
||||
public interface FaultTypeService extends IService<FaultType> {
|
||||
|
||||
/**
|
||||
* 故障码分类查询
|
||||
* @return
|
||||
*/
|
||||
List<FaultType> select();
|
||||
|
||||
Integer add(FaultType faultType);
|
||||
|
||||
Integer update(FaultType faultType);
|
||||
|
||||
Integer delete(Integer id);
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
package com.muyu.service.impl;
|
||||
|
||||
import com.muyu.mapper.FaultDetectionStrategyMapper;
|
||||
import com.muyu.service.FaultDetectionStrategyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @className: FaultDetectionStrategyServiceImpl ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 23:58 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
@Service
|
||||
public class FaultDetectionStrategyServiceImpl implements FaultDetectionStrategyService {
|
||||
|
||||
@Autowired
|
||||
private FaultDetectionStrategyMapper faultDetectionStrategyMapper;
|
||||
}
|
|
@ -1,199 +0,0 @@
|
|||
package com.muyu.service.impl.faultDetectionStrategy;
|
||||
|
||||
|
||||
import com.muyu.domain.CarFaultRule;
|
||||
import com.muyu.domain.FaultReport;
|
||||
import com.muyu.service.FaultDetectionStrategy;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @className: CarFaultRule ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 针对纯电车的故障检测逻辑
|
||||
*/
|
||||
@Service(value = "PureElectricCar")
|
||||
public class PureElectricCarFaultDetectionStrategy implements FaultDetectionStrategy {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public FaultReport detectFaults(CarFaultRule carFaultRule) {
|
||||
|
||||
|
||||
//检测车速是否处于正常范围
|
||||
if (carFaultRule.getSpeed()>200 || carFaultRule.getSpeed()<0){
|
||||
return new FaultReport("纯电车","车速不在正常范围内,请注意");
|
||||
}
|
||||
//检测总里程数是否超过正常数
|
||||
if (carFaultRule.getTM()>5000000){
|
||||
return new FaultReport("纯电车","总里程数已超标,请注意");
|
||||
}
|
||||
//检测总电压是否正常
|
||||
if (carFaultRule.getTV()>650){
|
||||
return new FaultReport("纯电车","总电压过高,请注意");
|
||||
}
|
||||
//检测电流是否超标
|
||||
if (carFaultRule.getCC()>50){
|
||||
return new FaultReport("纯电车","电流过高,请注意");
|
||||
}
|
||||
//检测绝缘电阻
|
||||
if (carFaultRule.getIR()>100000){
|
||||
return new FaultReport("纯电车","绝缘电阻过高,请注意");
|
||||
}
|
||||
// //检测加速踏板行程值
|
||||
// if (carFaultRule.getAPTV()){
|
||||
//
|
||||
// }
|
||||
// //检测制动踏板行程值
|
||||
// if (carFaultRule.getBPTV()){
|
||||
//
|
||||
// }
|
||||
// //检测燃料消耗率
|
||||
// if (carFaultRule.getSFC()){
|
||||
//
|
||||
// }
|
||||
// //检测电机控制器温度
|
||||
// if (carFaultRule.getMCT()){
|
||||
//
|
||||
// }
|
||||
// //检测电机转速
|
||||
// if (carFaultRule.getMS()){
|
||||
//
|
||||
// }
|
||||
// //检测电机转矩
|
||||
// if (carFaultRule.getMTO()){
|
||||
//
|
||||
// }
|
||||
// //检测电机温度
|
||||
// if (carFaultRule.getMTE()){
|
||||
//
|
||||
// }
|
||||
// //检测电机电压
|
||||
// if (carFaultRule.getMV()){
|
||||
//
|
||||
// }
|
||||
// //检测电机电流
|
||||
// if (carFaultRule.getMC()){
|
||||
//
|
||||
// }
|
||||
// //检测动力电池剩余电量SOC
|
||||
// if (carFaultRule.getPBRSOC()){
|
||||
//
|
||||
// }
|
||||
// //检测当前状态允许的最大反馈功率
|
||||
// if (carFaultRule.getMACSFP()){
|
||||
//
|
||||
// }
|
||||
// //检测当前状态允许最大放电功率
|
||||
// if (carFaultRule.getCSATMDP()) {
|
||||
//
|
||||
// }
|
||||
// //检测BMS自检计数器
|
||||
// if (carFaultRule.getBMS()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池充放电电流
|
||||
// if (carFaultRule.getCADC()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池负载端总电压V3
|
||||
// if (carFaultRule.getPBLETVV3()) {
|
||||
//
|
||||
// }
|
||||
// //检测单次最大电压
|
||||
// if (carFaultRule.getSMV()) {
|
||||
//
|
||||
// }
|
||||
// //检测单体电池最低电压
|
||||
// if (carFaultRule.getMVOAB()) {
|
||||
//
|
||||
// }
|
||||
// //检测单体电池最高温度
|
||||
// if (carFaultRule.getMAXBT()) {
|
||||
//
|
||||
// }
|
||||
// //检测单体电池最低温度
|
||||
// if (carFaultRule.getMINBT()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池可用容量
|
||||
// if (carFaultRule.getPBAC()) {
|
||||
//
|
||||
// }
|
||||
// //检测车辆状态
|
||||
// if (carFaultRule.getVS()) {
|
||||
//
|
||||
// }
|
||||
// //检测充电状态
|
||||
// if (carFaultRule.getCS()) {
|
||||
//
|
||||
// }
|
||||
// //检测运行状态
|
||||
// if (carFaultRule.getRS()) {
|
||||
//
|
||||
// }
|
||||
// //检测SOC
|
||||
// if (carFaultRule.getSOC()) {
|
||||
//
|
||||
// }
|
||||
// //检测可充电储能装置工作状态
|
||||
// if (carFaultRule.getRESDWC()) {
|
||||
//
|
||||
// }
|
||||
// //检测驱动电机状态
|
||||
// if (carFaultRule.getEAS()) {
|
||||
//
|
||||
// }
|
||||
// //检测定位是否有效
|
||||
// if (carFaultRule.getPTC()) {
|
||||
//
|
||||
// }
|
||||
// //检测EAS
|
||||
// if (carFaultRule.getEPS()) {
|
||||
//
|
||||
// }
|
||||
// //检测PTC
|
||||
// if (carFaultRule.getABS()) {
|
||||
//
|
||||
// }
|
||||
// //检测EPS
|
||||
// if (carFaultRule.getMCU()) {
|
||||
//
|
||||
// }
|
||||
// //检测ABS
|
||||
// if (carFaultRule.getPBHS()) {
|
||||
//
|
||||
// }
|
||||
// //检测MCU
|
||||
// if (carFaultRule.getPBCS()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池加热状态
|
||||
// if (carFaultRule.getPBIS()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池当前状态
|
||||
// if (carFaultRule.getDCDC()) {
|
||||
//
|
||||
// }
|
||||
// //检测动力电池保温状态
|
||||
// if (carFaultRule.getCHG()) {
|
||||
//
|
||||
// }
|
||||
// //检测DCDC
|
||||
// if (carFaultRule.getCHB()) {
|
||||
//
|
||||
// }
|
||||
// //检测CHG
|
||||
// if (carFaultRule.getCUB()) {
|
||||
//
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,102 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.mapper.WarnLogsMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.WarnLogs" id="WarnLogsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="vin" column="vin" />
|
||||
<result property="warnRuleId" column="warn_rule_id" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="maxValue" column="max_value" />
|
||||
<result property="minValue" column="min_value" />
|
||||
<result property="avgValue" column="avg_value" />
|
||||
<result property="medianValue" column="median_value" />
|
||||
<result property="status" column="status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWarnLogsVo">
|
||||
select id, vin, warn_rule_id, start_time, end_time, max_value, min_value, avg_value, median_value, status from warn_logs
|
||||
</sql>
|
||||
|
||||
<select id="selectWarnLogsList" parameterType="com.muyu.domain.WarnLogs" resultMap="WarnLogsResult">
|
||||
<include refid="selectWarnLogsVo"/>
|
||||
<where>
|
||||
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
||||
<if test="warnRuleId != null "> and warn_rule_id = #{warnRuleId}</if>
|
||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||
<if test="maxValue != null "> and max_value = #{maxValue}</if>
|
||||
<if test="minValue != null "> and min_value = #{minValue}</if>
|
||||
<if test="avgValue != null "> and avg_value = #{avgValue}</if>
|
||||
<if test="medianValue != null "> and median_value = #{medianValue}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWarnLogsById" parameterType="Long" resultMap="WarnLogsResult">
|
||||
<include refid="selectWarnLogsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWarnLogs" parameterType="com.muyu.domain.WarnLogs" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into warn_logs
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="vin != null">vin,</if>
|
||||
<if test="warnRuleId != null">warn_rule_id,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="maxValue != null">max_value,</if>
|
||||
<if test="minValue != null">min_value,</if>
|
||||
<if test="avgValue != null">avg_value,</if>
|
||||
<if test="medianValue != null">median_value,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="vin != null">#{vin},</if>
|
||||
<if test="warnRuleId != null">#{warnRuleId},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="maxValue != null">#{maxValue},</if>
|
||||
<if test="minValue != null">#{minValue},</if>
|
||||
<if test="avgValue != null">#{avgValue},</if>
|
||||
<if test="medianValue != null">#{medianValue},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWarnLogs" parameterType="com.muyu.domain.WarnLogs">
|
||||
update warn_logs
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="vin != null">vin = #{vin},</if>
|
||||
<if test="warnRuleId != null">warn_rule_id = #{warnRuleId},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="maxValue != null">max_value = #{maxValue},</if>
|
||||
<if test="minValue != null">min_value = #{minValue},</if>
|
||||
<if test="avgValue != null">avg_value = #{avgValue},</if>
|
||||
<if test="medianValue != null">median_value = #{medianValue},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="updateBy !=null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWarnLogsById" parameterType="Long">
|
||||
delete from warn_logs where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWarnLogsByIds" parameterType="String">
|
||||
delete from warn_logs where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,92 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.mapper.WarnRuleMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.WarnRule" id="WarnRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="strategyId" column="strategy_id" />
|
||||
<result property="msgTypeId" column="msg_type_id" />
|
||||
<result property="slideTime" column="slide_time" />
|
||||
<result property="slideFrequency" column="slide_frequency" />
|
||||
<result property="slideMaxValue" column="slide_max_value" />
|
||||
<result property="slideMinValue" column="slide_min_value" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWarnRuleVo">
|
||||
select id, rule_name, strategy_id, msg_type_id, slide_time, slide_frequency, max_value, min_value from warn_rule
|
||||
</sql>
|
||||
|
||||
<select id="selectWarnRuleList" parameterType="com.muyu.domain.WarnRule" resultMap="WarnRuleResult">
|
||||
<include refid="selectWarnRuleVo"/>
|
||||
<where>
|
||||
<if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if>
|
||||
<if test="strategyId != null "> and strategy_id = #{strategyId}</if>
|
||||
<if test="msgTypeId != null "> and msg_type_id = #{msgTypeId}</if>
|
||||
<if test="slideTime != null "> and slide_time = #{slideTime}</if>
|
||||
<if test="slideFrequency != null "> and slide_frequency = #{slideFrequency}</if>
|
||||
<if test="maxValue != null "> and max_value = #{maxValue}</if>
|
||||
<if test="minValue != null "> and min_value = #{minValue}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWarnRuleById" parameterType="Long" resultMap="WarnRuleResult">
|
||||
<include refid="selectWarnRuleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWarnRule" parameterType="com.muyu.domain.WarnRule" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into warn_rule
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ruleName != null">rule_name,</if>
|
||||
<if test="strategyId != null">strategy_id,</if>
|
||||
<if test="msgTypeId != null">msg_type_id,</if>
|
||||
<if test="slideTime != null">slide_time,</if>
|
||||
<if test="slideFrequency != null">slide_frequency,</if>
|
||||
<if test="maxValue != null">max_value,</if>
|
||||
<if test="minValue != null">min_value,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="ruleName != null">#{ruleName},</if>
|
||||
<if test="strategyId != null">#{strategyId},</if>
|
||||
<if test="msgTypeId != null">#{msgTypeId},</if>
|
||||
<if test="slideTime != null">#{slideTime},</if>
|
||||
<if test="slideFrequency != null">#{slideFrequency},</if>
|
||||
<if test="maxValue != null">#{maxValue},</if>
|
||||
<if test="minValue != null">#{minValue},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWarnRule" parameterType="com.muyu.domain.WarnRule">
|
||||
update warn_rule
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="ruleName != null">rule_name = #{ruleName},</if>
|
||||
<if test="strategyId != null">strategy_id = #{strategyId},</if>
|
||||
<if test="msgTypeId != null">msg_type_id = #{msgTypeId},</if>
|
||||
<if test="slideTime != null">slide_time = #{slideTime},</if>
|
||||
<if test="slideFrequency != null">slide_frequency = #{slideFrequency},</if>
|
||||
<if test="maxValue != null">max_value = #{maxValue},</if>
|
||||
<if test="minValue != null">min_value = #{minValue},</if>
|
||||
<if test="updateBy !=null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWarnRuleById" parameterType="Long">
|
||||
delete from warn_rule where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWarnRuleByIds" parameterType="String">
|
||||
delete from warn_rule where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,72 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.mapper.WarnStrategyMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.WarnStrategy" id="WarnStrategyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="sysTypeId" column="sys_type_id" />
|
||||
<result property="strategyName" column="strategy_name" />
|
||||
<result property="msgId" column="msg_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWarnStrategyVo">
|
||||
select id, sys_type_id, strategy_name, msg_id from warn_strategy
|
||||
</sql>
|
||||
|
||||
<select id="selectWarnStrategyList" parameterType="com.muyu.domain.WarnStrategy" resultMap="WarnStrategyResult">
|
||||
<include refid="selectWarnStrategyVo"/>
|
||||
<where>
|
||||
<if test="sysTypeId != null "> and sys_type_id = #{sysTypeId}</if>
|
||||
<if test="strategyName != null and strategyName != ''"> and strategy_name like concat('%', #{strategyName}, '%')</if>
|
||||
<if test="msgId != null "> and msg_id = #{msgId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWarnStrategyById" parameterType="Long" resultMap="WarnStrategyResult">
|
||||
<include refid="selectWarnStrategyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWarnStrategy" parameterType="com.muyu.domain.WarnStrategy" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into warn_strategy
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="sysTypeId != null">sys_type_id,</if>
|
||||
<if test="strategyName != null">strategy_name,</if>
|
||||
<if test="msgId != null">msg_id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="sysTypeId != null">#{sysTypeId},</if>
|
||||
<if test="strategyName != null">#{strategyName},</if>
|
||||
<if test="msgId != null">#{msgId},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWarnStrategy" parameterType="com.muyu.domain.WarnStrategy">
|
||||
update warn_strategy
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="sysTypeId != null">sys_type_id = #{sysTypeId},</if>
|
||||
<if test="strategyName != null">strategy_name = #{strategyName},</if>
|
||||
<if test="msgId != null">msg_id = #{msgId},</if>
|
||||
<if test="updateBy !=null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWarnStrategyById" parameterType="Long">
|
||||
delete from warn_strategy where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWarnStrategyByIds" parameterType="String">
|
||||
delete from warn_strategy where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,38 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
|
@ -0,0 +1,20 @@
|
|||
<?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-enterprise</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>enterpise-client</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>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu;
|
||||
|
||||
/**
|
||||
* @Author:yan
|
||||
* @Package:com.muyu
|
||||
* @Project:Default (Template) Project
|
||||
* @name:${NAME}
|
||||
* @Date:2024/9/29 09:56
|
||||
*/
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
|
@ -0,0 +1,45 @@
|
|||
<?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-enterprise</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>enterpise-common</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>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 接口模块 -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-api-doc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations-jakarta</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,69 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 车辆故障信息实体类
|
||||
* * @Author:yan
|
||||
* * @Package:com.muyu.car.domain
|
||||
* * @Project:plues
|
||||
* * @name:CarFaultMessage
|
||||
* * @Date:2024/9/25 23:45
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@Tag(name = "车辆故障信息实体类",description = "车辆故障信息实体类")
|
||||
@TableName(value = "car_fault_message",autoResultMap = true)
|
||||
public class CarFaultMessage {
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(name = "id")
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Integer id;
|
||||
@Schema(name = "sender")
|
||||
/**
|
||||
* 发送者
|
||||
*/
|
||||
private String sender;
|
||||
@Schema(name = "receiver")
|
||||
/**
|
||||
* 接收者
|
||||
*/
|
||||
private String receiver;
|
||||
@Schema(name = "content")
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
private String content;
|
||||
@Schema(name = "status")
|
||||
/**
|
||||
* 消息状态
|
||||
*/
|
||||
private Integer status;
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
@Schema(name = "userId")
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
private Integer userId;
|
||||
}
|
|
@ -1,206 +1,266 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
/**
|
||||
* @className: CarFaultRule ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
|
||||
*/
|
||||
/**
|
||||
* 车辆故障规则实体类
|
||||
* * @className: CarFaultRule ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 22:06 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class CarFaultRule {/**
|
||||
* VIN码VIN码VIN码
|
||||
*/
|
||||
private String vin;
|
||||
@TableName(value = "car_fault_rule",autoResultMap = true)
|
||||
@Tag(name = "车辆故障规则")
|
||||
public class CarFaultRule {
|
||||
/**
|
||||
* VIN码VIN码VIN码
|
||||
*/
|
||||
@TableId(value = "规则Id",type = IdType.AUTO)
|
||||
@Schema(name = "车辆VIN码")
|
||||
private Long vin;
|
||||
/**
|
||||
* 时间戳时间戳时间戳
|
||||
*/
|
||||
@Schema(name = "车辆类型Id")
|
||||
private long timestamp;
|
||||
/**
|
||||
* 经度经度经度
|
||||
*/
|
||||
@Schema(name = "车速")
|
||||
private double longitude;
|
||||
/**
|
||||
* 纬度纬度纬度
|
||||
*/
|
||||
@Schema(name = "总电流")
|
||||
private double latitude;
|
||||
/**
|
||||
* 车速车速车速
|
||||
*/
|
||||
@Schema(name = "绝缘电阻")
|
||||
private double speed;
|
||||
/**
|
||||
* 总里程总里程总里程
|
||||
*/
|
||||
@Schema(name = "加速踏板行程值")
|
||||
private long TM;
|
||||
/**
|
||||
* 总电压总电压总电压
|
||||
*/
|
||||
@Schema(name = "制动踏板行程值")
|
||||
private double TV;
|
||||
/**
|
||||
* 总电流总电流总电流
|
||||
*/
|
||||
@Schema(name = "燃料消耗率")
|
||||
private double CC;
|
||||
/**
|
||||
* 绝缘电阻绝缘电阻绝缘电阻
|
||||
*/
|
||||
@Schema(name = "电机控制器温度")
|
||||
private double IR;
|
||||
/**
|
||||
* 档位档位档位
|
||||
*/
|
||||
@Schema(name = "电机转速")
|
||||
private String GP;
|
||||
/**
|
||||
* 加速踏板行程值加速踏板行程值加速踏板行程值
|
||||
*/
|
||||
@Schema(name = "电机转矩")
|
||||
private double APTV;
|
||||
/**
|
||||
* 制动踏板行程值制动踏板行程值制动踏板行程值
|
||||
*/
|
||||
@Schema(name = "电机温度")
|
||||
private double BPTV;
|
||||
/**
|
||||
* 燃料消耗率燃料消耗率燃料消耗率
|
||||
*/
|
||||
@Schema(name = "电机电压")
|
||||
private double SFC;
|
||||
/**
|
||||
* 电机控制器温度电机控制器温度电机控制器温度
|
||||
*/
|
||||
@Schema(name = "电机电流")
|
||||
private double MCT;
|
||||
/**
|
||||
* 电机转速电机转速电机转速
|
||||
*/
|
||||
@Schema(name = "动力电池剩余电量SOC")
|
||||
private int MS;
|
||||
/**
|
||||
* 电机转矩电机转矩电机转矩
|
||||
*/
|
||||
@Schema(name = "当前状态允许的最大反馈功率")
|
||||
private double MTO;
|
||||
/**
|
||||
* 电机温度电机温度电机温度
|
||||
*/
|
||||
@Schema(name = "当前状态允许最大放电功率")
|
||||
private double MTE;
|
||||
/**
|
||||
* 电机电压电机电压电机电压
|
||||
*/
|
||||
@Schema(name = "BMS自检计数器")
|
||||
private double MV;
|
||||
/**
|
||||
* 电机电流电机电流电机电流
|
||||
*/
|
||||
@Schema(name = "动力电池充放电电流")
|
||||
private double MC;
|
||||
/**
|
||||
* 动力电池剩余电量SOC动力电池剩余电量SOC动力电池剩余电量SOC
|
||||
*/
|
||||
@Schema(name = "动力电池负载端总电压V3")
|
||||
private double PBRSOC;
|
||||
/**
|
||||
* 当前状态允许的最大反馈功率当前状态允许的最大反馈功率当前状态允许的最大反馈功率
|
||||
*/
|
||||
@Schema(name = "单次最大电压")
|
||||
private double MACSFP;
|
||||
/**
|
||||
* 当前状态允许最大放电功率当前状态允许最大放电功率当前状态允许最大放电功率
|
||||
*/
|
||||
@Schema(name = "单体电池最低电压")
|
||||
private double CSATMDP;
|
||||
/**
|
||||
* BMS自检计数器BMS自检计数器BMS自检计数器
|
||||
*/
|
||||
@Schema(name = "单体电池最高温度")
|
||||
private int BMS;
|
||||
/**
|
||||
* 动力电池充放电电流动力电池充放电电流动力电池充放电电流
|
||||
*/
|
||||
@Schema(name = "单体电池最低温度")
|
||||
private double CADC;
|
||||
/**
|
||||
* 动力电池负载端总电压V3动力电池负载端总电压V3动力电池负载端总电压V3
|
||||
*/
|
||||
@Schema(name = "动力电池可用容量")
|
||||
private double PBLETVV3;
|
||||
/**
|
||||
* 单次最大电压单次最大电压单次最大电压
|
||||
*/
|
||||
@Schema(name = "总里程")
|
||||
private double SMV;
|
||||
/**
|
||||
* 单体电池最低电压单体电池最低电压单体电池最低电压
|
||||
*/
|
||||
@Schema(name = "总电压")
|
||||
private double MVOAB;
|
||||
/**
|
||||
* 单体电池最高温度单体电池最高温度单体电池最高温度
|
||||
*/
|
||||
@Schema(name = "车辆状态")
|
||||
private double MAXBT;
|
||||
/**
|
||||
* 单体电池最低温度单体电池最低温度单体电池最低温度
|
||||
*/
|
||||
@Schema(name = "充电状态")
|
||||
private double MINBT;
|
||||
/**
|
||||
* 动力电池可用容量动力电池可用容量动力电池可用容量
|
||||
*/
|
||||
@Schema(name = "运行状态")
|
||||
private double PBAC;
|
||||
/**
|
||||
* 车辆状态车辆状态车辆状态
|
||||
*/
|
||||
@Schema(name = "SOC")
|
||||
private String VS;
|
||||
/**
|
||||
* 充电状态充电状态充电状态
|
||||
*/
|
||||
@Schema(name = "可充电储能装置工作状态")
|
||||
private String CS;
|
||||
/**
|
||||
* 运行状态运行状态运行状态
|
||||
*/
|
||||
@Schema(name = "EAS")
|
||||
private String RS;
|
||||
/**
|
||||
* SOCSOCSOC
|
||||
*/
|
||||
@Schema(name = "PTC")
|
||||
private double SOC;
|
||||
/**
|
||||
* 可充电储能装置工作状态可充电储能装置工作状态可充电储能装置工作状态
|
||||
*/
|
||||
@Schema(name = "EPS")
|
||||
private String RESDWC;
|
||||
/**
|
||||
* EASEASEAS
|
||||
*/
|
||||
@Schema(name = "ABS")
|
||||
private String EAS;
|
||||
/**
|
||||
* PTCPTCPTC
|
||||
*/
|
||||
@Schema(name = "MCU")
|
||||
private String PTC;
|
||||
/**
|
||||
* EPSEPSEPS
|
||||
*/
|
||||
@Schema(name = "动力电池加热状态")
|
||||
private String EPS;
|
||||
/**
|
||||
* ABSABSABS
|
||||
*/
|
||||
@Schema(name = "动力电池当前状态")
|
||||
private String ABS;
|
||||
/**
|
||||
* MCUMCUMCU
|
||||
*/
|
||||
@Schema(name = "动力电池保温状态")
|
||||
private String MCU;
|
||||
/**
|
||||
* 动力电池加热状态动力电池加热状态动力电池加热状态
|
||||
*/
|
||||
@Schema(name = "DCDC")
|
||||
private String PBHS;
|
||||
/**
|
||||
* 动力电池当前状态动力电池当前状态动力电池当前状态
|
||||
*/
|
||||
@Schema(name = "CHG")
|
||||
private String PBCS;
|
||||
/**
|
||||
* 动力电池保温状态动力电池保温状态动力电池保温状态
|
||||
*/
|
||||
@Schema(name = "校验位")
|
||||
private String PBIS;
|
||||
/**
|
||||
* DCDCDCDCDCDC
|
||||
*/
|
||||
@Schema(name = "截止位")
|
||||
private String DCDC;
|
||||
/**
|
||||
* CHGCHGCHG
|
||||
*/
|
||||
@Schema(name = "")
|
||||
private String CHG;
|
||||
/**
|
||||
* 校验位校验位校验位
|
||||
*/
|
||||
@Schema(name = "")
|
||||
private byte CHB;
|
||||
/**
|
||||
* 截止位截止位截止位
|
||||
*/
|
||||
@Schema(name = "")
|
||||
private byte CUB;
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -15,11 +16,12 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.domain
|
||||
* @Project:cloud-electronic
|
||||
* @name:CarFence
|
||||
* @Date:2024/9/17 16:08
|
||||
* 车辆电子围栏类
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.domain
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:CarFence
|
||||
* * @Date:2024/9/17 16:08
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -37,28 +39,34 @@ public class CarFence {
|
|||
/**
|
||||
* 围栏名称
|
||||
*/
|
||||
@Schema(name = "围栏名称")
|
||||
private String name;
|
||||
/**
|
||||
* 业务类型ID
|
||||
*/
|
||||
@Schema(name = "业务类型ID")
|
||||
private Integer clazzId;
|
||||
/**
|
||||
* 业务类型名称
|
||||
*/
|
||||
@Schema(name = "业务类型名称")
|
||||
@TableField(exist = false)
|
||||
private String clazzName;
|
||||
/**
|
||||
* 围栏类型ID
|
||||
*/
|
||||
@Schema(name = "围栏类型ID")
|
||||
private Integer typeId;
|
||||
/**
|
||||
* 围栏类型名称
|
||||
*/
|
||||
@Schema(name = "围栏类型名称")
|
||||
@TableField(exist = false)
|
||||
private String typeName;
|
||||
/**
|
||||
* 围栏经纬度
|
||||
*/
|
||||
@Schema(name = "围栏经纬度")
|
||||
private String fenceText;
|
||||
/**
|
||||
* 围栏开始时间
|
||||
|
@ -81,6 +89,7 @@ public class CarFence {
|
|||
/**
|
||||
* 中间表ID
|
||||
*/
|
||||
@Schema(name = "中间表ID")
|
||||
private Integer middleId;
|
||||
public static CarFence carFenceBuild(CarFence carFence) {
|
||||
return CarFence.builder()
|
|
@ -1,6 +1,9 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -8,11 +11,12 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.domain
|
||||
* @Project:cloud-electronic
|
||||
* @name:CarFenceClazz
|
||||
* @Date:2024/9/17 16:41
|
||||
* 车辆电子围栏业务类型
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.domain
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:CarFenceClazz
|
||||
* * @Date:2024/9/17 16:41
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -24,10 +28,13 @@ public class CarFenceClazz {
|
|||
/**
|
||||
* 业务类型ID
|
||||
*/
|
||||
@TableId(value = "clazz_id",type = IdType.AUTO)
|
||||
@Schema(name = "业务类型ID")
|
||||
private Integer clazzId;
|
||||
/**
|
||||
* 业务类型名称
|
||||
*/
|
||||
@Schema(name = "业务类型名称")
|
||||
private String clazzName;
|
||||
|
||||
public static CarFenceClazz carFenceClazzBuild(CarFenceClazz carFenceClazz) {
|
|
@ -1,6 +1,9 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -8,11 +11,12 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.domain
|
||||
* @Project:cloud-electronic
|
||||
* @name:Type
|
||||
* @Date:2024/9/17 16:40
|
||||
* 车辆电子围栏类型
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.domain
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:Type
|
||||
* * @Date:2024/9/17 16:40
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -24,10 +28,13 @@ public class CarFenceType {
|
|||
/**
|
||||
* 围栏类型ID
|
||||
*/
|
||||
@TableId(value = "type_id" ,type = IdType.AUTO)
|
||||
@Schema(name = "围栏类型ID")
|
||||
private Integer typeId;
|
||||
/**
|
||||
* 围栏类型名称
|
||||
*/
|
||||
@Schema(name = "围栏类型名称")
|
||||
private String typeName;
|
||||
|
||||
public static CarFenceType carFenceTypeBuild(CarFenceType carFenceType) {
|
|
@ -0,0 +1,114 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 车辆信息实体类
|
||||
* * @className: CarInformation ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/30 12:40 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name = "车辆信息")
|
||||
@TableName("car_information")
|
||||
public class CarInformation {
|
||||
/**
|
||||
* 车辆ID
|
||||
*/
|
||||
@TableId(value = "car_information_id" , type = IdType.AUTO)
|
||||
@Schema(name = "车辆ID")
|
||||
private Long carInformationId;
|
||||
/**
|
||||
* 车辆唯一VIN
|
||||
*/
|
||||
@Schema(name = "车辆唯一VIN")
|
||||
private String CarInformationVIN;
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
@Schema(name = "车牌号")
|
||||
private String carInformationLicensePlate;
|
||||
/**
|
||||
* 车辆品牌
|
||||
*/
|
||||
@Schema(name = "车辆品牌")
|
||||
private String carInformationBrand;
|
||||
/**
|
||||
* 车辆颜色
|
||||
*/
|
||||
@Schema(name = "车辆颜色")
|
||||
private String carInformationColor;
|
||||
/**
|
||||
* 车辆驾驶员
|
||||
*/
|
||||
@Schema(name = "车辆驾驶员")
|
||||
private String carInformationDriver;
|
||||
/**
|
||||
* 车检到期日期
|
||||
*/
|
||||
// @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
// @Schema(name = "车检到期日期")
|
||||
private Date carInformationExamineEnddata;
|
||||
/**
|
||||
* 车辆电机厂商
|
||||
*/
|
||||
@Schema(name = "车辆电机厂商")
|
||||
private String carInformationMotorManufacturer;
|
||||
/**
|
||||
* 车辆电机型号
|
||||
*/
|
||||
@Schema(name = "车辆电机型号")
|
||||
private String carInformationMotorModel;
|
||||
/**
|
||||
* 车辆电池厂商
|
||||
*/
|
||||
@Schema(name = "车辆电池厂商")
|
||||
private String carInformationBatteryManufacturer;
|
||||
/**
|
||||
* 车辆电池型号
|
||||
*/
|
||||
@Schema(name = "车辆电池型号")
|
||||
private String carInformationBatteryModel;
|
||||
/**
|
||||
* 车辆电子围栏外键ID
|
||||
*/
|
||||
@Schema(name = "车辆电子围栏外键ID")
|
||||
private Long carInformationFence;
|
||||
/**
|
||||
* 车辆类型外键ID
|
||||
*/
|
||||
@Schema(name = "车辆类型外键ID")
|
||||
private Long carInformationType;
|
||||
/**
|
||||
* 是否重点车辆 (0否默认 1是 )
|
||||
*/
|
||||
@Schema(name = "是否重点车辆 (0否默认 1是 )")
|
||||
private Long carInformationFocus;
|
||||
/**
|
||||
* 车辆策略id
|
||||
*/
|
||||
@Schema(name = "车辆策略id")
|
||||
private Long carStrategyId;
|
||||
/**
|
||||
* 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)
|
||||
*/
|
||||
@Schema(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
|
||||
private Long carInformationState;
|
||||
|
||||
|
||||
}
|
|
@ -1,6 +1,9 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -8,12 +11,13 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author:yan
|
||||
* @Package:com.muyu.car.domain
|
||||
* @Project:plues
|
||||
* @name:CarMiddle
|
||||
* @Date:2024/9/25 20:25
|
||||
* 围栏组和围栏中间表
|
||||
* * @Author:yan
|
||||
* * @Package:com.muyu.car.domain
|
||||
* * @Project:plues
|
||||
* * @name:CarMiddle
|
||||
* * @Date:2024/9/25 20:25
|
||||
* * 围栏组和围栏中间表
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -25,14 +29,18 @@ public class CarMiddle {
|
|||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(name = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 围栏id
|
||||
*/
|
||||
@Schema(name = "围栏id")
|
||||
private Integer carFenceId;
|
||||
/**
|
||||
* 围栏组id
|
||||
*/
|
||||
@Schema(name = "围栏组id")
|
||||
private Integer carGroupId;
|
||||
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 车辆类型实体类
|
||||
* * @className: CarType ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 22:01 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_type",autoResultMap = true)
|
||||
@Tag(name = "车辆类型管理")
|
||||
public class CarType {
|
||||
/**
|
||||
* 车辆类型ID
|
||||
*/
|
||||
@TableId(value = "car_type_id",type = IdType.AUTO)
|
||||
@Schema(name = "车辆类型ID")
|
||||
private long carTypeId;
|
||||
/**
|
||||
* 车辆类型名
|
||||
*/
|
||||
@Schema(name = "车辆类型名")
|
||||
private String carTypeName;
|
||||
/**
|
||||
* 车辆规则外键ID
|
||||
*/
|
||||
@Schema(name = "车辆规则外键ID")
|
||||
private long carTypeRules;
|
||||
}
|
|
@ -4,57 +4,88 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.req.FaultCodeAddReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultCode ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:21 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障码实体类
|
||||
* * @className: FaultCode ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 22:21 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_faultcode", autoResultMap = true)
|
||||
@Tag(name = "故障码管理")
|
||||
public class FaultCode {
|
||||
/**
|
||||
* 故障码Id
|
||||
*/
|
||||
@TableId(value = "faultcode_id", type = IdType.AUTO)
|
||||
@Schema(name = "故障码Id")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
* 故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障码
|
||||
*/
|
||||
@Schema(name = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
* 故障组
|
||||
*/
|
||||
@Schema(name = "故障组")
|
||||
private String faultGroup;
|
||||
/**
|
||||
* 故障位
|
||||
*/
|
||||
@Schema(name = "故障位")
|
||||
private String faultBit;
|
||||
/**
|
||||
* 故障值
|
||||
*/
|
||||
@Schema(name = "故障值")
|
||||
private String faultValue;
|
||||
/**
|
||||
* 是否警告
|
||||
*/
|
||||
@Schema(name = "是否警告")
|
||||
private Integer isWarning;
|
||||
|
||||
/**
|
||||
* 故障类型名称
|
||||
*/
|
||||
@Schema(name = "故障类型名称")
|
||||
private String faulttypeName;
|
||||
/**
|
||||
* 故障类型编码
|
||||
*/
|
||||
@Schema(name = "故障类型编码")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 故障类型所属
|
||||
*/
|
||||
@Schema(name = "故障类型所属")
|
||||
private String messageTypeCode;
|
||||
/**
|
||||
* 故障类型所属
|
||||
*/
|
||||
@Schema(name = "故障类型所属")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
public static FaultCode addfaultcode(FaultCodeAddReq faultCodeAddReq) {
|
|
@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.req.FaultConditionAddReq;
|
||||
import com.muyu.domain.req.FaultConditionUpdReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -14,50 +16,60 @@ import java.math.BigDecimal;
|
|||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* @className: FaultCondition ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:07 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 故障规则表
|
||||
* * @className: FaultCondition ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:07 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_condition",autoResultMap = true)
|
||||
@Tag(name = "故障规则管理")
|
||||
public class FaultCondition {
|
||||
/**
|
||||
* 故障规则表Id
|
||||
*/
|
||||
@TableId(value = "carcondition_id",type = IdType.AUTO)
|
||||
@Schema(name = "故障规则表Id")
|
||||
private long carconditionId;
|
||||
/**
|
||||
* 车辆类型Id
|
||||
*/
|
||||
@Schema(name = "车辆类型Id")
|
||||
private long carTypeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障条件
|
||||
*/
|
||||
@Schema(name = "故障条件")
|
||||
private String faultconditionIdentification;
|
||||
/**
|
||||
* 故障规则参数
|
||||
*/
|
||||
@Schema(name = "故障规则参数")
|
||||
private BigDecimal faultconditionParameter;
|
||||
/**
|
||||
* 车辆类型名称
|
||||
*/
|
||||
@Schema(name = "车辆类型名称")
|
||||
private String carTypeName;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(name = "故障名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(name = "报文编码")
|
||||
private String messageTypeCode;
|
||||
|
||||
|
|
@ -3,41 +3,49 @@ package com.muyu.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultLabel ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:07 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 报文标签
|
||||
* * @className: FaultLabel ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:07 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_label",autoResultMap = true)
|
||||
@Tag(name = "报文标签管理")
|
||||
public class FaultLabel {
|
||||
|
||||
/**
|
||||
*自增主键
|
||||
*/
|
||||
@TableId(value = "message_type_id",type = IdType.AUTO)
|
||||
@Schema(name = "自增主键")
|
||||
private String messageTypeId;
|
||||
/**
|
||||
*报文编码
|
||||
*/
|
||||
@Schema(name = "报文编码")
|
||||
private String messageTypeCode;
|
||||
/**
|
||||
*报文名称
|
||||
*/
|
||||
@Schema(name = "报文名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
*报文所属类别
|
||||
*/
|
||||
@Schema(name = "报文所属类别")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -13,17 +14,18 @@ import lombok.experimental.SuperBuilder;
|
|||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: FaultLog ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:06 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 故障日志实体类
|
||||
* * @className: FaultLog ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:06 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description: 故障日志实体类
|
||||
*/
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@Tag(name = "故障日志实体类",description = "故障日志实体类")
|
||||
@TableName(value = "car_fault_log",autoResultMap = true)
|
||||
public class FaultLog {
|
||||
|
||||
|
@ -31,18 +33,22 @@ public class FaultLog {
|
|||
* 故障日志Id
|
||||
*/
|
||||
@TableId(value = "log_id",type = IdType.AUTO)
|
||||
@Schema(name = "故障日志Id")
|
||||
private long logId;
|
||||
/**
|
||||
* 故障码Id
|
||||
*/
|
||||
@Schema(name = "故障码Id")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
* 车辆Id
|
||||
*/
|
||||
@Schema(name = "车辆Id")
|
||||
private long carInformationId;
|
||||
/**
|
||||
* 车辆VIN
|
||||
*/
|
||||
@Schema(name = "车辆VIN")
|
||||
private String carVin;
|
||||
/**
|
||||
* 开始报警时间
|
||||
|
@ -59,10 +65,12 @@ public class FaultLog {
|
|||
/**
|
||||
* 故障码
|
||||
*/
|
||||
@Schema(name = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
* 车辆vin
|
||||
*/
|
||||
@Schema(name = "车辆vin")
|
||||
private String carInformationVIN;
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
package com.muyu.domain;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 车辆故障报告
|
||||
* * @className: FaultReport ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:05 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName("fault_report")
|
||||
@Tag(name = "车辆故障报告")
|
||||
public class FaultReport {
|
||||
|
||||
private String VehicleType;
|
||||
private String FaultDescription;
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -9,56 +13,67 @@ import lombok.experimental.SuperBuilder;
|
|||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @className: FaultRule ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:05 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 故障触发条件
|
||||
* * @className: FaultRule ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:05 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_condition",autoResultMap = true)
|
||||
@Tag(name = "故障触发条件")
|
||||
public class FaultRule {
|
||||
/**
|
||||
* 触发条件Id
|
||||
*/
|
||||
@TableId(value = "condition_id",type = IdType.AUTO)
|
||||
@Schema(name = "触发条件Id")
|
||||
private long conditionId;
|
||||
|
||||
/**
|
||||
* 故障码Id
|
||||
*/
|
||||
@Schema(name = "故障码Id")
|
||||
private long faultcodeId;
|
||||
|
||||
/**
|
||||
* 触发条件描述
|
||||
*/
|
||||
@Schema(name = "触发条件描述")
|
||||
private String conditionContent;
|
||||
|
||||
/**
|
||||
* 单个参数的阈值
|
||||
*/
|
||||
@Schema(name = "单个参数的阈值")
|
||||
private BigDecimal singleThreshold;
|
||||
|
||||
/**
|
||||
* 区间参数的阈值的最小值
|
||||
*/
|
||||
@Schema(name = "区间参数的阈值的最小值")
|
||||
private BigDecimal minThreshold;
|
||||
|
||||
/**
|
||||
* 区间参数的阈值的最大值
|
||||
*/
|
||||
@Schema(name = "区间参数的阈值的最大值")
|
||||
private BigDecimal maxThreshold;
|
||||
|
||||
/**
|
||||
* 触发条件是否激活
|
||||
*/
|
||||
@Schema(name = "触发条件是否激活")
|
||||
private Integer isActive;
|
||||
|
||||
/**
|
||||
* 车辆数据值
|
||||
*/
|
||||
@Schema(name = "车辆数据值")
|
||||
private BigDecimal Threshold;
|
||||
|
||||
|
|
@ -3,31 +3,37 @@ package com.muyu.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultType ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:04 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 故障类型实体类
|
||||
* * @className: FaultType ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:04 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_type",autoResultMap = true)
|
||||
@Tag(name = "故障类型管理")
|
||||
public class FaultType {
|
||||
/**
|
||||
*故障类型Id
|
||||
*/
|
||||
@TableId(value = "faulttype_id",type = IdType.AUTO)
|
||||
@Schema(name = "故障类型Id")
|
||||
private long faulttypeId;
|
||||
/**
|
||||
*故障类型名称
|
||||
*/
|
||||
@Schema(name = "故障类型名称")
|
||||
private String faulttypeName;
|
||||
}
|
|
@ -3,6 +3,7 @@ package com.muyu.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -10,11 +11,12 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author:yan
|
||||
* @Package:com.muyu.car.domain
|
||||
* @Project:plues
|
||||
* @name:FenceAndGroupMiddle
|
||||
* @Date:2024/9/22 09:59
|
||||
* 车辆电子围栏中间表
|
||||
* * @Author:yan
|
||||
* * @Package:com.muyu.car.domain
|
||||
* * @Project:plues
|
||||
* * @name:FenceAndGroupMiddle
|
||||
* * @Date:2024/9/22 09:59
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -27,14 +29,17 @@ public class FenceAndGroupMiddle {
|
|||
* id
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(name = "id")
|
||||
private Integer id;
|
||||
/**
|
||||
* 围栏id
|
||||
*/
|
||||
@Schema(name = "围栏id")
|
||||
private Integer carId;
|
||||
/**
|
||||
* 围栏组id
|
||||
*/
|
||||
@Schema(name = "围栏组id")
|
||||
private Integer groupId;
|
||||
|
||||
}
|
|
@ -3,6 +3,7 @@ package com.muyu.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -10,11 +11,12 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author:yan
|
||||
* @Package:com.muyu.car.domain
|
||||
* @Project:cars
|
||||
* @name:FenceGroup
|
||||
* @Date:2024/9/21 20:45
|
||||
* 围栏组实体类
|
||||
* * @Author:yan
|
||||
* * @Package:com.muyu.car.domain
|
||||
* * @Project:cars
|
||||
* * @name:FenceGroup
|
||||
* * @Date:2024/9/21 20:45
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
@ -27,14 +29,17 @@ public class FenceGroup {
|
|||
* id
|
||||
*/
|
||||
@TableId(value = "group_id",type = IdType.AUTO)
|
||||
@Schema(name = "围栏组id")
|
||||
private Integer groupId;
|
||||
/**
|
||||
* 围栏组名称
|
||||
*/
|
||||
@Schema(name = "围栏组名称")
|
||||
private String groupName;
|
||||
/**
|
||||
* 围栏组状态
|
||||
*/
|
||||
@Schema(name = "围栏组状态")
|
||||
private Integer groupStates;
|
||||
|
||||
|
|
@ -1,20 +1,36 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.message.Message;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
||||
/**
|
||||
* @className: MessageDao ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 20:58 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 消息dao
|
||||
* * @className: MessageDao ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 20:58 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:消息dao
|
||||
*/
|
||||
@TableName(value = "car_fault_message" , autoResultMap = true)
|
||||
@SuperBuilder
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@Tag(name = "消息模块")
|
||||
public class MessageDao {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
@Schema(name = "消息id")
|
||||
private Connection connection;
|
||||
|
||||
public MessageDao(Connection connection){
|
|
@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.req.MessageTemplateAddReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.domain.req.MessageTemplateAddReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -12,10 +15,11 @@ import lombok.NoArgsConstructor;
|
|||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @ClassName MessageTemplate
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Date 2024/9/19
|
||||
* 报文模版实体类
|
||||
* * @ClassName MessageTemplate
|
||||
* * @Description TODO
|
||||
* * @Author Li HD
|
||||
* * @Date 2024/9/19
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
|
@ -23,22 +27,26 @@ import lombok.experimental.SuperBuilder;
|
|||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "message_template", autoResultMap = true)
|
||||
@Tag(name = "报文模版管理")
|
||||
public class MessageTemplate extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 报文模版主键
|
||||
*/
|
||||
@TableId(value = "message_template_id", type = IdType.AUTO)
|
||||
@Schema(title = "报文模版主键")
|
||||
private String messageTemplateId;
|
||||
|
||||
/**
|
||||
* 报文模版名称
|
||||
*/
|
||||
@Schema(name = "报文模版名称")
|
||||
private String messageTemplateName;
|
||||
|
||||
/**
|
||||
* 报文模版描述
|
||||
*/
|
||||
@Schema(name = "报文模版描述")
|
||||
private String messageTemplateDescribe;
|
||||
|
||||
/**
|
|
@ -3,8 +3,10 @@ package com.muyu.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.req.MessageValueAddReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.domain.req.MessageValueAddReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -12,10 +14,11 @@ import lombok.NoArgsConstructor;
|
|||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @ClassName MessageValue
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Date 2024/9/19
|
||||
* 报文数据
|
||||
* * @ClassName MessageValue
|
||||
* * @Description TODO
|
||||
* * @Author Li HD
|
||||
* * @Date 2024/9/19
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
|
@ -23,42 +26,50 @@ import lombok.experimental.SuperBuilder;
|
|||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "message_value", autoResultMap = true)
|
||||
@Tag(name = "报文数据")
|
||||
public class MessageValue extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 报文数据主键
|
||||
*/
|
||||
@TableId(value = "message_id", type = IdType.AUTO)
|
||||
@Schema(title = "报文数据主键")
|
||||
private Long messageId;
|
||||
|
||||
/**
|
||||
* 模版主键
|
||||
*/
|
||||
@Schema(name = "模版主键")
|
||||
private Long templateId;
|
||||
|
||||
/**
|
||||
* 报文类别
|
||||
*/
|
||||
@Schema(name = "报文类别")
|
||||
private String messageType;
|
||||
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(name = "报文编码")
|
||||
private String messageCode;
|
||||
|
||||
/**
|
||||
* 报文标签
|
||||
*/
|
||||
@Schema(name = "报文标签")
|
||||
private String messageLabel;
|
||||
|
||||
/**
|
||||
* 起始下标
|
||||
*/
|
||||
@Schema(name = "起始下标")
|
||||
private Integer messageStartIndex;
|
||||
|
||||
/**
|
||||
* 终止下标
|
||||
*/
|
||||
@Schema(name = "终止下标")
|
||||
private Integer messageEndIndex;
|
||||
|
||||
public static MessageValue addBuild(MessageValueAddReq messageValueAddReq){
|
|
@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -15,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
/**
|
||||
* 车辆基础信息对象 sys_car
|
||||
*
|
||||
* @author Li HD
|
||||
* @author LiHD
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
|
||||
|
@ -25,34 +27,43 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName(value = "sys_car", autoResultMap = true)
|
||||
@Tag(name = "车辆基础信息")
|
||||
public class SysCar extends BaseEntity{
|
||||
|
||||
/** 自增主键 */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@TableId( type = IdType.AUTO , value = "id" )
|
||||
private Long id;
|
||||
|
||||
/** 车辆VIN码 */
|
||||
@Schema(name = "车辆VIN码")
|
||||
private String carVin;
|
||||
|
||||
/** 车辆车牌号 */
|
||||
@Schema(name = "车辆车牌号")
|
||||
private String carPlate;
|
||||
|
||||
/** 车辆品牌 */
|
||||
@Schema(name = "车辆品牌")
|
||||
private String carBrand;
|
||||
|
||||
/** 车辆型号 */
|
||||
@Schema(name = "车辆型号")
|
||||
private String carModel;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Schema(name = "车辆类型")
|
||||
private Integer carType;
|
||||
|
||||
/** 策略ID */
|
||||
@Schema(name = "策略ID")
|
||||
private Integer warnStrategy;
|
||||
|
||||
/** 围栏组编码 */
|
||||
@Schema(name = "围栏组编码")
|
||||
private String groupCode;
|
||||
|
||||
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
|
||||
@Schema(name = "启用状态")
|
||||
private Integer state;
|
||||
|
||||
|
|
@ -3,8 +3,9 @@ package com.muyu.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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.*;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
@ -12,7 +13,6 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
|
||||
/**
|
||||
* 车辆故障对象 sys_car_fault
|
||||
*
|
||||
* @author Yang鹏
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
|
@ -23,56 +23,58 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("sys_car_fault")
|
||||
@TableName(value = "sys_car_fault", autoResultMap = true)
|
||||
@Tag(name = "车辆故障对象")
|
||||
public class SysCarFault extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增主键 */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@TableId( type = IdType.AUTO,value = "id")
|
||||
@Schema(name = "自增主键")
|
||||
private Long id;
|
||||
|
||||
/** 车辆故障编码; */
|
||||
@Excel(name = "车辆故障编码;")
|
||||
@Schema(name = "车辆故障编码;")
|
||||
private String faultCode;
|
||||
|
||||
/** 车辆故障名称 */
|
||||
@Excel(name = "车辆故障名称")
|
||||
@Schema(name = "车辆故障名称")
|
||||
private String faultName;
|
||||
|
||||
/** 车辆故障类型 */
|
||||
@Excel(name = "车辆故障类型")
|
||||
@Schema(name = "车辆故障类型")
|
||||
private String faultType;
|
||||
|
||||
/** 故障VIN编码 */
|
||||
@Excel(name = "故障VIN编码")
|
||||
@Schema(name = "故障VIN编码")
|
||||
private String carVin;
|
||||
|
||||
/** 车辆故障标签 */
|
||||
@Excel(name = "车辆故障标签")
|
||||
@Schema(name = "车辆故障标签")
|
||||
private String faultLabel;
|
||||
|
||||
/** 车辆故障位 */
|
||||
@Excel(name = "车辆故障位")
|
||||
@Schema(name = "车辆故障位")
|
||||
private String faultBit;
|
||||
|
||||
/** 车辆故障值 */
|
||||
@Excel(name = "车辆故障值")
|
||||
@Schema(name = "车辆故障值")
|
||||
private String faultValue;
|
||||
|
||||
/** 故障级别; */
|
||||
@Excel(name = "故障级别;")
|
||||
@Schema(name = "故障级别;")
|
||||
private String faultWarn;
|
||||
|
||||
/** 报警状态(Y.是,N.否) */
|
||||
@Excel(name = "报警状态", readConverterExp = "Y=.是,N.否")
|
||||
@Schema(name = "报警状态")
|
||||
private String warnStatus;
|
||||
|
||||
/** 故障描述信息 */
|
||||
@Excel(name = "故障描述信息")
|
||||
@Schema(name = "故障描述信息")
|
||||
private String faultDesc;
|
||||
|
||||
/** 启用状态(1.待处理 2.处理中 3.已处理 4.忽略) */
|
||||
@Excel(name = "启用状态(1.待处理 2.处理中 3.已处理 4.忽略)")
|
||||
@Schema(name = "启用状态(1.待处理 2.处理中 3.已处理 4.忽略)")
|
||||
private String state;
|
||||
|
||||
|
|
@ -4,8 +4,10 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
@ -22,20 +24,24 @@ import lombok.experimental.SuperBuilder;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName(value = "sys_car_type", autoResultMap = true)
|
||||
@Tag(name = "车辆类型管理")
|
||||
public class SysCarType extends BaseEntity {
|
||||
/**
|
||||
* 车辆类型主键
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
@Schema(name = "车辆类型主键")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 车辆类型名称
|
||||
*/
|
||||
@Schema(name = "车辆类型名称")
|
||||
private String sysTypeName;
|
||||
|
||||
/**
|
||||
* 报文模版外键
|
||||
*/
|
||||
@Schema(name = "报文模版外键")
|
||||
private String messageTemplateId;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
/**
|
||||
* WarnLevel枚举类
|
||||
* *@ClassName WarnLevel
|
||||
* * @Description TODO
|
||||
* * @Author Li HD
|
||||
* * @Date 2024/9/22 15:48
|
||||
*/
|
||||
public enum WarnLevel {
|
||||
LOW, MEDIUM, HIGH
|
||||
}
|
|
@ -4,21 +4,22 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 预警日志对象 warn_logs
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-09-20
|
||||
*/
|
||||
|
@ -29,49 +30,53 @@ import java.util.Date;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("warn_logs")
|
||||
@Tag(name = "预警日志管理")
|
||||
public class WarnLogs extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 预警日志id */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@Schema(name = "id")
|
||||
private Long id;
|
||||
|
||||
/** 车辆vin码 */
|
||||
@Excel(name = "车辆vin码")
|
||||
@Schema(name = "车辆vin码")
|
||||
private String vin;
|
||||
|
||||
/** 规则id */
|
||||
@Excel(name = "规则id")
|
||||
@Schema(name = "规则id")
|
||||
private Long warnRuleId;
|
||||
|
||||
/** 开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
@Schema(name = "开始时间")
|
||||
private Date startTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
@Schema(name = "结束时间")
|
||||
private Date endTime;
|
||||
|
||||
/** 最大值 */
|
||||
@Excel(name = "最大值")
|
||||
@Schema(name = "最大值")
|
||||
private Long maxValue;
|
||||
|
||||
/** 最小值 */
|
||||
@Excel(name = "最小值")
|
||||
@Schema(name = "最小值")
|
||||
private Long minValue;
|
||||
|
||||
/** 平均值 */
|
||||
@Excel(name = "平均值")
|
||||
@Schema(name = "平均值")
|
||||
private Long avgValue;
|
||||
|
||||
/** 中位数 */
|
||||
@Excel(name = "中位数")
|
||||
@Schema(name = "中位数")
|
||||
private Long medianValue;
|
||||
|
||||
/** 是否发送预警 */
|
||||
@Excel(name = "是否发送预警")
|
||||
@Schema(name = "是否发送预警")
|
||||
private Long status;
|
||||
|
||||
|
|
@ -3,18 +3,18 @@ package com.muyu.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.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
/**
|
||||
* 预警规则对象 warn_rule
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-09-20
|
||||
*/
|
||||
|
@ -26,42 +26,44 @@ import lombok.NoArgsConstructor;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("warn_rule")
|
||||
@Tag(name = "预警规则管理")
|
||||
public class WarnRule extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规则id */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@Schema(name = "规则id")
|
||||
private Long id;
|
||||
|
||||
/** 规则名称 */
|
||||
@Excel(name = "规则名称")
|
||||
@Schema(name = "规则名称")
|
||||
private String ruleName;
|
||||
|
||||
/** 策略id */
|
||||
@Excel(name = "策略id")
|
||||
@Schema(name = "策略id")
|
||||
private Long strategyId;
|
||||
|
||||
/** 报文数据类型id */
|
||||
@Excel(name = "报文数据类型id")
|
||||
@Schema(name = "报文数据类型id")
|
||||
private String msgTypeId;
|
||||
|
||||
/** 滑窗时间 */
|
||||
@Excel(name = "滑窗时间")
|
||||
@Schema(name = "滑窗时间")
|
||||
private Long slideTime;
|
||||
|
||||
/** 滑窗频率 */
|
||||
@Excel(name = "滑窗频率")
|
||||
@Schema(name = "滑窗频率")
|
||||
private String slideFrequency;
|
||||
|
||||
/** 数据频率名称 */
|
||||
@Excel(name = "数据频率名称")
|
||||
@Schema(name = "数据频率名称")
|
||||
private String slideData;
|
||||
|
||||
/** 最大值 */
|
||||
@Excel(name = "数据频率最大值")
|
||||
@Schema(name = "数据频率最大值")
|
||||
private Long slideMaxNum;
|
||||
/** 最小值 */
|
||||
@Excel(name = "数据频率最小值")
|
||||
@Schema(name = "数据频率最小值")
|
||||
private Long slideMinNum;
|
||||
|
||||
|
|
@ -3,8 +3,9 @@ package com.muyu.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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -26,27 +27,27 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("warn_strategy")
|
||||
@Tag(name = "预警策略管理")
|
||||
public class WarnStrategy extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 策略id */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@Schema(title = "策略id")
|
||||
private Long id;
|
||||
|
||||
/** 车辆类型id */
|
||||
@Excel(name = "车辆类型id")
|
||||
@Schema(name = "车辆类型id")
|
||||
private Long sysTypeId;
|
||||
|
||||
/** 策略名称 */
|
||||
@Excel(name = "策略名称")
|
||||
@Schema(name = "策略名称")
|
||||
private String strategyName;
|
||||
|
||||
/** 报文模版id */
|
||||
@Excel(name = "报文模版id")
|
||||
@Schema(name = "报文模版id")
|
||||
private Long msgId;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -13,17 +14,23 @@ import lombok.experimental.SuperBuilder;
|
|||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: Message ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/22 10:55 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* 消息实体类
|
||||
* * @className: Message ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/22 10:55 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fault_message",autoResultMap = true)
|
||||
@Tag(name = "消息管理")
|
||||
public class Message {
|
||||
/**
|
||||
* id
|
||||
|
@ -34,21 +41,25 @@ public class Message {
|
|||
/**
|
||||
* 发送者
|
||||
*/
|
||||
@Schema(description = "消息发送者",defaultValue = "admin",type = "String")
|
||||
private String sender;
|
||||
|
||||
/**
|
||||
* 接收者
|
||||
*/
|
||||
@Schema(description = "消息接收者",defaultValue = "admin",type = "String")
|
||||
private String receiver;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@Schema(description = "消息内容",defaultValue = "你好,我是admin",type = "String")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 消息状态
|
||||
*/
|
||||
@Schema(description = "消息状态",defaultValue = "0",type = "Integer")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
|
@ -60,6 +71,7 @@ public class Message {
|
|||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
@Schema(description = "登录人Id",defaultValue = "1",type = "Long")
|
||||
private long userId;
|
||||
|
||||
|
|
@ -2,32 +2,42 @@ package com.muyu.domain.message;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: MessageReq ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 20:59 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* 消息请求参数
|
||||
* * @className: MessageReq ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 20:59 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description: MessageReq
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "message_req" ,autoResultMap = true)
|
||||
@Tag(name = "消息请求参数")
|
||||
public class MessageReq {
|
||||
/**
|
||||
* 消息状态
|
||||
*/
|
||||
@TableId(type = IdType.AUTO,value = "status")
|
||||
@Schema(name = "消息状态")
|
||||
private Integer status;
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
@Excel(name = "登录人Id")
|
||||
@Schema(name = "登录人Id")
|
||||
private long userId;
|
||||
}
|
|
@ -2,9 +2,10 @@ package com.muyu.domain.message;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -13,37 +14,41 @@ import lombok.NoArgsConstructor;
|
|||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: MessageSendReq ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:00 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 发送消息请求参数
|
||||
* * @className: MessageSendReq ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:00 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description: MessageSendReq
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "message_send_req" ,autoResultMap = true)
|
||||
@Tag(name = "消息发送请求参数")
|
||||
public class MessageSendReq {
|
||||
/**
|
||||
* 发送者
|
||||
*/
|
||||
@TableId(type = IdType.AUTO,value = "id")
|
||||
@Schema(name = "发送者")
|
||||
private String sender;
|
||||
/**
|
||||
* 接收者
|
||||
*/
|
||||
@Excel(name = "接收者")
|
||||
@Schema(name = "接收者")
|
||||
private String receiver;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@Excel(name = "消息内容")
|
||||
@Schema(name = "消息内容")
|
||||
private String content;
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
@Excel(name = "登录人Id")
|
||||
@Schema(name = "登录人Id")
|
||||
private long userId;
|
||||
/**
|
||||
* 创建时间
|
|
@ -2,37 +2,46 @@ package com.muyu.domain.message;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: User ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 20:56 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
|
||||
*/
|
||||
/**
|
||||
* 用户实体类
|
||||
* * @className: User ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 20:56 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description: 用户实体类
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "user", autoResultMap = true)
|
||||
@Tag(name = "用户")
|
||||
public class User {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
@Schema(title = "用户id")
|
||||
private Integer id;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@Excel(name = "用户名")
|
||||
@Schema(name = "用户名")
|
||||
private String username;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@Excel(name="邮箱")
|
||||
@Schema(name="邮箱")
|
||||
private String email;
|
||||
}
|
|
@ -2,32 +2,38 @@ package com.muyu.domain.message.message;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: MessageReq ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 20:59 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 消息请求参数
|
||||
* * @className: MessageReq ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 20:59 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "message_req",autoResultMap = true)
|
||||
@Tag(name = "消息请求参数")
|
||||
public class MessageReq {
|
||||
/**
|
||||
* 消息状态
|
||||
*/
|
||||
@TableId(type = IdType.AUTO,value = "status")
|
||||
@Schema(name = "消息状态")
|
||||
private Integer status;
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
@Excel(name = "登录人Id")
|
||||
@Schema(name = "登录人Id")
|
||||
private long userId;
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
package com.muyu.domain.message.message;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -13,37 +12,40 @@ import lombok.NoArgsConstructor;
|
|||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @className: MessageSendReq ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 21:00 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 消息发送请求参数
|
||||
* * @className: MessageSendReq ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 21:00 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:消息发送请求参数
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "message_send_req",autoResultMap = true)
|
||||
@Tag(name = "消息发送请求参数")
|
||||
public class MessageSendReq {
|
||||
/**
|
||||
* 发送者
|
||||
*/
|
||||
@TableId(type = IdType.AUTO,value = "id")
|
||||
@Schema(name = "发送者")
|
||||
private String sender;
|
||||
/**
|
||||
* 接收者
|
||||
*/
|
||||
@Excel(name = "接收者")
|
||||
@Schema(name = "接收者")
|
||||
private String receiver;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@Excel(name = "消息内容")
|
||||
@Schema(name = "消息内容")
|
||||
private String content;
|
||||
/**
|
||||
* 登录人Id
|
||||
*/
|
||||
@Excel(name = "登录人Id")
|
||||
@Schema(name = "登录人Id")
|
||||
private long userId;
|
||||
/**
|
||||
* 创建时间
|
|
@ -2,23 +2,28 @@ package com.muyu.domain.message.message;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: User ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 20:56 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 用户实体类
|
||||
* * @className: User ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 20:56 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description: 用户实体类
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@Tag(name = "用户实体类")
|
||||
@TableName("user")
|
||||
@Builder
|
||||
public class User {
|
||||
/**
|
||||
* 用户id
|
||||
|
@ -28,11 +33,11 @@ public class User {
|
|||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@Excel(name = "用户名")
|
||||
@Schema(name = "用户名")
|
||||
private String username;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@Excel(name="邮箱")
|
||||
@Schema(name="邮箱")
|
||||
private String email;
|
||||
}
|
|
@ -3,8 +3,12 @@ package com.muyu.domain.req;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
@ -18,41 +22,54 @@ import java.util.Date;
|
|||
* @name:CarFenceAdd
|
||||
* @Date:2024/9/23 23:57
|
||||
*/
|
||||
/**
|
||||
* 围栏添加实体类
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "car_fence_add", autoResultMap = true)
|
||||
@Tag(name = "围栏添加")
|
||||
public class CarFenceAdd {
|
||||
|
||||
/**
|
||||
* 围栏主键
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(title = "围栏主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 围栏名称
|
||||
*/
|
||||
@Schema(name = "围栏名称")
|
||||
private String name;
|
||||
/**
|
||||
* 业务类型ID
|
||||
*/
|
||||
@Schema(name = "业务类型ID")
|
||||
private Integer clazzId;
|
||||
/**
|
||||
* 业务类型名称
|
||||
*/
|
||||
@Schema(name = "业务类型名称")
|
||||
@TableField(exist = false)
|
||||
private String clazzName;
|
||||
/**
|
||||
* 围栏类型ID
|
||||
*/
|
||||
@Schema(name = "围栏类型ID")
|
||||
private Integer typeId;
|
||||
/**
|
||||
* 围栏类型名称
|
||||
*/
|
||||
@Schema(name = "围栏类型名称")
|
||||
@TableField(exist = false)
|
||||
private String typeName;
|
||||
/**
|
||||
* 围栏经纬度
|
||||
*/
|
||||
@Schema(name = "围栏经纬度")
|
||||
private String fenceText;
|
||||
/**
|
||||
* 围栏开始时间
|
||||
|
@ -75,5 +92,6 @@ public class CarFenceAdd {
|
|||
/**
|
||||
* 中间表ID
|
||||
*/
|
||||
@Schema(name = "中间表ID")
|
||||
private Integer middleId;
|
||||
}
|
|
@ -2,12 +2,14 @@ package com.muyu.domain.req;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -18,17 +20,22 @@ import java.util.Date;
|
|||
* @name:CarFence
|
||||
* @Date:2024/9/17 16:08
|
||||
*/
|
||||
/**
|
||||
* 围栏组实体类
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_fence_group", autoResultMap = true)
|
||||
@Tag(name = "围栏组")
|
||||
public class CarFenceGroup {
|
||||
|
||||
/**
|
||||
* 围栏主键
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(name = "围栏主键", type = "Integer", defaultValue = "0", description = "围栏主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 围栏名称
|
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -13,23 +14,31 @@ import lombok.NoArgsConstructor;
|
|||
* @name:CarFenceReq
|
||||
* @Date:2024/9/17 16:26
|
||||
*/
|
||||
|
||||
/**
|
||||
* 车辆电子围栏请求参数
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name = "车辆电子围栏响应参数")
|
||||
@TableName(value = "car_fence_group", autoResultMap = true)
|
||||
public class CarFenceReq {
|
||||
|
||||
/**
|
||||
* 围栏名称
|
||||
*/
|
||||
@Schema(title = "围栏名称", type = "String", description = "围栏名称")
|
||||
private String name;
|
||||
/**
|
||||
* 业务类型ID
|
||||
*/
|
||||
@Schema(title = "业务类型ID", type = "String", description = "业务类型ID")
|
||||
private String clazzId;
|
||||
/**
|
||||
* 围栏类型ID
|
||||
*/
|
||||
@Schema(title = "围栏类型ID", type = "String", description = "围栏类型ID")
|
||||
private String typeName;
|
||||
/**
|
||||
* 当前页
|
|
@ -1,5 +1,10 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -12,56 +17,73 @@ import lombok.NoArgsConstructor;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测
|
||||
*/
|
||||
/**
|
||||
* 故障检测
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "fault_code_add_req", autoResultMap = true)
|
||||
@Tag(name = "故障检测")
|
||||
public class FaultCodeAddReq {
|
||||
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(description = "故障名称Id")
|
||||
@TableId(value = "message_type_id", type = IdType.AUTO)
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(description = "故障名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(description = "报文编码")
|
||||
private String messageTypeCode;
|
||||
|
||||
/**
|
||||
* 故障码
|
||||
*/
|
||||
@Schema(description = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
* 故障分类Id
|
||||
*/
|
||||
@Schema(description = "故障分类Id")
|
||||
private long faulttypeId;
|
||||
/**
|
||||
* 是否产生报警
|
||||
*/
|
||||
@Schema(description = "是否产生报警")
|
||||
private Integer isWarning;
|
||||
/**
|
||||
* 故障描述
|
||||
*/
|
||||
@Schema(description = "故障描述")
|
||||
private String faultContent;
|
||||
/**
|
||||
*故障组
|
||||
*/
|
||||
@Schema(description = "故障组")
|
||||
private String faultGroup;
|
||||
/**
|
||||
*故障位
|
||||
*/
|
||||
@Schema(description = "故障位")
|
||||
private String faultBit;
|
||||
/**
|
||||
*故障值
|
||||
*/
|
||||
@Schema(name = "故障值")
|
||||
private String faultValue;
|
||||
/**
|
||||
*报文所属类别
|
||||
*/
|
||||
@Schema(name = "报文所属类别")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
|
|
@ -1,10 +1,12 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultLog ️✈️
|
||||
|
@ -14,27 +16,36 @@ import lombok.NoArgsConstructor;
|
|||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障码列表请求对象
|
||||
*/
|
||||
@Tag(name = "故障码列表请求对象")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@SuperBuilder
|
||||
@TableName(value = "fault_code_add_req", autoResultMap = true)
|
||||
@Tag(name = "故障码列表请求对象")
|
||||
public class FaultCodeListReq {
|
||||
/**
|
||||
*故障码
|
||||
*/
|
||||
@Schema(name = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
*故障位
|
||||
*/
|
||||
@Schema(name = "故障位")
|
||||
private String faultBit;
|
||||
/**
|
||||
* 页码,从1开始
|
||||
*/
|
||||
@Schema(name = "页码")
|
||||
private Integer pageNum=1;
|
||||
/**
|
||||
* 每页大小
|
||||
*/
|
||||
@Schema(name = "每页大小")
|
||||
private Integer pageSize=10;
|
||||
|
||||
|
|
@ -1,9 +1,14 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultLog ️✈️
|
||||
|
@ -12,63 +17,83 @@ import lombok.NoArgsConstructor;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 更新故障码的请求参数
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@SuperBuilder
|
||||
@TableName(value = "fault_code_upd_req", autoResultMap = true)
|
||||
@Tag(name = "故障码更新请求参数")
|
||||
public class FaultCodeUpdReq {
|
||||
|
||||
/**
|
||||
*故障码Id
|
||||
*/
|
||||
@TableId(value = "faultcode_id", type = IdType.AUTO)
|
||||
@Schema(title = "故障码Id")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(name = "故障名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(name = "报文编码")
|
||||
private String messageTypeCode;
|
||||
/**
|
||||
* 故障码
|
||||
*/
|
||||
@Schema(name = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
* 故障分类Id
|
||||
*/
|
||||
@Schema(name = "故障分类Id")
|
||||
private long faulttypeId;
|
||||
/**
|
||||
* 是否产生报警
|
||||
*/
|
||||
@Schema(name = "是否产生报警")
|
||||
private Integer isWarning;
|
||||
/**
|
||||
* 故障描述
|
||||
*/
|
||||
@Schema(name = "故障描述")
|
||||
private String faultContent;
|
||||
/**
|
||||
*故障状态
|
||||
*/
|
||||
@Schema(name = "故障状态")
|
||||
private Integer faultStatus;
|
||||
/**
|
||||
*故障组
|
||||
*/
|
||||
@Schema(name = "故障组")
|
||||
private String faultGroup;
|
||||
/**
|
||||
*故障位
|
||||
*/
|
||||
@Schema(name = "故障位")
|
||||
private String faultBit;
|
||||
/**
|
||||
*故障值
|
||||
*/
|
||||
@Schema(name = "故障值")
|
||||
private String faultValue;
|
||||
/**
|
||||
*报文所属类别
|
||||
*/
|
||||
@Schema(name = "报文所属类别")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
|
|
@ -1,5 +1,10 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -14,30 +19,42 @@ import java.math.BigDecimal;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障规则表Id
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "fault_condition", autoResultMap = true)
|
||||
@Tag(name = "故障规则添加请求对象")
|
||||
public class FaultConditionAddReq {
|
||||
/**
|
||||
* 故障规则表Id
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
@Schema(title = "故障规则表Id")
|
||||
private long carconditionId;
|
||||
/**
|
||||
* 车辆类型Id
|
||||
*/
|
||||
@Schema(name = "车辆类型Id")
|
||||
private long carTypeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障条件
|
||||
*/
|
||||
@Schema(name = "故障条件")
|
||||
private String faultconditionIdentification;
|
||||
/**
|
||||
* 故障规则参数
|
||||
*/
|
||||
@Schema(name = "故障规则参数")
|
||||
private BigDecimal faultconditionParameter;
|
||||
|
||||
}
|
|
@ -1,5 +1,9 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -13,28 +17,38 @@ import lombok.NoArgsConstructor;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
/**
|
||||
* 故障规则列表请求对象
|
||||
*/
|
||||
@Tag(name = "故障规则列表请求对象")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "fault_code_add_req", autoResultMap = true)
|
||||
@Tag(name = "故障规则列表请求对象")
|
||||
public class FaultConditionListReq {
|
||||
|
||||
|
||||
/**
|
||||
* 车辆类型Id
|
||||
*/
|
||||
@TableId(value = "car_type_id", type = IdType.INPUT)
|
||||
@Schema (description = "车辆类型Id")
|
||||
private long carTypeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 页码,从1开始
|
||||
*/
|
||||
@Schema(name = "页码")
|
||||
private Integer pageNum=1;
|
||||
/**
|
||||
* 每页大小
|
||||
*/
|
||||
@Schema(name = "每页大小")
|
||||
private Integer pageSize=10;
|
||||
}
|
|
@ -1,5 +1,10 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -14,30 +19,41 @@ import java.math.BigDecimal;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
/**
|
||||
* 故障检测策略的接口
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "fault_condition", autoResultMap = true)
|
||||
@Tag(name = "故障规则修改请求对象")
|
||||
public class FaultConditionUpdReq {
|
||||
|
||||
/**
|
||||
* 故障规则表Id
|
||||
*/
|
||||
@TableId(value = "carcondition_id", type = IdType.ASSIGN_ID)
|
||||
@Schema(name = "故障规则表Id")
|
||||
private long carconditionId;
|
||||
/**
|
||||
* 车辆类型Id
|
||||
*/
|
||||
@Schema(name = "车辆类型Id")
|
||||
private long carTypeId;
|
||||
/**
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(name = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障条件
|
||||
*/
|
||||
@Schema(name = "故障条件")
|
||||
private String faultconditionIdentification;
|
||||
/**
|
||||
* 故障规则参数
|
||||
*/
|
||||
@Schema(name = "故障规则参数")
|
||||
private BigDecimal faultconditionParameter;
|
||||
}
|
|
@ -1,5 +1,8 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
@ -17,20 +20,28 @@ import java.util.Date;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障日志列表请求对象
|
||||
*/
|
||||
@Tag(name = "故障日志列表请求对象")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
@TableName(value = "fault_log",autoResultMap = true)
|
||||
public class FaultLogListReq {
|
||||
|
||||
/**
|
||||
* 故障码Id
|
||||
*/
|
||||
@TableId(value = "type", type = IdType.AUTO)
|
||||
@Schema(description = "故障码Id",example = "1")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
* 车辆VIN
|
||||
*/
|
||||
@Schema(name = "车辆VIN")
|
||||
private String carVin;
|
||||
/**
|
||||
* 开始报警时间
|
|
@ -1,5 +1,7 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -9,23 +11,30 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName MessageTemplateAddReq
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
|
||||
/**
|
||||
* 新增报文模版请求参数
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "新增报文模版请求参数", description = "根据入参进行报文模版的添加")
|
||||
@TableName("message_template")
|
||||
public class MessageTemplateAddReq {
|
||||
|
||||
/**
|
||||
* 报文模版名称
|
||||
*/
|
||||
@Schema(name = "报文模版名称")
|
||||
private String messageTemplateName;
|
||||
|
||||
/**
|
||||
* 报文模版描述
|
||||
*/
|
||||
@Schema(name = "报文模版描述")
|
||||
private String messageTemplateDescribe;
|
||||
}
|
|
@ -1,5 +1,9 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -9,43 +13,55 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName MessageValueAddReq
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
|
||||
/**
|
||||
* 新增报文数据请求参数
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "新增报文数据请求参数", description = "根据入参进行报文数据的添加")
|
||||
@TableName(value = "message_value", autoResultMap = true)
|
||||
public class MessageValueAddReq {
|
||||
|
||||
/**
|
||||
* 模版主键
|
||||
*/
|
||||
@TableId(value = "template_id",type = IdType.INPUT)
|
||||
@Schema(description = "模版主键")
|
||||
private Long templateId;
|
||||
|
||||
/**
|
||||
* 报文类别
|
||||
*/
|
||||
@Schema(name = "报文类别")
|
||||
private String messageType;
|
||||
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(name = "报文编码")
|
||||
private String messageCode;
|
||||
|
||||
/**
|
||||
* 报文标签
|
||||
*/
|
||||
@Schema(name = "报文标签")
|
||||
private String messageLabel;
|
||||
|
||||
/**
|
||||
* 起始下标
|
||||
*/
|
||||
@Schema(name = "起始下标")
|
||||
private Integer messageStartIndex;
|
||||
|
||||
/**
|
||||
* 终止下标
|
||||
*/
|
||||
@Schema(name = "终止下标")
|
||||
private Integer messageEndIndex;
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.domain.req;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -10,14 +11,19 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName MessageValueReq
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
|
||||
/**
|
||||
* 报文数据请求参数
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "报文数据请求参数", description = "根据入参进行报文数据的查询")
|
||||
@TableName(value = "message_value_req",autoResultMap = true)
|
||||
public class MessageValueReq {
|
||||
|
||||
/** 报文模版主键 */
|
|
@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -15,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
/**
|
||||
* 车辆基础信息对象 sys_car
|
||||
*
|
||||
* @author Li HD
|
||||
* @author LiHD
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
|
||||
|
@ -25,34 +27,44 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName(value = "sys_car", autoResultMap = true)
|
||||
@Tag(name = "车辆基础信息对象")
|
||||
public class SysCar extends BaseEntity{
|
||||
|
||||
/** 自增主键 */
|
||||
@TableId( type = IdType.AUTO)
|
||||
@Schema(title = "自增主键")
|
||||
private Long id;
|
||||
|
||||
/** 车辆VIN码 */
|
||||
@Schema(title = "车辆VIN码")
|
||||
private String carVin;
|
||||
|
||||
/** 车辆车牌号 */
|
||||
@Schema(title = "车辆车牌号")
|
||||
private String carPlate;
|
||||
|
||||
/** 车辆品牌 */
|
||||
@Schema(title = "车辆品牌")
|
||||
private String carBrand;
|
||||
|
||||
/** 车辆型号 */
|
||||
@Schema(title = "车辆型号")
|
||||
private String carModel;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Schema(title = "车辆类型")
|
||||
private Integer carType;
|
||||
|
||||
/** 策略ID */
|
||||
@Schema(title = "策略ID")
|
||||
private Integer warnStrategy;
|
||||
|
||||
/** 围栏组编码 */
|
||||
@Schema(title = "围栏组编码")
|
||||
private String groupCode;
|
||||
|
||||
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
|
||||
@Schema(title = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
|
||||
private Integer state;
|
||||
|
||||
|
|
@ -1,8 +1,11 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.domain.CarFence;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -19,6 +22,10 @@ import java.util.Date;
|
|||
* @name:CarFenceResq
|
||||
* @Date:2024/9/17 16:35
|
||||
*/
|
||||
|
||||
/**
|
||||
* 车辆电子围栏类
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
@ -30,34 +37,42 @@ public class CarFenceResq {
|
|||
/**
|
||||
* 围栏主键
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@Schema(description = "围栏主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 围栏名称
|
||||
*/
|
||||
@Schema(description = "围栏名称")
|
||||
private String name;
|
||||
/**
|
||||
* 业务类型名
|
||||
*/
|
||||
@Schema(description = "业务类型名")
|
||||
private String clazzName;
|
||||
/**
|
||||
* 围栏类型名
|
||||
*/
|
||||
@Schema(description = "围栏类型名")
|
||||
private String typeName;
|
||||
/**
|
||||
* 围栏开始时间
|
||||
*/
|
||||
@Schema(description = "围栏开始时间")
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
private Date fenceStart;
|
||||
/**
|
||||
* 围栏结束时间
|
||||
*/
|
||||
@Schema(description = "围栏结束时间")
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
private Date fenceEnd;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
private Date fenceCreate;
|
|
@ -1,6 +1,10 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.vo.FaultCodeVo;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -14,55 +18,71 @@ import lombok.Data;
|
|||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障码信息响应对象
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@Tag(name="故障码信息响应对象",description = "故障码查询的响应结果")
|
||||
@TableName(value = "fault_code_list_resp", autoResultMap = true)
|
||||
public class FaultCodeListResp {
|
||||
|
||||
/**
|
||||
*故障码Id
|
||||
*/
|
||||
@TableId(value = "faultcode_id", type = IdType.AUTO)
|
||||
@Schema(description = "故障码Id",example = "1")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(description = "故障名称Id",example = "1")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
*故障码
|
||||
*/
|
||||
@Schema(description = "故障码",example = "P0001")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
*故障组
|
||||
*/
|
||||
@Schema(description = "故障组",example = "1")
|
||||
private String faultGroup;
|
||||
/**
|
||||
*故障位
|
||||
*/
|
||||
@Schema(description = "故障位",example = "1")
|
||||
private String faultBit;
|
||||
/**
|
||||
*故障值
|
||||
*/
|
||||
@Schema(description = "故障值",example = "1")
|
||||
private String faultValue;
|
||||
/**
|
||||
*是否警告
|
||||
*/
|
||||
@Schema(description = "是否警告",example = "1")
|
||||
private Integer isWarning;
|
||||
/**
|
||||
*故障类型名称
|
||||
*/
|
||||
@Schema(description = "故障类型名称",example = "1")
|
||||
private String faulttypeName;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(description = "故障名称",example = "1")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(description = "报文编码",example = "1")
|
||||
private String messageTypeCode;
|
||||
/**
|
||||
*报文所属类别
|
||||
*/
|
||||
@Schema(description = "报文所属类别",example = "1")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
/**
|
|
@ -1,5 +1,7 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
@ -15,16 +17,24 @@ import java.util.List;
|
|||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
/**
|
||||
* 数据总数列表
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name="数据总数列表",description = "数据和总数的响应")
|
||||
@TableName(value = "fault_code",autoResultMap = true)
|
||||
public class FaultCodeTotalListResp {
|
||||
|
||||
|
||||
@Schema(name = "数据列表")
|
||||
private List<FaultCodeListResp> faultCodeListRespList;
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
@Schema(name = "总数")
|
||||
private long total;
|
||||
|
||||
public static FaultCodeTotalListResp faultCodeTotalListResp(List<FaultCodeListResp> faultCodeListRespList,long total){
|
|
@ -1,11 +1,16 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.FaultCondition;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
@ -16,44 +21,57 @@ import java.math.BigDecimal;
|
|||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障规则信息响应对象
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@Tag(name="故障规则信息响应对象",description = "故障规则查询的响应结果")
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "car_fault_condition",autoResultMap = true)
|
||||
public class FaultConditionListResp {
|
||||
|
||||
/**
|
||||
* 故障规则表Id
|
||||
*/
|
||||
@TableId(value = "carcondition_id",type = IdType.AUTO)
|
||||
@Schema(description = "故障规则表Id")
|
||||
private long carconditionId;
|
||||
/**
|
||||
* 车辆类型Id
|
||||
*/
|
||||
@Schema(description = "车辆类型Id")
|
||||
private long carTypeId;
|
||||
/**
|
||||
*故障名称Id
|
||||
*/
|
||||
@Schema(description = "故障名称Id")
|
||||
private long messageTypeId;
|
||||
/**
|
||||
* 故障条件
|
||||
*/
|
||||
@Schema(description = "故障条件")
|
||||
private String faultconditionIdentification;
|
||||
/**
|
||||
* 故障规则参数
|
||||
*/
|
||||
@Schema(description = "故障规则参数")
|
||||
private BigDecimal faultconditionParameter;
|
||||
/**
|
||||
* 车辆类型名称
|
||||
*/
|
||||
@Schema(description = "车辆类型名称")
|
||||
private String carTypeName;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(description = "故障名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(description = "报文编码")
|
||||
private String messageTypeCode;
|
||||
|
||||
/**
|
|
@ -1,5 +1,7 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
@ -15,15 +17,22 @@ import java.util.List;
|
|||
* @Version: 1.0
|
||||
* @description: 故障检测策略的接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障规则数据总数列表
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name="故障规则数据总数列表",description = "数据和总数的响应")
|
||||
@TableName(value = "fault_condition",autoResultMap = true)
|
||||
public class FaultConditionTotalListResp {
|
||||
|
||||
@Schema(description = "故障规则数据列表")
|
||||
private List<FaultConditionListResp> faultConditionListRespList;
|
||||
|
||||
@Schema(description = "故障规则数据总数")
|
||||
private long total;
|
||||
|
||||
public static FaultConditionTotalListResp faultConditionTotalListResp(List<FaultConditionListResp> faultConditionListRespList,long total){
|
|
@ -1,5 +1,8 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.domain.FaultLog;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
@ -7,6 +10,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -17,28 +21,39 @@ import java.util.Date;
|
|||
* @Version: 1.0
|
||||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障日志信息响应对象
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@Tag(name="故障日志信息响应对象",description = "故障日志的响应结果")
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "car_fault_log",autoResultMap = true)
|
||||
public class FaultLogListResp {
|
||||
|
||||
|
||||
/**
|
||||
* 故障日志Id
|
||||
*/
|
||||
@TableId(value = "log_id",type = IdType.AUTO)
|
||||
@Schema(description = "故障日志Id",example = "1")
|
||||
private long logId;
|
||||
/**
|
||||
* 故障码Id
|
||||
*/
|
||||
@Schema(name = "故障码Id")
|
||||
private long faultcodeId;
|
||||
/**
|
||||
* 车辆Id
|
||||
*/
|
||||
@Schema(name = "车辆Id")
|
||||
private long carInformationId;
|
||||
/**
|
||||
* 车辆VIN
|
||||
*/
|
||||
@Schema(name = "车辆VIN")
|
||||
private String carVin;
|
||||
/**
|
||||
* 开始报警时间
|
||||
|
@ -55,10 +70,12 @@ public class FaultLogListResp {
|
|||
/**
|
||||
* 故障码
|
||||
*/
|
||||
@Schema(name = "故障码")
|
||||
private String faultcodeNumber;
|
||||
/**
|
||||
* 车辆vin
|
||||
*/
|
||||
@Schema(name = "车辆vin")
|
||||
private String carInformationVIN;
|
||||
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
@ -16,15 +18,21 @@ import java.util.List;
|
|||
* @description:
|
||||
*/
|
||||
|
||||
/**
|
||||
* 故障日志数据总数列表
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name="故障日志数据总数列表",description = "数据和总数的响应")
|
||||
@TableName(value = "fault_log",autoResultMap = true)
|
||||
public class FaultLogTotalListResp {
|
||||
|
||||
@Schema(description = "故障日志列表")
|
||||
private List<FaultLogListResp> faultLogListRespList;
|
||||
|
||||
@Schema(description = "总数")
|
||||
private long total;
|
||||
|
||||
public static FaultLogTotalListResp faultLogTotalListResp(List<FaultLogListResp> faultLogListRespList,long total){
|
|
@ -1,6 +1,10 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.MessageTemplate;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -10,29 +14,38 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName MessageTemplateListResp
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
|
||||
/**
|
||||
* 报文模版列表响应数据
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "报文模版列表", description = "负责报文模版管理列表的相应数据")
|
||||
@TableName(value = "message_template", autoResultMap = true)
|
||||
public class MessageTemplateListResp {
|
||||
|
||||
/**
|
||||
* 报文模版主键
|
||||
*/
|
||||
@Schema(description = "报文模版主键")
|
||||
@TableId(value = "message_template_id", type = IdType.AUTO)
|
||||
private String messageTemplateId;
|
||||
|
||||
/**
|
||||
* 报文模版名称
|
||||
*/
|
||||
@Schema(description = "报文模版名称")
|
||||
private String messageTemplateName;
|
||||
|
||||
/**
|
||||
* 报文模版描述
|
||||
*/
|
||||
@Schema(description = "报文模版描述")
|
||||
private String messageTemplateDescribe;
|
||||
|
||||
/**
|
|
@ -1,6 +1,10 @@
|
|||
package com.muyu.domain.resp;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.MessageValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -10,44 +14,56 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName MessageValueListResp
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/19
|
||||
*/
|
||||
|
||||
/**
|
||||
* 报文数据列表的相应数据
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "报文数据列表", description = "负责报文数据管理列表的相应数据")
|
||||
@TableName(value = "message_value", autoResultMap = true)
|
||||
public class MessageValueListResp {
|
||||
|
||||
/**
|
||||
* 报文数据主键
|
||||
*/
|
||||
@TableId(value = "message_id", type = IdType.AUTO)
|
||||
@Schema(description = "报文数据主键",example = "1")
|
||||
private Long messageId;
|
||||
|
||||
/**
|
||||
* 报文类别
|
||||
*/
|
||||
@Schema(description = "报文类别",example = "1")
|
||||
private String messageType;
|
||||
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(description = "报文编码",example = "1")
|
||||
private String messageCode;
|
||||
|
||||
/**
|
||||
* 报文标签
|
||||
*/
|
||||
@Schema(description = "报文标签",example = "1")
|
||||
private String messageLabel;
|
||||
|
||||
/**
|
||||
* 起始下标
|
||||
*/
|
||||
@Schema(description = "起始下标",example = "1")
|
||||
private Integer messageStartIndex;
|
||||
|
||||
/**
|
||||
* 终止下标
|
||||
*/
|
||||
@Schema(description = "终止下标",example = "1")
|
||||
private Integer messageEndIndex;
|
||||
|
||||
public static MessageValueListResp valueBuild(MessageValue messageValue){
|
|
@ -2,6 +2,8 @@ package com.muyu.domain.resp;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -11,65 +13,80 @@ import lombok.NoArgsConstructor;
|
|||
/**
|
||||
* @ClassName SysCarResp
|
||||
* @Description TODO
|
||||
* @Author Li HD
|
||||
* @Author LiHD
|
||||
* @Date 2024/9/25 20:14
|
||||
*/
|
||||
|
||||
/**
|
||||
* 车辆类型信息
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Tag(name = "车辆类型信息", description = "车辆类型")
|
||||
@TableName(value = "sys_car", autoResultMap = true)
|
||||
public class SysCarResp {
|
||||
|
||||
/**
|
||||
* 自增主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@Schema(description = "自增主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 车辆VIN码
|
||||
*/
|
||||
@Schema(description = "车辆VIN码")
|
||||
private String carVin;
|
||||
|
||||
/**
|
||||
* 车辆车牌号
|
||||
*/
|
||||
@Schema(description = "车辆车牌号")
|
||||
private String carPlate;
|
||||
|
||||
/**
|
||||
* 车辆品牌
|
||||
*/
|
||||
@Schema(description = "车辆品牌")
|
||||
private String carBrand;
|
||||
|
||||
/**
|
||||
* 车辆型号
|
||||
*/
|
||||
@Schema(description = "车辆型号")
|
||||
private String carModel;
|
||||
|
||||
/**
|
||||
* 车辆类型
|
||||
*/
|
||||
@Schema(description = "车辆类型")
|
||||
private Integer carType;
|
||||
|
||||
/**
|
||||
* 车辆类型名称
|
||||
*/
|
||||
@Schema(description = "车辆类型名称")
|
||||
private String sysTypeName;
|
||||
|
||||
/**
|
||||
* 策略ID
|
||||
*/
|
||||
@Schema(description = "策略ID")
|
||||
private Integer warnStrategy;
|
||||
|
||||
/**
|
||||
* 围栏组编码
|
||||
*/
|
||||
@Schema(description = "围栏组编码")
|
||||
private String groupCode;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
@Schema(description = "启用状态")
|
||||
private Integer state;
|
||||
|
||||
@Override
|
|
@ -1,40 +1,49 @@
|
|||
package com.muyu.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.domain.FaultCode;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @className: FaultCodeVo ️✈️
|
||||
* @author: Yang 鹏 🦅
|
||||
* @date: 2024/9/23 22:18 ⏰
|
||||
* @Version: 1.0
|
||||
* @description:
|
||||
* 故障代码VO
|
||||
* * @className: FaultCodeVo ️✈️
|
||||
* * @author: Yang 鹏 🦅
|
||||
* * @date: 2024/9/23 22:18 ⏰
|
||||
* * @Version: 1.0
|
||||
* * @description:
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@TableName(value = "car_faultcode", autoResultMap = true)
|
||||
@Tag(name = "故障代码")
|
||||
public class FaultCodeVo extends FaultCode {
|
||||
/**
|
||||
*故障类型名称
|
||||
*/
|
||||
@Schema(description = "故障类型名称")
|
||||
private String faulttypeName;
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
@Schema(description = "故障名称")
|
||||
private String messageTypeName;
|
||||
/**
|
||||
* 报文编码
|
||||
*/
|
||||
@Schema(description = "报文编码")
|
||||
private String messageTypeCode;
|
||||
/**
|
||||
*报文所属类别
|
||||
*/
|
||||
@Schema(description = "报文所属类别")
|
||||
private String messageTypeBelongs;
|
||||
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
|
@ -0,0 +1,26 @@
|
|||
<?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-enterprise</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>enterpise-remote</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>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>enterpise-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,30 @@
|
|||
package com.muyu.remote;
|
||||
|
||||
import com.muyu.common.core.constant.ServiceNameConstants;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.domain.req.MessageValueReq;
|
||||
import com.muyu.domain.resp.MessageValueListResp;
|
||||
import com.muyu.remote.factory.RemoteMessageValueFallbackFactory;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author xie ya ru
|
||||
* @Date 2024/9/28 21:00
|
||||
* @注释 vin查询报文模版类型
|
||||
*/
|
||||
@FeignClient(contextId = "remoteMessageValueService", value = ServiceNameConstants.ENTERPRISE_SERVICE, fallbackFactory = RemoteMessageValueFallbackFactory.class,path = "messageValue")
|
||||
public interface RemoteMessageValueService {
|
||||
|
||||
@PostMapping("/findByTemplateId/{stringVin}")
|
||||
@Operation(summary = "根据车辆类型查询报文模版ID",description = "根据车辆类型查询报文模版ID")
|
||||
Result<Long> findByTemplateId(@PathVariable("stringVin") String stringVin);
|
||||
|
||||
@RequestMapping(value = "/list", method = RequestMethod.POST)
|
||||
Result<List<MessageValueListResp>> findAll(@RequestBody MessageValueReq messageValueReq);
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.muyu.remote.factory;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.domain.req.MessageValueReq;
|
||||
import com.muyu.domain.resp.MessageValueListResp;
|
||||
import com.muyu.remote.RemoteMessageValueService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author xie ya ru
|
||||
* @Date 2024/9/28 21:04
|
||||
* @注释
|
||||
*/
|
||||
@Log4j2
|
||||
public class RemoteMessageValueFallbackFactory implements FallbackFactory<RemoteMessageValueService> {
|
||||
@Override
|
||||
public RemoteMessageValueService create(Throwable cause) {
|
||||
log.error("文件服务调用失败:{}",cause.getMessage());
|
||||
return new RemoteMessageValueService() {
|
||||
@Override
|
||||
public Result<List<MessageValueListResp>> findAll(MessageValueReq messageValueReq) {
|
||||
return Result.error("查询数据失败:"+cause.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Long> findByTemplateId(String stringVin) {
|
||||
return Result.error("查询数据失败:"+cause.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
com.muyu.remote.factory.RemoteMessageValueFallbackFactory
|
|
@ -0,0 +1,38 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
|
@ -5,15 +5,11 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-modules</artifactId>
|
||||
<artifactId>cloud-modules-enterprise</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>cloud-module-enterprise</artifactId>
|
||||
|
||||
<description>
|
||||
cloud-modules-enterprise
|
||||
</description>
|
||||
<artifactId>enterpise-service</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
|
@ -24,9 +20,8 @@
|
|||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.eclipse.paho</groupId>
|
||||
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
||||
<version>1.2.5</version>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>enterpise-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
|
@ -88,7 +83,6 @@
|
|||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-xxl</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
|
@ -15,8 +15,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
//@EnableCustomSwagger2
|
||||
@EnableMyFeignClients
|
||||
@SpringBootApplication
|
||||
public class CloudWarnApplication {
|
||||
public class CloudEnterpiseApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(CloudWarnApplication.class, args);
|
||||
SpringApplication.run(CloudEnterpiseApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -1,8 +1,9 @@
|
|||
package com.muyu.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
|
||||
import com.muyu.domain.CarFenceClazz;
|
||||
import com.muyu.service.CarFenceClazzService;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -14,11 +15,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.server.controller
|
||||
* @Project:cloud-electronic
|
||||
* @name:CarFenceClazzController
|
||||
* @Date:2024/9/20 14:31
|
||||
* 从围栏信息表中查询数据
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.server.controller
|
||||
* * @ClassName:CarFenceClazzController
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:CarFenceClazzController
|
||||
* * @Date:2024/9/20 14:31
|
||||
* * @Description:从围栏信息表中查询数据
|
||||
*/
|
||||
@RequestMapping("/carFenceClazz")
|
||||
@RestController
|
|
@ -1,12 +1,12 @@
|
|||
package com.muyu.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.domain.CarFence;
|
||||
import com.muyu.domain.req.CarFenceReq;
|
||||
import com.muyu.domain.resp.CarFenceResq;
|
||||
import com.muyu.service.CarFenceService;
|
||||
import com.muyu.service.CarFenceServiceMybaits;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -18,11 +18,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.server.controller
|
||||
* @Project:cloud-electronic
|
||||
* @name:CarFenceController
|
||||
* @Date:2024/9/17 16:46
|
||||
* 从围栏信息表中查询数据
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.server.controller
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:CarFenceController
|
||||
* * @Date:2024/9/17 16:46
|
||||
* * @Description:从围栏信息表中查询数据
|
||||
*/
|
||||
@RequestMapping("/carFence")
|
||||
@RestController
|
|
@ -1,8 +1,8 @@
|
|||
package com.muyu.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.domain.CarFenceType;
|
||||
import com.muyu.service.CarFenceTypeService;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -14,11 +14,13 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.server.controller
|
||||
* @Project:cloud-electronic
|
||||
* @name:CarFenceClazzController
|
||||
* @Date:2024/9/20 14:31
|
||||
* 从围栏信息表中查询数据
|
||||
* * @Author:yang
|
||||
* * @Package:com.muyu.server.controller
|
||||
* * @Project:cloud-electronic
|
||||
* * @name:CarFenceClazzController
|
||||
* * @Date:2024/9/20 14:31
|
||||
* * @Description:从围栏信息表中查询数据
|
||||
*/
|
||||
@RequestMapping("/carFenceType")
|
||||
@RestController
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue