linwe
2024-05-29 c10d6358b9f014375a13821465bc978d0c0da22e
src/main/java/org/springblade/modules/grid/controller/GridmanController.java
@@ -28,8 +28,6 @@
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.grid.excel.GridExcel;
import org.springblade.modules.grid.excel.GridImporter;
import org.springblade.modules.grid.excel.GridmanExcel;
import org.springblade.modules.grid.excel.GridmanImporter;
import org.springframework.web.bind.annotation.*;
@@ -63,6 +61,14 @@
   public R<GridmanVO> detail(GridmanEntity gridman) {
      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));
   }
   /**
    * 网格员表 分页
@@ -146,5 +152,29 @@
      return R.success("操作成功");
   }
   /**
    * 网格员查询
    * @param gridman
    * @return
    */
   @GetMapping("/getGridmanList")
   public R getGridmanList(GridmanVO gridman) {
      return R.data(gridmanService.getGridmanList(gridman));
   }
   /**
    *
    * @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));
   }
}