yujian
2020-01-18 f4a0f2acc63d7785eab108419a4e16f5f688cb95
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);
               }
            }
         }
      }
   }