|
|
|
|
@ -25,6 +25,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import static com.mh.user.constants.Constant.TOTAL_HOT_YILUO; |
|
|
|
|
import static java.util.stream.Collectors.toList; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -144,11 +145,11 @@ public class MeterManageServiceImpl implements MeterManageService {
|
|
|
|
|
} else if (projectType == 1) { |
|
|
|
|
if (projectId == 34L) { |
|
|
|
|
// 1:热量计,瞬时热量,进出水温度
|
|
|
|
|
if ("0003".equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
if (Constant.MOMENT_HOT_YILUO.equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
dto.setMomentCooling(formatValue(meter.getCurValue())); |
|
|
|
|
} else if ("0033".equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
} else if (Constant.INT_TEMP_YILUO.equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
dto.setOutTemp(formatValue(meter.getCurValue())); |
|
|
|
|
} else if ("0035".equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
} else if (Constant.OUT_TEMP_YILUO.equalsIgnoreCase(meter.getRegisterAddr())) { |
|
|
|
|
dto.setIntTemp(formatValue(meter.getCurValue())); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
@ -300,7 +301,7 @@ public class MeterManageServiceImpl implements MeterManageService {
|
|
|
|
|
} else if (meterManageMapper.queryIsHotCollection(systemId, projectId, "0002", Constant.FLOW_METER) > 0 || projectId.equals("20")) { |
|
|
|
|
// 判断是否包含蒸汽流量计
|
|
|
|
|
return 2; |
|
|
|
|
} else if (meterManageMapper.queryIsHotCollection(systemId, projectId, "0017", Constant.COOLING_METER) > 0 || projectId.equals("34")) { |
|
|
|
|
} else if (meterManageMapper.queryIsHotCollection(systemId, projectId, TOTAL_HOT_YILUO, Constant.COOLING_METER) > 0 || projectId.equals("34")) { |
|
|
|
|
// 判断是否依跞流量计
|
|
|
|
|
return 1; |
|
|
|
|
} else { |
|
|
|
|
|