Commit 5ff31eb2 authored by duanruiming's avatar duanruiming

[update] 测试调用东土灯态时间

parent 2253e8b0
......@@ -25,6 +25,7 @@ import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StopWatch;
import javax.annotation.Resource;
import java.util.*;
......@@ -88,8 +89,13 @@ public class SignalStatusTask {
if (StringUtils.equals(BasicEnum.ManufacturerEnum.HK.getCode(), manufacturerInfoPO.getCode())) {
lightsStatusVOS = hkLightsStatusService.getHkLightsStatus(crossId);
} else if (StringUtils.equals(BasicEnum.ManufacturerEnum.DT.getCode(), manufacturerInfoPO.getCode())){
StopWatch stopWatch = new StopWatch();
stopWatch.start();
JsonViewObject jsonViewObject = utcDTFeignClients.lightStatus(crossId);
lightsStatusVOS = mapper.convertValue(jsonViewObject.getContent(), new TypeReference<List<LightsStatusVO>>() {});
stopWatch.stop();
log.error("运行时间:{}", stopWatch.getTotalTimeMillis());
log.error("dirLampGroupMap:{}", lightsStatusVOS.get(0).getDirLampGroupMap());
} else if (StringUtils.equals(BasicEnum.ManufacturerEnum.HISENSE.getCode(), manufacturerInfoPO.getCode())){
JsonViewObject jsonViewObject = utcHisenseFeignClients.lightStatus(crossId);
......
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