| | |
| | | import com.yeshi.fanli.util.Constant; |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import redis.clients.jedis.Jedis; |
| | | import redis.clients.jedis.JedisPool; |
| | | |
| | |
| | | private MsgOverViewsService msgOverViewsService; |
| | | |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void addMsgOrderDetail(MsgOrderDetail detail, boolean needNotify) throws MsgOrderDetailException { |
| | | if (detail == null) |
| | |
| | | update.setHongBaoMoney(detail.getHongBaoMoney()); |
| | | update.setRead(false); |
| | | update.setBeiZhu(detail.getBeiZhu()); |
| | | |
| | | msgOrderDetailMapper.updateByPrimaryKeySelective(update); |
| | | //更新消息索引时间 |
| | | msgOverViewsService.updateTime(MsgOverViewsFactory.create(detail).getId(), update.getUpdateTime()); |
| | | update.setUser(old.getUser()); |
| | | msgOverViewsService.updateTime(MsgOverViewsFactory.create(update).getId(), update.getUpdateTime()); |
| | | msgExtraService.addMsgExtra(update.getId(), detail.getExtraInfo(), MsgExtra.MSG_TYPE_ORDER); |
| | | } |
| | | if (needNotify) |