| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | |
| | | //活跃度赋值 |
| | | Date lastPayTime; |
| | | for (MgtMemberPageVo mgtMemberPageVo : memberPageVoList) { |
| | | if(null != mgtMemberPageVo.getRelationShopId()){ |
| | | R<Shop> shop_r = remoteShopService.getShop(mgtMemberPageVo.getRelationShopId()); |
| | | if(shop_r.getCode() == 200){ |
| | | Shop data = shop_r.getData(); |
| | | if(null != data){ |
| | | mgtMemberPageVo.setRelationShopName(data.getShopName()); |
| | | } |
| | | } |
| | | } |
| | | lastPayTime = mgtMemberPageVo.getLastPayTime(); |
| | | StringJoiner sj = new StringJoiner(","); |
| | | if (lastPayTime != null) { |
| | |
| | | mgtMemberGetVo.setLastPayTime(memberTotal.getLastPayTime()); |
| | | mgtMemberGetVo.setGoodsType(member.getGoodsType()); |
| | | if(member.getBindingFlag()==1){ |
| | | mgtMemberGetVo.setRelationShopName(member.getRelationShopName()); |
| | | R<Shop> shop = remoteShopService.getShop(member.getRelationShopId()); |
| | | if(shop.getCode() == 200){ |
| | | Shop data = shop.getData(); |
| | | if(null != data){ |
| | | mgtMemberGetVo.setRelationShopName(data.getShopName()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | mgtMemberGetVo.setIntegral(memberTotal.getTotalIntegral()); |
| | | mgtMemberGetVo.setMemberFrom(member.getCustomerSource()); |