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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -48,13 +48,13 @@ public class FaultLog {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date startwarningTime;
/** /**
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -55,7 +55,7 @@ public class Message {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date createTime;
/** /**
* Id * Id

View File

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; 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 com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -49,6 +49,6 @@ public class MessageSendReq {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date createTime;
} }

View File

@ -1,7 +1,7 @@
package com.muyu.fault.domain.req; package com.muyu.fault.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -36,13 +36,13 @@ public class FaultLogListReq {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date startwarningTime;
/** /**
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date endwarningTime;
/** /**

View File

@ -3,7 +3,7 @@ package com.muyu.fault.domain.resp;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.fault.domain.FaultLog; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -45,13 +45,13 @@ public class FaultLogListResp {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date startwarningTime;
/** /**
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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; private Date endwarningTime;
/** /**
* *

View File

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

View File

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

View File

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

View File

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -13,32 +15,56 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@Tag(name = "bioa") @Tag(name = "车辆故障信息实体类",description = "车辆故障信息实体类")
@TableName(value = "car_fault_message",autoResultMap = true) @TableName(value = "car_fault_message",autoResultMap = true)
public class CarFaultMessage { public class CarFaultMessage {
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
@Schema(name = "id")
/**
* id
*/
private Integer id; private Integer id;
@Schema(name = "sender")
/**
*
*/
private String sender; private String sender;
@Schema(name = "receiver")
/**
*
*/
private String receiver; private String receiver;
@Schema(name = "content")
/**
*
*/
private String content; private String content;
@Schema(name = "status")
/**
*
*/
private Integer status; private Integer status;
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
/**
*
*/
private Date createTime; private Date createTime;
@Schema(name = "userId")
/**
* Id
*/
private Integer userId; private Integer userId;
} }

View File

@ -1,209 +1,267 @@
package com.muyu.domain; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
public class CarFaultRule {/** @TableName(value = "car_fault_rule",autoResultMap = true)
@Tag(name = "车辆故障规则")
public class CarFaultRule {
/**
* VINVINVIN * VINVINVIN
*/ */
private String vin; @TableId(value = "规则Id",type = IdType.AUTO)
@Schema(name = "车辆VIN码")
private Long vin;
/** /**
* *
*/ */
@Schema(name = "车辆类型Id")
private long timestamp; private long timestamp;
/** /**
* *
*/ */
@Schema(name = "车速")
private double longitude; private double longitude;
/** /**
* *
*/ */
@Schema(name = "总电流")
private double latitude; private double latitude;
/** /**
* *
*/ */
@Schema(name = "绝缘电阻")
private double speed; private double speed;
/** /**
* *
*/ */
@Schema(name = "加速踏板行程值")
private long TM; private long TM;
/** /**
* *
*/ */
@Schema(name = "制动踏板行程值")
private double TV; private double TV;
/** /**
* *
*/ */
@Schema(name = "燃料消耗率")
private double CC; private double CC;
/** /**
* *
*/ */
@Schema(name = "电机控制器温度")
private double IR; private double IR;
/** /**
* *
*/ */
@Schema(name = "电机转速")
private String GP; private String GP;
/** /**
* *
*/ */
@Schema(name = "电机转矩")
private double APTV; private double APTV;
/** /**
* *
*/ */
@Schema(name = "电机温度")
private double BPTV; private double BPTV;
/** /**
* *
*/ */
@Schema(name = "电机电压")
private double SFC; private double SFC;
/** /**
* *
*/ */
@Schema(name = "电机电流")
private double MCT; private double MCT;
/** /**
* *
*/ */
@Schema(name = "动力电池剩余电量SOC")
private int MS; private int MS;
/** /**
* *
*/ */
@Schema(name = "当前状态允许的最大反馈功率")
private double MTO; private double MTO;
/** /**
* *
*/ */
@Schema(name = "当前状态允许最大放电功率")
private double MTE; private double MTE;
/** /**
* *
*/ */
@Schema(name = "BMS自检计数器")
private double MV; private double MV;
/** /**
* *
*/ */
@Schema(name = "动力电池充放电电流")
private double MC; private double MC;
/** /**
* SOCSOCSOC * SOCSOCSOC
*/ */
@Schema(name = "动力电池负载端总电压V3")
private double PBRSOC; private double PBRSOC;
/** /**
* *
*/ */
@Schema(name = "单次最大电压")
private double MACSFP; private double MACSFP;
/** /**
* *
*/ */
@Schema(name = "单体电池最低电压")
private double CSATMDP; private double CSATMDP;
/** /**
* BMSBMSBMS * BMSBMSBMS
*/ */
@Schema(name = "单体电池最高温度")
private int BMS; private int BMS;
/** /**
* *
*/ */
@Schema(name = "单体电池最低温度")
private double CADC; private double CADC;
/** /**
* V3V3V3 * V3V3V3
*/ */
@Schema(name = "动力电池可用容量")
private double PBLETVV3; private double PBLETVV3;
/** /**
* *
*/ */
@Schema(name = "总里程")
private double SMV; private double SMV;
/** /**
* *
*/ */
@Schema(name = "总电压")
private double MVOAB; private double MVOAB;
/** /**
* *
*/ */
@Schema(name = "车辆状态")
private double MAXBT; private double MAXBT;
/** /**
* *
*/ */
@Schema(name = "充电状态")
private double MINBT; private double MINBT;
/** /**
* *
*/ */
@Schema(name = "运行状态")
private double PBAC; private double PBAC;
/** /**
* *
*/ */
@Schema(name = "SOC")
private String VS; private String VS;
/** /**
* *
*/ */
@Schema(name = "可充电储能装置工作状态")
private String CS; private String CS;
/** /**
* *
*/ */
@Schema(name = "EAS")
private String RS; private String RS;
/** /**
* SOCSOCSOC * SOCSOCSOC
*/ */
@Schema(name = "PTC")
private double SOC; private double SOC;
/** /**
* *
*/ */
@Schema(name = "EPS")
private String RESDWC; private String RESDWC;
/** /**
* EASEASEAS * EASEASEAS
*/ */
@Schema(name = "ABS")
private String EAS; private String EAS;
/** /**
* PTCPTCPTC * PTCPTCPTC
*/ */
@Schema(name = "MCU")
private String PTC; private String PTC;
/** /**
* EPSEPSEPS * EPSEPSEPS
*/ */
@Schema(name = "动力电池加热状态")
private String EPS; private String EPS;
/** /**
* ABSABSABS * ABSABSABS
*/ */
@Schema(name = "动力电池当前状态")
private String ABS; private String ABS;
/** /**
* MCUMCUMCU * MCUMCUMCU
*/ */
@Schema(name = "动力电池保温状态")
private String MCU; private String MCU;
/** /**
* *
*/ */
@Schema(name = "DCDC")
private String PBHS; private String PBHS;
/** /**
* *
*/ */
@Schema(name = "CHG")
private String PBCS; private String PBCS;
/** /**
* *
*/ */
@Schema(name = "校验位")
private String PBIS; private String PBIS;
/** /**
* DCDCDCDCDCDC * DCDCDCDCDCDC
*/ */
@Schema(name = "截止位")
private String DCDC; private String DCDC;
/** /**
* CHGCHGCHG * CHGCHGCHG
*/ */
@Schema(name = "")
private String CHG; private String CHG;
/** /**
* *
*/ */
@Schema(name = "")
private byte CHB; private byte CHB;
/** /**
* *
*/ */
@Schema(name = "")
private byte CUB; 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -14,16 +15,13 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -41,28 +39,34 @@ public class CarFence {
/** /**
* *
*/ */
@Schema(name = "围栏名称")
private String name; private String name;
/** /**
* ID * ID
*/ */
@Schema(name = "业务类型ID")
private Integer clazzId; private Integer clazzId;
/** /**
* *
*/ */
@Schema(name = "业务类型名称")
@TableField(exist = false) @TableField(exist = false)
private String clazzName; private String clazzName;
/** /**
* ID * ID
*/ */
@Schema(name = "围栏类型ID")
private Integer typeId; private Integer typeId;
/** /**
* *
*/ */
@Schema(name = "围栏类型名称")
@TableField(exist = false) @TableField(exist = false)
private String typeName; private String typeName;
/** /**
* *
*/ */
@Schema(name = "围栏经纬度")
private String fenceText; private String fenceText;
/** /**
* *
@ -85,6 +89,7 @@ public class CarFence {
/** /**
* ID * ID
*/ */
@Schema(name = "中间表ID")
private Integer middleId; private Integer middleId;
public static CarFence carFenceBuild(CarFence carFence) { public static CarFence carFenceBuild(CarFence carFence) {
return CarFence.builder() return CarFence.builder()

View File

@ -1,22 +1,22 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -28,10 +28,13 @@ public class CarFenceClazz {
/** /**
* ID * ID
*/ */
@TableId(value = "clazz_id",type = IdType.AUTO)
@Schema(name = "业务类型ID")
private Integer clazzId; private Integer clazzId;
/** /**
* *
*/ */
@Schema(name = "业务类型名称")
private String clazzName; private String clazzName;
public static CarFenceClazz carFenceClazzBuild(CarFenceClazz carFenceClazz) { public static CarFenceClazz carFenceClazzBuild(CarFenceClazz carFenceClazz) {

View File

@ -1,22 +1,23 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -28,10 +29,13 @@ public class CarFenceType {
/** /**
* ID * ID
*/ */
@TableId(value = "type_id" ,type = IdType.AUTO)
@Schema(name = "围栏类型ID")
private Integer typeId; private Integer typeId;
/** /**
* *
*/ */
@Schema(name = "围栏类型名称")
private String typeName; private String typeName;
public static CarFenceType carFenceTypeBuild(CarFenceType carFenceType) { 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -32,82 +32,84 @@ public class CarInformation {
* ID * ID
*/ */
@TableId(value = "car_information_id" , type = IdType.AUTO) @TableId(value = "car_information_id" , type = IdType.AUTO)
@Schema(name = "车辆ID")
private Long carInformationId; private Long carInformationId;
/** /**
* VIN * VIN
*/ */
@Excel(name = "车辆唯一VIN") @Schema(name = "车辆唯一VIN")
private String CarInformationVIN; private String CarInformationVIN;
/** /**
* *
*/ */
@Excel(name = "车牌号") @Schema(name = "车牌号")
private String carInformationLicensePlate; private String carInformationLicensePlate;
/** /**
* *
*/ */
@Excel(name = "车辆品牌") @Schema(name = "车辆品牌")
private String carInformationBrand; private String carInformationBrand;
/** /**
* *
*/ */
@Excel(name = "车辆颜色") @Schema(name = "车辆颜色")
private String carInformationColor; private String carInformationColor;
/** /**
* *
*/ */
@Excel(name = "车辆驾驶员") @Schema(name = "车辆驾驶员")
private String carInformationDriver; private String carInformationDriver;
/** /**
* *
*/ */
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss") // @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") // @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
// @Schema(name = "车检到期日期")
private Date carInformationExamineEnddata; private Date carInformationExamineEnddata;
/** /**
* *
*/ */
@Excel(name = "车辆电机厂商") @Schema(name = "车辆电机厂商")
private String carInformationMotorManufacturer; private String carInformationMotorManufacturer;
/** /**
* *
*/ */
@Excel(name = "车辆电机型号") @Schema(name = "车辆电机型号")
private String carInformationMotorModel; private String carInformationMotorModel;
/** /**
* *
*/ */
@Excel(name = "车辆电池厂商") @Schema(name = "车辆电池厂商")
private String carInformationBatteryManufacturer; private String carInformationBatteryManufacturer;
/** /**
* *
*/ */
@Excel(name = "车辆电池型号") @Schema(name = "车辆电池型号")
private String carInformationBatteryModel; private String carInformationBatteryModel;
/** /**
* ID * ID
*/ */
@Excel(name = "车辆电子围栏外键ID") @Schema(name = "车辆电子围栏外键ID")
private Long carInformationFence; private Long carInformationFence;
/** /**
* ID * ID
*/ */
@Excel(name = "车辆类型外键ID") @Schema(name = "车辆类型外键ID")
private Long carInformationType; private Long carInformationType;
/** /**
* (0 1 ) * (0 1 )
*/ */
@Excel(name = "是否重点车辆 (0否默认 1是 )") @Schema(name = "是否重点车辆 (0否默认 1是 )")
private Long carInformationFocus; private Long carInformationFocus;
/** /**
* id * id
*/ */
@Excel(name = "车辆策略id") @Schema(name = "车辆策略id")
private Long carStrategyId; private Long carStrategyId;
/** /**
* (1.线 2.线 3. 4. 5.) * (1.线 2.线 3. 4. 5.)
*/ */
@Excel(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)") @Schema(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
private Long carInformationState; private Long carInformationState;

View File

@ -1,23 +1,24 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -29,14 +30,18 @@ public class CarMiddle {
/** /**
* *
*/ */
@TableId(value = "id",type = IdType.AUTO)
@Schema(name = "主键")
private Integer id; private Integer id;
/** /**
* id * id
*/ */
@Schema(name = "围栏id")
private Integer carFenceId; private Integer carFenceId;
/** /**
* id * id
*/ */
@Schema(name = "围栏组id")
private Integer carGroupId; private Integer carGroupId;
} }

View File

@ -1,38 +1,45 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_type",autoResultMap = true) @TableName(value = "car_type",autoResultMap = true)
@Tag(name = "车辆类型管理")
public class CarType { public class CarType {
/** /**
* ID * ID
*/ */
@TableId(value = "car_type_id",type = IdType.AUTO)
@Schema(name = "车辆类型ID")
private long carTypeId; private long carTypeId;
/** /**
* *
*/ */
@Schema(name = "车辆类型名")
private String carTypeName; private String carTypeName;
/** /**
* ID * ID
*/ */
@Schema(name = "车辆规则外键ID")
private long carTypeRules; private long carTypeRules;
} }

View File

@ -3,63 +3,75 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.domain.req.FaultCodeAddReq; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_faultcode", autoResultMap = true) @TableName(value = "car_faultcode", autoResultMap = true)
@Tag(name = "故障码管理")
public class FaultCode { public class FaultCode {
/** /**
* Id * Id
*/ */
@TableId(value = "faultcode_id", type = IdType.AUTO) @TableId(value = "faultcode_id", type = IdType.AUTO)
@Schema(name = "故障码Id")
private long faultcodeId; private long faultcodeId;
/** /**
* Id * Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(name = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* *
*/ */
@Schema(name = "故障组")
private String faultGroup; private String faultGroup;
/** /**
* *
*/ */
@Schema(name = "故障位")
private String faultBit; private String faultBit;
/** /**
* *
*/ */
@Schema(name = "故障值")
private String faultValue; private String faultValue;
/** /**
* *
*/ */
@Schema(name = "是否警告")
private Integer isWarning; private Integer isWarning;
private String faulttypeName; // private String faulttypeName;
private String messageTypeName; // private String messageTypeName;
private String messageTypeCode; // private String messageTypeCode;
private String messageTypeBelongs; // private String messageTypeBelongs;
public static FaultCode addfaultcode(FaultCodeAddReq faultCodeAddReq) { public static FaultCode addfaultcode(FaultCodeAddReq faultCodeAddReq) {
return FaultCode.builder() return FaultCode.builder()

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.req.FaultConditionAddReq; import com.muyu.domain.req.FaultConditionAddReq;
import com.muyu.domain.req.FaultConditionUpdReq; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -13,55 +15,61 @@ import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.function.Supplier; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_fault_condition",autoResultMap = true) @TableName(value = "car_fault_condition",autoResultMap = true)
@Tag(name = "故障规则管理")
public class FaultCondition { public class FaultCondition {
/** /**
* Id * Id
*/ */
@TableId(value = "carcondition_id",type = IdType.AUTO) @TableId(value = "carcondition_id",type = IdType.AUTO)
@Schema(name = "故障规则表Id")
private long carconditionId; private long carconditionId;
/** /**
* Id * Id
*/ */
@Schema(name = "车辆类型Id")
private long carTypeId; private long carTypeId;
/** /**
*Id *Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(name = "故障条件")
private String faultconditionIdentification; private String faultconditionIdentification;
/** /**
* *
*/ */
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter; private BigDecimal faultconditionParameter;
/** /**
* *
*/ */
@Schema(name = "车辆类型名称")
private String carTypeName; private String carTypeName;
/** /**
* *
*/ */
@Schema(name = "故障名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(name = "报文编码")
private String messageTypeCode; private String messageTypeCode;

View File

@ -3,45 +3,49 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_fault_label",autoResultMap = true) @TableName(value = "car_fault_label",autoResultMap = true)
@Tag(name = "报文标签管理")
public class FaultLabel { public class FaultLabel {
/** /**
* *
*/ */
@TableId(value = "message_type_id",type = IdType.AUTO) @TableId(value = "message_type_id",type = IdType.AUTO)
@Schema(name = "自增主键")
private String messageTypeId; private String messageTypeId;
/** /**
* *
*/ */
@Schema(name = "报文编码")
private String messageTypeCode; private String messageTypeCode;
/** /**
* *
*/ */
@Schema(name = "报文名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(name = "报文所属类别")
private String messageTypeBelongs; 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -12,21 +15,19 @@ import lombok.experimental.SuperBuilder;
import java.util.Date; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@Tag(name = "故障日志实体类",description = "故障日志实体类")
@TableName(value = "car_fault_log",autoResultMap = true) @TableName(value = "car_fault_log",autoResultMap = true)
public class FaultLog { public class FaultLog {
@ -34,18 +35,22 @@ public class FaultLog {
* Id * Id
*/ */
@TableId(value = "log_id",type = IdType.AUTO) @TableId(value = "log_id",type = IdType.AUTO)
@Schema(name = "故障日志Id")
private long logId; private long logId;
/** /**
* Id * Id
*/ */
@Schema(name = "故障码Id")
private long faultcodeId; private long faultcodeId;
/** /**
* Id * Id
*/ */
@Schema(name = "车辆Id")
private long carInformationId; private long carInformationId;
/** /**
* VIN * VIN
*/ */
@Schema(name = "车辆VIN")
private String carVin; private String carVin;
/** /**
* *
@ -62,10 +67,12 @@ public class FaultLog {
/** /**
* *
*/ */
@Schema(name = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* vin * vin
*/ */
@Schema(name = "车辆vin")
private String carInformationVIN; private String carInformationVIN;
} }

View File

@ -1,25 +1,27 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName("fault_report")
@Tag(name = "车辆故障报告")
public class FaultReport { public class FaultReport {
private String VehicleType; private String VehicleType;
private String FaultDescription; private String FaultDescription;
} }

View File

@ -1,6 +1,10 @@
package com.muyu.domain; package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -8,61 +12,68 @@ import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_fault_condition",autoResultMap = true) @TableName(value = "car_fault_condition",autoResultMap = true)
@Tag(name = "故障触发条件")
public class FaultRule { public class FaultRule {
/** /**
* Id * Id
*/ */
@TableId(value = "condition_id",type = IdType.AUTO)
@Schema(name = "触发条件Id")
private long conditionId; private long conditionId;
/** /**
* Id * Id
*/ */
@Schema(name = "故障码Id")
private long faultcodeId; private long faultcodeId;
/** /**
* *
*/ */
@Schema(name = "触发条件描述")
private String conditionContent; private String conditionContent;
/** /**
* *
*/ */
@Schema(name = "单个参数的阈值")
private BigDecimal singleThreshold; private BigDecimal singleThreshold;
/** /**
* *
*/ */
@Schema(name = "区间参数的阈值的最小值")
private BigDecimal minThreshold; private BigDecimal minThreshold;
/** /**
* *
*/ */
@Schema(name = "区间参数的阈值的最大值")
private BigDecimal maxThreshold; private BigDecimal maxThreshold;
/** /**
* *
*/ */
@Schema(name = "触发条件是否激活")
private Integer isActive; private Integer isActive;
/** /**
* *
*/ */
@Schema(name = "车辆数据值")
private BigDecimal Threshold; private BigDecimal Threshold;

View File

@ -3,35 +3,38 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_fault_type",autoResultMap = true) @TableName(value = "car_fault_type",autoResultMap = true)
@Tag(name = "故障类型管理")
public class FaultType { public class FaultType {
/** /**
*Id *Id
*/ */
@TableId(value = "faulttype_id",type = IdType.AUTO) @TableId(value = "faulttype_id",type = IdType.AUTO)
@Schema(name = "故障类型Id")
private long faulttypeId; private long faulttypeId;
/** /**
* *
*/ */
@Schema(name = "故障类型名称")
private String faulttypeName; private String faulttypeName;
} }

View File

@ -3,22 +3,20 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -31,14 +29,17 @@ public class FenceAndGroupMiddle {
* id * id
*/ */
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
@Schema(name = "id")
private Integer id; private Integer id;
/** /**
* id * id
*/ */
@Schema(name = "围栏id")
private Integer carId; private Integer carId;
/** /**
* id * id
*/ */
@Schema(name = "围栏组id")
private Integer groupId; private Integer groupId;
} }

View File

@ -3,22 +3,21 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; 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 @Data
@AllArgsConstructor @AllArgsConstructor
@ -31,14 +30,17 @@ public class FenceGroup {
* id * id
*/ */
@TableId(value = "group_id",type = IdType.AUTO) @TableId(value = "group_id",type = IdType.AUTO)
@Schema(name = "围栏组id")
private Integer groupId; private Integer groupId;
/** /**
* *
*/ */
@Schema(name = "围栏组名称")
private String groupName; private String groupName;
/** /**
* *
*/ */
@Schema(name = "围栏组状态")
private Integer groupStates; private Integer groupStates;

View File

@ -1,24 +1,37 @@
package com.muyu.domain; 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 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.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
/**
* @className: MessageDao
* @author: Yang 🦅
* @date: 2024/9/23 20:58
* @Version: 1.0
* @description:
*/
/** /**
* dao * 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 @Data
@Tag(name = "消息模块")
public class MessageDao { public class MessageDao {
@TableId(value = "id", type = IdType.AUTO)
@Schema(name = "消息id")
private Connection connection; private Connection connection;
public MessageDao(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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.domain.req.MessageTemplateAddReq; import com.muyu.domain.req.MessageTemplateAddReq;
import com.muyu.common.core.web.domain.BaseEntity; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@SuperBuilder @SuperBuilder
@ -27,22 +27,26 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "message_template", autoResultMap = true) @TableName(value = "message_template", autoResultMap = true)
@Tag(name = "报文模版管理")
public class MessageTemplate extends BaseEntity { public class MessageTemplate extends BaseEntity {
/** /**
* *
*/ */
@TableId(value = "message_template_id", type = IdType.AUTO) @TableId(value = "message_template_id", type = IdType.AUTO)
@Schema(title = "报文模版主键")
private String messageTemplateId; private String messageTemplateId;
/** /**
* *
*/ */
@Schema(name = "报文模版名称")
private String messageTemplateName; private String messageTemplateName;
/** /**
* *
*/ */
@Schema(name = "报文模版描述")
private String messageTemplateDescribe; private String messageTemplateDescribe;
/** /**

View File

@ -5,21 +5,20 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.req.MessageValueAddReq; import com.muyu.domain.req.MessageValueAddReq;
import com.muyu.common.core.web.domain.BaseEntity; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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 @Data
@SuperBuilder @SuperBuilder
@ -27,42 +26,50 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "message_value", autoResultMap = true) @TableName(value = "message_value", autoResultMap = true)
@Tag(name = "报文数据")
public class MessageValue extends BaseEntity { public class MessageValue extends BaseEntity {
/** /**
* *
*/ */
@TableId(value = "message_id", type = IdType.AUTO) @TableId(value = "message_id", type = IdType.AUTO)
@Schema(title = "报文数据主键")
private Long messageId; private Long messageId;
/** /**
* *
*/ */
@Schema(name = "模版主键")
private Long templateId; private Long templateId;
/** /**
* *
*/ */
@Schema(name = "报文类别")
private String messageType; private String messageType;
/** /**
* *
*/ */
@Schema(name = "报文编码")
private String messageCode; private String messageCode;
/** /**
* *
*/ */
@Schema(name = "报文标签")
private String messageLabel; private String messageLabel;
/** /**
* *
*/ */
@Schema(name = "起始下标")
private Integer messageStartIndex; private Integer messageStartIndex;
/** /**
* *
*/ */
@Schema(name = "终止下标")
private Integer messageEndIndex; private Integer messageEndIndex;
public static MessageValue addBuild(MessageValueAddReq messageValueAddReq){ 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -25,34 +27,43 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName(value = "sys_car", autoResultMap = true) @TableName(value = "sys_car", autoResultMap = true)
@Tag(name = "车辆基础信息")
public class SysCar extends BaseEntity{ public class SysCar extends BaseEntity{
/** 自增主键 */ /** 自增主键 */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO , value = "id" )
private Long id; private Long id;
/** 车辆VIN码 */ /** 车辆VIN码 */
@Schema(name = "车辆VIN码")
private String carVin; private String carVin;
/** 车辆车牌号 */ /** 车辆车牌号 */
@Schema(name = "车辆车牌号")
private String carPlate; private String carPlate;
/** 车辆品牌 */ /** 车辆品牌 */
@Schema(name = "车辆品牌")
private String carBrand; private String carBrand;
/** 车辆型号 */ /** 车辆型号 */
@Schema(name = "车辆型号")
private String carModel; private String carModel;
/** 车辆类型 */ /** 车辆类型 */
@Schema(name = "车辆类型")
private Integer carType; private Integer carType;
/** 策略ID */ /** 策略ID */
@Schema(name = "策略ID")
private Integer warnStrategy; private Integer warnStrategy;
/** 围栏组编码 */ /** 围栏组编码 */
@Schema(name = "围栏组编码")
private String groupCode; private String groupCode;
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */ /** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
@Schema(name = "启用状态")
private Integer state; private Integer state;

View File

@ -3,8 +3,9 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity; import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.*; import lombok.*;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
@ -12,7 +13,6 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/** /**
* sys_car_fault * sys_car_fault
*
* @author Yang * @author Yang
* @date 2024-09-18 * @date 2024-09-18
*/ */
@ -23,56 +23,58 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@SuperBuilder @SuperBuilder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName("sys_car_fault") @TableName(value = "sys_car_fault", autoResultMap = true)
@Tag(name = "车辆故障对象")
public class SysCarFault extends BaseEntity{ public class SysCarFault extends BaseEntity{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 自增主键 */ /** 自增主键 */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO,value = "id")
@Schema(name = "自增主键")
private Long id; private Long id;
/** 车辆故障编码; */ /** 车辆故障编码; */
@Excel(name = "车辆故障编码;") @Schema(name = "车辆故障编码;")
private String faultCode; private String faultCode;
/** 车辆故障名称 */ /** 车辆故障名称 */
@Excel(name = "车辆故障名称") @Schema(name = "车辆故障名称")
private String faultName; private String faultName;
/** 车辆故障类型 */ /** 车辆故障类型 */
@Excel(name = "车辆故障类型") @Schema(name = "车辆故障类型")
private String faultType; private String faultType;
/** 故障VIN编码 */ /** 故障VIN编码 */
@Excel(name = "故障VIN编码") @Schema(name = "故障VIN编码")
private String carVin; private String carVin;
/** 车辆故障标签 */ /** 车辆故障标签 */
@Excel(name = "车辆故障标签") @Schema(name = "车辆故障标签")
private String faultLabel; private String faultLabel;
/** 车辆故障位 */ /** 车辆故障位 */
@Excel(name = "车辆故障位") @Schema(name = "车辆故障位")
private String faultBit; private String faultBit;
/** 车辆故障值 */ /** 车辆故障值 */
@Excel(name = "车辆故障值") @Schema(name = "车辆故障值")
private String faultValue; private String faultValue;
/** 故障级别; */ /** 故障级别; */
@Excel(name = "故障级别;") @Schema(name = "故障级别;")
private String faultWarn; private String faultWarn;
/** 报警状态Y.是N.否) */ /** 报警状态Y.是N.否) */
@Excel(name = "报警状态", readConverterExp = "Y=.是N.否") @Schema(name = "报警状态")
private String warnStatus; private String warnStatus;
/** 故障描述信息 */ /** 故障描述信息 */
@Excel(name = "故障描述信息") @Schema(name = "故障描述信息")
private String faultDesc; private String faultDesc;
/** 启用状态(1.待处理 2.处理中 3.已处理 4.忽略) */ /** 启用状态(1.待处理 2.处理中 3.已处理 4.忽略) */
@Excel(name = "启用状态(1.待处理 2.处理中 3.已处理 4.忽略)") @Schema(name = "启用状态(1.待处理 2.处理中 3.已处理 4.忽略)")
private String state; 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; 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) @EqualsAndHashCode(callSuper = true)
@Data @Data
@ -26,20 +25,24 @@ import lombok.experimental.SuperBuilder;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName(value = "sys_car_type", autoResultMap = true) @TableName(value = "sys_car_type", autoResultMap = true)
@Tag(name = "车辆类型管理")
public class SysCarType extends BaseEntity { public class SysCarType extends BaseEntity {
/** /**
* *
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
@Schema(name = "车辆类型主键")
private String id; private String id;
/** /**
* *
*/ */
@Schema(name = "车辆类型名称")
private String sysTypeName; private String sysTypeName;
/** /**
* *
*/ */
@Schema(name = "报文模版外键")
private String messageTemplateId; private String messageTemplateId;
} }

View File

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

View File

@ -5,7 +5,10 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity; 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 lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
@ -14,11 +17,12 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
/** /**
* warn_logs * warn_logs
*
* @author muyu * @author muyu
* @date 2024-09-20 * @date 2024-09-20
*/ */
@ -29,49 +33,53 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName("warn_logs") @TableName("warn_logs")
@Tag(name = "预警日志管理")
public class WarnLogs extends BaseEntity{ public class WarnLogs extends BaseEntity{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 预警日志id */ /** 预警日志id */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO)
@Schema(name = "id")
private Long id; private Long id;
/** 车辆vin码 */ /** 车辆vin码 */
@Excel(name = "车辆vin码") @Schema(name = "车辆vin码")
private String vin; private String vin;
/** 规则id */ /** 规则id */
@Excel(name = "规则id") @Schema(name = "规则id")
private Long warnRuleId; private Long warnRuleId;
/** 开始时间 */ /** 开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
@Schema(name = "开始时间")
private Date startTime; private Date startTime;
/** 结束时间 */ /** 结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
@Schema(name = "结束时间")
private Date endTime; private Date endTime;
/** 最大值 */ /** 最大值 */
@Excel(name = "最大值") @Schema(name = "最大值")
private Long maxValue; private Long maxValue;
/** 最小值 */ /** 最小值 */
@Excel(name = "最小值") @Schema(name = "最小值")
private Long minValue; private Long minValue;
/** 平均值 */ /** 平均值 */
@Excel(name = "平均值") @Schema(name = "平均值")
private Long avgValue; private Long avgValue;
/** 中位数 */ /** 中位数 */
@Excel(name = "中位数") @Schema(name = "中位数")
private Long medianValue; private Long medianValue;
/** 是否发送预警 */ /** 是否发送预警 */
@Excel(name = "是否发送预警") @Schema(name = "是否发送预警")
private Long status; private Long status;

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel; import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity; 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 lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
@ -14,7 +16,6 @@ import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
/** /**
* warn_rule * warn_rule
*
* @author muyu * @author muyu
* @date 2024-09-20 * @date 2024-09-20
*/ */
@ -26,42 +27,44 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName("warn_rule") @TableName("warn_rule")
@Tag(name = "预警规则管理")
public class WarnRule extends BaseEntity{ public class WarnRule extends BaseEntity{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 规则id */ /** 规则id */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO)
@Schema(name = "规则id")
private Long id; private Long id;
/** 规则名称 */ /** 规则名称 */
@Excel(name = "规则名称") @Schema(name = "规则名称")
private String ruleName; private String ruleName;
/** 策略id */ /** 策略id */
@Excel(name = "策略id") @Schema(name = "策略id")
private Long strategyId; private Long strategyId;
/** 报文数据类型id */ /** 报文数据类型id */
@Excel(name = "报文数据类型id") @Schema(name = "报文数据类型id")
private String msgTypeId; private String msgTypeId;
/** 滑窗时间 */ /** 滑窗时间 */
@Excel(name = "滑窗时间") @Schema(name = "滑窗时间")
private Long slideTime; private Long slideTime;
/** 滑窗频率 */ /** 滑窗频率 */
@Excel(name = "滑窗频率") @Schema(name = "滑窗频率")
private String slideFrequency; private String slideFrequency;
/** 数据频率名称 */ /** 数据频率名称 */
@Excel(name = "数据频率名称") @Schema(name = "数据频率名称")
private String slideData; private String slideData;
/** 最大值 */ /** 最大值 */
@Excel(name = "数据频率最大值") @Schema(name = "数据频率最大值")
private Long slideMaxNum; private Long slideMaxNum;
/** 最小值 */ /** 最小值 */
@Excel(name = "数据频率最小值") @Schema(name = "数据频率最小值")
private Long slideMinNum; private Long slideMinNum;

View File

@ -3,8 +3,9 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity; import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -26,23 +27,25 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName("warn_strategy") @TableName("warn_strategy")
@Tag(name = "预警策略管理")
public class WarnStrategy extends BaseEntity{ public class WarnStrategy extends BaseEntity{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 策略id */ /** 策略id */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO)
@Schema(title = "策略id")
private Long id; private Long id;
/** 车辆类型id */ /** 车辆类型id */
@Excel(name = "车辆类型id") @Schema(name = "车辆类型id")
private Long sysTypeId; private Long sysTypeId;
/** 策略名称 */ /** 策略名称 */
@Excel(name = "策略名称") @Schema(name = "策略名称")
private String strategyName; private String strategyName;
/** 报文模版id */ /** 报文模版id */
@Excel(name = "报文模版id") @Schema(name = "报文模版id")
private Long msgId; private Long msgId;
@Override @Override

View File

@ -4,8 +4,11 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -29,6 +32,7 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_fault_message",autoResultMap = true) @TableName(value = "car_fault_message",autoResultMap = true)
@Tag(name = "消息管理")
public class Message { public class Message {
/** /**
* id * id
@ -39,21 +43,25 @@ public class Message {
/** /**
* *
*/ */
@Schema(description = "消息发送者",defaultValue = "admin",type = "String")
private String sender; private String sender;
/** /**
* *
*/ */
@Schema(description = "消息接收者",defaultValue = "admin",type = "String")
private String receiver; private String receiver;
/** /**
* *
*/ */
@Schema(description = "消息内容",defaultValue = "你好我是admin",type = "String")
private String content; private String content;
/** /**
* *
*/ */
@Schema(description = "消息状态",defaultValue = "0",type = "Integer")
private Integer status; private Integer status;
/** /**
@ -65,6 +73,7 @@ public class Message {
/** /**
* Id * Id
*/ */
@Schema(description = "登录人Id",defaultValue = "1",type = "Long")
private long userId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -24,15 +29,18 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "message_req" ,autoResultMap = true)
@Tag(name = "消息请求参数")
public class MessageReq { public class MessageReq {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO,value = "status") @TableId(type = IdType.AUTO,value = "status")
@Schema(name = "消息状态")
private Integer status; private Integer status;
/** /**
* Id * Id
*/ */
@Excel(name = "登录人Id") @Schema(name = "登录人Id")
private long userId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -24,27 +27,30 @@ import java.util.Date;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "message_send_req" ,autoResultMap = true)
@Tag(name = "消息发送请求参数")
public class MessageSendReq { public class MessageSendReq {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO,value = "id") @TableId(type = IdType.AUTO,value = "id")
@Schema(name = "发送者")
private String sender; private String sender;
/** /**
* *
*/ */
@Excel(name = "接收者") @Schema(name = "接收者")
private String receiver; private String receiver;
/** /**
* *
*/ */
@Excel(name = "消息内容") @Schema(name = "消息内容")
private String content; private String content;
/** /**
* Id * Id
*/ */
@Excel(name = "登录人Id") @Schema(name = "登录人Id")
private long userId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -23,20 +27,23 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "user", autoResultMap = true)
@Tag(name = "用户")
public class User { public class User {
/** /**
* id * id
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
@Schema(title = "用户id")
private Integer id; private Integer id;
/** /**
* *
*/ */
@Excel(name = "用户名") @Schema(name = "用户名")
private String username; private String username;
/** /**
* *
*/ */
@Excel(name="邮箱") @Schema(name="邮箱")
private String email; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -20,15 +24,18 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "message_req",autoResultMap = true)
@Tag(name = "消息请求参数")
public class MessageReq { public class MessageReq {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO,value = "status") @TableId(type = IdType.AUTO,value = "status")
@Schema(name = "消息状态")
private Integer status; private Integer status;
/** /**
* Id * Id
*/ */
@Excel(name = "登录人Id") @Schema(name = "登录人Id")
private long userId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date; import java.util.Date;
@ -24,27 +28,29 @@ import java.util.Date;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "message_send_req",autoResultMap = true)
@Tag(name = "消息发送请求参数")
public class MessageSendReq { public class MessageSendReq {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO,value = "id") @Schema(name = "发送者")
private String sender; private String sender;
/** /**
* *
*/ */
@Excel(name = "接收者") @Schema(name = "接收者")
private String receiver; private String receiver;
/** /**
* *
*/ */
@Excel(name = "消息内容") @Schema(name = "消息内容")
private String content; private String content;
/** /**
* Id * Id
*/ */
@Excel(name = "登录人Id") @Schema(name = "登录人Id")
private long userId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -19,7 +23,9 @@ import lombok.experimental.SuperBuilder;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @Tag(name = "用户实体类")
@TableName("user")
@Builder
public class User { public class User {
/** /**
* id * id
@ -29,11 +35,11 @@ public class User {
/** /**
* *
*/ */
@Excel(name = "用户名") @Schema(name = "用户名")
private String username; private String username;
/** /**
* *
*/ */
@Excel(name="邮箱") @Schema(name="邮箱")
private String email; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
@ -24,38 +30,48 @@ import java.util.Date;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder
@TableName(value = "car_fence_add", autoResultMap = true)
@Tag(name = "围栏添加")
public class CarFenceAdd { public class CarFenceAdd {
/** /**
* *
*/ */
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
@Schema(title = "围栏主键")
private Integer id; private Integer id;
/** /**
* *
*/ */
@Schema(name = "围栏名称")
private String name; private String name;
/** /**
* ID * ID
*/ */
@Schema(name = "业务类型ID")
private Integer clazzId; private Integer clazzId;
/** /**
* *
*/ */
@Schema(name = "业务类型名称")
@TableField(exist = false) @TableField(exist = false)
private String clazzName; private String clazzName;
/** /**
* ID * ID
*/ */
@Schema(name = "围栏类型ID")
private Integer typeId; private Integer typeId;
/** /**
* *
*/ */
@Schema(name = "围栏类型名称")
@TableField(exist = false) @TableField(exist = false)
private String typeName; private String typeName;
/** /**
* *
*/ */
@Schema(name = "围栏经纬度")
private String fenceText; private String fenceText;
/** /**
* *
@ -78,5 +94,6 @@ public class CarFenceAdd {
/** /**
* ID * ID
*/ */
@Schema(name = "中间表ID")
private Integer middleId; 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date; import java.util.Date;
@ -24,14 +28,16 @@ import java.util.Date;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @SuperBuilder
@TableName(value = "car_fence_group", autoResultMap = true)
@Tag(name = "围栏组")
public class CarFenceGroup { public class CarFenceGroup {
/** /**
* *
*/ */
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
@Schema(name = "围栏主键", type = "Integer", defaultValue = "0", description = "围栏主键")
private Integer id; private Integer id;
/** /**
* *

View File

@ -1,5 +1,7 @@
package com.muyu.domain.req; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -21,19 +23,23 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Tag(name = "车辆电子围栏响应参数") @Tag(name = "车辆电子围栏响应参数")
@TableName(value = "car_fence_group", autoResultMap = true)
public class CarFenceReq { public class CarFenceReq {
/** /**
* *
*/ */
@Schema(title = "围栏名称", type = "String", description = "围栏名称")
private String name; private String name;
/** /**
* ID * ID
*/ */
@Schema(title = "业务类型ID", type = "String", description = "业务类型ID")
private String clazzId; private String clazzId;
/** /**
* ID * ID
*/ */
@Schema(title = "围栏类型ID", type = "String", description = "围栏类型ID")
private String typeName; private String typeName;
/** /**
* *

View File

@ -1,5 +1,11 @@
package com.muyu.domain.req; 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.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -19,52 +25,66 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障检测")
public class FaultCodeAddReq { public class FaultCodeAddReq {
/** /**
*Id *Id
*/ */
@Schema(description = "故障名称Id")
@TableId(value = "message_type_id", type = IdType.AUTO)
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(description = "故障名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(description = "报文编码")
private String messageTypeCode; private String messageTypeCode;
/** /**
* *
*/ */
@Schema(description = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* Id * Id
*/ */
@Schema(description = "故障分类Id")
private long faulttypeId; private long faulttypeId;
/** /**
* *
*/ */
@Schema(description = "是否产生报警")
private Integer isWarning; private Integer isWarning;
/** /**
* *
*/ */
@Schema(description = "故障描述")
private String faultContent; private String faultContent;
/** /**
* *
*/ */
@Schema(description = "故障组")
private String faultGroup; private String faultGroup;
/** /**
* *
*/ */
@Schema(description = "故障位")
private String faultBit; private String faultBit;
/** /**
* *
*/ */
@Schema(name = "故障值")
private String faultValue; private String faultValue;
/** /**
* *
*/ */
@Schema(name = "报文所属类别")
private String messageTypeBelongs; private String messageTypeBelongs;

View File

@ -1,10 +1,14 @@
package com.muyu.domain.req; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @className: FaultLog * @className: FaultLog
@ -21,23 +25,29 @@ import lombok.NoArgsConstructor;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @SuperBuilder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障码列表请求对象")
public class FaultCodeListReq { public class FaultCodeListReq {
/** /**
* *
*/ */
@Schema(name = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* *
*/ */
@Schema(name = "故障位")
private String faultBit; private String faultBit;
/** /**
* 1 * 1
*/ */
@Schema(name = "页码")
private Integer pageNum=1; private Integer pageNum=1;
/** /**
* *
*/ */
@Schema(name = "每页大小")
private Integer pageSize=10; private Integer pageSize=10;

View File

@ -1,9 +1,15 @@
package com.muyu.domain.req; 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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @className: FaultLog * @className: FaultLog
@ -19,60 +25,76 @@ import lombok.NoArgsConstructor;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @SuperBuilder
@TableName(value = "fault_code_upd_req", autoResultMap = true)
@Tag(name = "故障码更新请求参数")
public class FaultCodeUpdReq { public class FaultCodeUpdReq {
/** /**
*Id *Id
*/ */
@TableId(value = "faultcode_id", type = IdType.AUTO)
@Schema(title = "故障码Id")
private long faultcodeId; private long faultcodeId;
/** /**
*Id *Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(name = "故障名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(name = "报文编码")
private String messageTypeCode; private String messageTypeCode;
/** /**
* *
*/ */
@Schema(name = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* Id * Id
*/ */
@Schema(name = "故障分类Id")
private long faulttypeId; private long faulttypeId;
/** /**
* *
*/ */
@Schema(name = "是否产生报警")
private Integer isWarning; private Integer isWarning;
/** /**
* *
*/ */
@Schema(name = "故障描述")
private String faultContent; private String faultContent;
/** /**
* *
*/ */
@Schema(name = "故障状态")
private Integer faultStatus; private Integer faultStatus;
/** /**
* *
*/ */
@Schema(name = "故障组")
private String faultGroup; private String faultGroup;
/** /**
* *
*/ */
@Schema(name = "故障位")
private String faultBit; private String faultBit;
/** /**
* *
*/ */
@Schema(name = "故障值")
private String faultValue; private String faultValue;
/** /**
* *
*/ */
@Schema(name = "报文所属类别")
private String messageTypeBelongs; private String messageTypeBelongs;

View File

@ -1,9 +1,16 @@
package com.muyu.domain.req; 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.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -22,26 +29,34 @@ import java.math.BigDecimal;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "fault_condition", autoResultMap = true)
@Tag(name = "故障规则添加请求对象")
public class FaultConditionAddReq { public class FaultConditionAddReq {
/** /**
* Id * Id
*/ */
@TableId(value = "id", type = IdType.AUTO)
@Schema(title = "故障规则表Id")
private long carconditionId; private long carconditionId;
/** /**
* Id * Id
*/ */
@Schema(name = "车辆类型Id")
private long carTypeId; private long carTypeId;
/** /**
*Id *Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(name = "故障条件")
private String faultconditionIdentification; private String faultconditionIdentification;
/** /**
* *
*/ */
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter; private BigDecimal faultconditionParameter;
} }

View File

@ -1,10 +1,16 @@
package com.muyu.domain.req; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @className: FaultLog * @className: FaultLog
@ -21,23 +27,30 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障规则列表请求对象")
public class FaultConditionListReq { public class FaultConditionListReq {
/** /**
* Id * Id
*/ */
@TableId(value = "car_type_id", type = IdType.INPUT)
@Schema (description = "车辆类型Id")
private long carTypeId; private long carTypeId;
/** /**
*Id *Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* 1 * 1
*/ */
@Schema(name = "页码")
private Integer pageNum=1; private Integer pageNum=1;
/** /**
* *
*/ */
@Schema(name = "每页大小")
private Integer pageSize=10; private Integer pageSize=10;
} }

View File

@ -1,9 +1,17 @@
package com.muyu.domain.req; 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.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -21,26 +29,34 @@ import java.math.BigDecimal;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "fault_condition", autoResultMap = true)
@Tag(name = "故障规则修改请求对象")
public class FaultConditionUpdReq { public class FaultConditionUpdReq {
/** /**
* Id * Id
*/ */
@TableId(value = "carcondition_id", type = IdType.ASSIGN_ID)
@Schema(name = "故障规则表Id")
private long carconditionId; private long carconditionId;
/** /**
* Id * Id
*/ */
@Schema(name = "车辆类型Id")
private long carTypeId; private long carTypeId;
/** /**
*Id *Id
*/ */
@Schema(name = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(name = "故障条件")
private String faultconditionIdentification; private String faultconditionIdentification;
/** /**
* *
*/ */
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter; private BigDecimal faultconditionParameter;
} }

View File

@ -1,12 +1,18 @@
package com.muyu.domain.req; 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.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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date; import java.util.Date;
@ -26,15 +32,19 @@ import java.util.Date;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
@TableName(value = "fault_log",autoResultMap = true)
public class FaultLogListReq { public class FaultLogListReq {
/** /**
* Id * Id
*/ */
@TableId(value = "type", type = IdType.AUTO)
@Schema(description = "故障码Id",example = "1")
private long faultcodeId; private long faultcodeId;
/** /**
* VIN * VIN
*/ */
@Schema(name = "车辆VIN")
private String carVin; private String carVin;
/** /**
* *

View File

@ -1,10 +1,14 @@
package com.muyu.domain.req; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @ClassName MessageTemplateAddReq * @ClassName MessageTemplateAddReq
@ -21,15 +25,18 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "新增报文模版请求参数", description = "根据入参进行报文模版的添加") @Tag(name = "新增报文模版请求参数", description = "根据入参进行报文模版的添加")
@TableName("message_template")
public class MessageTemplateAddReq { public class MessageTemplateAddReq {
/** /**
* *
*/ */
@Schema(name = "报文模版名称")
private String messageTemplateName; private String messageTemplateName;
/** /**
* *
*/ */
@Schema(name = "报文模版描述")
private String messageTemplateDescribe; private String messageTemplateDescribe;
} }

View File

@ -1,10 +1,16 @@
package com.muyu.domain.req; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @ClassName MessageValueAddReq * @ClassName MessageValueAddReq
@ -21,35 +27,43 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "新增报文数据请求参数", description = "根据入参进行报文数据的添加") @Tag(name = "新增报文数据请求参数", description = "根据入参进行报文数据的添加")
@TableName(value = "message_value", autoResultMap = true)
public class MessageValueAddReq { public class MessageValueAddReq {
/** /**
* *
*/ */
@TableId(value = "template_id",type = IdType.INPUT)
@Schema(description = "模版主键")
private Long templateId; private Long templateId;
/** /**
* *
*/ */
@Schema(name = "报文类别")
private String messageType; private String messageType;
/** /**
* *
*/ */
@Schema(name = "报文编码")
private String messageCode; private String messageCode;
/** /**
* *
*/ */
@Schema(name = "报文标签")
private String messageLabel; private String messageLabel;
/** /**
* *
*/ */
@Schema(name = "起始下标")
private Integer messageStartIndex; private Integer messageStartIndex;
/** /**
* *
*/ */
@Schema(name = "终止下标")
private Integer messageEndIndex; private Integer messageEndIndex;
} }

View File

@ -1,11 +1,14 @@
package com.muyu.domain.req; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/** /**
* @ClassName MessageValueReq * @ClassName MessageValueReq
@ -22,6 +25,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "报文数据请求参数", description = "根据入参进行报文数据的查询") @Tag(name = "报文数据请求参数", description = "根据入参进行报文数据的查询")
@TableName(value = "message_value_req",autoResultMap = true)
public class MessageValueReq { 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.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity; import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.EqualsAndHashCode; import lombok.*;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
@ -25,34 +24,44 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName(value = "sys_car", autoResultMap = true) @TableName(value = "sys_car", autoResultMap = true)
@Tag(name = "车辆基础信息对象")
public class SysCar extends BaseEntity{ public class SysCar extends BaseEntity{
/** 自增主键 */ /** 自增主键 */
@TableId( type = IdType.AUTO) @TableId( type = IdType.AUTO)
@Schema(title = "自增主键")
private Long id; private Long id;
/** 车辆VIN码 */ /** 车辆VIN码 */
@Schema(title = "车辆VIN码")
private String carVin; private String carVin;
/** 车辆车牌号 */ /** 车辆车牌号 */
@Schema(title = "车辆车牌号")
private String carPlate; private String carPlate;
/** 车辆品牌 */ /** 车辆品牌 */
@Schema(title = "车辆品牌")
private String carBrand; private String carBrand;
/** 车辆型号 */ /** 车辆型号 */
@Schema(title = "车辆型号")
private String carModel; private String carModel;
/** 车辆类型 */ /** 车辆类型 */
@Schema(title = "车辆类型")
private Integer carType; private Integer carType;
/** 策略ID */ /** 策略ID */
@Schema(title = "策略ID")
private Integer warnStrategy; private Integer warnStrategy;
/** 围栏组编码 */ /** 围栏组编码 */
@Schema(title = "围栏组编码")
private String groupCode; private String groupCode;
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */ /** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
@Schema(title = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
private Integer state; private Integer state;

View File

@ -1,8 +1,11 @@
package com.muyu.domain.resp; 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.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.domain.CarFence; import com.muyu.domain.CarFence;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -34,34 +37,42 @@ public class CarFenceResq {
/** /**
* *
*/ */
@TableId(value = "id",type = IdType.AUTO)
@Schema(description = "围栏主键")
private Integer id; private Integer id;
/** /**
* *
*/ */
@Schema(description = "围栏名称")
private String name; private String name;
/** /**
* *
*/ */
@Schema(description = "业务类型名")
private String clazzName; private String clazzName;
/** /**
* *
*/ */
@Schema(description = "围栏类型名")
private String typeName; private String typeName;
/** /**
* *
*/ */
@Schema(description = "围栏开始时间")
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private Date fenceStart; private Date fenceStart;
/** /**
* *
*/ */
@Schema(description = "围栏结束时间")
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private Date fenceEnd; private Date fenceEnd;
/** /**
* *
*/ */
@Schema(description = "创建时间")
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss") @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private Date fenceCreate; private Date fenceCreate;

View File

@ -1,6 +1,10 @@
package com.muyu.domain.resp; 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 com.muyu.domain.vo.FaultCodeVo;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -21,51 +25,64 @@ import lombok.Data;
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@Tag(name="故障码信息响应对象",description = "故障码查询的响应结果") @Tag(name="故障码信息响应对象",description = "故障码查询的响应结果")
@TableName(value = "fault_code_list_resp", autoResultMap = true)
public class FaultCodeListResp { public class FaultCodeListResp {
/** /**
*Id *Id
*/ */
@TableId(value = "faultcode_id", type = IdType.AUTO)
@Schema(description = "故障码Id",example = "1")
private long faultcodeId; private long faultcodeId;
/** /**
*Id *Id
*/ */
@Schema(description = "故障名称Id",example = "1")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(description = "故障码",example = "P0001")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* *
*/ */
@Schema(description = "故障组",example = "1")
private String faultGroup; private String faultGroup;
/** /**
* *
*/ */
@Schema(description = "故障位",example = "1")
private String faultBit; private String faultBit;
/** /**
* *
*/ */
@Schema(description = "故障值",example = "1")
private String faultValue; private String faultValue;
/** /**
* *
*/ */
@Schema(description = "是否警告",example = "1")
private Integer isWarning; private Integer isWarning;
/** /**
* *
*/ */
@Schema(description = "故障类型名称",example = "1")
private String faulttypeName; private String faulttypeName;
/** /**
* *
*/ */
@Schema(description = "故障名称",example = "1")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(description = "报文编码",example = "1")
private String messageTypeCode; private String messageTypeCode;
/** /**
* *
*/ */
@Schema(description = "报文所属类别",example = "1")
private String messageTypeBelongs; private String messageTypeBelongs;
/** /**

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -23,11 +25,16 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Tag(name="数据总数列表",description = "数据和总数的响应") @Tag(name="数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_code",autoResultMap = true)
public class FaultCodeTotalListResp { public class FaultCodeTotalListResp {
@Schema(name = "数据列表")
private List<FaultCodeListResp> faultCodeListRespList; private List<FaultCodeListResp> faultCodeListRespList;
/**
*
*/
@Schema(name = "总数")
private long total; private long total;
public static FaultCodeTotalListResp faultCodeTotalListResp(List<FaultCodeListResp> faultCodeListRespList,long total){ public static FaultCodeTotalListResp faultCodeTotalListResp(List<FaultCodeListResp> faultCodeListRespList,long total){

View File

@ -1,11 +1,16 @@
package com.muyu.domain.resp; 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 com.muyu.domain.FaultCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -23,39 +28,50 @@ import java.math.BigDecimal;
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@Tag(name="故障规则信息响应对象",description = "故障规则查询的响应结果") @Tag(name="故障规则信息响应对象",description = "故障规则查询的响应结果")
@NoArgsConstructor
@TableName(value = "car_fault_condition",autoResultMap = true)
public class FaultConditionListResp { public class FaultConditionListResp {
/** /**
* Id * Id
*/ */
@TableId(value = "carcondition_id",type = IdType.AUTO)
@Schema(description = "故障规则表Id")
private long carconditionId; private long carconditionId;
/** /**
* Id * Id
*/ */
@Schema(description = "车辆类型Id")
private long carTypeId; private long carTypeId;
/** /**
*Id *Id
*/ */
@Schema(description = "故障名称Id")
private long messageTypeId; private long messageTypeId;
/** /**
* *
*/ */
@Schema(description = "故障条件")
private String faultconditionIdentification; private String faultconditionIdentification;
/** /**
* *
*/ */
@Schema(description = "故障规则参数")
private BigDecimal faultconditionParameter; private BigDecimal faultconditionParameter;
/** /**
* *
*/ */
@Schema(description = "车辆类型名称")
private String carTypeName; private String carTypeName;
/** /**
* *
*/ */
@Schema(description = "故障名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(description = "报文编码")
private String messageTypeCode; private String messageTypeCode;
/** /**

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -24,10 +26,13 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Tag(name="故障规则数据总数列表",description = "数据和总数的响应") @Tag(name="故障规则数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_condition",autoResultMap = true)
public class FaultConditionTotalListResp { public class FaultConditionTotalListResp {
@Schema(description = "故障规则数据列表")
private List<FaultConditionListResp> faultConditionListRespList; private List<FaultConditionListResp> faultConditionListRespList;
@Schema(description = "故障规则数据总数")
private long total; private long total;
public static FaultConditionTotalListResp faultConditionTotalListResp(List<FaultConditionListResp> faultConditionListRespList,long total){ public static FaultConditionTotalListResp faultConditionTotalListResp(List<FaultConditionListResp> faultConditionListRespList,long total){

View File

@ -1,12 +1,17 @@
package com.muyu.domain.resp; 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.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.domain.FaultLog; 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.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date; import java.util.Date;
@ -25,24 +30,31 @@ import java.util.Date;
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@Tag(name="故障日志信息响应对象",description = "故障日志的响应结果") @Tag(name="故障日志信息响应对象",description = "故障日志的响应结果")
@NoArgsConstructor
@TableName(value = "car_fault_log",autoResultMap = true)
public class FaultLogListResp { public class FaultLogListResp {
/** /**
* Id * Id
*/ */
@TableId(value = "log_id",type = IdType.AUTO)
@Schema(description = "故障日志Id",example = "1")
private long logId; private long logId;
/** /**
* Id * Id
*/ */
@Schema(name = "故障码Id")
private long faultcodeId; private long faultcodeId;
/** /**
* Id * Id
*/ */
@Schema(name = "车辆Id")
private long carInformationId; private long carInformationId;
/** /**
* VIN * VIN
*/ */
@Schema(name = "车辆VIN")
private String carVin; private String carVin;
/** /**
* *
@ -59,10 +71,12 @@ public class FaultLogListResp {
/** /**
* *
*/ */
@Schema(name = "故障码")
private String faultcodeNumber; private String faultcodeNumber;
/** /**
* vin * vin
*/ */
@Schema(name = "车辆vin")
private String carInformationVIN; private String carInformationVIN;

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -24,10 +26,13 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Tag(name="故障日志数据总数列表",description = "数据和总数的响应") @Tag(name="故障日志数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_log",autoResultMap = true)
public class FaultLogTotalListResp { public class FaultLogTotalListResp {
@Schema(description = "故障日志列表")
private List<FaultLogListResp> faultLogListRespList; private List<FaultLogListResp> faultLogListRespList;
@Schema(description = "总数")
private long total; private long total;
public static FaultLogTotalListResp faultLogTotalListResp(List<FaultLogListResp> faultLogListRespList,long total){ public static FaultLogTotalListResp faultLogTotalListResp(List<FaultLogListResp> faultLogListRespList,long total){

View File

@ -1,6 +1,10 @@
package com.muyu.domain.resp; 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 com.muyu.domain.MessageTemplate;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -22,21 +26,26 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "报文模版列表", description = "负责报文模版管理列表的相应数据") @Tag(name = "报文模版列表", description = "负责报文模版管理列表的相应数据")
@TableName(value = "message_template", autoResultMap = true)
public class MessageTemplateListResp { public class MessageTemplateListResp {
/** /**
* *
*/ */
@Schema(description = "报文模版主键")
@TableId(value = "message_template_id", type = IdType.AUTO)
private String messageTemplateId; private String messageTemplateId;
/** /**
* *
*/ */
@Schema(description = "报文模版名称")
private String messageTemplateName; private String messageTemplateName;
/** /**
* *
*/ */
@Schema(description = "报文模版描述")
private String messageTemplateDescribe; private String messageTemplateDescribe;
/** /**

View File

@ -1,6 +1,10 @@
package com.muyu.domain.resp; 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 com.muyu.domain.MessageValue;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -22,36 +26,44 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "报文数据列表", description = "负责报文数据管理列表的相应数据") @Tag(name = "报文数据列表", description = "负责报文数据管理列表的相应数据")
@TableName(value = "message_value", autoResultMap = true)
public class MessageValueListResp { public class MessageValueListResp {
/** /**
* *
*/ */
@TableId(value = "message_id", type = IdType.AUTO)
@Schema(description = "报文数据主键",example = "1")
private Long messageId; private Long messageId;
/** /**
* *
*/ */
@Schema(description = "报文类别",example = "1")
private String messageType; private String messageType;
/** /**
* *
*/ */
@Schema(description = "报文编码",example = "1")
private String messageCode; private String messageCode;
/** /**
* *
*/ */
@Schema(description = "报文标签",example = "1")
private String messageLabel; private String messageLabel;
/** /**
* *
*/ */
@Schema(description = "起始下标",example = "1")
private Integer messageStartIndex; private Integer messageStartIndex;
/** /**
* *
*/ */
@Schema(description = "终止下标",example = "1")
private Integer messageEndIndex; private Integer messageEndIndex;
public static MessageValueListResp valueBuild(MessageValue messageValue){ 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.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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 io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -23,57 +25,68 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Tag(name = "车辆类型信息", description = "车辆类型") @Tag(name = "车辆类型信息", description = "车辆类型")
@TableName(value = "sys_car", autoResultMap = true)
public class SysCarResp { public class SysCarResp {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO) @Schema(description = "自增主键")
@TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** /**
* VIN * VIN
*/ */
@Schema(description = "车辆VIN码")
private String carVin; private String carVin;
/** /**
* *
*/ */
@Schema(description = "车辆车牌号")
private String carPlate; private String carPlate;
/** /**
* *
*/ */
@Schema(description = "车辆品牌")
private String carBrand; private String carBrand;
/** /**
* *
*/ */
@Schema(description = "车辆型号")
private String carModel; private String carModel;
/** /**
* *
*/ */
@Schema(description = "车辆类型")
private Integer carType; private Integer carType;
/** /**
* *
*/ */
@Schema(description = "车辆类型名称")
private String sysTypeName; private String sysTypeName;
/** /**
* ID * ID
*/ */
@Schema(description = "策略ID")
private Integer warnStrategy; private Integer warnStrategy;
/** /**
* *
*/ */
@Schema(description = "围栏组编码")
private String groupCode; private String groupCode;
/** /**
* *
*/ */
@Schema(description = "启用状态")
private Integer state; private Integer state;
@Override @Override

View File

@ -1,44 +1,49 @@
package com.muyu.domain.vo; package com.muyu.domain.vo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.FaultCode; 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.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
/**
* @className: FaultCodeVo
* @author: Yang 🦅
* @date: 2024/9/23 22:18
* @Version: 1.0
* @description:
*/
/** /**
* VO * VO
* * @className: FaultCodeVo
* * @author: Yang 🦅
* * @date: 2024/9/23 22:18
* * @Version: 1.0
* * @description:
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@TableName(value = "car_faultcode", autoResultMap = true)
@Tag(name = "故障代码")
public class FaultCodeVo extends FaultCode { public class FaultCodeVo extends FaultCode {
/** /**
* *
*/ */
@Schema(description = "故障类型名称")
private String faulttypeName; private String faulttypeName;
/** /**
* *
*/ */
@Schema(description = "故障名称")
private String messageTypeName; private String messageTypeName;
/** /**
* *
*/ */
@Schema(description = "报文编码")
private String messageTypeCode; private String messageTypeCode;
/** /**
* *
*/ */
@Schema(description = "报文所属类别")
private String messageTypeBelongs; private String messageTypeBelongs;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -43,154 +43,6 @@ public class PureElectricCarFaultDetectionStrategy implements FaultDetectionStra
if (carFaultRule.getIR()>100000){ if (carFaultRule.getIR()>100000){
return new FaultReport("纯电车","绝缘电阻过高,请注意"); 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; return null;
} }
} }