收藏商品(衣橱)顾客段

zhc4dev
wangjiadong 2 years ago
parent f4f0520205
commit 8c9558884a
  1. 32
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customercollectgoods/controller/CustomercollectgoodsController.java

@ -9,8 +9,11 @@ import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.demo.customercollectgoods.entity.Customercollectgoods;
import org.jeecg.modules.demo.customercollectgoods.service.ICustomercollectgoodsService;
@ -71,6 +74,35 @@ public class CustomercollectgoodsController extends JeecgController<Customercoll
IPage<Customercollectgoods> pageList = customercollectgoodsService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 分页列表查询
*
* @param customercollectgoods
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "收藏商品(衣橱)-分页列表查询")
@ApiOperation(value="收藏商品(衣橱)-分页列表查询", notes="收藏商品(衣橱)-分页列表查询")
@GetMapping(value = "/listcustom")
public Result<?> listcustom(Customercollectgoods customercollectgoods,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
QueryWrapper<Customercollectgoods> queryWrapper = QueryGenerator.initQueryWrapper(customercollectgoods, req.getParameterMap());
queryWrapper.eq("createBy",sysUser.getUsername());
Page<Customercollectgoods> page = new Page<Customercollectgoods>(pageNo, pageSize);
IPage<Customercollectgoods> pageList = customercollectgoodsService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加

Loading…
Cancel
Save