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

Merge branch 'dev-szl' into 'dev'

Dev szl

See merge request !45
parents a7ffe6ed b12d0bc4
......@@ -145,6 +145,7 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getSubwaySectionId()), RecordsMasterCheck::getSubwaySectionId, recordsMasterCheck.getSubwaySectionId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLightRailId()), RecordsMasterCheck::getLightRailId, recordsMasterCheck.getLightRailId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLineAliasId()), RecordsMasterCheck::getLineAliasId, recordsMasterCheck.getLineAliasId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLineAliasId()), RecordsMasterCheck::getType, recordsMasterCheck.getType())
.orderByAsc(RecordsMasterCheck::getCreateTime));
//导出文件名称
mv.addObject(NormalExcelConstants.FILE_NAME, "道床使用情况检查");
......@@ -168,6 +169,7 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getSubwaySectionId()), RecordsMasterCheck::getSubwaySectionId, recordsMasterCheck.getSubwaySectionId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLightRailId()), RecordsMasterCheck::getLightRailId, recordsMasterCheck.getLightRailId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLineAliasId()), RecordsMasterCheck::getLineAliasId, recordsMasterCheck.getLineAliasId())
.eq(ObjectUtil.isNotEmpty(recordsMasterCheck.getLineAliasId()), RecordsMasterCheck::getType, recordsMasterCheck.getType())
.orderByAsc(RecordsMasterCheck::getCreateTime));
int num = 0;
for (RecordsMasterCheck s : resultList) {
......
package org.jeecg.modules.checkData.equipmentCheckData.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -32,18 +33,21 @@ public class RecordsMasterCheckDTO {
private String createBy;
@ApiModelProperty("创建日期")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ApiModelProperty("设备检查类型(1:道岔使用情况;2:钢轨伤损情况;3:曲线磨损情况;4:钢轨波磨情况;5:道床使用情况)")
private String type;
@ApiModelProperty("检查批次编号")
private String ekCode;
......
package org.jeecg.modules.checkData.equipmentCheckData.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Data
public class RecordsMasterTurnoutInfoDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ApiModelProperty("设备检查记录主表id")
private String recordsMasterId;
@ApiModelProperty("检查项目类型(1:轨距;2:水平;3:支距;4:轮缘槽;5:滑床板;6:顶铁;7:接头螺栓;8:护轨螺栓)")
private String type;
@ApiModelProperty("值1")
private String numOne;
@ApiModelProperty("值2")
private String numTwo;
@ApiModelProperty("值3")
private String numThree;
@ApiModelProperty("值4")
private String numFour;
@ApiModelProperty("值5")
private String numFive;
@ApiModelProperty("值6")
private String numSix;
@ApiModelProperty("值7")
private String numSeven;
@ApiModelProperty("值8")
private String numEight;
@ApiModelProperty("值9")
private String numNine;
@ApiModelProperty("值10")
private String numTen;
@ApiModelProperty("值11")
private String numTenOne;
@ApiModelProperty("值12")
private String numTenTwo;
@ApiModelProperty("值13")
private String numTenThree;
@ApiModelProperty("值14")
private String numTenFour;
@ApiModelProperty("值15")
private String numTenFive;
@ApiModelProperty("值16")
private String numTenSix;
@ApiModelProperty("值17")
private String numTenSeven;
@ApiModelProperty("值18")
private String numTenEight;
@ApiModelProperty("值19")
private String numTenNine;
@ApiModelProperty("值20")
private String numTwenty;
@ApiModelProperty("值21")
private String numTwentyOne;
@ApiModelProperty("值22")
private String numTwentyTwo;
@ApiModelProperty("是否合格(1:合格;2:不合格)")
private String qualified;
@ApiModelProperty("不合格说明")
private String noQualifiedRemark;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("是否删除(0:未删除,1:已删除)")
private String delFlag;
}
......@@ -45,8 +45,8 @@ public class RecordsMasterCheck implements Serializable {
@ApiModelProperty("创建日期")
@TableField("create_time")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
......@@ -55,12 +55,15 @@ public class RecordsMasterCheck implements Serializable {
@ApiModelProperty("更新时间")
@TableField("update_time")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ExcelExport(value = "检查批次编号", sort = 2)
//@Excel(name = "检查批次编号", width = 15, orderNum = "1")
@ApiModelProperty("设备检查类型(1:道岔使用情况;2:钢轨伤损情况;3:曲线磨损情况;4:钢轨波磨情况;5:道床使用情况)")
@TableField("type")
private String type;
@ExcelExport(value = "检查d批次编号", sort = 2)
@ApiModelProperty("检查批次编号")
@TableField("ek_code")
private String ekCode;
......@@ -68,9 +71,12 @@ public class RecordsMasterCheck implements Serializable {
@ExcelExport(value = "工单编号", sort = 3)
@ApiModelProperty("工单编号")
@TableField("work_code")
//@Excel(name = "工单编号", width = 15, orderNum = "2")
private String workCode;
@ApiModelProperty("轨距水平尺编号")
@TableField("gauge_code")
private String gaugeCode;
@ApiModelProperty("检查区间id")
@TableField("subway_section_id")
private String subwaySectionId;
......@@ -78,7 +84,6 @@ public class RecordsMasterCheck implements Serializable {
@ApiModelProperty("检查区间名称")
@TableField("subway_section_name")
@ExcelExport(value = "检查区间名称", sort = 4)
// @Excel(name = "检查区间", width = 15, orderNum = "3")
private String subwaySectionName;
@ApiModelProperty("所属线路id")
......@@ -88,7 +93,6 @@ public class RecordsMasterCheck implements Serializable {
@ApiModelProperty("所属线路名称")
@TableField("light_rail_name")
@ExcelExport(value = "所属线路", sort = 5)
//@Excel(name = "所属线路", width = 15, orderNum = "4")
private String lightRailName;
@ApiModelProperty("所属线别id")
......@@ -98,42 +102,35 @@ public class RecordsMasterCheck implements Serializable {
@ApiModelProperty("所属线别名称")
@TableField("line_alias_name")
@ExcelExport(value = "所属线别", sort = 6)
//@Excel(name = "所属线别", width = 15, orderNum = "5")
private String lineAliasName;
@ApiModelProperty("起始里程")
@TableField("starting_mileage")
//@Excel(name = "起始里程", width = 15, orderNum = "6")
@ExcelExport(value = "起始里程", sort = 7)
private BigDecimal startingMileage;
@ApiModelProperty("终点里程")
@TableField("end_mileage")
//@Excel(name = "终点里程", width = 15, orderNum = "7")
@ExcelExport(value = "终点里程", sort = 8)
private BigDecimal endMileage;
@ApiModelProperty("备注")
@TableField("remark")
//@Excel(name = "备注", width = 15, orderNum = "12")
@ExcelExport(value = "备注", sort = 13)
private String remark;
@ApiModelProperty("检查人姓名")
@TableField("check_by")
//@Excel(name = "检查人姓名", width = 15, orderNum = "8")
@ExcelExport(value = "检查人姓名", sort = 9)
private String checkBy;
@ApiModelProperty("检查日期")
@TableField("check_time")
// @Excel(name = "检查日期", width = 15, format = "yyyy-MM-dd", orderNum = "9")
@ExcelExport(value = "检查日期", format = "yyyy-MM-dd",sort = 10)
private Date checkTime;
@ApiModelProperty("审核人姓名")
@TableField("verify_by")
// @Excel(name = "审核人姓名", width = 15, orderNum = "10")
@ExcelExport(value = "审核人姓名",sort = 11)
private String verifyBy;
......@@ -141,7 +138,6 @@ public class RecordsMasterCheck implements Serializable {
@TableField("verify_time")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
// @Excel(name = "审核日期", width = 15, format = "yyyy-MM-dd", orderNum = "11")
@ExcelExport(value = "审核日期",format = "yyyy-MM-dd",sort = 12)
private Date verifyTime;
......
package org.jeecg.modules.checkData.equipmentCheckData.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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName("t_ek_records_master_turnout_info")
@ApiModel(value = "RecordsMasterTurnoutInfo对象", description = "检查数据设备-设备检查记录数据-道岔使用情况检查数据")
public class RecordsMasterTurnoutInfo 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")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
@TableField("update_by")
private String updateBy;
@ApiModelProperty("更新时间")
@TableField("update_time")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ApiModelProperty("设备检查记录主表id")
@TableField("records_master_id")
private String recordsMasterId;
@ApiModelProperty("检查项目类型(1:轨距;2:水平;3:支距;4:轮缘槽;5:滑床板;6:顶铁;7:接头螺栓;8:护轨螺栓)")
@TableField("type")
private String type;
@ApiModelProperty("值1")
@TableField("num_one")
private String numOne;
@ApiModelProperty("值2")
@TableField("num_two")
private String numTwo;
@ApiModelProperty("值3")
@TableField("num_three")
private String numThree;
@ApiModelProperty("值4")
@TableField("num_four")
private String numFour;
@ApiModelProperty("值5")
@TableField("num_five")
private String numFive;
@ApiModelProperty("值6")
@TableField("num_six")
private String numSix;
@ApiModelProperty("值7")
@TableField("num_seven")
private String numSeven;
@ApiModelProperty("值8")
@TableField("num_eight")
private String numEight;
@ApiModelProperty("值9")
@TableField("num_nine")
private String numNine;
@ApiModelProperty("值10")
@TableField("num_ten")
private String numTen;
@ApiModelProperty("值11")
@TableField("num_ten_one")
private String numTenOne;
@ApiModelProperty("值12")
@TableField("num_ten_two")
private String numTenTwo;
@ApiModelProperty("值13")
@TableField("num_ten_three")
private String numTenThree;
@ApiModelProperty("值14")
@TableField("num_ten_four")
private String numTenFour;
@ApiModelProperty("值15")
@TableField("num_ten_five")
private String numTenFive;
@ApiModelProperty("值16")
@TableField("num_ten_six")
private String numTenSix;
@ApiModelProperty("值17")
@TableField("num_ten_seven")
private String numTenSeven;
@ApiModelProperty("值18")
@TableField("num_ten_eight")
private String numTenEight;
@ApiModelProperty("值19")
@TableField("num_ten_nine")
private String numTenNine;
@ApiModelProperty("值20")
@TableField("num_twenty")
private String numTwenty;
@ApiModelProperty("值21")
@TableField("num_twenty_one")
private String numTwentyOne;
@ApiModelProperty("值22")
@TableField("num_twenty_two")
private String numTwentyTwo;
@ApiModelProperty("是否合格(1:合格;2:不合格)")
@TableField("qualified")
private String qualified;
@ApiModelProperty("不合格说明")
@TableField("no_qualified_remark")
private String noQualifiedRemark;
@ApiModelProperty("备注")
@TableField("remark")
private String remark;
@ApiModelProperty("是否删除(0:未删除,1:已删除)")
@TableField("del_flag")
private String delFlag;
}
package org.jeecg.modules.checkData.equipmentCheckData.mapper;
import org.jeecg.modules.checkData.equipmentCheckData.entity.RecordsMasterTurnoutInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public interface RecordsMasterTurnoutInfoMapper extends BaseMapper<RecordsMasterTurnoutInfo> {
}
......@@ -26,6 +26,7 @@
<if test="dto.endTime != null">
AND t1.check_time <![CDATA[ <= ]]> #{dto.endTime}
</if>
AND t1.type = #{dto.type}
AND t2.status = 1
order by t1.create_time desc
</where>
......
<?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.checkData.equipmentCheckData.mapper.RecordsMasterTurnoutInfoMapper">
</mapper>
package org.jeecg.modules.checkData.equipmentCheckData.service;
import org.jeecg.modules.checkData.equipmentCheckData.entity.RecordsMasterTurnoutInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public interface IRecordsMasterTurnoutInfoService extends IService<RecordsMasterTurnoutInfo> {
}
package org.jeecg.modules.checkData.equipmentCheckData.service.impl;
import org.jeecg.modules.checkData.equipmentCheckData.entity.RecordsMasterTurnoutInfo;
import org.jeecg.modules.checkData.equipmentCheckData.mapper.RecordsMasterTurnoutInfoMapper;
import org.jeecg.modules.checkData.equipmentCheckData.service.IRecordsMasterTurnoutInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public class RecordsMasterTurnoutInfoServiceImpl extends ServiceImpl<RecordsMasterTurnoutInfoMapper, RecordsMasterTurnoutInfo> implements IRecordsMasterTurnoutInfoService {
}
......@@ -34,24 +34,30 @@ public class RecordsMasterCheckVO {
private String createBy;
@ApiModelProperty("创建日期")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ApiModelProperty("设备检查类型(1:道岔使用情况;2:钢轨伤损情况;3:曲线磨损情况;4:钢轨波磨情况;5:道床使用情况)")
private String type;
@ApiModelProperty("检查批次编号")
private String ekCode;
@ApiModelProperty("工单编号")
private String workCode;
@ApiModelProperty("轨距水平尺编号")
private String gaugeCode;
@ApiModelProperty("检查区间id")
private String subwaySectionId;
......
package org.jeecg.modules.checkData.equipmentCheckData.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* <p>
* 检查数据设备-设备检查记录数据-道岔使用情况检查数据
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Data
public class RecordsMasterTurnoutInfoVO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private String id;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建日期")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ApiModelProperty("更新人")
private String updateBy;
@ApiModelProperty("更新时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
@ApiModelProperty("设备检查记录主表id")
private String recordsMasterId;
@ApiModelProperty("检查项目类型(1:轨距;2:水平;3:支距;4:轮缘槽;5:滑床板;6:顶铁;7:接头螺栓;8:护轨螺栓)")
private String type;
@ApiModelProperty("值1")
private String numOne;
@ApiModelProperty("值2")
private String numTwo;
@ApiModelProperty("值3")
private String numThree;
@ApiModelProperty("值4")
private String numFour;
@ApiModelProperty("值5")
private String numFive;
@ApiModelProperty("值6")
private String numSix;
@ApiModelProperty("值7")
private String numSeven;
@ApiModelProperty("值8")
private String numEight;
@ApiModelProperty("值9")
private String numNine;
@ApiModelProperty("值10")
private String numTen;
@ApiModelProperty("值11")
private String numTenOne;
@ApiModelProperty("值12")
private String numTenTwo;
@ApiModelProperty("值13")
private String numTenThree;
@ApiModelProperty("值14")
private String numTenFour;
@ApiModelProperty("值15")
private String numTenFive;
@ApiModelProperty("值16")
private String numTenSix;
@ApiModelProperty("值17")
private String numTenSeven;
@ApiModelProperty("值18")
private String numTenEight;
@ApiModelProperty("值19")
private String numTenNine;
@ApiModelProperty("值20")
private String numTwenty;
@ApiModelProperty("值21")
private String numTwentyOne;
@ApiModelProperty("值22")
private String numTwentyTwo;
@ApiModelProperty("是否合格(1:合格;2:不合格)")
private String qualified;
@ApiModelProperty("不合格说明")
private String noQualifiedRemark;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("是否删除(0:未删除,1:已删除)")
private String delFlag;
}
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