springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyServiceImpl.java
@@ -19,6 +19,8 @@ import javax.annotation.Resource; import static java.util.Objects.isNull; /** * (ComProperty)表服务实现类 * @@ -103,4 +105,21 @@ } return R.fail("用户账号错误"); } /** * 物业公司详情 * @param id * @return */ @Override public R detailProperty(Long id) { ComProperty comProperty = comPropertyDao.selectById(id); if (isNull(comProperty)) { return R.fail("资源不存在"); } ComPropertyVO comPropertyVO = new ComPropertyVO(); BeanUtils.copyProperties(comProperty, comPropertyVO); comPropertyVO.setPassword(null); return R.ok(comPropertyVO); } }