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 | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/service/BattInfService.java b/src/main/java/com/whyc/service/BattInfService.java index ddaa507..0e7344c 100644 --- a/src/main/java/com/whyc/service/BattInfService.java +++ b/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); -- Gitblit v1.9.1