|
@@ -20,6 +20,8 @@ import com.care.mqtt.service.MqttConnectorPoolService;
|
|
|
import com.care.mqtt.service.MqttPublishService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -48,6 +50,7 @@ public class RoomService {
|
|
|
private MqttConnectorPoolService mqttConnectorPoolService;
|
|
|
@Resource
|
|
|
private RedisUtil redisUtil;
|
|
|
+ private static Logger logger = LoggerFactory.getLogger(RoomService.class);
|
|
|
|
|
|
public Map<String,Boolean> getConfStatusInfo(String devCode) {
|
|
|
Map<String,Boolean> map = new HashMap<>();
|
|
@@ -257,6 +260,7 @@ public class RoomService {
|
|
|
*/
|
|
|
public Boolean commitRoomInfo(String devCode) {
|
|
|
try {
|
|
|
+ logger.info("commitRoomInfo.devCode == " + devCode);
|
|
|
RoomVO roomVO = getRoomInfo(devCode);
|
|
|
RoomSensorVO roomSensorVO = getRoomSensorInfo(devCode);
|
|
|
List<RoomGateVO> roomGateVOList = listRoomGateInfo(devCode);
|