| | |
| | | package com.xzx.gc.shop.service; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.xzx.gc.common.utils.StringUtils; |
| | | import com.xzx.gc.shop.dto.QueryScoreDetailsListDto; |
| | | import com.xzx.gc.shop.mapper.ScoreDetailsMapper; |
| | | import com.xzx.gc.shop.vo.QueryOrderListVo; |
| | |
| | | public Map<String, Object> queryScoreDetailsList(QueryScoreDetailsListDto model) { |
| | | PageHelper.startPage(model.getPage(), model.getLimit()); |
| | | List<QueryScoreDetailsListVo> maps = scoreDetailsMapper.queryScoreDetailsList(model); |
| | | if(CollUtil.isNotEmpty(maps)){ |
| | | for(QueryScoreDetailsListVo queryScoreDetailsListVo : maps){ |
| | | String decode = StringUtils.decode(queryScoreDetailsListVo.getName()); |
| | | queryScoreDetailsListVo.setName(decode); |
| | | } |
| | | } |
| | | PageInfo pageInfo = new PageInfo(maps); |
| | | int count = Convert.toInt(pageInfo.getTotal()); |
| | | Map<String, Object> map = new HashMap<>(); |