| | |
| | | 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);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|