| | |
| | | |
| | | |
| | | import cn.lili.base.Result; |
| | | import cn.lili.common.security.context.UserContext; |
| | | import cn.lili.modules.lmk.domain.query.CustomerQuery; |
| | | import cn.lili.modules.lmk.mapper.CustomerMapper; |
| | | import cn.lili.modules.lmk.mapper.LmkStoreMapper; |
| | |
| | | |
| | | import cn.lili.modules.member.entity.vo.MemberVO; |
| | | import cn.lili.modules.member.mapper.MemberMapper; |
| | | import cn.lili.modules.member.service.MemberService; |
| | | import cn.lili.modules.order.order.entity.dto.OrderSearchParams; |
| | | import cn.lili.modules.order.order.entity.vo.OrderSimpleVO; |
| | | import cn.lili.utils.PageUtil; |
| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class CustomerServiceImpl extends ServiceImpl<MemberMapper, Member> implements CustomerService { |
| | | |
| | | private final CustomerMapper customerMapper; |
| | | |
| | | private final MemberService memberService; |
| | | private final LmkStoreMapper storeMapper; |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MemberVO getMember(String id) { |
| | | return null; |
| | | public Result getMemberPageByWX(CustomerQuery customerQuery) { |
| | | String storeId = UserContext.getCurrentUser().getStoreId(); |
| | | if ( storeId == null) { |
| | | return Result.error("该账号没有注册店铺"); |
| | | } |
| | | return getMemberPage(customerQuery); |
| | | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Result getMember(String id) { |
| | | MemberVO memberVO = memberService.getMember(id); |
| | | //查询用户标签 |
| | | // memberVO.setCustomerTagList(); |
| | | return Result.ok().data(memberVO); |
| | | } |
| | | |
| | | @Override |