Compare commits

...

10 Commits

183 changed files with 3312 additions and 1210 deletions

View File

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -48,13 +48,13 @@ public class FaultLog {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date startwarningTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date endwarningTime;
/**
*

View File

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -55,7 +55,7 @@ public class Message {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date createTime;
/**
* Id

View File

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@ -49,6 +49,6 @@ public class MessageSendReq {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "String")
@Excel(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "String")
private Date createTime;
}

View File

@ -1,7 +1,7 @@
package com.muyu.fault.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -36,13 +36,13 @@ public class FaultLogListReq {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date startwarningTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date endwarningTime;
/**

View File

@ -3,7 +3,7 @@ package com.muyu.fault.domain.resp;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.fault.domain.FaultLog;
import io.swagger.v3.oas.annotations.media.Schema;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -45,13 +45,13 @@ public class FaultLogListResp {
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "开始报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date startwarningTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
@Excel(description = "结束报警时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date endwarningTime;
/**
*

View File

@ -5,13 +5,16 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-server</artifactId>
<artifactId>cloud-modules</artifactId>
<version>3.6.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>cloud-module-enterprise</artifactId>
<description>
cloud-modules-enterprise
</description>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

View File

@ -14,11 +14,14 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceClazzController
* @Date2024/9/20 14:31
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @ClassNameCarFenceClazzController
* * @Projectcloud-electronic
* * @nameCarFenceClazzController
* * @Date2024/9/20 14:31
* * @Description
*/
@RequestMapping("/carFenceClazz")
@RestController

View File

@ -18,11 +18,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceController
* @Date2024/9/17 16:46
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @Projectcloud-electronic
* * @nameCarFenceController
* * @Date2024/9/17 16:46
* * @Description
*/
@RequestMapping("/carFence")
@RestController

View File

@ -14,11 +14,13 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @Authoryang
* @Packagecom.muyu.server.controller
* @Projectcloud-electronic
* @nameCarFenceClazzController
* @Date2024/9/20 14:31
*
* * @Authoryang
* * @Packagecom.muyu.server.controller
* * @Projectcloud-electronic
* * @nameCarFenceClazzController
* * @Date2024/9/20 14:31
* * @Description
*/
@RequestMapping("/carFenceType")
@RestController

View File

@ -11,11 +11,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @className: CarTypeController
* @author: Yang 🦅
* @date: 2024/9/23 22:06
* @Version: 1.0
* @description:
*
* * @className: CarTypeController
* * @author: Yang 🦅
* * @date: 2024/9/23 22:06
* * @Version: 1.0
* * @description:
*/
@RequestMapping("/cartype")
@RestController

View File

@ -15,13 +15,13 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @className: CarTypeController
* @author: Yang 🦅
* @date: 2024/9/23 22:06
* @Version: 1.0
* @description:
*
* * @className: FaultCodeController
* * @author: Yang 🦅
* * @date: 2024/9/23 22:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/faultcode")
@Tag(name = "故障模块" ,description = "故障模块")

View File

@ -17,13 +17,13 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @className: CarTypeController
* @author: Yang 🦅
* @date: 2024/9/23 22:06
* @Version: 1.0
* @description:
*/
*
* * @className: FaultConditionController
* * @author: Yang 🦅
* * @date: 2024/9/23 22:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/faultcondition")
@Tag(name = "故障规则模块",description = "故障规则模块")

View File

@ -1,24 +0,0 @@
package com.muyu.controller;
import com.muyu.service.FaultDetectionStrategyService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @className: FaultDetectionStrategyController
* @author: Yang 🦅
* @date: 2024/9/23 22:06
* @Version: 1.0
* @description:
*/
@RestController
@RequestMapping("/faultdetectionstrategy")
@Tag(name = "车辆故障码",description = "车辆故障码")
public class FaultDetectionStrategyController {
@Autowired
private FaultDetectionStrategyService faultDetectionStrategyService;
}

View File

@ -1,14 +1,4 @@
package com.muyu.controller;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*/
import com.muyu.common.core.domain.Result;
import com.muyu.service.FaultLabelService;
import io.swagger.v3.oas.annotations.Operation;
@ -20,6 +10,11 @@ import org.springframework.web.bind.annotation.RestController;
/**
*
* * @className: FaultLog
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/faultlabel")

View File

@ -12,11 +12,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @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:
*/
@RestController
@RequestMapping("/faultlog")

View File

@ -15,11 +15,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultRuleController
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/faultrule")
@ -41,6 +42,12 @@ public class FaultRuleController {
return Result.success(checkfaults);
}
/**
*
*
* @param carFaultRule
* @return
*/
@PostMapping("/cheakfaults")
@Operation(summary = "故障参数匹配检查",description = "获取报文数据与故障参数进行比较")

View File

@ -1,12 +1,4 @@
package com.muyu.controller;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*/
import com.muyu.common.core.domain.Result;
import com.muyu.service.FaultTypeService;
import io.swagger.v3.oas.annotations.Operation;
@ -18,6 +10,11 @@ import org.springframework.web.bind.annotation.RestController;
/**
*
* * @className: FaultTypeController
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/faulttype")

View File

@ -16,11 +16,13 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @Authoryan
* @Packagecom.muyu.car.controller
* @Projectcars
* @nameFenceGroupController
* @Date2024/9/21 20:49
*
* *
* * @Authoryan
* * @Packagecom.muyu.car.controller
* * @Projectcars
* * @nameFenceGroupController
* * @Date2024/9/21 20:49
*/
@RequestMapping("/fenceGroup")
@RestController

View File

@ -14,13 +14,13 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: MessageController
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@RestController
@RequestMapping("/message")

View File

@ -13,10 +13,12 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @ClassName MessageTemplateController
* @Description TODO
* @Author Li HD
* @Date 2024/9/19
*
* * @ClassName MessageTemplateController
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/19
* * @Version 1.0
*/
@Log4j2
@RestController

View File

@ -16,10 +16,11 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @ClassName MessageValueController
* @Description TODO
* @Author Li HD
* @Date 2024/9/19
*
* * @ClassName MessageValueController
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/19
*/
@Log4j2
@RestController

View File

@ -15,11 +15,12 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @Authoryan
* @Packagecom.muyu.car.controller
* @Projectplues
* @nameMiddleController
* @Date2024/9/22 10:06
*
* * @Authoryan
* * @Packagecom.muyu.car.controller
* * @Projectplues
* * @nameMiddleController
* * @Date2024/9/22 10:06
*/
@RequestMapping("/middle")
@RestController

View File

@ -18,8 +18,7 @@ import java.util.List;
/**
* Controller
*
* @author Li HD
* @author LiHD
* @date 2024-09-18
*/
@RestController

View File

@ -19,7 +19,6 @@ import java.util.List;
/**
* Controller
*
* @author Yang
* @date 2024-09-18
*/
@ -34,7 +33,6 @@ public class SysCarFaultController extends BaseController
/**
*
*/
@GetMapping("/list")
public Result<TableDataInfo<SysCarFault>> list(SysCarFault sysCarFault)
{

View File

@ -19,6 +19,9 @@ import java.util.List;
* @Date 2024/9/22 9:36
* @
*/
/**
* (SysCarType)
*/
@RestController
@RequestMapping("/sysType")
@Tag(name = "查询车辆类型模块",description = "查询车辆类型模块")
@ -27,6 +30,9 @@ public class SysTypeController extends BaseController {
private SysTypeService sysTypeService;
/**
*
*/
@GetMapping("/list")
public Result<TableDataInfo<SysCarType>> list() {
startPage();

View File

@ -18,7 +18,6 @@ import java.util.List;
/**
* Controller
*
* @author muyu
* @date 2024-09-20
*/

View File

@ -18,7 +18,6 @@ import java.util.List;
/**
* Controller
*
* @author muyu
* @date 2024-09-20
*/

View File

@ -18,7 +18,6 @@ import java.util.List;
/**
* Controller
*
* @author muyu
* @date 2024-09-20
*/

View File

@ -1,7 +1,11 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -12,27 +16,55 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameCarFaultMessage
* @Date2024/9/25 23:45
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameCarFaultMessage
* * @Date2024/9/25 23:45
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Tag(name = "bioa")
@Tag(name = "车辆故障信息实体类",description = "车辆故障信息实体类")
@TableName(value = "car_fault_message",autoResultMap = true)
public class CarFaultMessage {
@TableId(value = "id",type = IdType.AUTO)
@Schema(name = "id")
/**
* id
*/
private Integer id;
@Schema(name = "sender")
/**
*
*/
private String sender;
@Schema(name = "receiver")
/**
*
*/
private String receiver;
@Schema(name = "content")
/**
*
*/
private String content;
@Schema(name = "status")
/**
*
*/
private Integer status;
@DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
/**
*
*/
private Date createTime;
@Schema(name = "userId")
/**
* Id
*/
private Integer userId;
}

View File

@ -1,206 +1,267 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: CarFaultRule
* @author: Yang 🦅
* @date: 2024/9/23 22:06
* @Version: 1.0
* @description:
*/
/**
*
* * @className: CarFaultRule
* * @author: Yang 🦅
* * @date: 2024/9/23 22:06
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class CarFaultRule {/**
* VINVINVIN
*/
private String vin;
@TableName(value = "car_fault_rule",autoResultMap = true)
@Tag(name = "车辆故障规则")
public class CarFaultRule {
/**
* VINVINVIN
*/
@TableId(value = "规则Id",type = IdType.AUTO)
@Schema(name = "车辆VIN码")
private Long vin;
/**
*
*/
@Schema(name = "车辆类型Id")
private long timestamp;
/**
*
*/
@Schema(name = "车速")
private double longitude;
/**
*
*/
@Schema(name = "总电流")
private double latitude;
/**
*
*/
@Schema(name = "绝缘电阻")
private double speed;
/**
*
*/
@Schema(name = "加速踏板行程值")
private long TM;
/**
*
*/
@Schema(name = "制动踏板行程值")
private double TV;
/**
*
*/
@Schema(name = "燃料消耗率")
private double CC;
/**
*
*/
@Schema(name = "电机控制器温度")
private double IR;
/**
*
*/
@Schema(name = "电机转速")
private String GP;
/**
*
*/
@Schema(name = "电机转矩")
private double APTV;
/**
*
*/
@Schema(name = "电机温度")
private double BPTV;
/**
*
*/
@Schema(name = "电机电压")
private double SFC;
/**
*
*/
@Schema(name = "电机电流")
private double MCT;
/**
*
*/
@Schema(name = "动力电池剩余电量SOC")
private int MS;
/**
*
*/
@Schema(name = "当前状态允许的最大反馈功率")
private double MTO;
/**
*
*/
@Schema(name = "当前状态允许最大放电功率")
private double MTE;
/**
*
*/
@Schema(name = "BMS自检计数器")
private double MV;
/**
*
*/
@Schema(name = "动力电池充放电电流")
private double MC;
/**
* SOCSOCSOC
*/
@Schema(name = "动力电池负载端总电压V3")
private double PBRSOC;
/**
*
*/
@Schema(name = "单次最大电压")
private double MACSFP;
/**
*
*/
@Schema(name = "单体电池最低电压")
private double CSATMDP;
/**
* BMSBMSBMS
*/
@Schema(name = "单体电池最高温度")
private int BMS;
/**
*
*/
@Schema(name = "单体电池最低温度")
private double CADC;
/**
* V3V3V3
*/
@Schema(name = "动力电池可用容量")
private double PBLETVV3;
/**
*
*/
@Schema(name = "总里程")
private double SMV;
/**
*
*/
@Schema(name = "总电压")
private double MVOAB;
/**
*
*/
@Schema(name = "车辆状态")
private double MAXBT;
/**
*
*/
@Schema(name = "充电状态")
private double MINBT;
/**
*
*/
@Schema(name = "运行状态")
private double PBAC;
/**
*
*/
@Schema(name = "SOC")
private String VS;
/**
*
*/
@Schema(name = "可充电储能装置工作状态")
private String CS;
/**
*
*/
@Schema(name = "EAS")
private String RS;
/**
* SOCSOCSOC
*/
@Schema(name = "PTC")
private double SOC;
/**
*
*/
@Schema(name = "EPS")
private String RESDWC;
/**
* EASEASEAS
*/
@Schema(name = "ABS")
private String EAS;
/**
* PTCPTCPTC
*/
@Schema(name = "MCU")
private String PTC;
/**
* EPSEPSEPS
*/
@Schema(name = "动力电池加热状态")
private String EPS;
/**
* ABSABSABS
*/
@Schema(name = "动力电池当前状态")
private String ABS;
/**
* MCUMCUMCU
*/
@Schema(name = "动力电池保温状态")
private String MCU;
/**
*
*/
@Schema(name = "DCDC")
private String PBHS;
/**
*
*/
@Schema(name = "CHG")
private String PBCS;
/**
*
*/
@Schema(name = "校验位")
private String PBIS;
/**
* DCDCDCDCDCDC
*/
@Schema(name = "截止位")
private String DCDC;
/**
* CHGCHGCHG
*/
@Schema(name = "")
private String CHG;
/**
*
*/
@Schema(name = "")
private byte CHB;
/**
*
*/
@Schema(name = "")
private byte CUB;
}

View File

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -15,11 +16,12 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameCarFence
* @Date2024/9/17 16:08
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameCarFence
* * @Date2024/9/17 16:08
*/
@Data
@AllArgsConstructor
@ -37,28 +39,34 @@ public class CarFence {
/**
*
*/
@Schema(name = "围栏名称")
private String name;
/**
* ID
*/
@Schema(name = "业务类型ID")
private Integer clazzId;
/**
*
*/
@Schema(name = "业务类型名称")
@TableField(exist = false)
private String clazzName;
/**
* ID
*/
@Schema(name = "围栏类型ID")
private Integer typeId;
/**
*
*/
@Schema(name = "围栏类型名称")
@TableField(exist = false)
private String typeName;
/**
*
*/
@Schema(name = "围栏经纬度")
private String fenceText;
/**
*
@ -81,6 +89,7 @@ public class CarFence {
/**
* ID
*/
@Schema(name = "中间表ID")
private Integer middleId;
public static CarFence carFenceBuild(CarFence carFence) {
return CarFence.builder()

View File

@ -1,6 +1,9 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -8,11 +11,12 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameCarFenceClazz
* @Date2024/9/17 16:41
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameCarFenceClazz
* * @Date2024/9/17 16:41
*/
@Data
@AllArgsConstructor
@ -24,10 +28,13 @@ public class CarFenceClazz {
/**
* ID
*/
@TableId(value = "clazz_id",type = IdType.AUTO)
@Schema(name = "业务类型ID")
private Integer clazzId;
/**
*
*/
@Schema(name = "业务类型名称")
private String clazzName;
public static CarFenceClazz carFenceClazzBuild(CarFenceClazz carFenceClazz) {

View File

@ -1,6 +1,10 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -8,11 +12,12 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Authoryang
* @Packagecom.muyu.domain
* @Projectcloud-electronic
* @nameType
* @Date2024/9/17 16:40
*
* * @Authoryang
* * @Packagecom.muyu.domain
* * @Projectcloud-electronic
* * @nameType
* * @Date2024/9/17 16:40
*/
@Data
@AllArgsConstructor
@ -24,10 +29,13 @@ public class CarFenceType {
/**
* ID
*/
@TableId(value = "type_id" ,type = IdType.AUTO)
@Schema(name = "围栏类型ID")
private Integer typeId;
/**
*
*/
@Schema(name = "围栏类型名称")
private String typeName;
public static CarFenceType carFenceTypeBuild(CarFenceType carFenceType) {

View File

@ -0,0 +1,116 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
* * @className: CarInformation
* * @author: Yang 🦅
* * @date: 2024/9/30 12:40
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Tag(name = "车辆信息")
@TableName("car_information")
public class CarInformation {
/**
* ID
*/
@TableId(value = "car_information_id" , type = IdType.AUTO)
@Schema(name = "车辆ID")
private Long carInformationId;
/**
* VIN
*/
@Schema(name = "车辆唯一VIN")
private String CarInformationVIN;
/**
*
*/
@Schema(name = "车牌号")
private String carInformationLicensePlate;
/**
*
*/
@Schema(name = "车辆品牌")
private String carInformationBrand;
/**
*
*/
@Schema(name = "车辆颜色")
private String carInformationColor;
/**
*
*/
@Schema(name = "车辆驾驶员")
private String carInformationDriver;
/**
*
*/
// @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd hh:mm:ss")
// @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
// @Schema(name = "车检到期日期")
private Date carInformationExamineEnddata;
/**
*
*/
@Schema(name = "车辆电机厂商")
private String carInformationMotorManufacturer;
/**
*
*/
@Schema(name = "车辆电机型号")
private String carInformationMotorModel;
/**
*
*/
@Schema(name = "车辆电池厂商")
private String carInformationBatteryManufacturer;
/**
*
*/
@Schema(name = "车辆电池型号")
private String carInformationBatteryModel;
/**
* ID
*/
@Schema(name = "车辆电子围栏外键ID")
private Long carInformationFence;
/**
* ID
*/
@Schema(name = "车辆类型外键ID")
private Long carInformationType;
/**
* (0 1 )
*/
@Schema(name = "是否重点车辆 (0否默认 1是 )")
private Long carInformationFocus;
/**
* id
*/
@Schema(name = "车辆策略id")
private Long carStrategyId;
/**
* (1.线 2.线 3. 4. 5.)
*/
@Schema(name = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
private Long carInformationState;
}

View File

@ -1,6 +1,10 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -8,12 +12,13 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameCarMiddle
* @Date2024/9/25 20:25
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameCarMiddle
* * @Date2024/9/25 20:25
* *
*/
@Data
@AllArgsConstructor
@ -25,14 +30,18 @@ public class CarMiddle {
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
@Schema(name = "主键")
private Integer id;
/**
* id
*/
@Schema(name = "围栏id")
private Integer carFenceId;
/**
* id
*/
@Schema(name = "围栏组id")
private Integer carGroupId;
}

View File

@ -1,34 +1,45 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: CarType
* @author: Yang 🦅
* @date: 2024/9/23 22:01
* @Version: 1.0
* @description:
*
* * @className: CarType
* * @author: Yang 🦅
* * @date: 2024/9/23 22:01
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_type",autoResultMap = true)
@Tag(name = "车辆类型管理")
public class CarType {
/**
* ID
*/
@TableId(value = "car_type_id",type = IdType.AUTO)
@Schema(name = "车辆类型ID")
private long carTypeId;
/**
*
*/
@Schema(name = "车辆类型名")
private String carTypeName;
/**
* ID
*/
@Schema(name = "车辆规则外键ID")
private long carTypeRules;
}

View File

@ -3,58 +3,90 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.domain.req.FaultCodeAddReq;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultCode
* @author: Yang 🦅
* @date: 2024/9/23 22:21
* @Version: 1.0
* @description:
*/
/**
*
* * @className: FaultCode
* * @author: Yang 🦅
* * @date: 2024/9/23 22:21
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_faultcode", autoResultMap = true)
@Tag(name = "故障码管理")
public class FaultCode {
/**
* Id
*/
@TableId(value = "faultcode_id", type = IdType.AUTO)
@Schema(name = "故障码Id")
private long faultcodeId;
/**
* Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
*
*/
@Schema(name = "故障组")
private String faultGroup;
/**
*
*/
@Schema(name = "故障位")
private String faultBit;
/**
*
*/
@Schema(name = "故障值")
private String faultValue;
/**
*
*/
@Schema(name = "是否警告")
private Integer isWarning;
/**
*
*/
@Schema(name = "故障类型名称")
private String faulttypeName;
/**
*
*/
@Schema(name = "故障类型编码")
private String messageTypeName;
/**
*
*/
@Schema(name = "故障类型所属")
private String messageTypeCode;
/**
*
*/
@Schema(name = "故障类型所属")
private String messageTypeBelongs;
public static FaultCode addfaultcode(FaultCodeAddReq faultCodeAddReq) {

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.req.FaultConditionAddReq;
import com.muyu.domain.req.FaultConditionUpdReq;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -14,50 +16,60 @@ import java.math.BigDecimal;
import java.util.function.Supplier;
/**
* @className: FaultCondition
* @author: Yang 🦅
* @date: 2024/9/23 21:07
* @Version: 1.0
* @description:
*
* * @className: FaultCondition
* * @author: Yang 🦅
* * @date: 2024/9/23 21:07
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_condition",autoResultMap = true)
@Tag(name = "故障规则管理")
public class FaultCondition {
/**
* Id
*/
@TableId(value = "carcondition_id",type = IdType.AUTO)
@Schema(name = "故障规则表Id")
private long carconditionId;
/**
* Id
*/
@Schema(name = "车辆类型Id")
private long carTypeId;
/**
*Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
*
*/
@Schema(name = "故障条件")
private String faultconditionIdentification;
/**
*
*/
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter;
/**
*
*/
@Schema(name = "车辆类型名称")
private String carTypeName;
/**
*
*/
@Schema(name = "故障名称")
private String messageTypeName;
/**
*
*/
@Schema(name = "报文编码")
private String messageTypeCode;

View File

@ -3,41 +3,49 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLabel
* @author: Yang 🦅
* @date: 2024/9/23 21:07
* @Version: 1.0
* @description:
*
* * @className: FaultLabel
* * @author: Yang 🦅
* * @date: 2024/9/23 21:07
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_label",autoResultMap = true)
@Tag(name = "报文标签管理")
public class FaultLabel {
/**
*
*/
@TableId(value = "message_type_id",type = IdType.AUTO)
@Schema(name = "自增主键")
private String messageTypeId;
/**
*
*/
@Schema(name = "报文编码")
private String messageTypeCode;
/**
*
*/
@Schema(name = "报文名称")
private String messageTypeName;
/**
*
*/
@Schema(name = "报文所属类别")
private String messageTypeBelongs;
}

View File

@ -4,7 +4,10 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -13,17 +16,18 @@ import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultLog
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Tag(name = "故障日志实体类",description = "故障日志实体类")
@TableName(value = "car_fault_log",autoResultMap = true)
public class FaultLog {
@ -31,18 +35,22 @@ public class FaultLog {
* Id
*/
@TableId(value = "log_id",type = IdType.AUTO)
@Schema(name = "故障日志Id")
private long logId;
/**
* Id
*/
@Schema(name = "故障码Id")
private long faultcodeId;
/**
* Id
*/
@Schema(name = "车辆Id")
private long carInformationId;
/**
* VIN
*/
@Schema(name = "车辆VIN")
private String carVin;
/**
*
@ -59,10 +67,12 @@ public class FaultLog {
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
* vin
*/
@Schema(name = "车辆vin")
private String carInformationVIN;
}

View File

@ -1,22 +1,27 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultReport
* @author: Yang 🦅
* @date: 2024/9/23 21:05
* @Version: 1.0
* @description:
*
* * @className: FaultReport
* * @author: Yang 🦅
* * @date: 2024/9/23 21:05
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName("fault_report")
@Tag(name = "车辆故障报告")
public class FaultReport {
private String VehicleType;
private String FaultDescription;
}

View File

@ -1,6 +1,10 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -9,56 +13,67 @@ import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
/**
* @className: FaultRule
* @author: Yang 🦅
* @date: 2024/9/23 21:05
* @Version: 1.0
* @description:
*
* * @className: FaultRule
* * @author: Yang 🦅
* * @date: 2024/9/23 21:05
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_condition",autoResultMap = true)
@Tag(name = "故障触发条件")
public class FaultRule {
/**
* Id
*/
@TableId(value = "condition_id",type = IdType.AUTO)
@Schema(name = "触发条件Id")
private long conditionId;
/**
* Id
*/
@Schema(name = "故障码Id")
private long faultcodeId;
/**
*
*/
@Schema(name = "触发条件描述")
private String conditionContent;
/**
*
*/
@Schema(name = "单个参数的阈值")
private BigDecimal singleThreshold;
/**
*
*/
@Schema(name = "区间参数的阈值的最小值")
private BigDecimal minThreshold;
/**
*
*/
@Schema(name = "区间参数的阈值的最大值")
private BigDecimal maxThreshold;
/**
*
*/
@Schema(name = "触发条件是否激活")
private Integer isActive;
/**
*
*/
@Schema(name = "车辆数据值")
private BigDecimal Threshold;

View File

@ -3,31 +3,38 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultType
* @author: Yang 🦅
* @date: 2024/9/23 21:04
* @Version: 1.0
* @description:
*
* * @className: FaultType
* * @author: Yang 🦅
* * @date: 2024/9/23 21:04
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_type",autoResultMap = true)
@Tag(name = "故障类型管理")
public class FaultType {
/**
*Id
*/
@TableId(value = "faulttype_id",type = IdType.AUTO)
@Schema(name = "故障类型Id")
private long faulttypeId;
/**
*
*/
@Schema(name = "故障类型名称")
private String faulttypeName;
}

View File

@ -3,6 +3,7 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -10,11 +11,12 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectplues
* @nameFenceAndGroupMiddle
* @Date2024/9/22 09:59
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectplues
* * @nameFenceAndGroupMiddle
* * @Date2024/9/22 09:59
*/
@Data
@AllArgsConstructor
@ -27,14 +29,17 @@ public class FenceAndGroupMiddle {
* id
*/
@TableId(value = "id",type = IdType.AUTO)
@Schema(name = "id")
private Integer id;
/**
* id
*/
@Schema(name = "围栏id")
private Integer carId;
/**
* id
*/
@Schema(name = "围栏组id")
private Integer groupId;
}

View File

@ -3,6 +3,8 @@ package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -10,11 +12,12 @@ import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Authoryan
* @Packagecom.muyu.car.domain
* @Projectcars
* @nameFenceGroup
* @Date2024/9/21 20:45
*
* * @Authoryan
* * @Packagecom.muyu.car.domain
* * @Projectcars
* * @nameFenceGroup
* * @Date2024/9/21 20:45
*/
@Data
@AllArgsConstructor
@ -27,14 +30,17 @@ public class FenceGroup {
* id
*/
@TableId(value = "group_id",type = IdType.AUTO)
@Schema(name = "围栏组id")
private Integer groupId;
/**
*
*/
@Schema(name = "围栏组名称")
private String groupName;
/**
*
*/
@Schema(name = "围栏组状态")
private Integer groupStates;

View File

@ -1,20 +1,37 @@
package com.muyu.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.domain.message.Message;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.sql.Connection;
import java.sql.PreparedStatement;
/**
* @className: MessageDao
* @author: Yang 🦅
* @date: 2024/9/23 20:58
* @Version: 1.0
* @description:
* dao
* * @className: MessageDao
* * @author: Yang 🦅
* * @date: 2024/9/23 20:58
* * @Version: 1.0
* * @description:dao
*/
@TableName(value = "car_fault_message" , autoResultMap = true)
@SuperBuilder
@Builder
@NoArgsConstructor
@Data
@Tag(name = "消息模块")
public class MessageDao {
@TableId(value = "id", type = IdType.AUTO)
@Schema(name = "消息id")
private Connection connection;
public MessageDao(Connection connection){

View File

@ -1,54 +0,0 @@
package com.muyu.domain;
import com.muyu.domain.message.Message;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
/**
* @className: MessageService
* @author: Yang 🦅
* @date: 2024/9/23 21:01
* @Version: 1.0
* @description:
*/
public class MessageService {
private MessageDao messageDao;
public MessageService(MessageDao messageDao){
this.messageDao=messageDao;
}
public void sendMessage(String content,String sender,String receiver){
// 定义一个DateTimeFormatter对象用于格式化日期时间为yyyy-MM-dd HH:mm:ss
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
// 获取当前日期和时间
LocalDateTime now = LocalDateTime.now();
// 使用formatter格式化当前日期和时间
String formattedDateTime = now.format(formatter);
// 使用formatter将字符串解析回LocalDateTime
LocalDateTime parsedDateTime = LocalDateTime.parse(formattedDateTime, formatter);
// 然后按照上面的步骤将LocalDateTime转换为Date
ZonedDateTime zdt = parsedDateTime.atZone(ZoneId.systemDefault());
Date date = Date.from(zdt.toInstant());
Message message = new Message();
message.setContent(content);
message.setSender(sender);
message.setReceiver(receiver);
message.setCreateTime(date);
try {
messageDao.sendMessage(message);
} catch (Exception e) {
e.printStackTrace();
}
}
}

View File

@ -12,10 +12,11 @@ import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageTemplate
* @Description TODO
* @Author Li HD
* @Date 2024/9/19
*
* * @ClassName MessageTemplate
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/19
*/
@Data
@SuperBuilder

View File

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.req.MessageValueAddReq;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -12,10 +14,11 @@ import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageValue
* @Description TODO
* @Author Li HD
* @Date 2024/9/19
*
* * @ClassName MessageValue
* * @Description TODO
* * @Author Li HD
* * @Date 2024/9/19
*/
@Data
@SuperBuilder
@ -23,42 +26,50 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "message_value", autoResultMap = true)
@Tag(name = "报文数据")
public class MessageValue extends BaseEntity {
/**
*
*/
@TableId(value = "message_id", type = IdType.AUTO)
@Schema(title = "报文数据主键")
private Long messageId;
/**
*
*/
@Schema(name = "模版主键")
private Long templateId;
/**
*
*/
@Schema(name = "报文类别")
private String messageType;
/**
*
*/
@Schema(name = "报文编码")
private String messageCode;
/**
*
*/
@Schema(name = "报文标签")
private String messageLabel;
/**
*
*/
@Schema(name = "起始下标")
private Integer messageStartIndex;
/**
*
*/
@Schema(name = "终止下标")
private Integer messageEndIndex;
public static MessageValue addBuild(MessageValueAddReq messageValueAddReq){

View File

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -15,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/**
* sys_car
*
* @author Li HD
* @author LiHD
* @date 2024-09-18
*/
@ -25,34 +27,43 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_car", autoResultMap = true)
@Tag(name = "车辆基础信息")
public class SysCar extends BaseEntity{
/** 自增主键 */
@TableId( type = IdType.AUTO)
@TableId( type = IdType.AUTO , value = "id" )
private Long id;
/** 车辆VIN码 */
@Schema(name = "车辆VIN码")
private String carVin;
/** 车辆车牌号 */
@Schema(name = "车辆车牌号")
private String carPlate;
/** 车辆品牌 */
@Schema(name = "车辆品牌")
private String carBrand;
/** 车辆型号 */
@Schema(name = "车辆型号")
private String carModel;
/** 车辆类型 */
@Schema(name = "车辆类型")
private Integer carType;
/** 策略ID */
@Schema(name = "策略ID")
private Integer warnStrategy;
/** 围栏组编码 */
@Schema(name = "围栏组编码")
private String groupCode;
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
@Schema(name = "启用状态")
private Integer state;

View File

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

View File

@ -22,20 +22,24 @@ import lombok.experimental.SuperBuilder;
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_car_type", autoResultMap = true)
@Tag(name = "车辆类型管理")
public class SysCarType extends BaseEntity {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
@Schema(name = "车辆类型主键")
private String id;
/**
*
*/
@Schema(name = "车辆类型名称")
private String sysTypeName;
/**
*
*/
@Schema(name = "报文模版外键")
private String messageTemplateId;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -4,8 +4,11 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@ -13,17 +16,23 @@ import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @className: Message
* @author: Yang 🦅
* @date: 2024/9/22 10:55
* @Version: 1.0
* @description:
*/
/**
*
* * @className: Message
* * @author: Yang 🦅
* * @date: 2024/9/22 10:55
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_message",autoResultMap = true)
@Tag(name = "消息管理")
public class Message {
/**
* id
@ -34,21 +43,25 @@ public class Message {
/**
*
*/
@Schema(description = "消息发送者",defaultValue = "admin",type = "String")
private String sender;
/**
*
*/
@Schema(description = "消息接收者",defaultValue = "admin",type = "String")
private String receiver;
/**
*
*/
@Schema(description = "消息内容",defaultValue = "你好我是admin",type = "String")
private String content;
/**
*
*/
@Schema(description = "消息状态",defaultValue = "0",type = "Integer")
private Integer status;
/**
@ -60,6 +73,7 @@ public class Message {
/**
* Id
*/
@Schema(description = "登录人Id",defaultValue = "1",type = "Long")
private long userId;

View File

@ -2,32 +2,45 @@ package com.muyu.domain.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: MessageReq
* @author: Yang 🦅
* @date: 2024/9/23 20:59
* @Version: 1.0
* @description:
*/
/**
*
* * @className: MessageReq
* * @author: Yang 🦅
* * @date: 2024/9/23 20:59
* * @Version: 1.0
* * @description: MessageReq
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "message_req" ,autoResultMap = true)
@Tag(name = "消息请求参数")
public class MessageReq {
/**
*
*/
@TableId(type = IdType.AUTO,value = "status")
@Schema(name = "消息状态")
private Integer status;
/**
* Id
*/
@Excel(name = "登录人Id")
@Schema(name = "登录人Id")
private long userId;
}

View File

@ -2,9 +2,12 @@ package com.muyu.domain.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@ -13,37 +16,41 @@ import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @className: MessageSendReq
* @author: Yang 🦅
* @date: 2024/9/23 21:00
* @Version: 1.0
* @description:
*
* * @className: MessageSendReq
* * @author: Yang 🦅
* * @date: 2024/9/23 21:00
* * @Version: 1.0
* * @description: MessageSendReq
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "message_send_req" ,autoResultMap = true)
@Tag(name = "消息发送请求参数")
public class MessageSendReq {
/**
*
*/
@TableId(type = IdType.AUTO,value = "id")
@Schema(name = "发送者")
private String sender;
/**
*
*/
@Excel(name = "接收者")
@Schema(name = "接收者")
private String receiver;
/**
*
*/
@Excel(name = "消息内容")
@Schema(name = "消息内容")
private String content;
/**
* Id
*/
@Excel(name = "登录人Id")
@Schema(name = "登录人Id")
private long userId;
/**
*

View File

@ -2,37 +2,48 @@ package com.muyu.domain.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: User
* @author: Yang 🦅
* @date: 2024/9/23 20:56
* @Version: 1.0
* @description:
*/
/**
*
* * @className: User
* * @author: Yang 🦅
* * @date: 2024/9/23 20:56
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "user", autoResultMap = true)
@Tag(name = "用户")
public class User {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
@Schema(title = "用户id")
private Integer id;
/**
*
*/
@Excel(name = "用户名")
@Schema(name = "用户名")
private String username;
/**
*
*/
@Excel(name="邮箱")
@Schema(name="邮箱")
private String email;
}

View File

@ -1,66 +0,0 @@
package com.muyu.domain.message.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @className: Message
* @author: Yang 🦅
* @date: 2024/9/22 10:55
* @Version: 1.0
* @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "car_fault_message",autoResultMap = true)
public class Message {
/**
* id
*/
@TableId(value = "id",type = IdType.AUTO)
private long id;
/**
*
*/
private String sender;
/**
*
*/
private String receiver;
/**
*
*/
private String content;
/**
*
*/
private Integer status;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "消息创建时间",defaultValue = "2024-8-9 10:47:57",type = "Date")
private Date createTime;
/**
* Id
*/
private long userId;
}

View File

@ -2,32 +2,40 @@ package com.muyu.domain.message.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: MessageReq
* @author: Yang 🦅
* @date: 2024/9/23 20:59
* @Version: 1.0
* @description:
*
* * @className: MessageReq
* * @author: Yang 🦅
* * @date: 2024/9/23 20:59
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "message_req",autoResultMap = true)
@Tag(name = "消息请求参数")
public class MessageReq {
/**
*
*/
@TableId(type = IdType.AUTO,value = "status")
@Schema(name = "消息状态")
private Integer status;
/**
* Id
*/
@Excel(name = "登录人Id")
@Schema(name = "登录人Id")
private long userId;
}

View File

@ -2,48 +2,55 @@ package com.muyu.domain.message.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @className: MessageSendReq
* @author: Yang 🦅
* @date: 2024/9/23 21:00
* @Version: 1.0
* @description:
*
* * @className: MessageSendReq
* * @author: Yang 🦅
* * @date: 2024/9/23 21:00
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "message_send_req",autoResultMap = true)
@Tag(name = "消息发送请求参数")
public class MessageSendReq {
/**
*
*/
@TableId(type = IdType.AUTO,value = "id")
@Schema(name = "发送者")
private String sender;
/**
*
*/
@Excel(name = "接收者")
@Schema(name = "接收者")
private String receiver;
/**
*
*/
@Excel(name = "消息内容")
@Schema(name = "消息内容")
private String content;
/**
* Id
*/
@Excel(name = "登录人Id")
@Schema(name = "登录人Id")
private long userId;
/**
*

View File

@ -2,23 +2,30 @@ package com.muyu.domain.message.message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: User
* @author: Yang 🦅
* @date: 2024/9/23 20:56
* @Version: 1.0
* @description:
*
* * @className: User
* * @author: Yang 🦅
* * @date: 2024/9/23 20:56
* * @Version: 1.0
* * @description:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Tag(name = "用户实体类")
@TableName("user")
@Builder
public class User {
/**
* id
@ -28,11 +35,11 @@ public class User {
/**
*
*/
@Excel(name = "用户名")
@Schema(name = "用户名")
private String username;
/**
*
*/
@Excel(name="邮箱")
@Schema(name="邮箱")
private String email;
}

View File

@ -3,10 +3,16 @@ package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@ -18,41 +24,54 @@ import java.util.Date;
* @nameCarFenceAdd
* @Date2024/9/23 23:57
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "car_fence_add", autoResultMap = true)
@Tag(name = "围栏添加")
public class CarFenceAdd {
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
@Schema(title = "围栏主键")
private Integer id;
/**
*
*/
@Schema(name = "围栏名称")
private String name;
/**
* ID
*/
@Schema(name = "业务类型ID")
private Integer clazzId;
/**
*
*/
@Schema(name = "业务类型名称")
@TableField(exist = false)
private String clazzName;
/**
* ID
*/
@Schema(name = "围栏类型ID")
private Integer typeId;
/**
*
*/
@Schema(name = "围栏类型名称")
@TableField(exist = false)
private String typeName;
/**
*
*/
@Schema(name = "围栏经纬度")
private String fenceText;
/**
*
@ -75,5 +94,6 @@ public class CarFenceAdd {
/**
* ID
*/
@Schema(name = "中间表ID")
private Integer middleId;
}

View File

@ -2,12 +2,16 @@ package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@ -18,17 +22,22 @@ import java.util.Date;
* @nameCarFence
* @Date2024/9/17 16:08
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@SuperBuilder
@TableName(value = "car_fence_group", autoResultMap = true)
@Tag(name = "围栏组")
public class CarFenceGroup {
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
@Schema(name = "围栏主键", type = "Integer", defaultValue = "0", description = "围栏主键")
private Integer id;
/**
*

View File

@ -1,5 +1,7 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
@ -13,23 +15,31 @@ import lombok.NoArgsConstructor;
* @nameCarFenceReq
* @Date2024/9/17 16:26
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Tag(name = "车辆电子围栏响应参数")
@TableName(value = "car_fence_group", autoResultMap = true)
public class CarFenceReq {
/**
*
*/
@Schema(title = "围栏名称", type = "String", description = "围栏名称")
private String name;
/**
* ID
*/
@Schema(title = "业务类型ID", type = "String", description = "业务类型ID")
private String clazzId;
/**
* ID
*/
@Schema(title = "围栏类型ID", type = "String", description = "围栏类型ID")
private String typeName;
/**
*

View File

@ -1,5 +1,11 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@ -12,56 +18,73 @@ import lombok.NoArgsConstructor;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障检测")
public class FaultCodeAddReq {
/**
*Id
*/
@Schema(description = "故障名称Id")
@TableId(value = "message_type_id", type = IdType.AUTO)
private long messageTypeId;
/**
*
*/
@Schema(description = "故障名称")
private String messageTypeName;
/**
*
*/
@Schema(description = "报文编码")
private String messageTypeCode;
/**
*
*/
@Schema(description = "故障码")
private String faultcodeNumber;
/**
* Id
*/
@Schema(description = "故障分类Id")
private long faulttypeId;
/**
*
*/
@Schema(description = "是否产生报警")
private Integer isWarning;
/**
*
*/
@Schema(description = "故障描述")
private String faultContent;
/**
*
*/
@Schema(description = "故障组")
private String faultGroup;
/**
*
*/
@Schema(description = "故障位")
private String faultBit;
/**
*
*/
@Schema(name = "故障值")
private String faultValue;
/**
*
*/
@Schema(name = "报文所属类别")
private String messageTypeBelongs;

View File

@ -1,10 +1,14 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -14,27 +18,36 @@ import lombok.NoArgsConstructor;
* @description:
*/
/**
*
*/
@Tag(name = "故障码列表请求对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@SuperBuilder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障码列表请求对象")
public class FaultCodeListReq {
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
*
*/
@Schema(name = "故障位")
private String faultBit;
/**
* 1
*/
@Schema(name = "页码")
private Integer pageNum=1;
/**
*
*/
@Schema(name = "每页大小")
private Integer pageSize=10;

View File

@ -1,9 +1,15 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -12,63 +18,83 @@ import lombok.NoArgsConstructor;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@SuperBuilder
@TableName(value = "fault_code_upd_req", autoResultMap = true)
@Tag(name = "故障码更新请求参数")
public class FaultCodeUpdReq {
/**
*Id
*/
@TableId(value = "faultcode_id", type = IdType.AUTO)
@Schema(title = "故障码Id")
private long faultcodeId;
/**
*Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
*
*/
@Schema(name = "故障名称")
private String messageTypeName;
/**
*
*/
@Schema(name = "报文编码")
private String messageTypeCode;
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
* Id
*/
@Schema(name = "故障分类Id")
private long faulttypeId;
/**
*
*/
@Schema(name = "是否产生报警")
private Integer isWarning;
/**
*
*/
@Schema(name = "故障描述")
private String faultContent;
/**
*
*/
@Schema(name = "故障状态")
private Integer faultStatus;
/**
*
*/
@Schema(name = "故障组")
private String faultGroup;
/**
*
*/
@Schema(name = "故障位")
private String faultBit;
/**
*
*/
@Schema(name = "故障值")
private String faultValue;
/**
*
*/
@Schema(name = "报文所属类别")
private String messageTypeBelongs;

View File

@ -1,9 +1,16 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
@ -14,30 +21,42 @@ import java.math.BigDecimal;
* @Version: 1.0
* @description:
*/
/**
* Id
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "fault_condition", autoResultMap = true)
@Tag(name = "故障规则添加请求对象")
public class FaultConditionAddReq {
/**
* Id
*/
@TableId(value = "id", type = IdType.AUTO)
@Schema(title = "故障规则表Id")
private long carconditionId;
/**
* Id
*/
@Schema(name = "车辆类型Id")
private long carTypeId;
/**
*Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
*
*/
@Schema(name = "故障条件")
private String faultconditionIdentification;
/**
*
*/
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter;
}

View File

@ -1,10 +1,16 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @className: FaultLog
@ -13,28 +19,38 @@ import lombok.NoArgsConstructor;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Tag(name = "故障规则列表请求对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "fault_code_add_req", autoResultMap = true)
@Tag(name = "故障规则列表请求对象")
public class FaultConditionListReq {
/**
* Id
*/
@TableId(value = "car_type_id", type = IdType.INPUT)
@Schema (description = "车辆类型Id")
private long carTypeId;
/**
*Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
* 1
*/
@Schema(name = "页码")
private Integer pageNum=1;
/**
*
*/
@Schema(name = "每页大小")
private Integer pageSize=10;
}

View File

@ -1,9 +1,17 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
@ -14,30 +22,41 @@ import java.math.BigDecimal;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "fault_condition", autoResultMap = true)
@Tag(name = "故障规则修改请求对象")
public class FaultConditionUpdReq {
/**
* Id
*/
@TableId(value = "carcondition_id", type = IdType.ASSIGN_ID)
@Schema(name = "故障规则表Id")
private long carconditionId;
/**
* Id
*/
@Schema(name = "车辆类型Id")
private long carTypeId;
/**
/**
*Id
*/
@Schema(name = "故障名称Id")
private long messageTypeId;
/**
*
*/
@Schema(name = "故障条件")
private String faultconditionIdentification;
/**
*
*/
@Schema(name = "故障规则参数")
private BigDecimal faultconditionParameter;
}

View File

@ -1,12 +1,18 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@ -17,20 +23,28 @@ import java.util.Date;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Tag(name = "故障日志列表请求对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "fault_log",autoResultMap = true)
public class FaultLogListReq {
/**
* Id
*/
@TableId(value = "type", type = IdType.AUTO)
@Schema(description = "故障码Id",example = "1")
private long faultcodeId;
/**
* VIN
*/
@Schema(name = "车辆VIN")
private String carVin;
/**
*

View File

@ -1,31 +1,42 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageTemplateAddReq
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/19
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "新增报文模版请求参数", description = "根据入参进行报文模版的添加")
@TableName("message_template")
public class MessageTemplateAddReq {
/**
*
*/
@Schema(name = "报文模版名称")
private String messageTemplateName;
/**
*
*/
@Schema(name = "报文模版描述")
private String messageTemplateDescribe;
}

View File

@ -1,51 +1,69 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageValueAddReq
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/19
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "新增报文数据请求参数", description = "根据入参进行报文数据的添加")
@TableName(value = "message_value", autoResultMap = true)
public class MessageValueAddReq {
/**
*
*/
@TableId(value = "template_id",type = IdType.INPUT)
@Schema(description = "模版主键")
private Long templateId;
/**
*
*/
@Schema(name = "报文类别")
private String messageType;
/**
*
*/
@Schema(name = "报文编码")
private String messageCode;
/**
*
*/
@Schema(name = "报文标签")
private String messageLabel;
/**
*
*/
@Schema(name = "起始下标")
private Integer messageStartIndex;
/**
*
*/
@Schema(name = "终止下标")
private Integer messageEndIndex;
}

View File

@ -1,23 +1,31 @@
package com.muyu.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* @ClassName MessageValueReq
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/19
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "报文数据请求参数", description = "根据入参进行报文数据的查询")
@TableName(value = "message_value_req",autoResultMap = true)
public class MessageValueReq {
/** 报文模版主键 */

View File

@ -4,10 +4,9 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -15,7 +14,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/**
* sys_car
*
* @author Li HD
* @author LiHD
* @date 2024-09-18
*/
@ -25,34 +24,44 @@ import org.apache.commons.lang3.builder.ToStringStyle;
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_car", autoResultMap = true)
@Tag(name = "车辆基础信息对象")
public class SysCar extends BaseEntity{
/** 自增主键 */
@TableId( type = IdType.AUTO)
@Schema(title = "自增主键")
private Long id;
/** 车辆VIN码 */
@Schema(title = "车辆VIN码")
private String carVin;
/** 车辆车牌号 */
@Schema(title = "车辆车牌号")
private String carPlate;
/** 车辆品牌 */
@Schema(title = "车辆品牌")
private String carBrand;
/** 车辆型号 */
@Schema(title = "车辆型号")
private String carModel;
/** 车辆类型 */
@Schema(title = "车辆类型")
private Integer carType;
/** 策略ID */
@Schema(title = "策略ID")
private Integer warnStrategy;
/** 围栏组编码 */
@Schema(title = "围栏组编码")
private String groupCode;
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
@Schema(title = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)")
private Integer state;

View File

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

View File

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

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -15,16 +17,24 @@ import java.util.List;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Tag(name="数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_code",autoResultMap = true)
public class FaultCodeTotalListResp {
@Schema(name = "数据列表")
private List<FaultCodeListResp> faultCodeListRespList;
/**
*
*/
@Schema(name = "总数")
private long total;
public static FaultCodeTotalListResp faultCodeTotalListResp(List<FaultCodeListResp> faultCodeListRespList,long total){

View File

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

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -15,15 +17,22 @@ import java.util.List;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Tag(name="故障规则数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_condition",autoResultMap = true)
public class FaultConditionTotalListResp {
@Schema(description = "故障规则数据列表")
private List<FaultConditionListResp> faultConditionListRespList;
@Schema(description = "故障规则数据总数")
private long total;
public static FaultConditionTotalListResp faultConditionTotalListResp(List<FaultConditionListResp> faultConditionListRespList,long total){

View File

@ -1,12 +1,17 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.domain.FaultLog;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@ -17,28 +22,39 @@ import java.util.Date;
* @Version: 1.0
* @description:
*/
/**
*
*/
@Data
@Builder
@AllArgsConstructor
@Tag(name="故障日志信息响应对象",description = "故障日志的响应结果")
@NoArgsConstructor
@TableName(value = "car_fault_log",autoResultMap = true)
public class FaultLogListResp {
/**
* Id
*/
@TableId(value = "log_id",type = IdType.AUTO)
@Schema(description = "故障日志Id",example = "1")
private long logId;
/**
* Id
*/
@Schema(name = "故障码Id")
private long faultcodeId;
/**
* Id
*/
@Schema(name = "车辆Id")
private long carInformationId;
/**
* VIN
*/
@Schema(name = "车辆VIN")
private String carVin;
/**
*
@ -55,10 +71,12 @@ public class FaultLogListResp {
/**
*
*/
@Schema(name = "故障码")
private String faultcodeNumber;
/**
* vin
*/
@Schema(name = "车辆vin")
private String carInformationVIN;

View File

@ -1,5 +1,7 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -16,15 +18,21 @@ import java.util.List;
* @description:
*/
/**
*
*/
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Tag(name="故障日志数据总数列表",description = "数据和总数的响应")
@TableName(value = "fault_log",autoResultMap = true)
public class FaultLogTotalListResp {
@Schema(description = "故障日志列表")
private List<FaultLogListResp> faultLogListRespList;
@Schema(description = "总数")
private long total;
public static FaultLogTotalListResp faultLogTotalListResp(List<FaultLogListResp> faultLogListRespList,long total){

View File

@ -1,6 +1,10 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.MessageTemplate;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -10,29 +14,38 @@ import lombok.NoArgsConstructor;
/**
* @ClassName MessageTemplateListResp
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/19
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "报文模版列表", description = "负责报文模版管理列表的相应数据")
@TableName(value = "message_template", autoResultMap = true)
public class MessageTemplateListResp {
/**
*
*/
@Schema(description = "报文模版主键")
@TableId(value = "message_template_id", type = IdType.AUTO)
private String messageTemplateId;
/**
*
*/
@Schema(description = "报文模版名称")
private String messageTemplateName;
/**
*
*/
@Schema(description = "报文模版描述")
private String messageTemplateDescribe;
/**

View File

@ -1,6 +1,10 @@
package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.domain.MessageValue;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -10,44 +14,56 @@ import lombok.NoArgsConstructor;
/**
* @ClassName MessageValueListResp
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/19
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "报文数据列表", description = "负责报文数据管理列表的相应数据")
@TableName(value = "message_value", autoResultMap = true)
public class MessageValueListResp {
/**
*
*/
@TableId(value = "message_id", type = IdType.AUTO)
@Schema(description = "报文数据主键",example = "1")
private Long messageId;
/**
*
*/
@Schema(description = "报文类别",example = "1")
private String messageType;
/**
*
*/
@Schema(description = "报文编码",example = "1")
private String messageCode;
/**
*
*/
@Schema(description = "报文标签",example = "1")
private String messageLabel;
/**
*
*/
@Schema(description = "起始下标",example = "1")
private Integer messageStartIndex;
/**
*
*/
@Schema(description = "终止下标",example = "1")
private Integer messageEndIndex;
public static MessageValueListResp valueBuild(MessageValue messageValue){

View File

@ -2,6 +2,8 @@ package com.muyu.domain.resp;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
@ -11,65 +13,80 @@ import lombok.NoArgsConstructor;
/**
* @ClassName SysCarResp
* @Description TODO
* @Author Li HD
* @Author LiHD
* @Date 2024/9/25 20:14
*/
/**
*
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "车辆类型信息", description = "车辆类型")
@TableName(value = "sys_car", autoResultMap = true)
public class SysCarResp {
/**
*
*/
@TableId(type = IdType.AUTO)
@Schema(description = "自增主键")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* VIN
*/
@Schema(description = "车辆VIN码")
private String carVin;
/**
*
*/
@Schema(description = "车辆车牌号")
private String carPlate;
/**
*
*/
@Schema(description = "车辆品牌")
private String carBrand;
/**
*
*/
@Schema(description = "车辆型号")
private String carModel;
/**
*
*/
@Schema(description = "车辆类型")
private Integer carType;
/**
*
*/
@Schema(description = "车辆类型名称")
private String sysTypeName;
/**
* ID
*/
@Schema(description = "策略ID")
private Integer warnStrategy;
/**
*
*/
@Schema(description = "围栏组编码")
private String groupCode;
/**
*
*/
@Schema(description = "启用状态")
private Integer state;
@Override

View File

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

View File

@ -5,11 +5,12 @@ import com.muyu.domain.CarFenceClazz;
import org.apache.ibatis.annotations.Mapper;
/**
* @Authoryang
* @Packagecom.muyu.server.mapper
* @Projectcloud-electronic
* @nameCarFenceClazzMapper
* @Date2024/9/17 17:34
* Mapper
* * @Authoryang
* * @Packagecom.muyu.server.mapper
* * @Projectcloud-electronic
* * @nameCarFenceClazzMapper
* * @Date2024/9/17 17:34
*/
@Mapper
public interface CarFenceClazzMapper extends BaseMapper<CarFenceClazz> {

View File

@ -5,11 +5,12 @@ import com.muyu.domain.CarFence;
import org.apache.ibatis.annotations.Mapper;
/**
* @Authoryang
* @Packagecom.muyu.server.mysql
* @Projectcloud-electronic
* @nameCarFenceServiceMapper
* @Date2024/9/17 17:13
* Mapper
* * @Authoryang
* * @Packagecom.muyu.server.mysql
* * @Projectcloud-electronic
* * @nameCarFenceServiceMapper
* * @Date2024/9/17 17:13
*/
@Mapper
public interface CarFenceMapper extends BaseMapper<CarFence> {

View File

@ -11,11 +11,12 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Authoryan
* @Packagecom.muyu.car.mapper
* @Projectplues
* @nameCarFenceServiceMybaitsMapper
* @Date2024/9/22 19:25
* Mybatis
* * @Authoryan
* * @Packagecom.muyu.car.mapper
* * @Projectplues
* * @nameCarFenceServiceMybaitsMapper
* * @Date2024/9/22 19:25
*/
@Mapper
public interface CarFenceServiceMybaitsMapper {

View File

@ -5,11 +5,12 @@ import com.muyu.domain.CarFenceType;
import org.apache.ibatis.annotations.Mapper;
/**
* @Authoryang
* @Packagecom.muyu.server.mapper
* @Projectcloud-electronic
* @nameCarFenceTypeMapper
* @Date2024/9/17 17:32
* Mapper
* * @Authoryang
* * @Packagecom.muyu.server.mapper
* * @Projectcloud-electronic
* * @nameCarFenceTypeMapper
* * @Date2024/9/17 17:32
*/
@Mapper
public interface CarFenceTypeMapper extends BaseMapper<CarFenceType> {

View File

@ -5,11 +5,16 @@ import com.muyu.domain.CarType;
import org.apache.ibatis.annotations.Mapper;
/**
* @className: CarTypeMapper
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*/
/**
*
* * @className: CarTypeMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface CarTypeMapper extends BaseMapper<CarType> {

View File

@ -13,11 +13,12 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @className: FaultCodeMapper
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultCodeMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface FaultCodeMapper extends BaseMapper<FaultCodeVo> {

View File

@ -9,11 +9,12 @@ import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @className: FaultConditionMapper
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultConditionMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface FaultConditionMapper extends BaseMapper<FaultCondition> {

View File

@ -1,11 +0,0 @@
package com.muyu.mapper;
/**
* @className: FaultDetectionStrategyMapper
* @author: Yang 🦅
* @date: 2024/9/23 23:59
* @Version: 1.0
* @description:
*/
public interface FaultDetectionStrategyMapper {
}

View File

@ -5,11 +5,12 @@ import com.muyu.domain.FaultLabel;
import org.apache.ibatis.annotations.Mapper;
/**
* @className: FaultLabelMapper
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultLabelMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface FaultLabelMapper extends BaseMapper<FaultLabel> {

View File

@ -8,11 +8,12 @@ import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @className: FaultLog
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultLogMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface FaultLogMapper extends BaseMapper<FaultLog> {

View File

@ -5,11 +5,12 @@ import com.muyu.domain.FaultRule;
import org.apache.ibatis.annotations.Mapper;
/**
* @className: FaultRuleMapper
* @author: Yang 🦅
* @date: 2024/9/23 21:06
* @Version: 1.0
* @description:
*
* * @className: FaultRuleMapper
* * @author: Yang 🦅
* * @date: 2024/9/23 21:06
* * @Version: 1.0
* * @description:
*/
@Mapper
public interface FaultRuleMapper extends BaseMapper<FaultRule> {

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