张天森
2022-11-12 5f9125510be183c3f0911c629c7269d068c6c182
token获取物业id处理
3个文件已修改
18 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/ComPropertyRepairService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyRepairServiceImpl.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);