|
|
|
|
@ -23,6 +23,8 @@ public class KsecDecoder extends DelimiterBasedFrameDecoder {
|
|
|
|
|
|
|
|
|
|
private static final Logger tcpLogger = LoggerFactory.getLogger("tcp");
|
|
|
|
|
|
|
|
|
|
private static String lastLotnum;
|
|
|
|
|
|
|
|
|
|
private PlcService plcService;
|
|
|
|
|
|
|
|
|
|
public KsecDecoder(int maxFrameLength, ByteBuf delimiter, PlcService plcService) {
|
|
|
|
|
@ -102,6 +104,11 @@ public class KsecDecoder extends DelimiterBasedFrameDecoder {
|
|
|
|
|
tcpLogger.info("info:{}",body);
|
|
|
|
|
//盘点
|
|
|
|
|
//转球机到盘点位 然后拍照
|
|
|
|
|
String lotnum = dataInfo.getLotnum();
|
|
|
|
|
if(!StringUtils.isEmpty(lotnum) && !lotnum.equals(lastLotnum)){
|
|
|
|
|
//需要把stock表truncate
|
|
|
|
|
lastLotnum = lotnum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(ksecInfo.getData().getCmdName().equals("test")){
|
|
|
|
|
plcService.kescTest6(plcCmdInfo,ksecInfo.getData().getCmdName(), dataInfo.getCode());
|
|
|
|
|
|