| | |
| | | import com.whyc.pojo.Li9130SetparamPlan; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | private BattInfMapper binfMapper; |
| | | @Resource |
| | | private Fbs9100SetParamTempMapper tmpMapper; |
| | | |
| | | @Autowired |
| | | private PwrdevAcdcdataService pwrdevAcdcservice; |
| | | //查询设备的参数 |
| | | public Response serchdevParam(int devId) { |
| | | sendCmdToFBS9100Dev(FBS9100_ComBase.CMD_GetDischargeParm, 0, devId); |
| | |
| | | |
| | | } |
| | | Fbs9100Setparam setparam = mapper.serchbyDev_id(devId,battGroupNum-1); |
| | | /*重庆bts4810(61850) |
| | | 目前客户的负载电流比较小,充放电参数设置时,小于0.1C10的,电流值要求能自动识别, |
| | | 采用一天内电流平均值来放电。负载电流大于0.1C10.用0.1C10放电客户要求自动填充,不要人为的录入. |
| | | (100AH电池 负载电流小于10A 就用负载电流的平均值 大于10A 就用10A) |
| | | */ |
| | | if (devId / 100000 == DeviceTypeDTO.DEVICE6185){ |
| | | //根据devId获取机房id |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("FBSDeviceId", devId); |
| | | queryWrapper.last("limit 1"); |
| | | Battinf binf = binfMapper.selectOne(queryWrapper); |
| | | if(binf!=null){ |
| | | //获取电源的负载电流 |
| | | float loadCurr=pwrdevAcdcservice.getBts4810LoadCurr(binf.getStationId(),binf.getMonCapStd()); |
| | | setparam.setLoadCurr(loadCurr); |
| | | }else { |
| | | setparam.setLoadCurr(0f); |
| | | } |
| | | |
| | | } |
| | | return new Response().setII(1, setparam, bl, bl == true ? "查询成功!" : "设置9100参数失败,请检查网络!"); |
| | | } |
| | | //内阻测试 |