whyclxw
昨天 add5c816a5281cf6b1df4a0988e8b3a0c2b59bee
电源表和电池信息表加入新的字段,添加,编辑需要修改
5个文件已修改
128 ■■■■■ 已修改文件
src/main/java/com/whyc/dto/InfoDto.java 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/factory/InfoFactory.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/db_station/BattInf.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/db_station/PowerInf.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BattInfService.java 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/dto/InfoDto.java
@@ -79,6 +79,14 @@
    @ApiModelProperty(value = "整流器使能[bit0-模块1 bit15-模块16]【1-可用 0-不可以】")
    private Long modelCfg;
    @ApiModelProperty(value = "交流上限阈值")
    private Float acvolHighLimit;
    @ApiModelProperty(value = "交流下限阈值")
    private Float acvolLowLimit;
    @ApiModelProperty(value = "直流输出电压下限阈值")
    private Float dcoutvolLowLimit;
    @ApiModelProperty(value = "设备id")
@@ -129,6 +137,30 @@
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date inuseTime;
    @ApiModelProperty(value = "浮充电压阈值")
    private Float floatVolLevel;
    @ApiModelProperty(value = "离线电压阈值")
    private Float offlinelineVolLevel;
    @ApiModelProperty(value = "浮充电流阈值")
    private Float floatCurrLevel;
    @ApiModelProperty(value = "最大核容电流(0~300)")
    private Float maxDisCurr;
    @ApiModelProperty(value = "验签格式0-常规  1-正常1拖2[61850设备有效]")
    private Integer signType;
    @ApiModelProperty(value = "通信端口号【0-使用设备默认端口号】")
    private Integer commPort;
    @ApiModelProperty(value = "负载电流")
    private Float loadCurr;
    @ApiModelProperty(value = "视频监控序列号")
    private String videoUrl;
    @ApiModelProperty(value = "标识是否加入电池组1:添加,0不添加")
    private Integer addBinfFlag;
src/main/java/com/whyc/factory/InfoFactory.java
@@ -15,7 +15,10 @@
                .setProtocol(info.getProtocol())
                .setPowerIp(info.getPowerIp())
                .setModelCfg(info.getModelCfg())
                .setPowerInuseTime(info.getPowerInuseTime());
                .setPowerInuseTime(info.getPowerInuseTime())
                .setAcvolHighLimit(info.getAcvolHighLimit())
                .setAcvolLowLimit(info.getAcvolLowLimit())
                .setDcoutvolLowLimit(info.getDcoutvolLowLimit());
        if(info.getPowerId()!=null){
            pinf.setPowerId(info.getPowerId());
        }
@@ -91,6 +94,30 @@
        if(info.getInuseTime()!=null){
            binf.setInuseTime(info.getInuseTime());
        }
        if(info.getFloatVolLevel()!=null){
            binf.setFloatVolLevel(info.getFloatVolLevel());
        }
        if(info.getOfflinelineVolLevel()!=null){
            binf.setOfflinelineVolLevel(info.getOfflinelineVolLevel());
        }
        if(info.getFloatCurrLevel()!=null){
            binf.setFloatCurrLevel(info.getFloatCurrLevel());
        }
        if(info.getMaxDisCurr()!=null){
            binf.setMaxDisCurr(info.getMaxDisCurr());
        }
        if(info.getSignType()!=null){
            binf.setSignType(info.getSignType());
        }
        if(info.getCommPort()!=null){
            binf.setCommPort(info.getCommPort());
        }
        if(info.getLoadCurr()!=null){
            binf.setLoadCurr(info.getLoadCurr());
        }
        if(info.getVideoUrl()!=null){
            binf.setVideoUrl(info.getVideoUrl());
        }
        return binf;
    }
}
src/main/java/com/whyc/pojo/db_station/BattInf.java
@@ -87,6 +87,31 @@
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date inuseTime;
    @ApiModelProperty(value = "浮充电压阈值")
    private Float floatVolLevel;
    @ApiModelProperty(value = "离线电压阈值")
    private Float offlinelineVolLevel;
    @ApiModelProperty(value = "浮充电流阈值")
    private Float floatCurrLevel;
    @ApiModelProperty(value = "最大核容电流(0~300)")
    private Float maxDisCurr;
    @ApiModelProperty(value = "验签格式0-常规  1-正常1拖2[61850设备有效]")
    private Integer signType;
    @ApiModelProperty(value = "通信端口号【0-使用设备默认端口号】")
    private Integer commPort;
    @ApiModelProperty(value = "负载电流")
    private Float loadCurr;
    @ApiModelProperty(value = "视频监控序列号")
    private String videoUrl;
    @TableField(exist = false)
    private Integer inuseYear;
src/main/java/com/whyc/pojo/db_station/PowerInf.java
@@ -69,6 +69,15 @@
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date powerInuseTime;
    @ApiModelProperty(value = "交流上限阈值")
    private Float acvolHighLimit;
    @ApiModelProperty(value = "交流下限阈值")
    private Float acvolLowLimit;
    @ApiModelProperty(value = "直流输出电压下限阈值")
    private Float dcoutvolLowLimit;
    @TableField(exist = false)
    private StationInf sinf;
src/main/java/com/whyc/service/BattInfService.java
@@ -233,6 +233,15 @@
        if(pinf.getModelCfg()!=null){
            wrapper2.set("model_cfg",pinf.getModelCfg());
        }
        if(pinf.getAcvolHighLimit()!=null){
            wrapper2.set("acvol_high_limit",pinf.getAcvolHighLimit());
        }
        if(pinf.getAcvolLowLimit()!=null){
            wrapper2.set("acvol_low_limit",pinf.getAcvolLowLimit());
        }
        if(pinf.getDcoutvolLowLimit()!=null){
            wrapper2.set("dcoutvol_low_limit",pinf.getDcoutvolLowLimit());
        }
        /*if(pinf.getPowerName()!=null){
            //检测该机房下要修改的电源名是否存在
            QueryWrapper queryWrapper1=new QueryWrapper();
@@ -306,6 +315,30 @@
            if (binf.getInuseTime() != null) {
                wrapper4.set("inuse_time", binf.getInuseTime());
            }
            if (binf.getFloatVolLevel() != null) {
                wrapper4.set("float_vol_level", binf.getFloatVolLevel());
            }
            if (binf.getOfflinelineVolLevel() != null) {
                wrapper4.set("offlineline_vol_level", binf.getOfflinelineVolLevel());
            }
            if (binf.getFloatCurrLevel() != null) {
                wrapper4.set("float_curr_level", binf.getFloatCurrLevel());
            }
            if (binf.getMaxDisCurr() != null) {
                wrapper4.set("max_dis_curr", binf.getMaxDisCurr());
            }
            if (binf.getSignType()!= null) {
                wrapper4.set("sign_type", binf.getSignType());
            }
            if (binf.getCommPort()!= null) {
                wrapper4.set("comm_port", binf.getCommPort());
            }
            if (binf.getLoadCurr()!= null) {
                wrapper4.set("load_curr", binf.getLoadCurr());
            }
            if (binf.getVideoUrl()!= null) {
                wrapper4.set("video_url", binf.getVideoUrl());
            }
            wrapper4.eq("battgroup_id", binf.getBattgroupId());
            mapper.update((BattInf) ActionUtil.objeNull,wrapper3);
            mapper.update((BattInf) ActionUtil.objeNull,wrapper4);