feax:()修改代码规范
parent
cd46940e70
commit
2d0f557398
|
@ -42,6 +42,11 @@ public class SysCarFault extends BaseEntity {
|
||||||
*/
|
*/
|
||||||
@Schema(defaultValue = "车辆故障类型ID",type = "Integer",description = "车辆故障类型ID")
|
@Schema(defaultValue = "车辆故障类型ID",type = "Integer",description = "车辆故障类型ID")
|
||||||
private Integer faultTypeId;
|
private Integer faultTypeId;
|
||||||
|
/**
|
||||||
|
* 车辆故障规则ID
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障规则ID",type = "Integer",description = "车辆故障规则ID")
|
||||||
|
public Integer faultRuleId;
|
||||||
/**
|
/**
|
||||||
* 故障VIN编码
|
* 故障VIN编码
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -0,0 +1,96 @@
|
||||||
|
package com.muyu.enterprise.domain.resp;
|
||||||
|
|
||||||
|
import com.muyu.common.core.annotation.Excel;
|
||||||
|
import com.muyu.enterprise.domain.SysCarFault;
|
||||||
|
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.function.Supplier;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障返回
|
||||||
|
* @author chenruijia
|
||||||
|
* @Date 2024/9/28 21:11
|
||||||
|
* @Description FaultResp:故障返回
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Tag(name = "故障返回")
|
||||||
|
public class FaultResp {
|
||||||
|
/**
|
||||||
|
* 车辆故障码
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障码",type = "String",description = "车辆故障码")
|
||||||
|
private String faultCode;
|
||||||
|
/**
|
||||||
|
* 车辆故障那类型ID
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障那类型ID",type = "Integer",description = "车辆故障类型ID")
|
||||||
|
private Integer faultTypeId;
|
||||||
|
/**
|
||||||
|
* 车辆故障规则ID
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障规则ID",type = "Integer",description = "车辆故障规则ID")
|
||||||
|
public Integer faultRuleId;
|
||||||
|
/**
|
||||||
|
* 故障VIN编码
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障VIN编码",type = "String",description = "故障VIN编码")
|
||||||
|
public String carVin;
|
||||||
|
/**
|
||||||
|
* 车辆故障标签
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障标签",type = "String",description = "车辆故障标签")
|
||||||
|
public String faultLabel;
|
||||||
|
/**
|
||||||
|
* 车辆故障位
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障位",type = "String",description = "车辆故障位")
|
||||||
|
public String faultBit;
|
||||||
|
/**
|
||||||
|
* 车辆故障值
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "车辆故障值",type = "String",description = "车辆故障值")
|
||||||
|
public String faultValue;
|
||||||
|
/**
|
||||||
|
* v
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障级别",type = "String",description = "故障级别")
|
||||||
|
public String faultWarn;
|
||||||
|
/**
|
||||||
|
* 报警状态
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "报警状态",type = "String",description = "报警状态")
|
||||||
|
public String warnStatus;
|
||||||
|
/**
|
||||||
|
* 故障描述信息
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障描述信息",type = "String",description = "故障描述信息")
|
||||||
|
public String faultDesc;
|
||||||
|
/**
|
||||||
|
* 启用状态
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "启用状态",type = "Integer",description = "启用状态")
|
||||||
|
public Integer state;
|
||||||
|
/**
|
||||||
|
* 故障规则名称
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障规则名称",type = "String",description = "故障规则名称")
|
||||||
|
private String faultRuleName;
|
||||||
|
/**
|
||||||
|
* 故障规则参数
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障规则参数",type = "String",description = "故障规则参数")
|
||||||
|
private String faultRuleParameter;
|
||||||
|
/**
|
||||||
|
* 故障规则描述
|
||||||
|
*/
|
||||||
|
@Schema(defaultValue = "故障规则描述",type = "String",description = "故障规则描述")
|
||||||
|
private String faultRuleDescription;
|
||||||
|
}
|
|
@ -40,7 +40,7 @@ public class SysCarFaultController extends BaseController
|
||||||
* 查询车辆故障列表
|
* 查询车辆故障列表
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
||||||
public Result<List<SysCarFault>> list(SysCarFault sysCarFault)
|
public Result<List<SysCarFault>> list(@RequestBody SysCarFault sysCarFault)
|
||||||
{
|
{
|
||||||
List<SysCarFault> list = sysCarFaultService.selectSysCarFaultList(sysCarFault);
|
List<SysCarFault> list = sysCarFaultService.selectSysCarFaultList(sysCarFault);
|
||||||
return success(list);
|
return success(list);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.muyu.enterprise.mapper;
|
package com.muyu.enterprise.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.github.yulichang.base.MPJBaseMapper;
|
||||||
import com.muyu.enterprise.domain.SysCarFault;
|
import com.muyu.enterprise.domain.SysCarFault;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@ -12,5 +13,5 @@ import org.apache.ibatis.annotations.Mapper;
|
||||||
* @Description SysCarFaultMapper:故障管理持久层
|
* @Description SysCarFaultMapper:故障管理持久层
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface SysCarFaultMapper extends BaseMapper<SysCarFault>{
|
public interface SysCarFaultMapper extends MPJBaseMapper<SysCarFault> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,4 +113,6 @@ public class SysEntController extends BaseController {
|
||||||
sysEntService.removeById(entId);
|
sysEntService.removeById(entId);
|
||||||
return Result.success(null,Constants.SUCCESS_MESSAGE);
|
return Result.success(null,Constants.SUCCESS_MESSAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @RequestMapping(value = "findId",)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue