记得上下班打卡 | git大法好,push需谨慎

Commit 8a6870cb authored by 胡佳晨's avatar 胡佳晨

积分商品 分类列表 1000分页

parent 82a11660
......@@ -19,6 +19,8 @@ import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(tags = "积分物品")
@Controller
@RequestMapping("stone/item")
......@@ -50,12 +52,8 @@ public class StoneItemController extends BaseController {
@ResponseBody
public TableDataInfo list(StoneListParam listParam) {
startPage();
PageInfo<StoneScoreItems> result = iItemService.itemList(listParam.getTitle(), listParam.getState(), listParam.getType(), listParam.getSimpleType());
TableDataInfo rspData = new TableDataInfo();
rspData.setCode(0);
rspData.setRows(result.getList());
rspData.setTotal(result.getTotal());
return rspData;
List<StoneScoreItems> result = iItemService.itemList(listParam.getTitle(), listParam.getState(), listParam.getType(), listParam.getSimpleType());
return getDataTable(result);
}
@Log(title = "积分商品:修改状态")
......
......@@ -17,7 +17,7 @@ public interface IItemService {
* @param type 类型[1-券]
* @return
*/
PageInfo<StoneScoreItems> itemList(String title, Integer status, Integer type, Integer simpleType);
List<StoneScoreItems> itemList(String title, Integer status, Integer type, Integer simpleType);
/**
* 修改 积分物品 状态
......
......@@ -42,8 +42,7 @@ public class ItemServiceImpl implements IItemService {
* @param type 类型[1-券]
* @return
*/
public PageInfo<StoneScoreItems> itemList(String title, Integer status, Integer type, Integer simpleType) {
PageInfo<StoneScoreItems> pageInfo;
public List<StoneScoreItems> itemList(String title, Integer status, Integer type, Integer simpleType) {
LocalDateTime now = LocalDateTime.now();
List<StoneScoreItems> newList = new ArrayList();
LambdaQueryWrapper<StoneScoreItems> queryWrapper = Wrappers.lambdaQuery(StoneScoreItems.class).ne(StoneScoreItems::getStatus, -1);
......@@ -82,8 +81,7 @@ public class ItemServiceImpl implements IItemService {
}
newList.add(item);
}
pageInfo = new PageInfo(newList);
return pageInfo;
return newList;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment