fix():修改接口文档,添加注解 controller 和 service 和 domain

pull/1/head
YangPeng 2024-09-28 18:21:09 +08:00
parent aa39403714
commit 5994bf1550
79 changed files with 885 additions and 476 deletions

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

@ -42,6 +42,12 @@ public class FaultRuleController {
return Result.success(checkfaults);
}
/**
*
*
* @param carFaultRule
* @return
*/
@PostMapping("/cheakfaults")
@Operation(summary = "故障参数匹配检查",description = "获取报文数据与故障参数进行比较")

View File

@ -33,7 +33,6 @@ public class SysCarFaultController extends BaseController
/**
*
*/
@GetMapping("/list")
public Result<TableDataInfo<SysCarFault>> list(SysCarFault sysCarFault)
{

View File

@ -30,6 +30,9 @@ public class SysTypeController extends BaseController {
private SysTypeService sysTypeService;
/**
*
*/
@GetMapping("/list")
public Result<TableDataInfo<SysCarType>> list() {
startPage();

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.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;
@ -13,32 +15,56 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameCarFaultMessage
* @Date2024/9/25 23:45
*/
/**
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameCarFaultMessage
* * @Date2024/9/25 23:45
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Tag(name = "bioa")
@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,209 +1,267 @@
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 {/**
@TableName(value = "car_fault_rule",autoResultMap = true)
@Tag(name = "车辆故障规则")
public class CarFaultRule {
/**
* VINVINVIN
*/
private String vin;
@TableId(value = "规则Id",type = IdType.AUTO)
@Schema(name = "车辆VIN码")
private Long vin;
/**
*
*/
@Schema(name = "车辆类型Id")
private long timestamp;
/**
*
*/
@Schema(name = "车速")
private double longitude;
/**
*
*/
@Schema(name = "总电流")
private double latitude;
/**
*
*/
@Schema(name = "绝缘电阻")
private double speed;
/**
*
*/
@Schema(name = "加速踏板行程值")
private long TM;
/**
*
*/
@Schema(name = "制动踏板行程值")
private double TV;
/**
*
*/
@Schema(name = "燃料消耗率")
private double CC;
/**
*
*/
@Schema(name = "电机控制器温度")
private double IR;
/**
*
*/
@Schema(name = "电机转速")
private String GP;
/**
*
*/
@Schema(name = "电机转矩")
private double APTV;
/**
*
*/
@Schema(name = "电机温度")
private double BPTV;
/**
*
*/
@Schema(name = "电机电压")
private double SFC;
/**
*
*/
@Schema(name = "电机电流")
private double MCT;
/**
*
*/
@Schema(name = "动力电池剩余电量SOC")
private int MS;
/**
*
*/
@Schema(name = "当前状态允许的最大反馈功率")
private double MTO;
/**
*
*/
@Schema(name = "当前状态允许最大放电功率")
private double MTE;
/**
*
*/
@Schema(name = "BMS自检计数器")
private double MV;
/**
*
*/
@Schema(name = "动力电池充放电电流")
private double MC;
/**
* 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;
@ -14,16 +15,13 @@ 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
@ -41,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;
/**
*
@ -85,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,22 +1,22 @@
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;
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
@ -28,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,22 +1,23 @@
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 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;
/**
* @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
@ -28,10 +29,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

@ -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 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.Data;
@ -32,82 +32,84 @@ public class CarInformation {
* ID
*/
@TableId(value = "car_information_id" , type = IdType.AUTO)
@Schema(name = "车辆ID")
private Long carInformationId;
/**
* VIN
*/
@Excel(name = "车辆唯一VIN")
@Schema(name = "车辆唯一VIN")
private String CarInformationVIN;
/**
*
*/
@Excel(name = "车牌号")
@Schema(name = "车牌号")
private String carInformationLicensePlate;
/**
*
*/
@Excel(name = "车辆品牌")
@Schema(name = "车辆品牌")
private String carInformationBrand;
/**
*
*/
@Excel(name = "车辆颜色")
@Schema(name = "车辆颜色")
private String carInformationColor;
/**
*
*/
@Excel(name = "车辆驾驶员")
@Schema(name = "车辆驾驶员")
private String carInformationDriver;
/**
*
*/
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
// @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
// @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
// @Schema(name = "车检到期日期")
private Date carInformationExamineEnddata;
/**
*
*/
@Excel(name = "车辆电机厂商")
@Schema(name = "车辆电机厂商")
private String carInformationMotorManufacturer;
/**
*
*/
@Excel(name = "车辆电机型号")
@Schema(name = "车辆电机型号")
private String carInformationMotorModel;
/**
*
*/
@Excel(name = "车辆电池厂商")
@Schema(name = "车辆电池厂商")
private String carInformationBatteryManufacturer;
/**
*
*/
@Excel(name = "车辆电池型号")
@Schema(name = "车辆电池型号")
private String carInformationBatteryModel;
/**
* ID
*/
@Excel(name = "车辆电子围栏外键ID")
@Schema(name = "车辆电子围栏外键ID")
private Long carInformationFence;
/**
* ID
*/
@Excel(name = "车辆类型外键ID")
@Schema(name = "车辆类型外键ID")
private Long carInformationType;
/**
* (0 1 )
*/
@Excel(name = "是否重点车辆 (0否默认 1是 )")
@Schema(name = "是否重点车辆 (0否默认 1是 )")
private Long carInformationFocus;
/**
* id
*/
@Excel(name = "车辆策略id")
@Schema(name = "车辆策略id")
private Long carStrategyId;
/**
* (1.线 2.线 3. 4. 5.)
*/
@Excel(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
@Schema(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
private Long carInformationState;

View File

@ -1,23 +1,24 @@
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 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;
/**
* @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
@ -29,14 +30,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

@ -1,38 +1,45 @@
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 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:
*/
/**
*
* * @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

@ -3,63 +3,75 @@ 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.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;
private String faulttypeName;
private String messageTypeName;
private String messageTypeCode;
private String messageTypeBelongs;
// private String faulttypeName;
// private String messageTypeName;
// private String messageTypeCode;
// private String messageTypeBelongs;
public static FaultCode addfaultcode(FaultCodeAddReq faultCodeAddReq) {
return FaultCode.builder()

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;
@ -13,55 +15,61 @@ import lombok.experimental.SuperBuilder;
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,45 +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

@ -4,7 +4,10 @@ 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.annotation.Excel;
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;
@ -12,21 +15,19 @@ 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 {
@ -34,18 +35,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;
/**
*
@ -62,10 +67,12 @@ public class FaultLog {
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
* vin
*/
@Schema(name = "车辆vin")
private String carInformationVIN;
}

View File

@ -1,25 +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:
*/
/**
*
* * @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;
@ -8,61 +12,68 @@ 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,35 +3,38 @@ 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 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,22 +3,20 @@ 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;
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
@ -31,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,22 +3,21 @@ 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 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;
/**
* @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
@ -31,14 +30,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,24 +1,37 @@
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.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

@ -1,57 +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

@ -3,23 +3,23 @@ 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.domain.req.MessageTemplateAddReq;
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;
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
@ -27,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

@ -5,21 +5,20 @@ 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 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 MessageValue
* @Description TODO
* @Author Li HD
* @Date 2024/9/19
*/
/**
*
* * @ClassName MessageValue
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/19
*/
@Data
@SuperBuilder
@ -27,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;
@ -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,21 +4,20 @@ 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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName SysCarType
* @Description TODO
* @Author Li HD
* @Date 2024/9/22 15:48
*/
/**
*
* *@ClassName SysCarType
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/22 15:48
*/
@EqualsAndHashCode(callSuper = true)
@Data
@ -26,20 +25,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

@ -1,7 +1,11 @@
package com.muyu.domain;
/**
* WarnLevel
* WarnLevel
* *@ClassName WarnLevel
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/22 15:48
*/
public enum WarnLevel {
LOW, MEDIUM, HIGH

View File

@ -5,7 +5,10 @@ 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.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.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -14,11 +17,12 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* warn_logs
*
* @author muyu
* @date 2024-09-20
*/
@ -29,49 +33,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

@ -5,6 +5,8 @@ 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.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -14,7 +16,6 @@ import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
* warn_rule
*
* @author muyu
* @date 2024-09-20
*/
@ -26,42 +27,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,23 +27,25 @@ 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

View File

@ -4,8 +4,11 @@ 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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -29,6 +32,7 @@ import java.util.Date;
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_message",autoResultMap = true)
@Tag(name = "消息管理")
public class Message {
/**
* id
@ -39,21 +43,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;
/**
@ -65,6 +73,7 @@ public class Message {
/**
* Id
*/
@Schema(description = "登录人Id",defaultValue = "1",type = "Long")
private long userId;

View File

@ -2,8 +2,13 @@ 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.muyu.common.core.annotation.Excel;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -24,15 +29,18 @@ import lombok.experimental.SuperBuilder;
@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,12 @@ 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 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;
@ -24,27 +27,30 @@ import java.util.Date;
@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,8 +2,12 @@ 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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -23,20 +27,23 @@ import lombok.experimental.SuperBuilder;
@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,8 +2,12 @@ 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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -20,15 +24,18 @@ import lombok.experimental.SuperBuilder;
@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,13 +2,17 @@ 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 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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@ -24,27 +28,29 @@ import java.util.Date;
@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,8 +2,12 @@ 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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -19,7 +23,9 @@ import lombok.experimental.SuperBuilder;
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Tag(name = "用户实体类")
@TableName("user")
@Builder
public class User {
/**
* id
@ -29,11 +35,11 @@ public class User {
/**
*
*/
@Excel(name = "用户名")
@Schema(name = "用户名")
private String username;
/**
*
*/
@Excel(name="邮箱")
@Schema(name="邮箱")
private String email;
}

View File

@ -3,10 +3,16 @@ 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 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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@ -24,38 +30,48 @@ import java.util.Date;
@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;
/**
*
@ -78,5 +94,6 @@ public class CarFenceAdd {
/**
* ID
*/
@Schema(name = "中间表ID")
private Integer middleId;
}

View File

@ -2,12 +2,16 @@ 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 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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@ -24,14 +28,16 @@ import java.util.Date;
@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,7 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
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;
@ -21,19 +23,23 @@ import lombok.NoArgsConstructor;
@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,11 @@
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.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;
@ -19,52 +25,66 @@ import lombok.NoArgsConstructor;
@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,14 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -21,23 +25,29 @@ import lombok.NoArgsConstructor;
@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,15 @@
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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -19,60 +25,76 @@ import lombok.NoArgsConstructor;
@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,9 +1,16 @@
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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
@ -22,26 +29,34 @@ import java.math.BigDecimal;
@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,10 +1,16 @@
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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -21,23 +27,30 @@ import lombok.NoArgsConstructor;
@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,9 +1,17 @@
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.muyu.common.core.annotation.Excel;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
@ -21,26 +29,34 @@ import java.math.BigDecimal;
@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,12 +1,18 @@
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 com.muyu.common.core.annotation.Excel;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@ -26,15 +32,19 @@ import java.util.Date;
@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,10 +1,14 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageTemplateAddReq
@ -21,15 +25,18 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "新增报文模版请求参数", description = "根据入参进行报文模版的添加")
@TableName("message_template")
public class MessageTemplateAddReq {
/**
*
*/
@Schema(name = "报文模版名称")
private String messageTemplateName;
/**
*
*/
@Schema(name = "报文模版描述")
private String messageTemplateDescribe;
}

View File

@ -1,10 +1,16 @@
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.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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageValueAddReq
@ -21,35 +27,43 @@ import lombok.NoArgsConstructor;
@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,11 +1,14 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
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;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageValueReq
@ -22,6 +25,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "报文数据请求参数", description = "根据入参进行报文数据的查询")
@TableName(value = "message_value_req",autoResultMap = true)
public class MessageValueReq {
/** 报文模版主键 */

View File

@ -4,10 +4,9 @@ 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 lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
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;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -25,34 +24,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;
@ -34,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;
@ -21,51 +25,64 @@ import lombok.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;
@ -23,11 +25,16 @@ import java.util.List;
@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;
@ -23,39 +28,50 @@ import java.math.BigDecimal;
@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;
@ -24,10 +26,13 @@ import java.util.List;
@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,12 +1,17 @@
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 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;
import lombok.NoArgsConstructor;
import java.util.Date;
@ -25,24 +30,31 @@ import java.util.Date;
@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;
/**
*
@ -59,10 +71,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;
@ -24,10 +26,13 @@ import java.util.List;
@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;
@ -22,21 +26,26 @@ import lombok.NoArgsConstructor;
@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;
@ -22,36 +26,44 @@ import lombok.NoArgsConstructor;
@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;
@ -23,57 +25,68 @@ import lombok.NoArgsConstructor;
@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,44 +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

@ -25,9 +25,24 @@ public interface FaultTypeService extends IService<FaultType> {
*/
List<FaultType> select();
/**
*
* @param faultType
* @return
*/
Integer add(FaultType faultType);
/**
*
* @param faultType
* @return
*/
Integer update(FaultType faultType);
/**
*
* @param id
* @return
*/
Integer delete(Integer id);
}

View File

@ -14,5 +14,9 @@ import java.util.List;
* * @Date2024/9/21 20:53
*/
public interface FenceGroupService extends IService<FenceGroup> {
/**
*
* @return
*/
List<FenceGroup> fenceGroupList();
}

View File

@ -15,8 +15,17 @@ import java.util.List;
* * @Date 2024/9/19
*/
public interface MessageValueService extends IService<MessageValue> {
/**
*
* @param messageValueReq
* @return
*/
List<MessageValueListResp> findAll(MessageValueReq messageValueReq);
/**
*
* @param str
*/
void test(String str);
}

View File

@ -18,6 +18,10 @@ import java.util.List;
*/
public interface SysTypeService extends IService<SysCarType> {
/**
*
* @return
*/
List<SysCarType> selectSysTypeList();
}

View File

@ -27,6 +27,11 @@ public class CarFenceServiceMybaitsImpl implements CarFenceServiceMybaits {
private CarFenceServiceMybaitsMapper carFenceServiceMybaitsMapper;
/**
*
* @param fenceGroupId
* @param carFenceId
*/
@Override
public void add(Integer fenceGroupId, List<Integer> carFenceId) {

View File

@ -23,7 +23,6 @@ public class FaultLabelServiceImpl extends ServiceImpl<FaultLabelMapper, FaultLa
@Autowired
private FaultLabelMapper faultLabelMapper;
/**
*
* @return

View File

@ -22,6 +22,10 @@ public class FenceGroupServiceImpl extends ServiceImpl<FenceGroupMapper, FenceGr
@Autowired
private FenceGroupMapper fenceGroupMapper;
/**
*
* @return
*/
@Override
public List<FenceGroup> fenceGroupList() {
List<FenceGroup> list = this.list();

View File

@ -20,6 +20,9 @@ public class MessageTemplateServiceImpl
extends ServiceImpl<MessageTemplateMapper, MessageTemplate>
implements MessageTemplateService {
/**
* Mapper
*/
@Resource
private MessageTemplateMapper messageTemplateMapper;

View File

@ -25,6 +25,11 @@ public class MessageValueServiceImpl
extends ServiceImpl<MessageValueMapper, MessageValue>
implements MessageValueService {
/**
*
* @param messageValueReq
* @return
*/
@Override
public List<MessageValueListResp> findAll(MessageValueReq messageValueReq) {
LambdaQueryWrapper<MessageValue> queryWrapper = new LambdaQueryWrapper<>();
@ -49,6 +54,10 @@ public class MessageValueServiceImpl
.toList();
}
/**
*
* @param str
*/
@Override
public void test(String str) {
JSONObject entries = new JSONObject();

View File

@ -24,6 +24,10 @@ public class SysTypeServiceImpl
@Resource
private SysTypeMapper sysTypeMapper;
/**
*
* @return
*/
@Override
public List<SysCarType> selectSysTypeList() {
return sysTypeMapper.selectSysList();

View File

@ -43,154 +43,6 @@ public class PureElectricCarFaultDetectionStrategy implements FaultDetectionStra
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;
}
}