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

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

积分商品 分类列表 1000分页

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