Compare commits

...

21 Commits

Author SHA1 Message Date
王鑫 3ac5b84ef6 Merge remote-tracking branch 'origin/dev.data.process' into dev.data.process
# Conflicts:
#	pom.xml
2024-09-29 17:59:23 +08:00
xieyaru070903 93f78cdc3e Merge pull request 'fix():修复框架bug' (#9) from dev.parse into dev
Reviewed-on: #9
2024-09-29 12:28:07 +08:00
ruyaxie 3953642310 fix():修复框架bug 2024-09-29 12:26:51 +08:00
ruyaxie 29f08cbb46 Merge remote-tracking branch 'origin/dev' into dev.parse
# Conflicts:
#	cloud-modules/cloud-modules-enterprise/enterpise-common/pom.xml
2024-09-29 12:26:21 +08:00
ruyaxie 05e6ecb947 fix():修复框架bug 2024-09-29 12:20:14 +08:00
LiHD 1f98e4ea26 Merge pull request 'dev.gateway' (#7) from dev.gateway into dev
Reviewed-on: #7
2024-09-29 10:54:34 +08:00
Li HD 6eb46f53ae Merge remote-tracking branch 'origin/dev.gateway' into dev.gateway
# Conflicts:
#	cloud-modules/cloud-modules-enterprise/enterpise-common/src/main/java/com/muyu/domain/MessageTemplate.java
#	cloud-modules/cloud-modules-enterprise/enterpise-common/src/main/java/com/muyu/domain/SysCarType.java
2024-09-29 10:51:11 +08:00
Li HD db16c57199 fix():跟新代码 2024-09-29 10:50:18 +08:00
Li HD 90195a9226 fix():初始化 2024-09-29 10:40:08 +08:00
yanchouchou 70ee6d0628 Merge pull request 'dev.saas' (#5) from dev.saas into dev
Reviewed-on: #5
2024-09-29 10:33:30 +08:00
yanchouchou 7971b67277 Merge pull request 'fix():更新模块cloud-modules-enterprise' (#4) from dev.saas.yp into dev.saas
Reviewed-on: #4
2024-09-29 10:32:45 +08:00
YangPeng 49a7e0df4d fix():更新模块cloud-modules-enterprise 2024-09-29 10:31:52 +08:00
Li HD e491c7de89 fix():初始化 2024-09-29 10:29:43 +08:00
yanchouchou 0303b4fe72 Merge pull request 'dev.saas' (#2) from dev.saas into dev
Reviewed-on: #2
2024-09-29 09:40:01 +08:00
yanchouchou 1b982ed5a2 Merge pull request 'dev.saas.yp' (#1) from dev.saas.yp into dev.saas
Reviewed-on: #1
2024-09-29 09:39:30 +08:00
YangPeng 244ceb5b46 fix():添加实现FaultCode添加字段 2024-09-29 00:07:21 +08:00
YangPeng 0ae1ddbbca fix():添加实现cloud-vx pom文件 2024-09-28 18:26:46 +08:00
YangPeng 5994bf1550 fix():修改接口文档,添加注解 controller 和 service 和 domain 2024-09-28 18:21:09 +08:00
YangPeng aa39403714 fix():CarInformation添加实体类 修改其他类的注解 2024-09-30 12:48:15 +08:00
YangPeng 7ae5082c3d feat():message添加注解 2024-09-30 12:18:55 +08:00
YangPeng 40e3a1ceb7 feat():service controller mapper domain 添加注解 2024-09-28 15:11:42 +08:00
244 changed files with 4498 additions and 1463 deletions

View File

@ -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";
}

View File

@ -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());
/**

View File

@ -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;
/**
*

View File

@ -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

View File

@ -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;
}

View File

@ -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;
/**

View File

@ -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;
/**
*

View File

@ -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;
}

View File

@ -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;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameCarFaultMessage
* @Date2024/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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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();
}
}
}

View File

@ -1,5 +0,0 @@
package com.muyu.domain;
public enum WarnLevel {
LOW, MEDIUM, HIGH
}

View File

@ -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;
}

View File

@ -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 {
}

View File

@ -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> {
}

View File

@ -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);
}

View File

@ -1,4 +0,0 @@
package com.muyu.service;
public interface FaultDetectionStrategyService {
}

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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;
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,14 @@
package com.muyu;
/**
* @Authoryan
* @Packagecom.muyu
* @ProjectDefault (Template) Project
* @name${NAME}
* @Date2024/9/29 09:56
*/
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View File

@ -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

View File

@ -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>

View File

@ -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;
/**
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameCarFaultMessage
* * @Date2024/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;
}

View File

@ -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 {/**
* VINVINVIN
*/
private String vin;
@TableName(value = "car_fault_rule",autoResultMap = true)
@Tag(name = "车辆故障规则")
public class CarFaultRule {
/**
* VINVINVIN
*/
@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;
/**
* SOCSOCSOC
*/
@Schema(name = "动力电池负载端总电压V3")
private double PBRSOC;
/**
*
*/
@Schema(name = "单次最大电压")
private double MACSFP;
/**
*
*/
@Schema(name = "单体电池最低电压")
private double CSATMDP;
/**
* BMSBMSBMS
*/
@Schema(name = "单体电池最高温度")
private int BMS;
/**
*
*/
@Schema(name = "单体电池最低温度")
private double CADC;
/**
* V3V3V3
*/
@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;
}

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameCarFence
* @Date2024/9/17 16:08
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameCarFence
* * @Date2024/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()

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameCarFenceClazz
* @Date2024/9/17 16:41
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameCarFenceClazz
* * @Date2024/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) {

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameType
* @Date2024/9/17 16:40
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameType
* * @Date2024/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) {

View File

@ -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;
}

View File

@ -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;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameCarMiddle
* @Date2024/9/25 20:25
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameCarMiddle
* * @Date2024/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;
}

View File

@ -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;
}

View File

@ -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) {

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameFenceAndGroupMiddle
* @Date2024/9/22 09:59
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameFenceAndGroupMiddle
* * @Date2024/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;
}

View File

@ -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;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectcars
* @nameFenceGroup
* @Date2024/9/21 20:45
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectcars
* * @nameFenceGroup
* * @Date2024/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;

View File

@ -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){

View File

@ -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;
/**

View File

@ -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){

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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
}

View File

@ -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;

View File

@ -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;

View File

@ -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)

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
/**
*

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
/**
*

View File

@ -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;
}

View File

@ -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;
* @nameCarFenceAdd
* @Date2024/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;
}

View File

@ -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;
* @nameCarFence
* @Date2024/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;
/**
*

View File

@ -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;
* @nameCarFenceReq
* @Date2024/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;
/**
*

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
/**
*

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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 {
/** 报文模版主键 */

View File

@ -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;

View File

@ -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;
* @nameCarFenceResq
* @Date2024/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;

View File

@ -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;
/**

View File

@ -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){

View File

@ -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;
/**

View File

@ -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){

View File

@ -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;

View File

@ -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){

View File

@ -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;
/**

View File

@ -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){

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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>

View File

@ -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);
}

View File

@ -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());
}
};
}
}

View File

@ -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

View File

@ -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>

View File

@ -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);
}
}

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceClazzController
* @Date2024/9/20 14:31
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @ClassNameCarFenceClazzController
* * @Projectcloud-electronic
* * @nameCarFenceClazzController
* * @Date2024/9/20 14:31
* * @Description
*/
@RequestMapping("/carFenceClazz")
@RestController

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceController
* @Date2024/9/17 16:46
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @Projectcloud-electronic
* * @nameCarFenceController
* * @Date2024/9/17 16:46
* * @Description
*/
@RequestMapping("/carFence")
@RestController

View File

@ -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;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceClazzController
* @Date2024/9/20 14:31
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @Projectcloud-electronic
* * @nameCarFenceClazzController
* * @Date2024/9/20 14:31
* * @Description
*/
@RequestMapping("/carFenceType")
@RestController

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