| | |
| | | import com.zy.core.thread.BarcodeThread; |
| | | import com.zy.core.thread.LedThread; |
| | | import com.zy.core.thread.SiemensDevpThread; |
| | | import com.zy.system.service.impl.ConfigServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | private String wmsUrl; |
| | | public short wrkNo = 9999; |
| | | @Autowired |
| | | private ConfigServiceImpl configService; |
| | | private BasCrnOptService crnOptService; |
| | | |
| | | /** |
| | | * 组托 |
| | |
| | | if (crnProtocol.getBay() == 1 && crnProtocol.getLevel() == 1) { |
| | | continue; |
| | | } |
| | | |
| | | BasCrnOpt crnNo = crnOptService.selectOne(new EntityWrapper<BasCrnOpt>().eq("crn_no", crn.getId()).orderBy("send_time", false)); |
| | | if (crnNo != null) { |
| | | if (System.currentTimeMillis() - crnNo.getSendTime().getTime() < 1000 * 60 * 3) { |
| | | continue; |
| | | } |
| | | } else { |
| | | if (System.currentTimeMillis() - crnProtocol.getLastCommandTime() < 1000 * 60 * 2) { |
| | | continue; |
| | | } |
| | | |
| | | } |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>() |
| | | .eq("crn_no", crn.getId()) |
| | | .notIn("wrk_sts", 5, 14, 15) |