tags/yfai-pcn-ext-v1.0
王杰 10 months ago
commit 8f331b5a2a

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

@ -101,7 +101,9 @@ public class MesReportNoSortJob extends BaseMesScheduleJob {
}
try {
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) {
LOGGER.error("条码:{}报工失败", unReportMesProduceSn.get(0).getProductSn(), e.getErrorDetail());

Loading…
Cancel
Save