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

bug修改--shizhilong

parent 41ea2c3b
...@@ -65,6 +65,10 @@ ...@@ -65,6 +65,10 @@
<properties> <properties>
<package.environment>dev</package.environment> <package.environment>dev</package.environment>
</properties> </properties>
<!-- 是否默认 true表示默认-->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile> </profile>
<!-- 测试环境 --> <!-- 测试环境 -->
...@@ -73,10 +77,6 @@ ...@@ -73,10 +77,6 @@
<properties> <properties>
<package.environment>test</package.environment> <package.environment>test</package.environment>
</properties> </properties>
<!-- 是否默认 true表示默认-->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile> </profile>
<!-- 生成环境环境--> <!-- 生成环境环境-->
......
...@@ -14,8 +14,6 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchInfoDTO; ...@@ -14,8 +14,6 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchInfoDTO;
import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchSaveOrUpdateDTO; import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchSaveOrUpdateDTO;
import org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO; import org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO;
import org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch; import org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch;
import org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceCorrugationInfo;
import org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceCurveWearInfo;
import org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService; import org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService;
import org.jeecg.modules.diseaseAnalysis.vo.*; import org.jeecg.modules.diseaseAnalysis.vo.*;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -157,6 +155,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat ...@@ -157,6 +155,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List<AnalysisLineBatchUnitDeviceTurnoutInfoVO> list = this.service.getAnalysisLineBatchUnitEkInfoList(analysisBatchId, ekId, deviceId); List<AnalysisLineBatchUnitDeviceTurnoutInfoVO> list = this.service.getAnalysisLineBatchUnitEkInfoList(analysisBatchId, ekId, deviceId);
return Result.OK(list); return Result.OK(list);
} }
/** /**
* 线路质量分析-其他病害分析-钢轨探伤单元详情检查记录查询 * 线路质量分析-其他病害分析-钢轨探伤单元详情检查记录查询
* *
...@@ -172,6 +171,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat ...@@ -172,6 +171,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List<AnalysisLineBatchUnitDeviceRailWearInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceRailWearInfoList(analysisBatchId, ekId, deviceId); List<AnalysisLineBatchUnitDeviceRailWearInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceRailWearInfoList(analysisBatchId, ekId, deviceId);
return Result.OK(list); return Result.OK(list);
} }
/** /**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询 * 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
* *
...@@ -187,6 +187,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat ...@@ -187,6 +187,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List<AnalysisLineBatchUnitDeviceCorrugationInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceCorrugationInfoList(analysisBatchId, ekId, deviceId); List<AnalysisLineBatchUnitDeviceCorrugationInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceCorrugationInfoList(analysisBatchId, ekId, deviceId);
return Result.OK(list); return Result.OK(list);
} }
/** /**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询 * 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
* *
...@@ -202,6 +203,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat ...@@ -202,6 +203,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List<AnalysisLineBatchUnitDeviceCurveWearInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceCurveWearInfoList(analysisBatchId, ekId, deviceId); List<AnalysisLineBatchUnitDeviceCurveWearInfoVO> list = this.service.getAnalysisLineBatchUnitDeviceCurveWearInfoList(analysisBatchId, ekId, deviceId);
return Result.OK(list); return Result.OK(list);
} }
//***********************************分析新增编辑接口************************************************************************************************************* //***********************************分析新增编辑接口*************************************************************************************************************
@AutoLog(value = "其他病害分析-分析批次-新增分析批次") @AutoLog(value = "其他病害分析-分析批次-新增分析批次")
@ApiOperation(value = "其他病害分析-分析批次-新增分析批次", notes = "其他病害分析-分析批次-新增分析批次") @ApiOperation(value = "其他病害分析-分析批次-新增分析批次", notes = "其他病害分析-分析批次-新增分析批次")
...@@ -255,15 +257,23 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat ...@@ -255,15 +257,23 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
@AutoLog(value = "其他病害分析-分析批次-删除") @AutoLog(value = "其他病害分析-分析批次-删除")
@ApiOperation(value = "其他病害分析-分析批次-删除", notes = "其他病害分析-分析批次-删除") @ApiOperation(value = "其他病害分析-分析批次-删除", notes = "其他病害分析-分析批次-删除")
@GetMapping(value = "/deleteBatchRecord") @GetMapping(value = "/deleteBatchRecord")
public Result<String> deleteBatchRecord(@RequestParam(name = "ids", required = true) String ids,@RequestParam(name = "type", required = true) Integer type) { public Result<String> deleteBatchRecord(@RequestParam(name = "ids", required = true) String ids, @RequestParam(name = "type", required = true) Integer type) {
List<String> idList = new ArrayList<>(); List<String> idList = new ArrayList<>();
if (ids.contains(",")) { if (ids.contains(",")) {
idList = Arrays.asList(ids.split(",")); idList = Arrays.asList(ids.split(","));
} else { } else {
idList.add(ids); idList.add(ids);
} }
this.service.deleteBatchRecord(idList,type); this.service.deleteBatchRecord(idList, type);
return Result.OK("批量删除成功!"); return Result.OK("批量删除成功!");
} }
@AutoLog(value = "其他病害分析-分析批次-更新分析单元标记状态")
@ApiOperation(value = "其他病害分析-分析批次-更新分析单元标记状态", notes = "其他病害分析-分析批次-更新分析单元标记状态")
@GetMapping(value = "/updateRecordMarkStatus")
public Result<String> updateRecordMarkStatus(@RequestParam("id") String id, @RequestParam("status") Integer status) {
this.service.updateRecordMarkStatus(id,status);
return Result.OK("操作成功");
}
} }
...@@ -32,4 +32,7 @@ public class AnalysisLineBatchInfoDTO { ...@@ -32,4 +32,7 @@ public class AnalysisLineBatchInfoDTO {
@ApiModelProperty("派工状态(1:未派工,2:已派工)") @ApiModelProperty("派工状态(1:未派工,2:已派工)")
private Integer workStatus; private Integer workStatus;
@ApiModelProperty("标记状态(1:未标记,2:异常,3:正常)")
private Integer markStatus;
} }
...@@ -82,6 +82,9 @@ public class AnalysisLineBatchUnitDeviceDTO { ...@@ -82,6 +82,9 @@ public class AnalysisLineBatchUnitDeviceDTO {
@ApiModelProperty("派工状态(1:未派工,2:已派工)") @ApiModelProperty("派工状态(1:未派工,2:已派工)")
private Integer workStatus; private Integer workStatus;
@ApiModelProperty("标记状态(1:未标记,1:异常,2:正常)")
private Integer markStatus;
@ApiModelProperty("备注") @ApiModelProperty("备注")
private String remark; private String remark;
......
...@@ -100,6 +100,14 @@ public class AnalysisLineBatchUnitDevice implements Serializable { ...@@ -100,6 +100,14 @@ public class AnalysisLineBatchUnitDevice implements Serializable {
@TableField("work_status") @TableField("work_status")
private Integer workStatus; private Integer workStatus;
@ApiModelProperty("标记状态(1:未标记,1:异常,2:正常)")
@TableField("mark_status")
private Integer markStatus;
@ApiModelProperty("检查结果:1:正常,2:异常(线路巡查时才有值)")
@TableField("check_status")
private Integer checkStatus;
@ApiModelProperty("备注") @ApiModelProperty("备注")
@TableField("remark") @TableField("remark")
private String remark; private String remark;
......
...@@ -112,7 +112,10 @@ ...@@ -112,7 +112,10 @@
<if test="dto.workStatus != null"> <if test="dto.workStatus != null">
AND t1.work_status = #{dto.workStatus} AND t1.work_status = #{dto.workStatus}
</if> </if>
ORDER BY t1.unit_center_mileage ASC <if test="dto.markStatus != null">
AND t1.mark_status = #{dto.markStatus}
</if>
ORDER BY t1.unit_start_mileage ASC
</select> </select>
<select id="getAnalysisLineBatchUnitEkInfoList" resultType="org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceTurnoutInfoVO"> <select id="getAnalysisLineBatchUnitEkInfoList" resultType="org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceTurnoutInfoVO">
......
...@@ -122,4 +122,11 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> { ...@@ -122,4 +122,11 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
* @param idList * @param idList
*/ */
void deleteBatchRecord(List<String> idList,Integer type); void deleteBatchRecord(List<String> idList,Integer type);
/**
* 其他病害分析-分析批次-更新分析单元标记状态
* @param id
* @param status
*/
void updateRecordMarkStatus(String id,Integer status);
} }
...@@ -298,4 +298,17 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM ...@@ -298,4 +298,17 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
//4.删除分析主表 //4.删除分析主表
this.baseMapper.deleteBatchIds(idList); this.baseMapper.deleteBatchIds(idList);
} }
/**
* 其他病害分析-分析批次-更新分析单元标记状态
* @param id
* @param status
*/
@Override
@Transactional
public void updateRecordMarkStatus(String id, Integer status) {
AnalysisLineBatchUnitDevice analysisLineBatchUnitDevice = new AnalysisLineBatchUnitDevice();
analysisLineBatchUnitDevice.setId(id);
analysisLineBatchUnitDevice.setMarkStatus(status);
analysisLineBatchUnitDeviceMapper.updateById(analysisLineBatchUnitDevice);
}
} }
...@@ -4,6 +4,7 @@ package org.jeecg.modules.diseaseAnalysis.vo; ...@@ -4,6 +4,7 @@ package org.jeecg.modules.diseaseAnalysis.vo;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Getter; import lombok.Getter;
...@@ -80,6 +81,12 @@ public class AnalysisLineBatchUnitDeviceVO { ...@@ -80,6 +81,12 @@ public class AnalysisLineBatchUnitDeviceVO {
@ApiModelProperty("派工状态(1:未派工,2:已派工)") @ApiModelProperty("派工状态(1:未派工,2:已派工)")
private Integer workStatus; private Integer workStatus;
@ApiModelProperty("标记状态(1:未标记,2:异常,3:正常)")
private Integer markStatus;
@ApiModelProperty("检查结果:1:正常,2:异常(线路巡查时才有值)")
private Integer checkStatus;
@ApiModelProperty("备注") @ApiModelProperty("备注")
private String remark; private String remark;
......
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