From add5c816a5281cf6b1df4a0988e8b3a0c2b59bee Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 25 六月 2025 17:37:03 +0800 Subject: [PATCH] 电源表和电池信息表加入新的字段,添加,编辑需要修改 --- src/main/java/com/whyc/service/BattInfService.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/service/BattInfService.java b/src/main/java/com/whyc/service/BattInfService.java index 5aff1a0..0e7344c 100644 --- a/src/main/java/com/whyc/service/BattInfService.java +++ b/src/main/java/com/whyc/service/BattInfService.java @@ -10,6 +10,7 @@ import com.whyc.dto.Param.ParamAlmDto; import com.whyc.dto.Real.QuarterDto; import com.whyc.dto.Response; +import com.whyc.dto.SocreHehaviorDto; import com.whyc.dto.Statistic.*; import com.whyc.factory.InfoFactory; import com.whyc.mapper.BattInfMapper; @@ -232,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(); @@ -304,6 +314,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); @@ -510,4 +544,8 @@ public List<BattInf> getBattgroupIdListByDevId(Integer devId) { return mapper.getBattgroupIdListByDevId(devId); } + //璇㈢鍚堟潯浠剁殑鐢垫睜缁勬潈閲嶈〃鏍艰瘎鍒� + public List<BattInf> getScoreByHehavior(SocreHehaviorDto dto) { + return mapper.getScoreByHehavior(dto); + } } \ No newline at end of file -- Gitblit v1.9.1