Commit 35a12266 authored by hkl's avatar hkl

feat:1.动静态分析-参数配置

parent 07b32002
...@@ -29,8 +29,7 @@ public class CodeGenerate { ...@@ -29,8 +29,7 @@ public class CodeGenerate {
// 表名 // 表名
String[] tables = { String[] tables = {
"t_dsa_analysis_batch", "t_dsa_config_grade_limit",
"t_dsa_analysis_batch_check_data_map",
}; };
......
package org.jeecg.modules.dynamicStaticAnalysis.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck;
import org.jeecg.modules.dynamicStaticAnalysis.service.IConfigGradeLimitService;
import org.springframework.web.bind.annotation.*;
import org.jeecg.common.system.base.controller.JeecgController;
import java.util.List;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping("/dynamicStaticAnalysis/configGradeLimit")
@Api(tags = "动静态分析-配置参数-单元化管理阈值")
public class ConfigGradeLimitController extends JeecgController<ConfigGradeLimit, IConfigGradeLimitService> {
@AutoLog(value = "动静态分析-配置参数-轨检车检查超限权值-获取记录")
@ApiOperation(value = "动静态分析-配置参数-轨检车检查超限权值-获取记录", notes = "动静态分析-配置参数-轨检车检查超限权值-获取记录")
@GetMapping(value = "/listRecord")
public Result<List<ConfigGradeLimit>> listRecord() {
List<ConfigGradeLimit> records = this.service.listRecord();
return Result.OK(records);
}
@AutoLog(value = "动静态分析-配置参数-轨检车检查超限权值-更新参数")
@ApiOperation(value = "动静态分析-配置参数-轨检车检查超限权值-更新参数", notes = "动静态分析-配置参数-轨检车检查超限权值-更新参数")
@PostMapping(value = "/updateRecord")
public Result<String> updateRecord(@RequestBody ConfigGradeLimit record) {
this.service.updateById(record);
return Result.OK("操作成功");
}
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-单元化管理阈值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName("t_dsa_config_grade_limit")
@ApiModel(value = "ConfigGradeLimit对象", description = "动静态分析-配置-单元化管理阈值")
public class ConfigGradeLimit implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
@TableId("id")
private String id;
@ApiModelProperty("创建人")
@TableField("create_by")
private String createBy;
@ApiModelProperty("创建日期")
@TableField("create_time")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
private Date updateTime;
@ApiModelProperty("速度下限")
@TableField("speed_min")
private Integer speedMin;
@ApiModelProperty("速度上限")
@TableField("speed_max")
private Integer speedMax;
@ApiModelProperty("数据字典值")
@TableField("dict_value")
private String dictValue;
@ApiModelProperty("数据字典标签")
@TableField("dict_label")
private String dictLabel;
@ApiModelProperty("评价等级 1-优良 2-合格 3-失格 ")
@TableField("grade_level")
private Integer gradeLevel;
@ApiModelProperty("最小评分")
@TableField("grade_min")
private Integer gradeMin;
@ApiModelProperty("最大评分")
@TableField("grade_max")
private Integer gradeMax;
@ApiModelProperty("设备类型 1-钢轨 2-道岔 3-曲线 4-竖曲线")
@TableField("device_type")
private Integer deviceType;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
@TableField("del_flag")
private String delFlag;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.mapper;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public interface ConfigGradeLimitMapper extends BaseMapper<ConfigGradeLimit> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigGradeLimitMapper">
</mapper>
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigInstrumentCheck对象", description = "动静态分析-配置-添乘仪检查超限权值")
public class ConfigInstrumentCheckDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
private Date updateTime;
@ApiModelProperty("速度等级")
private String speedExpression;
@ApiModelProperty("速度下限")
private Integer speedMin;
@ApiModelProperty("速度上限")
private Integer speedMax;
@ApiModelProperty("数据字典值")
private String dictValue;
@ApiModelProperty("数据字典标签")
private String dictLabel;
@ApiModelProperty("钢轨")
private String rail;
@ApiModelProperty("曲线")
private String curve;
@ApiModelProperty("竖曲线")
private String verticalCurve;
@ApiModelProperty("道岔")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
private String delFlag;
@ApiModelProperty("备注")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigInstrumentCheck对象", description = "动静态分析-配置-添乘仪检查超限权值")
public class ConfigInstrumentCheckVO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
@TableId("id")
private String id;
@ApiModelProperty("创建人")
@TableField("create_by")
private String createBy;
@ApiModelProperty("创建日期")
@TableField("create_time")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
private Date updateTime;
@ApiModelProperty("速度等级")
@TableField("speed_expression")
private String speedExpression;
@ApiModelProperty("速度下限")
@TableField("speed_min")
private Integer speedMin;
@ApiModelProperty("速度上限")
@TableField("speed_max")
private Integer speedMax;
@ApiModelProperty("数据字典值")
@TableField("dict_value")
private String dictValue;
@ApiModelProperty("数据字典标签")
@TableField("dict_label")
private String dictLabel;
@ApiModelProperty("钢轨")
@TableField("rail")
private String rail;
@ApiModelProperty("曲线")
@TableField("curve")
private String curve;
@ApiModelProperty("竖曲线")
@TableField("vertical_curve")
private String verticalCurve;
@ApiModelProperty("道岔")
@TableField("rail_switch")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
@TableField("del_flag")
private String delFlag;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailDeviceCheck对象", description = "动静态分析-配置-轨检仪检查超限权值")
public class ConfigRailDeviceCheckDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
private Date updateTime;
@ApiModelProperty("钢轨")
private String rail;
@ApiModelProperty("曲线")
private String curve;
@ApiModelProperty("竖曲线")
private String verticalCurve;
@ApiModelProperty("道岔")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
private String delFlag;
@ApiModelProperty("备注")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailDeviceCheck对象", description = "动静态分析-配置-轨检仪检查超限权值")
public class ConfigRailDeviceCheckVO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
@TableId("id")
private String id;
@ApiModelProperty("创建人")
@TableField("create_by")
private String createBy;
@ApiModelProperty("创建日期")
@TableField("create_time")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
private Date updateTime;
@ApiModelProperty("钢轨")
@TableField("rail")
private String rail;
@ApiModelProperty("曲线")
@TableField("curve")
private String curve;
@ApiModelProperty("竖曲线")
@TableField("vertical_curve")
private String verticalCurve;
@ApiModelProperty("道岔")
@TableField("rail_switch")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
@TableField("del_flag")
private String delFlag;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailVehicleCheck对象", description = "动静态分析-配置-轨检车检查超限权值")
public class ConfigRailVehicleCheckDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
private Date updateTime;
@ApiModelProperty("速度等级")
private String speedExpression;
@ApiModelProperty("速度下限")
private Integer speedMin;
@ApiModelProperty("速度上限")
private Integer speedMax;
@ApiModelProperty("钢轨")
private String rail;
@ApiModelProperty("曲线")
private String curve;
@ApiModelProperty("竖曲线")
private String verticalCurve;
@ApiModelProperty("道岔")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
private String delFlag;
@ApiModelProperty("备注")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailVehicleCheck对象", description = "动静态分析-配置-轨检车检查超限权值")
public class ConfigRailVehicleCheckVO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
@TableId("id")
private String id;
@ApiModelProperty("创建人")
@TableField("create_by")
private String createBy;
@ApiModelProperty("创建日期")
@TableField("create_time")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
private Date updateTime;
@ApiModelProperty("速度等级")
@TableField("speed_expression")
private String speedExpression;
@ApiModelProperty("速度下限")
@TableField("speed_min")
private Integer speedMin;
@ApiModelProperty("速度上限")
@TableField("speed_max")
private Integer speedMax;
@ApiModelProperty("钢轨")
@TableField("rail")
private String rail;
@ApiModelProperty("曲线")
@TableField("curve")
private String curve;
@ApiModelProperty("竖曲线")
@TableField("vertical_curve")
private String verticalCurve;
@ApiModelProperty("道岔")
@TableField("rail_switch")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
@TableField("del_flag")
private String delFlag;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailVehicleTql对象", description = "动静态分析-配置-轨检车TQI超限权值")
public class ConfigRailVehicleTqlDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
private Date updateTime;
@ApiModelProperty("速度等级")
private String speedExpression;
@ApiModelProperty("速度下限")
private Integer speedMin;
@ApiModelProperty("速度上限")
private Integer speedMax;
@ApiModelProperty("钢轨")
private String rail;
@ApiModelProperty("曲线")
private String curve;
@ApiModelProperty("竖曲线")
private String verticalCurve;
@ApiModelProperty("道岔")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
private String delFlag;
@ApiModelProperty("备注")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@ApiModel(value = "ConfigRailVehicleTql对象", description = "动静态分析-配置-轨检车TQI超限权值")
public class ConfigRailVehicleTqlVO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
@TableId("id")
private String id;
@ApiModelProperty("创建人")
@TableField("create_by")
private String createBy;
@ApiModelProperty("创建日期")
@TableField("create_time")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
private Date updateTime;
@ApiModelProperty("速度等级")
@TableField("speed_expression")
private String speedExpression;
@ApiModelProperty("速度下限")
@TableField("speed_min")
private Integer speedMin;
@ApiModelProperty("速度上限")
@TableField("speed_max")
private Integer speedMax;
@ApiModelProperty("钢轨")
@TableField("rail")
private String rail;
@ApiModelProperty("曲线")
@TableField("curve")
private String curve;
@ApiModelProperty("竖曲线")
@TableField("vertical_curve")
private String verticalCurve;
@ApiModelProperty("道岔")
@TableField("rail_switch")
private String railSwitch;
@ApiModelProperty("是否删除(0:未删除; 1:已删除)")
@TableField("del_flag")
private String delFlag;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
}
package org.jeecg.modules.dynamicStaticAnalysis.service;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public interface IConfigGradeLimitService extends IService<ConfigGradeLimit> {
List<ConfigGradeLimit> listRecord();
}
package org.jeecg.modules.dynamicStaticAnalysis.service.impl;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit;
import org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigGradeLimitMapper;
import org.jeecg.modules.dynamicStaticAnalysis.service.IConfigGradeLimitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public class ConfigGradeLimitServiceImpl extends ServiceImpl<ConfigGradeLimitMapper, ConfigGradeLimit> implements IConfigGradeLimitService {
@Override
public List<ConfigGradeLimit> listRecord() {
List<ConfigGradeLimit> list = this.lambdaQuery().eq(ConfigGradeLimit::getDelFlag, "0").list();
return list;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment