推送逻辑修改;
This commit is contained in:
+14
-10
@@ -284,17 +284,21 @@ public class ReservationStockInOrderApplicationService {
|
||||
*/
|
||||
public Boolean auditState(ReservationStockInOrderDO stockInOrderDO){
|
||||
Boolean b = stockInOrderDomainService.auditState(stockInOrderDO);
|
||||
Integer needCustomsDeclaration = stockInOrderDO.getNeedCustomsDeclaration();
|
||||
Integer auditStatus = stockInOrderDO.getIssueStatus();
|
||||
try {
|
||||
if (needCustomsDeclaration != null && needCustomsDeclaration == 1 && auditStatus != null && auditStatus == 2) {
|
||||
Long inOrderId = stockInOrderDO.getInOrderId();
|
||||
List<Long> idList = new ArrayList<>();
|
||||
idList.add(inOrderId);
|
||||
batchPush(idList);
|
||||
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("推送关务系统失败!");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("推送关务系统失败!");
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user