取消出入库订单业务流程推送;
This commit is contained in:
+16
-16
@@ -281,22 +281,22 @@ public class ReservationStockInOrderApplicationService {
|
||||
*/
|
||||
public Boolean auditState(ReservationStockInOrderDO stockInOrderDO){
|
||||
Boolean b = stockInOrderDomainService.auditState(stockInOrderDO);
|
||||
List<Long> inOrderIds = stockInOrderDO.getInOrderIds();
|
||||
if (inOrderIds != null && !inOrderIds.isEmpty()) {
|
||||
ReservationStockInOrder stockInOrder = reservationStockInOrderMapper.selectById(inOrderIds.get(0));
|
||||
Integer needCustomsDeclaration = stockInOrder.getNeedCustomsDeclaration();
|
||||
Integer auditStatus = stockInOrder.getIssueStatus();
|
||||
try {
|
||||
if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 2) {
|
||||
Long inOrderId = stockInOrder.getInOrderId();
|
||||
List<Long> idList = new ArrayList<>();
|
||||
idList.add(inOrderId);
|
||||
batchPush(idList);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("推送关务系统失败!");
|
||||
}
|
||||
}
|
||||
// List<Long> inOrderIds = stockInOrderDO.getInOrderIds();
|
||||
// if (inOrderIds != null && !inOrderIds.isEmpty()) {
|
||||
// ReservationStockInOrder stockInOrder = reservationStockInOrderMapper.selectById(inOrderIds.get(0));
|
||||
// Integer needCustomsDeclaration = stockInOrder.getNeedCustomsDeclaration();
|
||||
// Integer auditStatus = stockInOrder.getIssueStatus();
|
||||
// try {
|
||||
// if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 2) {
|
||||
// Long inOrderId = stockInOrder.getInOrderId();
|
||||
// List<Long> idList = new ArrayList<>();
|
||||
// idList.add(inOrderId);
|
||||
// //batchPush(idList);
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// throw new ServiceException("推送关务系统失败!");
|
||||
// }
|
||||
// }
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
+16
-16
@@ -495,22 +495,22 @@ public class StockInOrderApplicationService {
|
||||
*/
|
||||
public Boolean auditState(StockInOrderDO stockInOrderDO){
|
||||
Boolean b = stockInOrderDomainService.auditState(stockInOrderDO);
|
||||
List<Long> inOrderIds = stockInOrderDO.getInOrderIds();
|
||||
if (inOrderIds != null && !inOrderIds.isEmpty()) {
|
||||
StockInOrder stockInOrder = stockInOrderService.getById(inOrderIds.get(0));
|
||||
Integer needCustomsDeclaration = stockInOrder.getNeedCustomsDeclaration();
|
||||
Integer auditStatus = stockInOrder.getAuditStatus();
|
||||
try {
|
||||
if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 3) {
|
||||
Long inOrderId = stockInOrder.getInOrderId();
|
||||
List<Long> idList = new ArrayList<>();
|
||||
idList.add(inOrderId);
|
||||
batchPush(idList);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("推送关务系统失败!");
|
||||
}
|
||||
}
|
||||
// List<Long> inOrderIds = stockInOrderDO.getInOrderIds();
|
||||
// if (inOrderIds != null && !inOrderIds.isEmpty()) {
|
||||
// StockInOrder stockInOrder = stockInOrderService.getById(inOrderIds.get(0));
|
||||
// Integer needCustomsDeclaration = stockInOrder.getNeedCustomsDeclaration();
|
||||
// Integer auditStatus = stockInOrder.getAuditStatus();
|
||||
// try {
|
||||
// if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 3) {
|
||||
// Long inOrderId = stockInOrder.getInOrderId();
|
||||
// List<Long> idList = new ArrayList<>();
|
||||
// idList.add(inOrderId);
|
||||
// //batchPush(idList);
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// throw new ServiceException("推送关务系统失败!");
|
||||
// }
|
||||
// }
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
+23
-23
@@ -1001,29 +1001,29 @@ public class StockOutOrderApplicationService {
|
||||
*/
|
||||
public Boolean genPickingOrder(StockOutOrderDO stockOutOrderDO){
|
||||
Boolean b = stockOutOrderDomainService.genPickingOrder(stockOutOrderDO);
|
||||
List<Long> outOrderIds = stockOutOrderDO.getOutOrderIds();
|
||||
if (outOrderIds != null && !outOrderIds.isEmpty()) {
|
||||
StockOutOrder order = stockOutOrderService.getById(outOrderIds.get(0));
|
||||
String needDeclareFlag = order.getNeedDeclareFlag();
|
||||
Long organizationId = order.getOrganizationId();
|
||||
try {
|
||||
if (needDeclareFlag != null && "1".equals(needDeclareFlag) && organizationId != null) {
|
||||
if (organizationId == 2830) {
|
||||
Long outOrderId = order.getOutOrderId();
|
||||
List<Long> ids = new ArrayList<>();
|
||||
ids.add(outOrderId);
|
||||
batchPush(ids);
|
||||
} else {
|
||||
String outOrderId = order.getOutOrderNumber();
|
||||
List<String> ids = new ArrayList<>();
|
||||
ids.add(outOrderId);
|
||||
omsServiceFeign.batchPushByNumber(ids);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("生成报关单失败");
|
||||
}
|
||||
}
|
||||
// List<Long> outOrderIds = stockOutOrderDO.getOutOrderIds();
|
||||
// if (outOrderIds != null && !outOrderIds.isEmpty()) {
|
||||
// StockOutOrder order = stockOutOrderService.getById(outOrderIds.get(0));
|
||||
// String needDeclareFlag = order.getNeedDeclareFlag();
|
||||
// Long organizationId = order.getOrganizationId();
|
||||
// try {
|
||||
// if (needDeclareFlag != null && "1".equals(needDeclareFlag) && organizationId != null) {
|
||||
// if (organizationId == 2830) {
|
||||
// Long outOrderId = order.getOutOrderId();
|
||||
// List<Long> ids = new ArrayList<>();
|
||||
// ids.add(outOrderId);
|
||||
// //batchPush(ids);
|
||||
// } else {
|
||||
// String outOrderId = order.getOutOrderNumber();
|
||||
// List<String> ids = new ArrayList<>();
|
||||
// ids.add(outOrderId);
|
||||
// //omsServiceFeign.batchPushByNumber(ids);
|
||||
// }
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// throw new ServiceException("生成报关单失败");
|
||||
// }
|
||||
// }
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user