whycxzp
2023-05-15 ae622a209d841c19e65fb80165571e3bcb806d85
更新
2个文件已修改
20 ■■■■ 已修改文件
src/main/java/com/whyc/pojo/FaultUpload.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/FaultUploadMapper.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/FaultUpload.java
@@ -10,7 +10,6 @@
    private Integer id;
    private Integer stationId;
    private String stationName;
    private Integer type;
    private String description;
    private Integer uploadUserId;
@@ -21,6 +20,10 @@
    private Integer status;
    private Date createTime;
    @TableField(exist = false)
    private String stationName;
    @TableField(exist = false)
    private String stationName3;
    @TableField(exist = false)
    private String uploadUserName;
    @TableField(exist = false)
@@ -50,6 +53,14 @@
        this.stationName = stationName;
    }
    public String getStationName3() {
        return stationName3;
    }
    public void setStationName3(String stationName3) {
        this.stationName3 = stationName3;
    }
    public Integer getType() {
        return type;
    }
src/main/resources/mapper/FaultUploadMapper.xml
@@ -5,10 +5,13 @@
    <select id="getList" resultType="com.whyc.pojo.FaultUpload">
        SELECT distinct
            *
            u.*,b.StationName as station_name,b.StationName3 as station_name3
        FROM
            web_site.tb_fault_upload
            web_site.tb_fault_upload u,
        db_battinf.tb_battinf b
        WHERE
            u.station_id = b.StationId
        and
            station_id in
            (
                select distinct stationId