2021与蓝度共同重构项目,服务端
liuhaonan
2022-03-22 dfe1751af8dbe7ed23906010a6505fb3bbc134fd
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java
@@ -208,11 +208,19 @@
    /**
     * 查找自己拥有的灯杆
     */
    @PostMapping("/getOwnerPole")
    public ResponseVO<Object> getOwnerPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) {
        //public ResponseVO<Object> setMac() {
        return ResponseUtil.success(poleService.getOwnerPole(baseConditionVO,keyword));
        // return ResponseUtil.success(poleService.setMac());
    @PostMapping("/getOwnerPole/{cilentId}")
    public ResponseVO<Object> getOwnerPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword
            ,@PathVariable Long cilentId) {
        List<Pole> results = poleService.getOwnerPole(baseConditionVO, keyword, cilentId);
//        CommonPage commonPage = CommonPage.restPage(results);
//        int size = results.size();
//        commonPage.setTotal((long) size);
//        commonPage.setTotalPage(size / baseConditionVO.getPageSize() + 1);
//        if (size % baseConditionVO.getPageSize() == 0) {
//            commonPage.setTotalPage(size / baseConditionVO.getPageSize());
//        }
//        return ResponseUtil.success(commonPage);
        return ResponseUtil.success(results);
    }