feax:()修改代码规范(注释,swagger文档)
parent
06815c8552
commit
2c3197fac9
|
@ -1,18 +1,23 @@
|
|||
package com.muyu.enterprise.domain;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
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.web.domain.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description FaultLog:故障日志
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -3,7 +3,6 @@ package com.muyu.enterprise.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 lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
@ -13,6 +12,11 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description FaultMessage:站内信
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
package com.muyu.enterprise.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 lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "fault_notify",autoResultMap = true)
|
||||
public class FaultNotify {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(value = "fault_notify_id", type= IdType.AUTO)
|
||||
@Schema(defaultValue = "ID",type = "Long",description = "ID")
|
||||
private Long faultNotifyId;
|
||||
/**
|
||||
* 通知方
|
||||
*/
|
||||
@Schema(defaultValue = "通知方",type = "String",description = "通知方")
|
||||
private String faultNotifyParty;
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
@Schema(defaultValue = "联系方式",type = "String",description = "联系方式")
|
||||
private String faultNotifyManner;
|
||||
}
|
|
@ -6,11 +6,14 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
|||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description FaultSeverity:故障等级
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -3,13 +3,16 @@ package com.muyu.enterprise.domain;
|
|||
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 lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description FaultType:故障类型
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -7,7 +7,11 @@ import com.muyu.common.core.web.domain.BaseEntity;
|
|||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description FaultrRule:故障规则
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@AllArgsConstructor
|
||||
|
|
|
@ -5,9 +5,17 @@ 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 jakarta.validation.constraints.NotNull;
|
||||
import lombok.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.23
|
||||
* @Description SysCarFault:故障表
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
|
|
|
@ -11,6 +11,11 @@ import org.springframework.web.bind.annotation.*;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 11:58
|
||||
* @Description FaultLogController:故障日志控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/log")
|
||||
@Tag(name = "故障日志",description = "对故障记录日志")
|
||||
|
|
|
@ -10,7 +10,11 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 11:58
|
||||
* @Description FaultMessageController:站内信控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fault-message")
|
||||
@Tag(name = "站内信的管理",description = "对站内信息的处理与查看")
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package com.muyu.enterprise.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.enterprise.domain.FaultType;
|
||||
import com.muyu.enterprise.service.FaultTypeService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
@ -11,6 +9,11 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 11:58
|
||||
* @Description FaultTypeController:故障类型控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/type")
|
||||
@Tag(name = "故障类型",description = "对故障类型的定义")
|
||||
|
|
|
@ -10,7 +10,11 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 11:58
|
||||
* @Description FaultrRuleController:故障的规则控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rule")
|
||||
@Tag(name = "故障的规则",description = "对故障数据规则的判断")
|
||||
|
|
|
@ -20,6 +20,11 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 11:58
|
||||
* @Description SysCarFaultController:故障管理控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/faultInfo")
|
||||
@Tag(name = "故障管理",description = "故障的管理与查看")
|
||||
|
|
|
@ -4,7 +4,11 @@ package com.muyu.enterprise.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.enterprise.domain.FaultLog;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.17
|
||||
* @Description FaultLogMapper:故障日志持久层
|
||||
*/
|
||||
@Mapper
|
||||
public interface FaultLogMapper extends BaseMapper<FaultLog> {
|
||||
}
|
||||
|
|
|
@ -2,6 +2,13 @@ package com.muyu.enterprise.mapper;
|
|||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.enterprise.domain.FaultMessage;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.17
|
||||
* @Description FaultMessageMapper:站内信持久层
|
||||
*/
|
||||
@Mapper
|
||||
public interface FaultMessageMapper extends BaseMapper<FaultMessage> {
|
||||
}
|
||||
|
|
|
@ -3,7 +3,11 @@ package com.muyu.enterprise.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.enterprise.domain.FaultType;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.17
|
||||
* @Description FaultTypeMapper:故障类型持久层
|
||||
*/
|
||||
@Mapper
|
||||
public interface FaultTypeMapper extends BaseMapper<FaultType> {
|
||||
}
|
||||
|
|
|
@ -4,7 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
import com.muyu.enterprise.domain.FaultrRule;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.17
|
||||
* @Description FaultrRuleMapper:故障规则持久层
|
||||
*/
|
||||
@Mapper
|
||||
public interface FaultrRuleMapper extends BaseMapper<FaultrRule> {
|
||||
}
|
||||
|
|
|
@ -3,6 +3,13 @@ package com.muyu.enterprise.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.enterprise.domain.SysCarFault;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.17
|
||||
* @Description SysCarFaultMapper:故障管理持久层
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysCarFaultMapper extends BaseMapper<SysCarFault>{
|
||||
}
|
||||
|
|
|
@ -5,6 +5,11 @@ import com.muyu.enterprise.domain.FaultLog;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultLogService:故障日志业务层
|
||||
*/
|
||||
public interface FaultLogService extends IService<FaultLog> {
|
||||
List<FaultLog> faultLogList(FaultLog faultLog);
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.muyu.enterprise.domain.FaultMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultMessageService:站内信业务层
|
||||
*/
|
||||
public interface FaultMessageService extends IService<FaultMessage> {
|
||||
|
||||
List<FaultMessage> selectOne();
|
||||
|
|
|
@ -4,7 +4,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.muyu.enterprise.domain.FaultType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultTypeService:故障类型业务层
|
||||
*/
|
||||
public interface FaultTypeService extends IService<FaultType> {
|
||||
List<FaultType> faultTypeList(FaultType faultType);
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.muyu.enterprise.domain.FaultrRule;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultrRuleService:故障规则业务层
|
||||
*/
|
||||
public interface FaultrRuleService extends IService<FaultrRule> {
|
||||
List<FaultrRule> faultRuleList(FaultrRule faultrRule);
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.muyu.enterprise.domain.SysCarFault;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description SysCarFaultService:故障管理业务层
|
||||
*/
|
||||
public interface SysCarFaultService extends IService<SysCarFault> {
|
||||
/**
|
||||
* 精确查询车辆故障
|
||||
|
|
|
@ -10,7 +10,11 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultLogServiceImpl:故障日志业务实现层
|
||||
*/
|
||||
@Service
|
||||
public class FaultLogServiceImpl extends ServiceImpl<FaultLogMapper, FaultLog> implements FaultLogService {
|
||||
@Override
|
||||
|
|
|
@ -10,7 +10,11 @@ import com.muyu.enterprise.service.FaultMessageService;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultMessageServiceImpl:站内信业务实现层
|
||||
*/
|
||||
@Service
|
||||
public class FaultMessageServiceImpl extends ServiceImpl<FaultMessageMapper, FaultMessage> implements FaultMessageService {
|
||||
|
||||
|
|
|
@ -9,7 +9,11 @@ import com.muyu.enterprise.service.FaultTypeService;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultTypeServiceImpl:故障类型业务实现层
|
||||
*/
|
||||
@Service
|
||||
public class FaultTypeServiceImpl extends ServiceImpl<FaultTypeMapper, FaultType> implements FaultTypeService {
|
||||
@Override
|
||||
|
|
|
@ -10,7 +10,11 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description FaultrRuleServiceImpl:故障规则业务实现层
|
||||
*/
|
||||
@Service
|
||||
public class FaultrRuleServiceImpl extends ServiceImpl<FaultrRuleMapper, FaultrRule> implements FaultrRuleService {
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
import com.muyu.common.core.utils.StringUtils;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
|
||||
/**
|
||||
* @Author: chenruijia
|
||||
* @Date 2024/9/28 12.19
|
||||
* @Description SysCarFaultServiceImpl:故障管理业务实现层
|
||||
*/
|
||||
@Service
|
||||
public class SysCarFaultServiceImpl
|
||||
extends ServiceImpl<SysCarFaultMapper, SysCarFault>
|
||||
|
|
Loading…
Reference in New Issue