feax:()修改代码规范

dev.entOperation
crj 2024-09-28 22:14:45 +08:00
parent cd46940e70
commit 2d0f557398
5 changed files with 106 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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",)
} }