报工问题修改

tags/yfai-pcn-ext-v1.0
微笑着面对明天 10 months ago
parent 5211abcb7b
commit b72ff0caf3

@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
@Slf4j @Slf4j
public class PcnMqttCallback implements MqttCallbackExtended { public class PcnMqttCallback implements MqttCallbackExtended {
private static ExecutorService executorService = new ThreadPoolExecutor(100, 100, private static ExecutorService executorService = new ThreadPoolExecutor(1000, 1000,
0L, TimeUnit.MILLISECONDS, 0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(10000), r -> { new LinkedBlockingQueue<>(10000), r -> {
Thread thread = new Thread(r); Thread thread = new Thread(r);
@ -33,7 +33,7 @@ public class PcnMqttCallback implements MqttCallbackExtended {
return thread; return thread;
},new ThreadPoolExecutor.DiscardPolicy()); },new ThreadPoolExecutor.DiscardPolicy());
private static ExecutorService executorServiceTwo = new ThreadPoolExecutor(100, 100, private static ExecutorService executorServiceTwo = new ThreadPoolExecutor(1000,1000,
0L, TimeUnit.MILLISECONDS, 0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(10000), r -> { new LinkedBlockingQueue<>(10000), r -> {
Thread thread = new Thread(r); Thread thread = new Thread(r);

@ -101,7 +101,9 @@ public class MesReportNoSortJob extends BaseMesScheduleJob {
} }
try { try {
Map<String, Integer> map = new HashMap<>(); Map<String, Integer> map = new HashMap<>();
workOrderService.doProductHasOrderReportByRecord(unReportMesProduceSn.get(0), organizeCode, userName); for (MesProductionRecord mesProductionRecord : unReportMesProduceSn) {
workOrderService.doProductHasOrderReportByRecord(mesProductionRecord, organizeCode, userName);
}
} catch (ImppBusiException e) { } catch (ImppBusiException e) {
LOGGER.error("条码:{}报工失败", unReportMesProduceSn.get(0).getProductSn(), e.getErrorDetail()); LOGGER.error("条码:{}报工失败", unReportMesProduceSn.get(0).getProductSn(), e.getErrorDetail());

Loading…
Cancel
Save