From 3b5d71f42c93c5d1be2154b0ccbf1d03b4075b40 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 24 Apr 2023 09:34:56 +0800 Subject: [PATCH] bug --- .../src/views/erp/accessories/ZyAccessoriesList.vue | 4 ++-- .../erp/accessories/modules/ZyAccessoriesForm.vue | 2 +- .../controller/ZyAccessoriesController.java | 13 +++++++------ .../demo/accessories/entity/ZyAccessories.java | 6 +++++- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue index 88341d34..09023f5f 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue @@ -84,9 +84,9 @@ - + 编辑 - + 详情 diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue index 800d65bf..809f860c 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue @@ -8,7 +8,7 @@ { @Autowired private IZyAccessoriesService zyAccessoriesService; - + /** * 分页列表查询 * @@ -73,7 +73,7 @@ public class ZyAccessoriesController extends JeecgController pageList = zyAccessoriesService.page(page, queryWrapper); return Result.OK(pageList); } - + /** * 添加 * @@ -93,7 +93,7 @@ public class ZyAccessoriesController extends JeecgController edit(@RequestBody ZyAccessories zyAccessories) { QueryWrapper queryWrapper=new QueryWrapper(); queryWrapper.eq("contents",zyAccessories.getContents()); + queryWrapper.ne("id",zyAccessories.getId()); int a= zyAccessoriesService.count(queryWrapper); if(a>=1){ return Result.error("名称重复,请修改后重试!!"); @@ -113,7 +114,7 @@ public class ZyAccessoriesController extends JeecgController