From 8788a78ad30c1bb9d50d91b10e76d3ae47ed8da2 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期一, 07 六月 2021 09:28:23 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/test_future_wangge' into test_future_wangge --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsHouseServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsHouseServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsHouseServiceImpl.java index 4e2dfcb..88fd25a 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsHouseServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsHouseServiceImpl.java @@ -42,8 +42,8 @@ public R addHouse(ComOpsHouseDTO comOpsHouseDTO) { ComOpsHouseDO comOpsHouseDO=new ComOpsHouseDO(); BeanUtils.copyProperties(comOpsHouseDTO,comOpsHouseDO); - comOpsHouseDAO.insert(comOpsHouseDO); - return R.ok(); + int inserted = comOpsHouseDAO.insert(comOpsHouseDO); + return inserted==1?R.ok():R.fail(); } /** @@ -127,8 +127,8 @@ } page.setSize(pageSize); page.setCurrent(pageNum); - if(!StringUtils.isEmpty(pageComOpsHouseDTO.getUserRealName())){ - Long userId = comOpsHouseDAO.selectUserIdByName(pageComOpsHouseDTO.getUserRealName()); + if(!StringUtils.isEmpty(pageComOpsHouseDTO.getUserName())){ + Long userId = comOpsHouseDAO.selectUserIdByName(pageComOpsHouseDTO.getUserName()); if (userId==null){ userId = -1L; } -- Gitblit v1.7.1