linwe
2023-12-28 419ceea2b269364761e0de064a858c7a75f7be64
src/main/java/org/springblade/modules/grid/controller/GridmanController.java
@@ -62,6 +62,14 @@
      GridmanEntity detail = gridmanService.getOne(Condition.getQueryWrapper(gridman));
      return R.data(GridmanWrapper.build().entityVO(detail));
   }
   /**
    * 网格员表 自定义详情
    */
   @GetMapping("/getDetail")
   public R<GridmanVO> getDetail(GridmanEntity gridman) {
      return R.data(gridmanService.getDetail(gridman));
   }
   /**
    * 网格员表 分页
    */
@@ -155,5 +163,28 @@
   }
   /**
    *
    * @param code
    * @param roleType
    * @return
    */
   @ApiOperation(value = "网格员和物业人公司统计", notes = "")
   @GetMapping("/getGridStatistics")
   public R getGridStatistics(@RequestParam("code") String code, @RequestParam("roleType") String roleType) {
      return R.data(gridmanService.getGridStatistics(code,roleType));
   }
   /**
    *通过houseCode获取网格员
    * @param houseCode
    * @return
    */
   @ApiOperation(value = "通过houseCode获取网格员", notes = "")
   @GetMapping("/getGridManByCode")
   public R getGridManByCode(@RequestParam("houseCode") String houseCode ) {
      return R.data(gridmanService.getGridManByCode(houseCode));
   }
}