取消出入库订单业务流程推送;
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user