springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java
@@ -13,6 +13,8 @@ import javax.annotation.Resource; import static java.util.Objects.nonNull; /** * (ComPropertyRepair)表控制层 * @@ -34,6 +36,9 @@ */ @PostMapping("queryAll") public R selectAll(@RequestBody CommonPage commonPage) { if (nonNull(commonPage.getPropertyCheck()) && commonPage.getPropertyCheck()==1 && nonNull(commonPage.getPropertyId())){ return this.comPropertyRepairService.pageListProperty(commonPage); } return this.comPropertyRepairService.pageList(commonPage); } springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/ComPropertyRepairService.java
@@ -36,4 +36,9 @@ * 详情查询脱敏 */ R selectDetailDesensitize(Long id); /** * 查询物业报事报修列表 * */ R pageListProperty(CommonPage commonPage); } springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyRepairServiceImpl.java
@@ -17,6 +17,8 @@ import javax.annotation.Resource; import static java.util.Objects.nonNull; /** * (ComPropertyRepair)表服务实现类 * @@ -61,6 +63,12 @@ } @Override public R pageListProperty(CommonPage commonPage) { IPage<ComPropertyRepairVO> list = comPropertyRepairDao.pageList(new Page(commonPage.getPage(), commonPage.getSize()), commonPage); return R.ok(list); } @Override public R selectDetail(Long id) { ComPropertyRepairVO vo = comPropertyRepairDao.selectDetail(id); return R.ok(vo);