Commit 07b32002 authored by hkl's avatar hkl

feat:1.动静态分析

parent 6463efa2
...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck; import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck;
import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck; import org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck;
import org.jeecg.modules.dynamicStaticAnalysis.service.IConfigInstrumentCheckService; import org.jeecg.modules.dynamicStaticAnalysis.service.IConfigInstrumentCheckService;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -28,11 +29,14 @@ import java.util.List; ...@@ -28,11 +29,14 @@ import java.util.List;
public class ConfigInstrumentCheckController extends JeecgController<ConfigInstrumentCheck, IConfigInstrumentCheckService> { public class ConfigInstrumentCheckController extends JeecgController<ConfigInstrumentCheck, IConfigInstrumentCheckService> {
@AutoLog(value = "动静态分析-配置参数-添乘仪检查超限权值-获取记录") @AutoLog(value = "动静态分析-配置参数-添乘仪检查超限权值-获取记录")
@ApiOperation(value = "动静态分析-配置参数-添乘仪检查超限权值-获取记录", notes = "动静态分析-配置参数-轨检车检查超限权值-获取记录") @ApiOperation(value = "动静态分析-配置参数-添乘仪检查超限权值-获取记录", notes = "动静态分析-配置参数-添乘仪检查超限权值-获取记录")
@GetMapping(value = "/listRecord") @GetMapping(value = "/oneRecord")
public Result<List<ConfigInstrumentCheck>> listRecord() { public Result<ConfigInstrumentCheck> oneRecord() {
List<ConfigInstrumentCheck> records = this.service.listRecord(); ConfigInstrumentCheck oneRecord = this.service.lambdaQuery()
return Result.OK(records); .eq(ConfigInstrumentCheck::getDelFlag, 0)
.last("limit 1")
.one();
return Result.OK(oneRecord);
} }
@AutoLog(value = "动静态分析-配置参数-添乘仪检查超限权值-更新参数") @AutoLog(value = "动静态分析-配置参数-添乘仪检查超限权值-更新参数")
......
...@@ -46,26 +46,6 @@ public class ConfigInstrumentCheck implements Serializable { ...@@ -46,26 +46,6 @@ public class ConfigInstrumentCheck implements Serializable {
@TableField("update_time") @TableField("update_time")
private Date updateTime; 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("钢轨") @ApiModelProperty("钢轨")
@TableField("rail") @TableField("rail")
private String rail; private String rail;
......
{ {
"name": "添乘仪检查超限权值-曲线", "name": "添乘仪检查超限权值-曲线",
"verticalSpend": "0.01", "verticalSpend": "0.01",
"zontalSpeed": "0.01" "transverseSpend": "0.01"
} }
\ No newline at end of file
{ {
"name": "添乘仪检查超限权值-竖曲线", "name": "添乘仪检查超限权值-竖曲线",
"verticalSpend": "0.01", "verticalSpend": "0.01",
"zontalSpeed": "0.01" "transverseSpend": "0.01"
} }
\ No newline at end of file
{ {
"name": "添乘仪检查超限权值-道岔", "name": "添乘仪检查超限权值-道岔",
"verticalSpend": "0.01", "verticalSpend": "0.01",
"zontalSpeed": "0.01" "transverseSpend": "0.01"
} }
\ No newline at end of file
{ {
"name": "添乘仪检查超限权值-钢轨", "name": "添乘仪检查超限权值-钢轨",
"verticalSpend": "0.01", "verticalSpend": "0.01",
"zontalSpeed": "0.01" "transverseSpend": "0.01"
} }
\ No newline at end of file
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