| | |
| | | import com.zy.asrs.service.*; |
| | | |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.RedisUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | if (basDevp == null ){ |
| | | return; |
| | | } |
| | | if (!Cools.isEmpty(basDevp.getDecDesc())){ |
| | | map.put("message",Cools.add("type", "error").add("errMsg",basDevp.getDecDesc())); |
| | | |
| | | }else { |
| | | map.put("message",Cools.add("type", "error").add("errMsg","")); |
| | | } |
| | | |
| | | map.put("message",Cools.add("type", "error").add("errMsg",basDevp.getDecDesc())); |
| | | webSocketServer.onMessage(JSONObject.toJSONString(map),null,"1002"); |
| | | } |
| | | |