opt:优化线程池,工单同步接口

This commit is contained in:
zhangzq
2024-03-07 09:06:19 +08:00
parent 087d719036
commit 5dc29176a5
3 changed files with 14 additions and 0 deletions

View File

@@ -358,9 +358,17 @@ public class AcsToWmsServiceImpl implements AcsToWmsService{
@Override
@Async
public void feedOrderRealQty(JSONObject param) {
String today = DateUtil.today().replace("-", "");
if (CollectionUtils.isEmpty(param)){
return;
}
Iterator<String> check = param.keySet().iterator();
while (check.hasNext()){
String key = check.next();
if (!key.contains(today)){
check.remove();
}
}
Iterator<String> iterator = param.keySet().iterator();
Map<String, PdmProduceWorkorder> map = workorderService.list(new QueryWrapper<PdmProduceWorkorder>()
.in("workorder_code", param.keySet()))

View File

@@ -1,5 +1,8 @@
server:
port: 8011
tomcat:
max-threads: 300
min-spare-threads: 30
#配置数据源
spring:
datasource:

View File

@@ -1,5 +1,8 @@
server:
port: 8011
tomcat:
max-threads: 300
min-spare-threads: 30
#配置数据源
spring:
datasource: