| | |
| | | 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; |
| | |
| | | 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(); |
| | |
| | | } |
| | | 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); |
| | |
| | | public List<BattInf> getBattgroupIdListByDevId(Integer devId) { |
| | | return mapper.getBattgroupIdListByDevId(devId); |
| | | } |
| | | //询符合条件的电池组权重表格评分 |
| | | public List<BattInf> getScoreByHehavior(SocreHehaviorDto dto) { |
| | | return mapper.getScoreByHehavior(dto); |
| | | } |
| | | } |