liujie
2025-06-09 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java
@@ -8,10 +8,13 @@
import com.panzhihua.common.utlis.RSAUtils;
import com.panzhihua.service_property.entity.ComPropertyRepair;
import com.panzhihua.service_property.service.ComPropertyRepairService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import static java.util.Objects.nonNull;
/**
 * (ComPropertyRepair)表控制层
@@ -21,6 +24,7 @@
 */
@RestController
@RequestMapping("comPropertyRepair")
@Slf4j
public class ComPropertyRepairApi {
    /**
     * 服务对象
@@ -37,6 +41,15 @@
        return this.comPropertyRepairService.pageList(commonPage);
    }
    /**
     * 分页查询所有数据 脱敏
     * @return 所有数据
     */
    @PostMapping("queryAllDesensitize")
    public R selectAllDesensitize(@RequestBody CommonPage commonPage) {
        return this.comPropertyRepairService.pageListDesensitize(commonPage);
    }
    /**
@@ -49,6 +62,19 @@
    public R selectOne(@PathVariable("id") Long id) {
        return this.comPropertyRepairService.selectDetail(id);
    }
    /**
     * 通过主键查询单条数据 脱敏
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("desensitize/{id}")
    public R selectOneDesensitize(@PathVariable("id") Long id) {
        return this.comPropertyRepairService.selectDetailDesensitize(id);
    }
    /**
     * 新增数据
@@ -73,7 +99,6 @@
        }
        return R.ok(this.comPropertyRepairService.save(comPropertyRepair));
    }
    /**
     * 修改数据