推送逻辑修改;

This commit is contained in:
王奎兴
2026-06-12 17:08:28 +08:00
parent ece27b786f
commit e80d62e104
@@ -1004,16 +1004,18 @@ public class StockOutOrderApplicationService {
String needDeclareFlag = stockOutOrderDO.getNeedDeclareFlag();
Long organizationId = stockOutOrderDO.getOrganizationId();
try {
if (needDeclareFlag != null && "1".equals(needDeclareFlag) && organizationId != null && organizationId == 2830) {
Long outOrderId = stockOutOrderDO.getOutOrderId();
List<Long> ids = new ArrayList<>();
ids.add(outOrderId);
batchPush(ids);
} else {
String outOrderId = stockOutOrderDO.getOutOrderNumber();
List<String> ids = new ArrayList<>();
ids.add(outOrderId);
omsServiceFeign.batchPushByNumber(ids);
if (needDeclareFlag != null && "1".equals(needDeclareFlag) && organizationId != null) {
if (organizationId == 2830) {
Long outOrderId = stockOutOrderDO.getOutOrderId();
List<Long> ids = new ArrayList<>();
ids.add(outOrderId);
batchPush(ids);
} else {
String outOrderId = stockOutOrderDO.getOutOrderNumber();
List<String> ids = new ArrayList<>();
ids.add(outOrderId);
omsServiceFeign.batchPushByNumber(ids);
}
}
} catch (Exception e) {
throw new ServiceException("生成报关单失败");