From 626d711cb15896055c13fe344eb7fcc824589715 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 19 十二月 2019 15:38:42 +0800 Subject: [PATCH] 帮助中心 --- fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java index 6dac116..1a55a85 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java @@ -110,7 +110,7 @@ } else if (detail.getMsgType() == MsgTypeMoneyTypeEnum.extractAutoWX) { if (detail.getMoney() == null || detail.getUser() == null) throw new MsgMoneyDetailException(2, "娑堟伅淇℃伅涓嶅叏"); - + MsgMoneyDetail msg = msgMoneyDetailMapper.selectBySourceIdAndMsgType(detail.getExtract().getId(), MsgTypeMoneyTypeEnum.extractAutoWX); if (msg == null) { @@ -127,16 +127,32 @@ msgMoneyDetailMapper.updateByPrimaryKeySelective(update); } } else if (detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackGiveOff + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackReceiveOff + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackGiveBack || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackExchangePass - || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackExchangeReject) { + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackExchangeReject + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackOneStageReward + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackTwoStageReward + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackThreeStageReward + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackUseFail + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackUseSuccess + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackDeduct + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackForbidRemove + || detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackForbid) { if (detail.getUser() == null) throw new MsgMoneyDetailException(2, "娑堟伅淇℃伅涓嶅叏"); detail.setCreateTime(new Date()); detail.setUpdateTime(new Date()); detail.setRead(false); msgMoneyDetailMapper.insertSelective(detail); + } else if (detail.getMsgType() == MsgTypeMoneyTypeEnum.subSidy) { + if (detail.getMoney() == null || detail.getUser() == null) + throw new MsgMoneyDetailException(2, "娑堟伅淇℃伅涓嶅叏"); + detail.setCreateTime(new Date()); + detail.setUpdateTime(new Date()); + detail.setRead(false); + msgMoneyDetailMapper.insertSelective(detail); } - userMsgReadStateService.addMoneyMsgUnReadCount(detail.getUser().getId(), 1); } -- Gitblit v1.8.0