| | |
| | | import cn.lili.modules.lmk.mapper.PrizeClaimRecordMapper; |
| | | import cn.lili.modules.lmk.service.PrizeClaimRecordService; |
| | | import cn.lili.base.Result; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import cn.lili.modules.lmk.domain.form.PrizeClaimRecordForm; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(PrizeClaimRecordQuery query) { |
| | | public Result page(PrizeClaimRecordQuery query,String from) { |
| | | IPage<PrizeClaimRecordVO> page = PageUtil.getPage(query, PrizeClaimRecordVO.class); |
| | | |
| | | if ("seller".equals(from)){ |
| | | String storeId = UserContext.getCurrentUser().getStoreId(); |
| | | query.setStoreId(storeId); |
| | | } |
| | | |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |