流程中推送关务;
This commit is contained in:
+14
-1
@@ -494,7 +494,20 @@ public class StockInOrderApplicationService {
|
||||
* @return Boolean
|
||||
*/
|
||||
public Boolean auditState(StockInOrderDO stockInOrderDO){
|
||||
return stockInOrderDomainService.auditState(stockInOrderDO);
|
||||
Boolean b = stockInOrderDomainService.auditState(stockInOrderDO);
|
||||
Integer needCustomsDeclaration = stockInOrderDO.getNeedCustomsDeclaration();
|
||||
Integer auditStatus = stockInOrderDO.getAuditStatus();
|
||||
try {
|
||||
if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 3) {
|
||||
Long inOrderId = stockInOrderDO.getInOrderId();
|
||||
List<Long> idList = new ArrayList<>();
|
||||
idList.add(inOrderId);
|
||||
batchPush(idList);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("推送关务系统失败!");
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+19
-1
@@ -1000,7 +1000,25 @@ public class StockOutOrderApplicationService {
|
||||
* @return Boolean
|
||||
*/
|
||||
public Boolean genPickingOrder(StockOutOrderDO stockOutOrderDO){
|
||||
return stockOutOrderDomainService.genPickingOrder(stockOutOrderDO);
|
||||
Boolean b = stockOutOrderDomainService.genPickingOrder(stockOutOrderDO);
|
||||
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 {
|
||||
Long outOrderId = stockOutOrderDO.getOutOrderId();
|
||||
List<Long> ids = new ArrayList<>();
|
||||
ids.add(outOrderId);
|
||||
omsServiceFeign.batchPush(ids);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("生成报关单失败");
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user