From 8c9558884a09ed640d0b2428500ddb81cec1fe24 Mon Sep 17 00:00:00 2001 From: wangjiadong Date: Wed, 14 Dec 2022 17:01:45 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=95=86=E5=93=81?= =?UTF-8?q?=EF=BC=88=E8=A1=A3=E6=A9=B1=EF=BC=89=E9=A1=BE=E5=AE=A2=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomercollectgoodsController.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customercollectgoods/controller/CustomercollectgoodsController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customercollectgoods/controller/CustomercollectgoodsController.java index 74b04c18..1811e872 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customercollectgoods/controller/CustomercollectgoodsController.java +++ b/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 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 queryWrapper = QueryGenerator.initQueryWrapper(customercollectgoods, req.getParameterMap()); + queryWrapper.eq("createBy",sysUser.getUsername()); + Page page = new Page(pageNo, pageSize); + IPage pageList = customercollectgoodsService.page(page, queryWrapper); + return Result.OK(pageList); + } + + + /** * 添加 From 36c2bf82f99fa67ecce3821a5b10b29c6a065dae Mon Sep 17 00:00:00 2001 From: wangjiadong Date: Wed, 14 Dec 2022 17:02:40 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=95=86=E5=93=81?= =?UTF-8?q?=EF=BC=88=E8=A1=A3=E6=A9=B1=EF=BC=89=E9=A1=BE=E5=AE=A2=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/CustomercollectgoodsList.vue | 196 ++++++++++++++++++ .../modules/CustomercollectgoodsForm.vue | 124 +++++++++++ .../modules/CustomercollectgoodsModal.vue | 60 ++++++ ...ustomercollectgoodsModal__Style#Drawer.vue | 84 ++++++++ 4 files changed, 464 insertions(+) create mode 100644 ant-design-vue-jeecg/src/views/customercollectgoods/custom/CustomercollectgoodsList.vue create mode 100644 ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsForm.vue create mode 100644 ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal.vue create mode 100644 ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal__Style#Drawer.vue diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/custom/CustomercollectgoodsList.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/CustomercollectgoodsList.vue new file mode 100644 index 00000000..711380cd --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/CustomercollectgoodsList.vue @@ -0,0 +1,196 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsForm.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsForm.vue new file mode 100644 index 00000000..ecec87c9 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsForm.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal.vue new file mode 100644 index 00000000..bd182c76 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal__Style#Drawer.vue new file mode 100644 index 00000000..c04821b9 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/custom/modules/CustomercollectgoodsModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file From 6939e4999ce04406a1f5deab8eda478e02b76878 Mon Sep 17 00:00:00 2001 From: wangjiadong Date: Wed, 14 Dec 2022 17:14:54 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=95=86=E5=93=81?= =?UTF-8?q?=EF=BC=88=E8=A1=A3=E6=A9=B1=EF=BC=89bug=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/CustomercollectgoodsList.vue | 22 ++++++++++++++++++- .../modules/CustomercollectgoodsForm.vue | 2 +- .../custom/CustomercollectgoodsList.vue | 22 ++++++++++++++++++- .../modules/CustomercollectgoodsForm.vue | 2 +- .../entity/Customercollectgoods.java | 5 +++-- 5 files changed, 47 insertions(+), 6 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/CustomercollectgoodsList.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/CustomercollectgoodsList.vue index f33e5853..e965d891 100644 --- a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/CustomercollectgoodsList.vue +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/CustomercollectgoodsList.vue @@ -1,9 +1,29 @@