增加日志

changchun-医药
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 1335eed45a
commit 03c4443c03

@ -10,6 +10,7 @@ import com.zhehekeji.web.service.PlcService;
import com.zhehekeji.web.service.interfaces.RfidLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@ -21,6 +22,7 @@ import java.util.*;
@Api(tags = "对外接口")
@RequestMapping("/videocc")
@RestController
@Slf4j
public class VideoccController {
@Resource
private RfidLogService rfidLogService;
@ -38,9 +40,10 @@ public class VideoccController {
if(videocc.getDetails()!=null && videocc.getDetails().size()>0){
for(String detail:videocc.getDetails().keySet()){
list.add(detail);
list.addAll(videocc.getDetails().get(detail));
list.addAll(videocc.getDetails().get(detail));
}
}
log.info("rfid推送信息:"+list);
plcService.wmsTrayCodeMapByTask.put(orderNum,list);
VideoccResponse videoccResponse = new VideoccResponse();
videoccResponse.setMsg("成功");

@ -716,7 +716,8 @@ public class PlcService {
}
if (tags != null && tags.size() > 0) {
if (tags.containsAll(wmsTrayCodeMapByTask.get(plcCmdInfo.getOrderNum()))) {
if (wmsTrayCodeMapByTask.get(plcCmdInfo.getOrderNum()) !=null
&& tags.containsAll(wmsTrayCodeMapByTask.get(plcCmdInfo.getOrderNum()))) {
trayRFIDCheck = Boolean.TRUE;
@ -725,6 +726,7 @@ public class PlcService {
trayCode = "RFID扫描失败";
}else
trayCode += ";RFID扫描失败";
wmsTrayCodeMapByTask.get(plcCmdInfo.getOrderNum()).removeAll(tags);
trayRFIDCheck = Boolean.FALSE;
}
wmsTrayCodeMapByTask.remove(plcCmdInfo.getOrderNum());

Loading…
Cancel
Save