Commit be6ab79e authored by 史志龙's avatar 史志龙

人工静态分析-病历本逻辑提交--shizhilong

parent 14ccfb80
......@@ -49,8 +49,8 @@ public class CorrugationRecordController extends JeecgController<CorrugationReco
@AutoLog(value = "检查数据-设备检查记录数据-钢轨波磨设备检查记录表检查详情页面")
@ApiOperation(value = "检查数据-设备检查记录数据-钢轨波磨设备检查记录表检查详情页面", notes = "检查数据-设备检查记录数据-钢轨波磨设备检查记录表检查详情页面")
@GetMapping(value = "/getDetail")
public Result<List<CorrugationRecordDetailVO>> getDetail(@ApiParam("id") String id) {
List<CorrugationRecordDetailVO> data = this.service.getDetail(id);
public Result<List<CorrugationRecordDetailVO>> getDetail(@ApiParam("id") String id,@ApiParam("code") String code) {
List<CorrugationRecordDetailVO> data = this.service.getDetail(id,code);
return Result.OK(data);
}
}
......@@ -2,6 +2,7 @@ package org.jeecg.modules.checkData.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -51,10 +52,19 @@ public class CurveWearRecordController extends JeecgController<CurveWearRecord,
@AutoLog(value = "检查数据设备-设备检查记录数据-曲线磨耗情况检查-获取曲线编号List")
@ApiOperation(value = "检查数据设备-设备检查记录数据-曲线磨耗情况检查-获取道岔编号List", notes = "检查数据设备-设备检查记录数据-曲线磨耗情况检查-获取道岔编号List")
@GetMapping(value = "/getCurveCodeList")
public Result<Map<String, List<CurveWearRecord>>> getCurveCodeList(@ApiParam("设备检查记录主表id") String recordsMasterCheckId) {
List<CurveWearRecord> records = this.service.lambdaQuery()
.eq(CurveWearRecord::getRecordsMasterCheckId, recordsMasterCheckId)
.list();
public Result<Map<String, List<CurveWearRecord>>> getCurveCodeList(@ApiParam("recordsMasterCheckId") String recordsMasterCheckId,@ApiParam("code") String code) {
List<CurveWearRecord> records = new ArrayList<>();
if(StringUtils.isNotEmpty(code)){
records = this.service.lambdaQuery()
.eq(CurveWearRecord::getRecordsMasterCheckId, recordsMasterCheckId)
.eq(CurveWearRecord::getCurveCode, code)
.list();
}else {
records = this.service.lambdaQuery()
.eq(CurveWearRecord::getRecordsMasterCheckId, recordsMasterCheckId)
.list();
}
Map<String, List<CurveWearRecord>> map = records.stream().collect(Collectors.groupingBy(CurveWearRecord::getCurveCode));
return Result.OK(map);
......
......@@ -49,8 +49,8 @@ public class RailWearRecordController extends JeecgController<RailWearRecord, IR
@AutoLog(value = "检查数据-设备检查记录数据-钢轨伤损情况检查详情页面")
@ApiOperation(value = "检查数据-设备检查记录数据-钢轨伤损情况检查详情页面", notes = "检查数据-设备检查记录数据-钢轨伤损情况检查详情页面")
@GetMapping(value = "/getDetail")
public Result<List<RailWearRecordDetailVO>> getDetail(@ApiParam("id") String id) {
List<RailWearRecordDetailVO> data = this.service.getDetail(id);
public Result<List<RailWearRecordDetailVO>> getDetail(@ApiParam("id") String id, @ApiParam("code") String code) {
List<RailWearRecordDetailVO> data = this.service.getDetail(id,code);
return Result.OK(data);
}
......
......@@ -23,5 +23,5 @@ public interface CorrugationRecordMapper extends BaseMapper<CorrugationRecord> {
Page<CorrugationRecordVO> queryPageList(Page<CorrugationRecordVO> pageData, CorrugationRecordDTO dto);
List<CorrugationRecordDetailVO> getDetail(String id);
List<CorrugationRecordDetailVO> getDetail(String id,String code);
}
......@@ -21,5 +21,5 @@ public interface RailWearRecordMapper extends BaseMapper<RailWearRecord> {
Page<RailWearRecordVO> queryPageList(Page<RailWearRecordVO> pageData, RailWearRecordDTO dto);
List<RailWearRecordDetailVO> getDetail(String id);
List<RailWearRecordDetailVO> getDetail(String id,String code);
}
......@@ -42,5 +42,8 @@
FROM
t_ek_corrugation_record t1
where t1.records_master_check_id = #{id}
<if test="code != null and code != ''">
AND t1.device_project_code = #{code}
</if>
</select>
</mapper>
......@@ -42,5 +42,8 @@
FROM
t_ek_rail_wear_record t1
where t1.records_master_check_id = #{id}
<if test="code != null and code != ''">
AND t1.device_project_code = #{code}
</if>
</select>
</mapper>
......@@ -24,5 +24,5 @@ public interface ICorrugationRecordService extends IService<CorrugationRecord> {
Page<CorrugationRecordVO> queryPageList(Page<CorrugationRecordVO> pageData, CorrugationRecordDTO dto);
List<CorrugationRecordDetailVO> getDetail(String id);
List<CorrugationRecordDetailVO> getDetail(String id,String code);
}
......@@ -21,5 +21,5 @@ public interface IRailWearRecordService extends IService<RailWearRecord> {
Page<RailWearRecordVO> queryPageList(Page<RailWearRecordVO> pageData, RailWearRecordDTO dto);
List<RailWearRecordDetailVO> getDetail(String id);
List<RailWearRecordDetailVO> getDetail(String id,String code);
}
......@@ -31,7 +31,7 @@ public class CorrugationRecordServiceImpl extends ServiceImpl<CorrugationRecordM
return this.baseMapper.queryPageList(pageData, dto);
}
@Override
public List<CorrugationRecordDetailVO> getDetail(String id) {
return this.baseMapper.getDetail(id);
public List<CorrugationRecordDetailVO> getDetail(String id,String code) {
return this.baseMapper.getDetail(id,code);
}
}
......@@ -29,7 +29,7 @@ public class RailWearRecordServiceImpl extends ServiceImpl<RailWearRecordMapper,
}
@Override
public List<RailWearRecordDetailVO> getDetail(String id) {
return this.baseMapper.getDetail(id);
public List<RailWearRecordDetailVO> getDetail(String id,String code) {
return this.baseMapper.getDetail(id,code);
}
}
......@@ -145,7 +145,9 @@
t2.team,
t2.source,
t2.work_status,
t2.del_flag
t2.del_flag,
t2.analysis_type,
t2.work_type
FROM
( SELECT work_batch_id, unit_id, unit_type,id as workBatchDetailId ,maintenance_date,reform_remark FROM t_mw_work_batch_detail WHERE unit_id = #{dto.unitId} AND unit_type = #{dto.unitType} ) t1
LEFT JOIN t_mw_work_batch t2 ON t1.work_batch_id = t2.id AND t2.del_flag = '0'
......
......@@ -10,6 +10,6 @@ public class CaseReportCheckDataDTO {
@ApiModelProperty("单元id")
private String unitId;
@ApiModelProperty("单元类型")
@ApiModelProperty("单元类型:1:钢轨;2:曲线;3:竖曲线;4:道岔")
private String unitType;
}
......@@ -12,6 +12,8 @@ import java.util.Date;
@Data
@ApiModel(value = "CaseReportCheckDataVO对象", description = "单元设备-病例报告检查数据列表")
public class CaseReportCheckDataVO {
@ApiModelProperty("检查大类 0:动静态检查;1:人工静态检查")
private Integer checkType;
@ApiModelProperty("单元id")
private String unitId;
......@@ -22,7 +24,8 @@ public class CaseReportCheckDataVO {
@ApiModelProperty("单元code")
private String unitCode;
@ApiModelProperty("动态几何尺寸类型(1:人工静态检查;2:轨检仪静态检查; 3:轨检车检查;4:添乘仪检查)")
@ApiModelProperty("设备检查类型(1:人工静态检查;2:轨检仪静态检查; 3:轨检车检查;4:添乘仪检查)" +
"5:道岔使用情况;6:钢轨伤损情况;7:曲线磨损情况;8:钢轨波磨情况")
private String type;
@ApiModelProperty("检查id")
......
......@@ -71,4 +71,9 @@ public class CaseReportWorkBatchVO {
@TableField("remark")
private String remark;
@ApiModelProperty("分析类型(0-动静态分析1-道岔检查 2-钢轨常规探伤检查 3-曲线钢轨磨耗检查 4-钢轨波磨检查 5-道床检查 6-线路检查)")
private Integer analysisType;
@ApiModelProperty("作业类型(1-单元方式 2-分析批次方式)")
private Integer workType;
}
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