推送逻辑修改;
This commit is contained in:
+12
-10
@@ -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("生成报关单失败");
|
||||
|
||||
Reference in New Issue
Block a user