流程中推送关务;
This commit is contained in:
+14
-7
@@ -283,13 +283,20 @@ public class ReservationStockInOrderApplicationService {
|
||||
* @return Boolean
|
||||
*/
|
||||
public Boolean auditState(ReservationStockInOrderDO stockInOrderDO){
|
||||
Integer issueStatus = stockInOrderDO.getIssueStatus();
|
||||
// if (issueStatus == 2) {
|
||||
// List<Long> idList = new ArrayList();
|
||||
// idList.add(stockInOrderDO.getInOrderId());
|
||||
// batchPush(idList);
|
||||
// }
|
||||
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 == 2) {
|
||||
Long inOrderId = stockInOrderDO.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