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