From f26afbade349b6e230a298b9029657dec6ef56f6 Mon Sep 17 00:00:00 2001 From: DESKTOP-71BH0QO\L、ming <172680469@qq.com> Date: 星期六, 17 四月 2021 10:52:21 +0800 Subject: [PATCH] no --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComMngVillageApi.java | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComMngVillageApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComMngVillageApi.java index a5dc02a..e8e4746 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComMngVillageApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComMngVillageApi.java @@ -33,8 +33,7 @@ @PostMapping("addvillage") @Transactional(rollbackFor = Exception.class) public R addVillage(@Valid @RequestBody ComMngVillageVO comMngVillageVO) { - R r = comMngVillageService.addComActVillage(comMngVillageVO); - return R.ok(r); + return comMngVillageService.addComActVillage(comMngVillageVO); } /** @@ -44,8 +43,7 @@ */ @PostMapping("pagevillage") public R pageVillage(@RequestBody PageComMngVillageDTO pageComMngVillageDTO) { - R r = comMngVillageService.pageComActVillage(pageComMngVillageDTO); - return R.ok(r); + return comMngVillageService.pageComActVillage(pageComMngVillageDTO); } /** @@ -55,8 +53,7 @@ */ @PostMapping("listvillage") public R listVillage(@RequestBody ComMngVillageVO comMngVillageVO) { - R r = comMngVillageService.listComActVillage(comMngVillageVO); - return R.ok(r); + return comMngVillageService.listComActVillage(comMngVillageVO); } /** @@ -67,8 +64,7 @@ @PostMapping("deletevillage") @Transactional(rollbackFor = Exception.class) public R delectVillage(@RequestBody List<Long> Ids) { - R r = comMngVillageService.delecComActVillage(Ids); - return R.ok(r); + return comMngVillageService.delecComActVillage(Ids); } /** -- Gitblit v1.7.1