Commit aafefab9 authored by duanruiming's avatar duanruiming

[update] 绿波数据优化

parent ffedeb23
......@@ -202,7 +202,7 @@ public class GreenBeltInfoServiceImpl implements GreenBeltInfoService {
public GreenBeltOptInfoVO convertData(String message) throws Exception {
ObjectMapper mapper = JacksonUtils.getInstance();
GreenBeltKafkaDTO kafkaDTO = mapper.readValue(message, GreenBeltKafkaDTO.class);
if (Objects.equals(-1, kafkaDTO.getControlMethod())) {
if (-1 == kafkaDTO.getControlMethod()) {
GreenBeltOptInfoVO greenBeltOptInfoVO = new GreenBeltOptInfoVO();
greenBeltOptInfoVO.setGreenId(kafkaDTO.getGreenbeltId());
greenBeltOptInfoVO.setLength(kafkaDTO.getGreenbeltLength());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment