From e19ce4be094d93f68bdb6ee1c28e9caa502bf2c4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 10 十月 2019 11:17:12 +0800 Subject: [PATCH] utils包添加工具类,抖音广告修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/order/tb/TaoBaoPunishOrderServiceImpl.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/tb/TaoBaoPunishOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/tb/TaoBaoPunishOrderServiceImpl.java index 78e8130..4c095ee 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/tb/TaoBaoPunishOrderServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/tb/TaoBaoPunishOrderServiceImpl.java @@ -84,6 +84,20 @@ hongBaoV2Service.updateByPrimaryKeySelective(update); } } + } else if (hongBaoOder.getHongBaoV2() != null + && hongBaoOder.getHongBaoV2().getState() == HongBaoV2.STATE_YILINGQU) { + List<HongBaoV2> childList = hongBaoV2Service.listChildrenById(hongBaoOder.getHongBaoV2().getId()); + for (HongBaoV2 child : childList) { + if ((child.getState() == HongBaoV2.STATE_BUKELINGQU + || child.getState() == HongBaoV2.STATE_KELINGQU)) { + //鏈埌璐︾殑瀛愮孩鍖呬篃闇�瑕佸け鏁� + HongBaoV2 update = new HongBaoV2(child.getId()); + update.setUpdateTime(new Date()); + update.setState(HongBaoV2.STATE_SHIXIAO); + update.setBeizhu("鑱旂洘杩濊"); + hongBaoV2Service.updateByPrimaryKeySelective(update); + } + } } } } -- Gitblit v1.8.0