whycrzh
2021-01-26 04abed2aadf1b1a1f2f86bc6be84e7f2556313d0
update Batt_history、Batt_maint_inf、Batt_maintenance_inf、Battalarm_data and relatedReference
6个文件已修改
351 ■■■■■ 已修改文件
src/main/java/com/fgkj/dto/Batt_history.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/dto/Batt_maint_inf.java 190 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/dto/Batt_maintenance_inf.java 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/dto/Battalarm_data.java 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/services/Batt_historyService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/services/Batt_maint_infService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fgkj/dto/Batt_history.java
@@ -12,7 +12,7 @@
    private String tbname;
    private Integer num;
    private Integer dev_id;
    private Integer BattGroupId;
    private Integer battGroupId;
    private Integer batt_count;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date rec_datetime;
@@ -51,12 +51,15 @@
    public void setDev_id(Integer dev_id) {
        this.dev_id = dev_id;
    }
    public Integer getBattGroupId() {
        return BattGroupId;
        return battGroupId;
    }
    public void setBattGroupId(Integer battGroupId) {
        BattGroupId = battGroupId;
        this.battGroupId = battGroupId;
    }
    public Integer getBatt_count() {
        return batt_count;
    }
@@ -155,7 +158,7 @@
                "tbname='" + tbname + '\'' +
                ", num=" + num +
                ", dev_id=" + dev_id +
                ", BattGroupId=" + BattGroupId +
                ", battGroupId=" + battGroupId +
                ", batt_count=" + batt_count +
                ", rec_datetime=" + rec_datetime +
                ", rec_datetime1=" + rec_datetime1 +
src/main/java/com/fgkj/dto/Batt_maint_inf.java
@@ -9,7 +9,7 @@
public class Batt_maint_inf implements Serializable{
    
    private Integer num;
    private Integer BattGroupId;
    private Integer battGroupId;
    private Integer usr_id;
    private String  uname;
    
@@ -47,201 +47,265 @@
    
    private String master_check;
    private String remark;
    public Batt_maint_inf() {
    }
    public Integer getNum() {
        return num;
    }
    public void setNum(Integer num) {
        this.num = num;
    }
    public Integer getBattGroupId() {
        return BattGroupId;
        return battGroupId;
    }
    public void setBattGroupId(Integer battGroupId) {
        BattGroupId = battGroupId;
        this.battGroupId = battGroupId;
    }
    public Integer getUsr_id() {
        return usr_id;
    }
    public void setUsr_id(Integer usr_id) {
        this.usr_id = usr_id;
    }
    public String getUname() {
        return uname;
    }
    public void setUname(String uname) {
        this.uname = uname;
    }
    public Integer getFault_type_id() {
        return fault_type_id;
    }
    public void setFault_type_id(Integer fault_type_id) {
        this.fault_type_id = fault_type_id;
    }
    public String getFault_type() {
        return fault_type;
    }
    public void setFault_type(String fault_type) {
        this.fault_type = fault_type;
    }
    public Integer getFault_level() {
        return fault_level;
    }
    public void setFault_level(Integer fault_level) {
        this.fault_level = fault_level;
    }
    public String getFault_caption() {
        return fault_caption;
    }
    public void setFault_caption(String fault_caption) {
        this.fault_caption = fault_caption;
    }
    public Date getFault_time() {
        return fault_time;
    }
    public void setFault_time(Date fault_time) {
        this.fault_time = fault_time;
    }
    public Integer getRecord_uid() {
        return record_uid;
    }
    public void setRecord_uid(Integer record_uid) {
        this.record_uid = record_uid;
    }
    public Date getRecord_time() {
        return record_time;
    }
    public void setRecord_time(Date record_time) {
        this.record_time = record_time;
    }
    public Date getMaint_time_limit() {
        return maint_time_limit;
    }
    public void setMaint_time_limit(Date maint_time_limit) {
        this.maint_time_limit = maint_time_limit;
    }
    public Integer getMaint_type_id() {
        return maint_type_id;
    }
    public void setMaint_type_id(Integer maint_type_id) {
        this.maint_type_id = maint_type_id;
    }
    public String getMaint_type() {
        return maint_type;
    }
    public void setMaint_type(String maint_type) {
        this.maint_type = maint_type;
    }
    public String getMaint_result() {
        return maint_result;
    }
    public void setMaint_result(String maint_result) {
        this.maint_result = maint_result;
    }
    public Integer getMaint_done() {
        return maint_done;
    }
    public void setMaint_done(Integer maint_done) {
        this.maint_done = maint_done;
    }
    public Date getMaint_done_time() {
        return maint_done_time;
    }
    public void setMaint_done_time(Date maint_done_time) {
        this.maint_done_time = maint_done_time;
    }
    public Date getMaint_done_time1() {
        return maint_done_time1;
    }
    public void setMaint_done_time1(Date maint_done_time1) {
        this.maint_done_time1 = maint_done_time1;
    }
    public Integer getMaint_close() {
        return maint_close;
    }
    public void setMaint_close(Integer maint_close) {
        this.maint_close = maint_close;
    }
    public Integer getMaster_id() {
        return master_id;
    }
    public void setMaster_id(Integer master_id) {
        this.master_id = master_id;
    }
    public Integer getMaster_audit() {
        return master_audit;
    }
    public void setMaster_audit(Integer master_audit) {
        this.master_audit = master_audit;
    }
    public String getCopy_uids() {
        return copy_uids;
    }
    public void setCopy_uids(String copy_uids) {
        this.copy_uids = copy_uids;
    }
    public Integer getAppoint_uid() {
        return appoint_uid;
    }
    public void setAppoint_uid(Integer appoint_uid) {
        this.appoint_uid = appoint_uid;
    }
    public String getMaster_check() {
        return master_check;
    }
    public void setMaster_check(String master_check) {
        this.master_check = master_check;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getuName() {
        return uname;
    }
    public void setuName(String uname) {
        this.uname = uname;
    }
    public String getMaster_name() {
        return master_name;
    }
    public void setMaster_name(String master_name) {
        this.master_name = master_name;
    }
    public Integer getMaster_audit() {
        return master_audit;
    }
    public void setMaster_audit(Integer master_audit) {
        this.master_audit = master_audit;
    }
    public String getCopy_uids() {
        return copy_uids;
    }
    public void setCopy_uids(String copy_uids) {
        this.copy_uids = copy_uids;
    }
    public String getCopy_name() {
        return copy_name;
    }
    public void setCopy_name(String copy_name) {
        this.copy_name = copy_name;
    }
    public Integer getAppoint_uid() {
        return appoint_uid;
    }
    public void setAppoint_uid(Integer appoint_uid) {
        this.appoint_uid = appoint_uid;
    }
    public String getAppoint_name() {
        return appoint_name;
    }
    public void setAppoint_name(String appoint_name) {
        this.appoint_name = appoint_name;
    }
    public String getMaster_check() {
        return master_check;
    }
    public void setMaster_check(String master_check) {
        this.master_check = master_check;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Override
    public String toString() {
        return "Batt_maint_inf [num=" + num + ", BattGroupId=" + BattGroupId
                + ", usr_id=" + usr_id + ", uname=" + uname
                + ", fault_type_id=" + fault_type_id + ", fault_type="
                + fault_type + ", fault_level=" + fault_level
                + ", fault_caption=" + fault_caption + ", fault_time="
                + fault_time + ", record_uid=" + record_uid + ", record_time="
                + record_time + ", maint_time_limit=" + maint_time_limit
                + ", maint_type_id=" + maint_type_id + ", maint_type="
                + maint_type + ", maint_result=" + maint_result
                + ", maint_done=" + maint_done + ", maint_done_time="
                + maint_done_time + ", maint_done_time1=" + maint_done_time1
                + ", maint_close=" + maint_close + ", master_id=" + master_id
                + ", master_name=" + master_name + ", master_audit="
                + master_audit + ", copy_uids=" + copy_uids + ", copy_name="
                + copy_name + ", appoint_uid=" + appoint_uid
                + ", appoint_name=" + appoint_name + ", master_check="
                + master_check + ", remark=" + remark + "]";
        return "Batt_maint_inf{" +
                "num=" + num +
                ", battGroupId=" + battGroupId +
                ", usr_id=" + usr_id +
                ", uname='" + uname + '\'' +
                ", fault_type_id=" + fault_type_id +
                ", fault_type='" + fault_type + '\'' +
                ", fault_level=" + fault_level +
                ", fault_caption='" + fault_caption + '\'' +
                ", fault_time=" + fault_time +
                ", record_uid=" + record_uid +
                ", record_time=" + record_time +
                ", maint_time_limit=" + maint_time_limit +
                ", maint_type_id=" + maint_type_id +
                ", maint_type='" + maint_type + '\'' +
                ", maint_result='" + maint_result + '\'' +
                ", maint_done=" + maint_done +
                ", maint_done_time=" + maint_done_time +
                ", maint_done_time1=" + maint_done_time1 +
                ", maint_close=" + maint_close +
                ", master_id=" + master_id +
                ", master_name='" + master_name + '\'' +
                ", master_audit=" + master_audit +
                ", copy_uids='" + copy_uids + '\'' +
                ", copy_name='" + copy_name + '\'' +
                ", appoint_uid=" + appoint_uid +
                ", appoint_name='" + appoint_name + '\'' +
                ", master_check='" + master_check + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
src/main/java/com/fgkj/dto/Batt_maintenance_inf.java
@@ -8,7 +8,7 @@
@Alias("Batt_maintenance_inf")
public class Batt_maintenance_inf implements Serializable{
    private Integer num;
    private Integer BattGroupId;
    private Integer battGroupId;
    private String mon_num;
    private String fault_type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
@@ -26,12 +26,15 @@
    public void setNum(Integer num) {
        this.num = num;
    }
    public Integer getBattGroupId() {
        return BattGroupId;
        return battGroupId;
    }
    public void setBattGroupId(Integer battGroupId) {
        BattGroupId = battGroupId;
        this.battGroupId = battGroupId;
    }
    public String getMon_num() {
        return mon_num;
    }
@@ -80,15 +83,20 @@
    public void setMaintenance_time1(Date maintenance_time1) {
        this.maintenance_time1 = maintenance_time1;
    }
    @Override
    public String toString() {
        return "Batt_maintenance_inf [num=" + num + ", BattGroupId="
                + BattGroupId + ", mon_num=" + mon_num + ", fault_type="
                + fault_type + ", fault_time=" + fault_time
                + ", maintenance_type=" + maintenance_type
                + ", maintenance_man=" + maintenance_man
                + ", maintenance_time=" + maintenance_time
                + ", maintenance_time1=" + maintenance_time1 + ", remark="
                + remark + "]";
    }
        return "Batt_maintenance_inf{" +
                "num=" + num +
                ", battGroupId=" + battGroupId +
                ", mon_num='" + mon_num + '\'' +
                ", fault_type='" + fault_type + '\'' +
                ", fault_time=" + fault_time +
                ", maintenance_type='" + maintenance_type + '\'' +
                ", maintenance_man='" + maintenance_man + '\'' +
                ", maintenance_time=" + maintenance_time +
                ", maintenance_time1=" + maintenance_time1 +
                ", remark='" + remark + '\'' +
                '}';
    }
}
src/main/java/com/fgkj/dto/Battalarm_data.java
@@ -8,9 +8,9 @@
@Alias("Battalarm_data")
public class Battalarm_data implements Serializable{
    private Integer num;
    private Integer BattGroupId;
    private Integer MonNum;
    private Long Record_Id;
    private Integer battGroupId;
    private Integer monNum;
    private Long record_Id;
    private Integer alm_id;
    private Integer alm_signal_id;
    private Integer alm_level;
@@ -35,7 +35,6 @@
    private String note;
    
    public Battalarm_data() {
        // TODO Auto-generated constructor stub
    }
    public Battalarm_data(Integer num, Integer battGroupId, Integer monNum,
@@ -45,9 +44,9 @@
            Integer alm_cleared_type, Integer usr_Id) {
        super();
        this.num = num;
        this.BattGroupId = battGroupId;
        this.MonNum = monNum;
        this.Record_Id = record_Id;
        this.battGroupId = battGroupId;
        this.monNum = monNum;
        this.record_Id = record_Id;
        this.alm_id = alm_id;
        this.alm_signal_id = alm_signal_id;
        this.alm_level = alm_level;
@@ -61,6 +60,30 @@
        this.usr_Id = usr_Id;
    }
    public Battalarm_data(Integer num, Integer battGroupId, Integer monNum, Long record_Id, Integer alm_id, Integer alm_signal_id, Integer alm_level, Date alm_start_time, Date alm_start_time1, Date alm_end_time, Float alm_value, Integer alm_is_confirmed, Date alm_confirmed_time, Integer alm_cleared_type, Integer usr_Id, String stationid, String stationname, String battGroupName, String alarmname, String alarmtype, String note) {
        this.num = num;
        this.battGroupId = battGroupId;
        this.monNum = monNum;
        this.record_Id = record_Id;
        this.alm_id = alm_id;
        this.alm_signal_id = alm_signal_id;
        this.alm_level = alm_level;
        this.alm_start_time = alm_start_time;
        this.alm_start_time1 = alm_start_time1;
        this.alm_end_time = alm_end_time;
        this.alm_value = alm_value;
        this.alm_is_confirmed = alm_is_confirmed;
        this.alm_confirmed_time = alm_confirmed_time;
        this.alm_cleared_type = alm_cleared_type;
        this.usr_Id = usr_Id;
        this.stationid = stationid;
        this.stationname = stationname;
        this.battGroupName = battGroupName;
        this.alarmname = alarmname;
        this.alarmtype = alarmtype;
        this.note = note;
    }
    public Integer getNum() {
        return num;
    }
@@ -70,27 +93,27 @@
    }
    public Integer getBattGroupId() {
        return BattGroupId;
        return battGroupId;
    }
    public void setBattGroupId(Integer battGroupId) {
        BattGroupId = battGroupId;
        this.battGroupId = battGroupId;
    }
    public Integer getMonNum() {
        return MonNum;
        return monNum;
    }
    public void setMonNum(Integer monNum) {
        MonNum = monNum;
        this.monNum = monNum;
    }
    public Long getRecord_Id() {
        return Record_Id;
        return record_Id;
    }
    public void setRecord_Id(Long record_Id) {
        Record_Id = record_Id;
        this.record_Id = record_Id;
    }
    public Integer getAlm_id() {
@@ -124,8 +147,7 @@
    public void setAlm_start_time(Date alm_start_time) {
        this.alm_start_time = alm_start_time;
    }
    public Date getAlm_start_time1() {
        return alm_start_time1;
    }
@@ -181,10 +203,6 @@
    public void setUsr_Id(Integer usr_Id) {
        this.usr_Id = usr_Id;
    }
    public String getNote() {
        return note;
    }
    public String getStationid() {
        return stationid;
@@ -200,10 +218,6 @@
    public void setStationname(String stationname) {
        this.stationname = stationname;
    }
    public void setNote(String note) {
        this.note = note;
    }
    public String getBattGroupName() {
@@ -230,25 +244,38 @@
        this.alarmtype = alarmtype;
    }
    @Override
    public String toString() {
        return "Battalarm_data [num=" + num + ", BattGroupId=" + BattGroupId
                + ", MonNum=" + MonNum + ", Record_Id=" + Record_Id
                + ", alm_id=" + alm_id + ", alm_signal_id=" + alm_signal_id
                + ", alm_level=" + alm_level + ", alm_start_time="
                + alm_start_time + ", alm_start_time1=" + alm_start_time1
                + ", alm_end_time=" + alm_end_time + ", alm_value=" + alm_value
                + ", alm_is_confirmed=" + alm_is_confirmed
                + ", alm_confirmed_time=" + alm_confirmed_time
                + ", alm_cleared_type=" + alm_cleared_type + ", usr_Id="
                + usr_Id + ", stationid=" + stationid + ", stationname="
                + stationname + ", battGroupName=" + battGroupName
                + ", alarmname=" + alarmname + ", alarmtype=" + alarmtype
                + ", note=" + note + "]";
    public String getNote() {
        return note;
    }
    public void setNote(String note) {
        this.note = note;
    }
    @Override
    public String toString() {
        return "Battalarm_data{" +
                "num=" + num +
                ", battGroupId=" + battGroupId +
                ", monNum=" + monNum +
                ", record_Id=" + record_Id +
                ", alm_id=" + alm_id +
                ", alm_signal_id=" + alm_signal_id +
                ", alm_level=" + alm_level +
                ", alm_start_time=" + alm_start_time +
                ", alm_start_time1=" + alm_start_time1 +
                ", alm_end_time=" + alm_end_time +
                ", alm_value=" + alm_value +
                ", alm_is_confirmed=" + alm_is_confirmed +
                ", alm_confirmed_time=" + alm_confirmed_time +
                ", alm_cleared_type=" + alm_cleared_type +
                ", usr_Id=" + usr_Id +
                ", stationid='" + stationid + '\'' +
                ", stationname='" + stationname + '\'' +
                ", battGroupName='" + battGroupName + '\'' +
                ", alarmname='" + alarmname + '\'' +
                ", alarmtype='" + alarmtype + '\'' +
                ", note='" + note + '\'' +
                '}';
    }
}
src/main/java/com/fgkj/services/Batt_historyService.java
@@ -51,6 +51,7 @@
     * @return
     */
    public ServiceModel serchByCondition(Batt_history obj){
        ServiceModel model = new ServiceModel();
        int year= ActionUtil.getDateYear(obj.getRec_datetime());
        int month=ActionUtil.getDateMonth(obj.getRec_datetime());
//        String tbname = "tb_batt_";
src/main/java/com/fgkj/services/Batt_maint_infService.java
@@ -48,7 +48,7 @@
            Batt_maint_inf mainf=list.get(i).getMainf();
            if(list.get(i).getMainf().getUsr_id()!=null){
                uinf.setuId(list.get(i).getMainf().getUsr_id());
                mainf.setuName(((List<User_inf>) uservice.serchuName(uinf).getData()).get(0).getuName());
                mainf.setUname(((List<User_inf>) uservice.serchuName(uinf).getData()).get(0).getuName());
            //    System.out.println(mainf.getuName());
                
                }
@@ -379,7 +379,7 @@
    
    //根据电池组id查询电池的故障记录
    public ServiceModel searchByBattgroupId(Object obj) {
        model=new ServiceModel();
        ServiceModel model=new ServiceModel();
        List<Batt_maint_inf> list = mapper.searchByBattgroupId(obj);
        User_inf uinf=new User_inf();        
        if(list!=null && list.size()>0){
@@ -388,7 +388,7 @@
                List<User_inf> users=(List<User_inf>) uservice.serchuName(uinf).getData();
                //System.out.println(users);
                if(users.size()>0){
                    list.get(i).setuName(users.get(0).getuName());
                    list.get(i).setUname(users.get(0).getuName());
                }
                //System.out.println(list.get(i));
            }