1. 更新代码规范检查
This commit is contained in:
parent
c39634aa4a
commit
076bd38932
|
@ -17,9 +17,8 @@ public interface ISocketServer {
|
|||
/**
|
||||
* Send data int.
|
||||
*
|
||||
* @param <T> the type parameter
|
||||
* @param ch the ch
|
||||
* @param data the data
|
||||
* @param devId the dev id
|
||||
*/
|
||||
void sendData(Channel ch, Object data);
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@ package com.zjyr.beidouservice.adapter.impl.netty;
|
|||
import com.zjyr.beidouservice.adapter.impl.netty.notify.SocketNotifyEvent;
|
||||
import com.zjyr.beidouservice.common.impl.SocketEventName;
|
||||
import com.zjyr.beidouservice.pojo.vo.binary.BaseBinaryProtocol;
|
||||
import com.zjyr.beidouservice.pojo.vo.binary.HeartProtocol;
|
||||
import com.zjyr.beidouservice.pojo.vo.binary.MessageContent;
|
||||
import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelHandler;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
|
|
@ -6,8 +6,6 @@ import lombok.Getter;
|
|||
import lombok.Setter;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* The type Socket notify event.
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package com.zjyr.beidouservice.misc;
|
||||
|
||||
import com.zjyr.beidouservice.pojo.vo.binary.BaseBinaryProtocol;
|
||||
|
||||
/**
|
||||
* The type Helper utils.
|
||||
*/
|
||||
|
|
|
@ -28,13 +28,13 @@ public class BeidouSocketProtocolServiceImpl implements AdapterProtocolService {
|
|||
public List<SensorControllContent> createSensorCtrlInfo(List<BeidouAdapterControlContent> ctxList) {
|
||||
List<SensorControllContent> list = new ArrayList<>();
|
||||
|
||||
ctxList.forEach(v -> {
|
||||
for (BeidouAdapterControlContent v : ctxList) {
|
||||
list.add(SensorControllContent.builder()
|
||||
.districtsCode(v.getDistrictsCode().byteValue())
|
||||
.controlAction(v.getControlAction())
|
||||
.sensorId(v.getSensorId().shortValue())
|
||||
.build());
|
||||
});
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue