| | |
| | | package com.panzhihua.service_dangjian.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.partybuilding.NewFightIntegral; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.building.NewFightShoppingOrderVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.Snowflake; |
| | | import com.panzhihua.service_dangjian.dao.NewFightShoppingOrderDao; |
| | | import com.panzhihua.service_dangjian.entity.ComActIntegralUser; |
| | |
| | | |
| | | @Resource |
| | | private ComActIntegralUsersService integralUsersService; |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @Override |
| | | public R getList(int pageNum,int pageSize,String userId,String goodsId,String orderNumber, |
| | |
| | | integral.setRemark("商家兑换商品"); |
| | | integral.setMerchantId(item.getMerchantId()); |
| | | integral.setIntegralNum(item.getPalyMoney()); |
| | | |
| | | |
| | | |
| | | SysUserNoticeVO sysUserNoticeVO = new SysUserNoticeVO(); |
| | | sysUserNoticeVO.setUserId(Long.valueOf(item.getUserId())); |
| | | sysUserNoticeVO.setType(1); |
| | | sysUserNoticeVO.setTitle("商家兑换成功"); |
| | | sysUserNoticeVO.setBusinessType(14); |
| | | sysUserNoticeVO.setBusinessTitle(item.getRemark()); |
| | | sysUserNoticeVO |
| | | .setBusinessContent(String.format("兑换商品%s", item.getRemark())); |
| | | sysUserNoticeVO.setStatus(0); |
| | | sysUserNoticeVO.setBusinessStatus(1); |
| | | sysUserNoticeVO.setActivityType(4); |
| | | R r2 = userService.addNotice(sysUserNoticeVO); |
| | | // if (R.isOk(r2)) { |
| | | // log.info("新增兑换商品通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | // } |
| | | } |
| | | integralUsersService.upIntegral(integral); |
| | | |