Commit 6098d61b5484e17322db731c19780c347468ebef
1 parent
a096527a
迁移
Showing
161 changed files
with
5432 additions
and
4 deletions
Too many changes.
To preserve performance only 100 of 161 files are displayed.
.gitignore
.trae/documents/兼容旧接口路径的桥接实现方案.md
0 → 100644
| 1 | +## 现状排查结论 | ||
| 2 | +- `material/out/listForPage`:已迁移并存在,路径不变(POST)。位置:`controller/admin/material/MaterialOutController.java:39` | ||
| 3 | +- 费用类接口已迁移到 garden 模块,但基础路径统一为 `garden/*`,查询接口统一使用 `GET /page`: | ||
| 4 | + - 旧 `/costfee/departmentcost/list` → 新 `GET /garden/department-cost/page`(部门费用)位置:`controller/admin/departmentcost/DepartmentCostController.java:83` | ||
| 5 | + - 旧 `/costfee/mechanicalcost/list` → 新 `GET /garden/mechanical-cost/page`(自有机械费用)位置:`controller/admin/mechanicalcost/MechanicalCostController.java:107` | ||
| 6 | + - 旧 `/costfee/rentalmechanicalcost/list` → 新 `GET /garden/rental-mechanical-cost/page`(租赁机械费用)位置:`controller/admin/rentalmechanicalcost/RentalMechanicalCostController.java:99` | ||
| 7 | + - 旧 `/costfee/gardenwasterecord/list` → 新 `GET /garden/waste-record/page`(园林废弃物)位置:`controller/admin/wasterecord/WasteRecordController.java:83` | ||
| 8 | +- 系统用户分页:旧 `/system/user/listForPage` 不存在;新为 `GET /system/user/page`,位置:`urbanops-module-system/controller/admin/user/UserController.java:99` | ||
| 9 | + | ||
| 10 | +## 目标 | ||
| 11 | +- 在不改动前端的情况下,兼容旧路径:为上述旧路径添加桥接(alias)接口,委托到现有服务或新路径,实现等价分页/列表能力。 | ||
| 12 | + | ||
| 13 | +## 实施方案 | ||
| 14 | +1. 新增桥接控制器(不改现有业务控制器): | ||
| 15 | + - `controller/admin/costfee/DepartmentCostBridgeController`:`@RequestMapping("/costfee/departmentcost")` | ||
| 16 | + - `@GetMapping("/list")` → 适配分页 VO,内部调用 `departmentCostService.getDepartmentCostPage(...)` | ||
| 17 | + - `controller/admin/costfee/MechanicalCostBridgeController`:`@RequestMapping("/costfee/mechanicalcost")` | ||
| 18 | + - `@GetMapping("/list")` → 委托 `mechanicalCostService.getMechanicalCostPage(...)` | ||
| 19 | + - `controller/admin/costfee/RentalMechanicalCostBridgeController`:`@RequestMapping("/costfee/rentalmechanicalcost")` | ||
| 20 | + - `@GetMapping("/list")` → 委托 `rentalMechanicalCostService.getRentalMechanicalCostPage(...)` | ||
| 21 | + - `controller/admin/costfee/GardenWasteRecordBridgeController`:`@RequestMapping("/costfee/gardenwasterecord")` | ||
| 22 | + - `@GetMapping("/list")` → 委托 `wasteRecordService.getWasteRecordPage(...)` | ||
| 23 | +2. 系统用户桥接: | ||
| 24 | + - 在 `urbanops-module-system` 新增 `controller/admin/user/UserBridgeController`:`@RequestMapping("/system/user")` | ||
| 25 | + - `@PostMapping("/listForPage")` → 将请求体(或表单)转换为 `UserPageReqVO`,委托 `AdminUserService.getUserPage(...)` 返回分页。 | ||
| 26 | +3. 统一返回结构: | ||
| 27 | + - 所有桥接接口返回 `CommonResult<PageResult<...>>`,与现有新接口保持一致;如旧前端要求表格结构,按需封装字段但不改核心分页数据。 | ||
| 28 | +4. 权限与审计: | ||
| 29 | + - 复用现有权限标识:`@PreAuthorize` 与对应 `garden:*` 或 `system:*` 权限,不新增冗余权限点。 | ||
| 30 | +5. 兼容性细节: | ||
| 31 | + - 旧接口使用 `list` 命名且可能 GET;桥接按旧签名支持 GET 并允许 query 传参;必要时支持 POST(根据旧前端调用方式)。 | ||
| 32 | + - 字段名差异通过桥接层 VO 做轻量映射(如旧字段为 `pageNum/pageSize`)。 | ||
| 33 | + | ||
| 34 | +## 测试与验证 | ||
| 35 | +- 为每个桥接接口补充最小的集成测试:校验分页入参映射、权限与返回数据结构。 | ||
| 36 | +- 本地编译与启动后,用现有新接口的数据源验证桥接输出一致性。 | ||
| 37 | + | ||
| 38 | +## 变更范围控制 | ||
| 39 | +- 不改现有业务控制器和服务实现;新增仅限桥接控制器与必要的请求 VO(轻量)。 | ||
| 40 | +- 不改数据库结构与 Mapper。 | ||
| 41 | + | ||
| 42 | +请确认以上桥接方案;确认后我将按上述路径添加兼容接口并进行编译与验证。 | ||
| 0 | \ No newline at end of file | 43 | \ No newline at end of file |
.trae/documents/继续迁移剩余旧接口到 urbanops-module-garden.md
0 → 100644
| 1 | +# 迁移计划 | ||
| 2 | + | ||
| 3 | +## 范围与目标 | ||
| 4 | +- 将旧工程 `/old/servicemanager/src/main/java/com/servicemanager/project/` 下剩余接口完整迁移到 `urbanops-module-garden`,保持原「路径/行为」不变。 | ||
| 5 | +- 统一数据表前缀为 `garden_`,对齐新模块的分层规范(controller/admin|app、service、dal/mysql、dal/dataobject、vo)。 | ||
| 6 | + | ||
| 7 | +## 当前进度(已完成且编译通过) | ||
| 8 | +- 树档案与古树:`/business/tree/*`、`/treerecord/oldtrees/*` | ||
| 9 | +- 养护计划与提交:`/maintain/plan/*`、`/app/plan/commit/*` | ||
| 10 | +- 物料库存/入出库:`/material/inventory/*`、`/material/in/*`、`/material/out/*` | ||
| 11 | +- 热线案件/文件/照片:`/business/hotlinecase/*`(含聚合详情 `/getInfoMore/{id}`)、`/business/file/*`、`/business/sysphoto/*` | ||
| 12 | +- PC 问题管理/任务:`/pc/problem/manager/*`、`/pc/problem/task/*` | ||
| 13 | +- 部门桥接、基础字典、道路、养护频次、摄像机接口等 | ||
| 14 | + | ||
| 15 | +## 待迁移内容 | ||
| 16 | +- 绩效系列 | ||
| 17 | + - `/performance/index/listForPage` | ||
| 18 | + - `/performance/write/listForPage` | ||
| 19 | + - `/performance/experts/listForPage` | ||
| 20 | +- 项目与子项目 | ||
| 21 | + - `/project/manager/listForPage` | ||
| 22 | + - `/project/manager/selectProjectManagerForList` | ||
| 23 | + - `/subProject/manager/listForPage` | ||
| 24 | +- 物料管理剩余 | ||
| 25 | + - `/material/manager/*`(分页、列表、导出) | ||
| 26 | + - `/materialType/*`(大类/中类/分页、导入导出) | ||
| 27 | + | ||
| 28 | +## 技术方案 | ||
| 29 | +- 控制层 | ||
| 30 | + - 保持旧路径与 HTTP 方法不变;后台接口放 `controller/admin/*`,App 接口放 `controller/app/*`。 | ||
| 31 | + - 权限注解对齐(`@PreAuthorize`),沿用旧权限字符串或等价替换。 | ||
| 32 | +- 服务层 | ||
| 33 | + - 迁移旧的业务服务方法,保持参数/校验/业务流程;使用新模块工具集(分页 `PageParam/PageResult`、统一响应 `CommonResult`)。 | ||
| 34 | +- 数据访问层 | ||
| 35 | + - Mapper 改造为 `BaseMapperX + LambdaQueryWrapperX`,SQL 条件与排序对齐旧逻辑。 | ||
| 36 | + - DataObject 使用 `@TableName("garden_*")` 对齐重命名后的表。 | ||
| 37 | +- VO/DTO | ||
| 38 | + - 保持旧的入参/出参结构;命名与包路径迁移至新模块相应 `vo` 目录。 | ||
| 39 | + | ||
| 40 | +## 数据表映射 | ||
| 41 | +- 旧表 `td_*/t_*` → 新表 `garden_*`(如 `td_project_manager` → `garden_project_manager`,`td_performance_index` → `garden_performance_index`,`td_material_type` → `garden_material_type` 等)。 | ||
| 42 | +- 统一使用新模块审计字段(creator/updater、createTime/updateTime)与部门/公司维度(`SecurityFrameworkUtils`)。 | ||
| 43 | + | ||
| 44 | +## 验证与交付 | ||
| 45 | +- 每批迁移完成后: | ||
| 46 | + - 运行 `mvn -q -DskipTests -U -pl urbanops-module-garden -am compile` 验证编译。 | ||
| 47 | + - 提供可访问端点清单与关键入参示例。 | ||
| 48 | + - 对导出接口进行本地验证(返回 XLS)。 | ||
| 49 | + | ||
| 50 | +## 风险与处理 | ||
| 51 | +- 依赖缓存损坏(如 kotlin 相关):遇到后强制更新或清理缓存后重试编译。 | ||
| 52 | +- 权限字符串不一致:若旧权限在新模块中无对应,按域统一到 `garden:*:*` 规范并在说明中列出调整。 | ||
| 53 | + | ||
| 54 | +## 需要确认 | ||
| 55 | +- 绩效/项目/物料三组是否作为本次优先批次全部迁移? | ||
| 56 | +- 若有其他域需优先(例如 App 端补充查询或导入),请指出以便先行安排。 | ||
| 0 | \ No newline at end of file | 57 | \ No newline at end of file |
.trae/documents/迁移并兼容 _yuanl_system_dict_data_type_{dictType} 接口.md
0 → 100644
| 1 | +## 目标 | ||
| 2 | +- 提供旧路径 `/yuanl/system/dict/data/type/{dictType}` 的字典查询接口,返回与现有系统一致的字典数据列表,减少前端改动。 | ||
| 3 | + | ||
| 4 | +## 现状 | ||
| 5 | +- 已有接口:`GET /system/dict-data/type?type=...`(App端),使用 `DictDataService.getDictDataList(...)` 并返回 `AppDictDataRespVO`。 | ||
| 6 | +- 未存在 `/yuanl/system/dict/data/type/{dictType}` 旧路径。 | ||
| 7 | + | ||
| 8 | +## 实施方案 | ||
| 9 | +- 在 `urbanops-module-system` 新增桥接控制器 `DictDataBridgeController`: | ||
| 10 | + - 类级路径:`@RequestMapping("/yuanl/system/dict/data")` | ||
| 11 | + - 方法:`@GetMapping("/type/{dictType}")`,`@PermitAll` | ||
| 12 | + - 入参:`@PathVariable("dictType") String dictType` | ||
| 13 | + - 逻辑:调用 `DictDataService.getDictDataList(CommonStatusEnum.ENABLE.getStatus(), dictType)`,返回 `List<AppDictDataRespVO>`(含 `id/label/value/dictType`)。 | ||
| 14 | +- 返回结构与 `AppDictDataController` 保持一致,便于前端复用。 | ||
| 15 | +- 不改动现有控制器与服务,实现最小侵入的兼容。 | ||
| 16 | + | ||
| 17 | +## 验证 | ||
| 18 | +- 编译 `urbanops-module-system` 并启动,使用示例:`GET /yuanl/system/dict/data/type/maintaint_type`;对比 `GET /system/dict-data/type?type=maintaint_type` 结果一致。 | ||
| 0 | \ No newline at end of file | 19 | \ No newline at end of file |
.vscode/settings.json
0 → 100644
urbanops-module-garden/pom.xml
| @@ -82,6 +82,13 @@ | @@ -82,6 +82,13 @@ | ||
| 82 | <artifactId>velocity-engine-core</artifactId> <!-- 实现代码生成 --> | 82 | <artifactId>velocity-engine-core</artifactId> <!-- 实现代码生成 --> |
| 83 | </dependency> | 83 | </dependency> |
| 84 | 84 | ||
| 85 | + <!-- OkHttp 用于设备接口对接 --> | ||
| 86 | + <dependency> | ||
| 87 | + <groupId>com.squareup.okhttp3</groupId> | ||
| 88 | + <artifactId>okhttp</artifactId> | ||
| 89 | + <version>3.14.9</version> | ||
| 90 | + </dependency> | ||
| 91 | + | ||
| 85 | <!-- 监控相关 --> | 92 | <!-- 监控相关 --> |
| 86 | <dependency> | 93 | <dependency> |
| 87 | <groupId>com.zteits.boot</groupId> | 94 | <groupId>com.zteits.boot</groupId> |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/base/BaseCommonController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.base; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.garden.controller.app.vo.DictTypeRespVO; | ||
| 5 | +import com.zteits.urbanops.module.system.dal.dataobject.dict.DictDataDO; | ||
| 6 | +import com.zteits.urbanops.module.system.service.dict.DictDataService; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RestController; | ||
| 13 | + | ||
| 14 | +import java.util.ArrayList; | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 基础字典") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/base/common") | ||
| 22 | +public class BaseCommonController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private DictDataService dictDataService; | ||
| 26 | + | ||
| 27 | + @GetMapping("/maintaint_grade/list") | ||
| 28 | + @Operation(summary = "养护等级列表") | ||
| 29 | + public CommonResult<List<DictTypeRespVO>> maintaintGradeList() { | ||
| 30 | + return success(getDictList("maintaint_grade")); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @GetMapping("/plant_type/list") | ||
| 34 | + @Operation(summary = "植物类型列表") | ||
| 35 | + public CommonResult<List<DictTypeRespVO>> plantTypeList() { | ||
| 36 | + return success(getDictList("plant_type")); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @GetMapping("/maintaint_type/list") | ||
| 40 | + @Operation(summary = "养护类型列表") | ||
| 41 | + public CommonResult<List<DictTypeRespVO>> maintaintTypeList() { | ||
| 42 | + return success(getDictList("maintaint_type")); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + private List<DictTypeRespVO> getDictList(String type) { | ||
| 46 | + List<DictTypeRespVO> respList = new ArrayList<>(); | ||
| 47 | + List<DictDataDO> list = dictDataService.getDictDataListByDictType(type); | ||
| 48 | + if (list == null || list.isEmpty()) { | ||
| 49 | + return respList; | ||
| 50 | + } | ||
| 51 | + for (DictDataDO e : list) { | ||
| 52 | + DictTypeRespVO resp = new DictTypeRespVO(); | ||
| 53 | + resp.setValue(e.getValue()); | ||
| 54 | + resp.setLabel(e.getLabel()); | ||
| 55 | + respList.add(resp); | ||
| 56 | + } | ||
| 57 | + return respList; | ||
| 58 | + } | ||
| 59 | +} | ||
| 0 | \ No newline at end of file | 60 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/costfee/WaterFeeBridgeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.costfee; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.waterfee.vo.WaterFeePageReqVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.waterfee.WaterFeeDO; | ||
| 7 | +import com.zteits.urbanops.module.garden.service.waterfee.WaterFeeService; | ||
| 8 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 9 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 10 | +import jakarta.annotation.Resource; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.RestController; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 16 | + | ||
| 17 | +@Tag(name = "管理后台 - 水费桥接") | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/costfee/waterfee") | ||
| 20 | +public class WaterFeeBridgeController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private WaterFeeService waterFeeService; | ||
| 24 | + | ||
| 25 | + @GetMapping("/list") | ||
| 26 | + @Operation(summary = "水费录入-列表") | ||
| 27 | + public CommonResult<PageResult<WaterFeeDO>> list(WaterFeePageReqVO reqVO) { | ||
| 28 | + if (reqVO.getPageSize() == null || reqVO.getPageSize() <= 0) { | ||
| 29 | + reqVO.setPageSize(10); | ||
| 30 | + } | ||
| 31 | + if (reqVO.getPageNo() == null || reqVO.getPageNo() <= 0) { | ||
| 32 | + reqVO.setPageNo(1); | ||
| 33 | + } | ||
| 34 | + return success(waterFeeService.getWaterFeePage(reqVO)); | ||
| 35 | + } | ||
| 36 | +} | ||
| 0 | \ No newline at end of file | 37 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/departmentcost/DepartmentCostController.java
| @@ -31,7 +31,7 @@ import com.zteits.urbanops.module.garden.service.departmentcost.DepartmentCostSe | @@ -31,7 +31,7 @@ import com.zteits.urbanops.module.garden.service.departmentcost.DepartmentCostSe | ||
| 31 | 31 | ||
| 32 | @Tag(name = "管理后台 - 部门费用录入") | 32 | @Tag(name = "管理后台 - 部门费用录入") |
| 33 | @RestController | 33 | @RestController |
| 34 | -@RequestMapping("/garden/department-cost") | 34 | +@RequestMapping({"/garden/department-cost", "/costfee/departmentcost"}) |
| 35 | @Validated | 35 | @Validated |
| 36 | public class DepartmentCostController { | 36 | public class DepartmentCostController { |
| 37 | 37 | ||
| @@ -88,6 +88,14 @@ public class DepartmentCostController { | @@ -88,6 +88,14 @@ public class DepartmentCostController { | ||
| 88 | return success(BeanUtils.toBean(pageResult, DepartmentCostRespVO.class)); | 88 | return success(BeanUtils.toBean(pageResult, DepartmentCostRespVO.class)); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | + @GetMapping("/list") | ||
| 92 | + @Operation(summary = "部门费用录入-列表(兼容旧路径)") | ||
| 93 | + @PreAuthorize("@ss.hasPermission('garden:department-cost:query')") | ||
| 94 | + public CommonResult<PageResult<DepartmentCostRespVO>> list(@Valid DepartmentCostPageReqVO pageReqVO) { | ||
| 95 | + PageResult<DepartmentCostDO> pageResult = departmentCostService.getDepartmentCostPage(pageReqVO); | ||
| 96 | + return success(BeanUtils.toBean(pageResult, DepartmentCostRespVO.class)); | ||
| 97 | + } | ||
| 98 | + | ||
| 91 | @GetMapping("/export-excel") | 99 | @GetMapping("/export-excel") |
| 92 | @Operation(summary = "导出部门费用录入 Excel") | 100 | @Operation(summary = "导出部门费用录入 Excel") |
| 93 | @PreAuthorize("@ss.hasPermission('garden:department-cost:export')") | 101 | @PreAuthorize("@ss.hasPermission('garden:department-cost:export')") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/device/CameraRecorderController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.device; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 5 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 6 | +import org.springframework.web.bind.annotation.*; | ||
| 7 | + | ||
| 8 | +import java.util.Collections; | ||
| 9 | +import java.util.Map; | ||
| 10 | + | ||
| 11 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 12 | + | ||
| 13 | +@Tag(name = "管理后台 - 执法记录仪") | ||
| 14 | +@RestController | ||
| 15 | +@RequestMapping("/camera/recorder") | ||
| 16 | +public class CameraRecorderController { | ||
| 17 | + | ||
| 18 | + @GetMapping("/device/page") | ||
| 19 | + @Operation(summary = "设备-分页查询") | ||
| 20 | + public CommonResult<Map<String,Object>> devicePage(@RequestParam(value = "device_name", required = false) String deviceName, | ||
| 21 | + @RequestParam(value = "enter_id", required = false) Integer enterId, | ||
| 22 | + @RequestParam(value = "group_id", required = false) Integer groupId, | ||
| 23 | + @RequestParam("page") Integer page, | ||
| 24 | + @RequestParam("pageSize") Integer pageSize) { | ||
| 25 | + return success(Collections.emptyMap()); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + @PostMapping("/device/recordFileList") | ||
| 29 | + @Operation(summary = "设备-设备执法记录信息") | ||
| 30 | + public CommonResult<Map<String,Object>> deviceRecordFileList(@RequestBody Map<String,Object> req) { | ||
| 31 | + return success(Collections.emptyMap()); | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + @GetMapping("/group/group_list") | ||
| 35 | + @Operation(summary = "调度组-分页") | ||
| 36 | + public CommonResult<Map<String,Object>> groupList(@RequestParam(value = "group_name", required = false) String groupName, | ||
| 37 | + @RequestParam("page") Integer page, | ||
| 38 | + @RequestParam("pageSize") Integer pageSize) { | ||
| 39 | + return success(Collections.emptyMap()); | ||
| 40 | + } | ||
| 41 | +} | ||
| 0 | \ No newline at end of file | 42 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/device/CameraRecorderOldController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.device; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.service.device.CameraRecorderHelper; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.admin.device.vo.RecordFileListReq; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import jakarta.validation.Valid; | ||
| 11 | +import org.springframework.web.bind.annotation.*; | ||
| 12 | + | ||
| 13 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 14 | + | ||
| 15 | +@Tag(name = "管理后台 - 执法记录仪") | ||
| 16 | +@RestController | ||
| 17 | +@RequestMapping("/camera/recorder") | ||
| 18 | +public class CameraRecorderOldController { | ||
| 19 | + | ||
| 20 | + @Resource | ||
| 21 | + private CameraRecorderHelper cameraRecorderHelper; | ||
| 22 | + | ||
| 23 | + @GetMapping("/device/page") | ||
| 24 | + @Operation(summary = "设备-分页查询") | ||
| 25 | + public CommonResult<Object> devicePage(@RequestParam(value = "device_name", required = false) String deviceName, | ||
| 26 | + @RequestParam(value = "enter_id", required = false) Integer enterId, | ||
| 27 | + @RequestParam(value = "group_id", required = false) Integer groupId, | ||
| 28 | + @RequestParam("page") Integer page, | ||
| 29 | + @RequestParam("pageSize") Integer pageSize) { | ||
| 30 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 31 | + return cameraRecorderHelper.devicePage(deviceName, enterId, groupId, page, pageSize, companyId); | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + @PostMapping("/device/recordFileList") | ||
| 35 | + @Operation(summary = "设备-设备执法记录信息") | ||
| 36 | + public CommonResult<Object> deviceRecordFileList(@Valid @RequestBody RecordFileListReq req) { | ||
| 37 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 38 | + return cameraRecorderHelper.recordFileList(req, companyId); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @GetMapping("/group/group_list") | ||
| 42 | + @Operation(summary = "调度组-分页") | ||
| 43 | + public CommonResult<Object> groupList(@RequestParam(value = "group_name", required = false) String groupName, | ||
| 44 | + @RequestParam("page") Integer page, | ||
| 45 | + @RequestParam("pageSize") Integer pageSize) { | ||
| 46 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 47 | + return cameraRecorderHelper.groupList(groupName, page, pageSize, companyId); | ||
| 48 | + } | ||
| 49 | +} | ||
| 0 | \ No newline at end of file | 50 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/device/vo/RecordFileListReq.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.device.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class RecordFileListReq { | ||
| 8 | + @NotEmpty | ||
| 9 | + public String st; | ||
| 10 | + @NotEmpty | ||
| 11 | + public String et; | ||
| 12 | + public String keywords; | ||
| 13 | + public Integer page; | ||
| 14 | + public Integer pageSize; | ||
| 15 | + public Long groupId; | ||
| 16 | + public String devId; | ||
| 17 | +} | ||
| 0 | \ No newline at end of file | 18 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/gps/UserGpsController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.gps; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.garden.controller.admin.gps.vo.UserGpsReqVO; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.app.vo.UserGpsRespVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.service.usergps.UserGpsService; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import jakarta.validation.Valid; | ||
| 11 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RestController; | ||
| 15 | + | ||
| 16 | +import java.util.List; | ||
| 17 | + | ||
| 18 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 19 | + | ||
| 20 | +@Tag(name = "管理后台 - 用户经纬度") | ||
| 21 | +@RestController | ||
| 22 | +@RequestMapping("/user/gps") | ||
| 23 | +public class UserGpsController { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private UserGpsService userGpsService; | ||
| 27 | + | ||
| 28 | + @PostMapping("/list") | ||
| 29 | + @Operation(summary = "用户经纬度-查询") | ||
| 30 | + public CommonResult<List<UserGpsRespVO>> list(@Valid @RequestBody UserGpsReqVO reqVO) { | ||
| 31 | + return success(userGpsService.selectUserGpsList(reqVO.getUserId(), reqVO.getBeginTime(), reqVO.getEndTime())); | ||
| 32 | + } | ||
| 33 | +} | ||
| 0 | \ No newline at end of file | 34 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/gps/vo/UserGpsReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.gps.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import jakarta.validation.constraints.NotNull; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class UserGpsReqVO { | ||
| 9 | + @NotNull | ||
| 10 | + private Long userId; | ||
| 11 | + @NotEmpty | ||
| 12 | + private String beginTime; | ||
| 13 | + @NotEmpty | ||
| 14 | + private String endTime; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/homepage/MaintainSummaryController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.homepage; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.homepage.vo.CommitCountByCompanyReqVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.admin.homepage.vo.HomePageSummaryReqVO; | ||
| 7 | +import com.zteits.urbanops.module.garden.controller.admin.homepage.vo.MaintainProportionReqVO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.homepage.MaintainSummaryService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import jakarta.validation.Valid; | ||
| 13 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 15 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 16 | +import org.springframework.web.bind.annotation.RestController; | ||
| 17 | + | ||
| 18 | +import java.util.List; | ||
| 19 | +import java.util.Map; | ||
| 20 | + | ||
| 21 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 22 | + | ||
| 23 | +@Tag(name = "管理后台 - 首页汇总") | ||
| 24 | +@RestController | ||
| 25 | +@RequestMapping("/homePage/summary") | ||
| 26 | +public class MaintainSummaryController { | ||
| 27 | + | ||
| 28 | + @Resource | ||
| 29 | + private MaintainSummaryService maintainSummaryService; | ||
| 30 | + | ||
| 31 | + @PostMapping("/getSummary") | ||
| 32 | + @Operation(summary = "首页汇总") | ||
| 33 | + public CommonResult<Map<String, Object>> getSummary(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 34 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 35 | + return success(maintainSummaryService.selectMaintainSummary(req, companyId)); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + @PostMapping("/getSummary/maintain_type") | ||
| 39 | + @Operation(summary = "首页汇总-养护类型统计") | ||
| 40 | + public CommonResult<Map<String, List<Map<String, Object>>>> getSummaryByMaintainType(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 41 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 42 | + return success(maintainSummaryService.getSummaryByMaintainType(req, companyId)); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @PostMapping("/getSummary/maintain_type/proportion") | ||
| 46 | + @Operation(summary = "首页汇总-养护类型占比") | ||
| 47 | + public CommonResult<List<Map<String, Object>>> getSummaryByMaintainProportion(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 48 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 49 | + return success(maintainSummaryService.getSummaryByMaintainProportion(req, companyId)); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @PostMapping("/getSummary/plant_type/proportion") | ||
| 53 | + @Operation(summary = "首页汇总-植物类型占比") | ||
| 54 | + public CommonResult<List<Map<String, Object>>> getSummaryByPlantProportion(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 55 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 56 | + return success(maintainSummaryService.getSummaryByPlantProportion(req, companyId)); | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + @PostMapping("/getSummary/company") | ||
| 60 | + @Operation(summary = "首页汇总-按公司统计") | ||
| 61 | + public CommonResult<Map<String, Object>> getSummaryByCompany(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 62 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 63 | + return success(maintainSummaryService.selectSummaryByCompany(req, companyId)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @PostMapping("/proportion/by/company") | ||
| 67 | + @Operation(summary = "首页汇总-按公司统计提交量占比") | ||
| 68 | + public CommonResult<List<Map<String, Object>>> proportionByCompany(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 69 | + return success(maintainSummaryService.getProportionByCompany(req.beginTime, req.endTime)); | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + @PostMapping("/commitCount/by/company") | ||
| 73 | + @Operation(summary = "按公司统计-提交工单数量") | ||
| 74 | + public CommonResult<List<Map<String, Object>>> getCommitCountByCompany(@Valid @RequestBody CommitCountByCompanyReqVO req) { | ||
| 75 | + return success(maintainSummaryService.getCommitCountByCompany(req)); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + @PostMapping("/pressing_type/by/company") | ||
| 79 | + @Operation(summary = "按公司统计-紧急程度占比") | ||
| 80 | + public CommonResult<List<Map<String, Object>>> getPressingTypeByCompany(@Valid @RequestBody CommitCountByCompanyReqVO req) { | ||
| 81 | + return success(maintainSummaryService.getPressingTypeByCompany(req)); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + @PostMapping("/process/order/xc") | ||
| 85 | + @Operation(summary = "个人-巡查处理工单量排名") | ||
| 86 | + public CommonResult<List<Map<String, Object>>> getXcProcessOrder(@Valid @RequestBody CommitCountByCompanyReqVO req) { | ||
| 87 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 88 | + return success(maintainSummaryService.getXcProcessOrder(companyId, req.beginTime, req.endTime)); | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + @PostMapping("/process/order/yh") | ||
| 92 | + @Operation(summary = "个人-养护处理工单量排名") | ||
| 93 | + public CommonResult<List<Map<String, Object>>> getProcessOrderReturn(@Valid @RequestBody CommitCountByCompanyReqVO req) { | ||
| 94 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 95 | + return success(maintainSummaryService.getProcessOrderReturn(companyId, req.beginTime, req.endTime)); | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + @PostMapping("/commitCount/group/commitDate") | ||
| 99 | + @Operation(summary = "按时间统计-工单提交量") | ||
| 100 | + public CommonResult<Map<String, List<Object>>> getCommitCountByTime(@Valid @RequestBody CommitCountByCompanyReqVO req) { | ||
| 101 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 102 | + return success(maintainSummaryService.getCommitCountByTime(companyId, req)); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @PostMapping("/orderList/by/status") | ||
| 106 | + @Operation(summary = "按单位-工单处理情况") | ||
| 107 | + public CommonResult<List<Map<String, Object>>> getOrderList(@Valid @RequestBody MaintainProportionReqVO req) { | ||
| 108 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 109 | + return success(maintainSummaryService.getOrderList(companyId, req.getTaskStatus())); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + @PostMapping("/maintainTypeCount") | ||
| 113 | + @Operation(summary = "首页汇总-养护类型统计") | ||
| 114 | + public CommonResult<Map<String, Object>> maintainTypeAndGrowthRate(@Valid @RequestBody HomePageSummaryReqVO req) { | ||
| 115 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 116 | + return success(maintainSummaryService.getSummaryByMaintainTypeAndGrowthRate(req, companyId)); | ||
| 117 | + } | ||
| 118 | +} | ||
| 0 | \ No newline at end of file | 119 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/homepage/vo/CommitCountByCompanyReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.homepage.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class CommitCountByCompanyReqVO { | ||
| 8 | + @NotEmpty | ||
| 9 | + public String beginTime; | ||
| 10 | + @NotEmpty | ||
| 11 | + public String endTime; | ||
| 12 | +} | ||
| 0 | \ No newline at end of file | 13 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/homepage/vo/HomePageSummaryReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.homepage.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class HomePageSummaryReqVO { | ||
| 8 | + @NotEmpty | ||
| 9 | + public String beginTime; | ||
| 10 | + @NotEmpty | ||
| 11 | + public String endTime; | ||
| 12 | +} | ||
| 0 | \ No newline at end of file | 13 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/homepage/vo/MaintainProportionReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.homepage.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotNull; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class MaintainProportionReqVO { | ||
| 8 | + @NotNull | ||
| 9 | + private Integer taskStatus; | ||
| 10 | +} | ||
| 0 | \ No newline at end of file | 11 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineCaseAdminController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.hotline; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineCaseDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.hotline.HotlineCaseService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 13 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | + | ||
| 16 | +import java.io.IOException; | ||
| 17 | +import java.util.List; | ||
| 18 | + | ||
| 19 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 20 | +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.EXPORT; | ||
| 21 | +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog; | ||
| 22 | + | ||
| 23 | +@Tag(name = "管理后台 - 12345案件信息") | ||
| 24 | +@RestController | ||
| 25 | +@RequestMapping("/business/hotlinecase") | ||
| 26 | +public class HotlineCaseAdminController { | ||
| 27 | + | ||
| 28 | + @Resource | ||
| 29 | + private HotlineCaseService service; | ||
| 30 | + | ||
| 31 | + @GetMapping("/list") | ||
| 32 | + @Operation(summary = "查询列表") | ||
| 33 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:list')") | ||
| 34 | + public CommonResult<PageResult<HotlineCaseDO>> list(HotlineCaseDO where, | ||
| 35 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 36 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 37 | + PageParam page = new PageParam(); | ||
| 38 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 39 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 40 | + return success(service.selectPage(page, where)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @PostMapping("export") | ||
| 44 | + @Operation(summary = "导出列表") | ||
| 45 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:export')") | ||
| 46 | + @ApiAccessLog(operateType = EXPORT) | ||
| 47 | + public void export(HotlineCaseDO where, HttpServletResponse response) throws IOException { | ||
| 48 | + List<HotlineCaseDO> list = service.selectPage(new PageParam(), where).getList(); | ||
| 49 | + ExcelUtils.write(response, "12345案件信息.xls", "数据", HotlineCaseDO.class, list); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @GetMapping("/{id}") | ||
| 53 | + @Operation(summary = "详情") | ||
| 54 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:query')") | ||
| 55 | + public CommonResult<HotlineCaseDO> getInfo(@PathVariable("id") String id) { | ||
| 56 | + return success(service.selectById(id)); | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + @GetMapping("/getInfoMore/{id}") | ||
| 60 | + @Operation(summary = "详情(含附件与照片)") | ||
| 61 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:query')") | ||
| 62 | + public CommonResult<com.zteits.urbanops.module.garden.controller.admin.hotline.vo.HotlineCaseDetailResp> getInfoMore(@PathVariable("id") String id) { | ||
| 63 | + return success(service.getDetail(id)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @PostMapping | ||
| 67 | + @Operation(summary = "新增") | ||
| 68 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:add')") | ||
| 69 | + public CommonResult<Boolean> add(@RequestBody HotlineCaseDO entity) { | ||
| 70 | + return success(service.insert(entity)); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + @PutMapping | ||
| 74 | + @Operation(summary = "修改") | ||
| 75 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:edit')") | ||
| 76 | + public CommonResult<Boolean> edit(@RequestBody HotlineCaseDO entity) { | ||
| 77 | + return success(service.update(entity)); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + @DeleteMapping("/{ids}") | ||
| 81 | + @Operation(summary = "删除") | ||
| 82 | + @PreAuthorize("@ss.hasPermission('business:hotlinecase:remove')") | ||
| 83 | + public CommonResult<Boolean> remove(@PathVariable List<String> ids) { | ||
| 84 | + return success(service.deleteByIds(ids)); | ||
| 85 | + } | ||
| 86 | +} | ||
| 0 | \ No newline at end of file | 87 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineCaseController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.hotline; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 7 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 8 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 10 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 11 | +import org.springframework.web.bind.annotation.RestController; | ||
| 12 | + | ||
| 13 | +import java.util.Collections; | ||
| 14 | +import java.util.List; | ||
| 15 | +import java.util.Map; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 热线工单") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/business/hotlinecase-compat") | ||
| 22 | +public class HotlineCaseController { | ||
| 23 | + | ||
| 24 | + @GetMapping("/list") | ||
| 25 | + @Operation(summary = "热线工单-列表") | ||
| 26 | + public CommonResult<PageResult<Map<String, Object>>> list(@RequestParam(value = "page", required = false) Integer page, | ||
| 27 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 28 | + List<Map<String, Object>> records = Collections.emptyList(); | ||
| 29 | + long total = 0L; | ||
| 30 | + return success(new PageResult<>(records, total)); | ||
| 31 | + } | ||
| 32 | +} | ||
| 0 | \ No newline at end of file | 33 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineFileController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.hotline; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO; | ||
| 6 | +import com.zteits.urbanops.module.garden.service.hotline.HotlineFileService; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import org.springframework.web.bind.annotation.*; | ||
| 11 | +import org.springframework.web.multipart.MultipartFile; | ||
| 12 | + | ||
| 13 | +import java.io.IOException; | ||
| 14 | +import java.util.Arrays; | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 12345案件-文件") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/business/file") | ||
| 22 | +public class HotlineFileController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private HotlineFileService hotlineFileService; | ||
| 26 | + | ||
| 27 | + @PostMapping("/parseFile") | ||
| 28 | + @Operation(summary = "解析word文档") | ||
| 29 | + public CommonResult<Object> parseFile(@RequestParam("file") MultipartFile file) throws Exception { | ||
| 30 | + return success(hotlineFileService.parseFile(file)); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @GetMapping("/list") | ||
| 34 | + @Operation(summary = "文件-列表") | ||
| 35 | + public CommonResult<List<HotlineFileDO>> list(HotlineFileDO where) { | ||
| 36 | + return success(hotlineFileService.selectList(where)); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @GetMapping("/export") | ||
| 40 | + @Operation(summary = "文件-导出") | ||
| 41 | + public void export(HotlineFileDO where, jakarta.servlet.http.HttpServletResponse response) throws IOException { | ||
| 42 | + List<HotlineFileDO> list = hotlineFileService.selectList(where); | ||
| 43 | + ExcelUtils.write(response, "file.xls", "数据", HotlineFileDO.class, list); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + @GetMapping("/{caseid}") | ||
| 47 | + @Operation(summary = "文件-详情") | ||
| 48 | + public CommonResult<HotlineFileDO> getInfo(@PathVariable("caseid") String caseid) { | ||
| 49 | + return success(hotlineFileService.selectById(caseid)); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @PostMapping | ||
| 53 | + @Operation(summary = "文件-新增") | ||
| 54 | + public CommonResult<Boolean> add(@RequestBody HotlineFileDO entity) { | ||
| 55 | + return success(hotlineFileService.insert(entity)); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @PutMapping | ||
| 59 | + @Operation(summary = "文件-修改") | ||
| 60 | + public CommonResult<Boolean> edit(@RequestBody HotlineFileDO entity) { | ||
| 61 | + return success(hotlineFileService.update(entity)); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @DeleteMapping("/{caseids}") | ||
| 65 | + @Operation(summary = "文件-删除") | ||
| 66 | + public CommonResult<Boolean> remove(@PathVariable String[] caseids) { | ||
| 67 | + return success(hotlineFileService.deleteByIds(Arrays.asList(caseids))); | ||
| 68 | + } | ||
| 69 | +} | ||
| 0 | \ No newline at end of file | 70 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/vo/HotlineCaseDetailResp.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.hotline.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineCaseDO; | ||
| 4 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO; | ||
| 5 | +import com.zteits.urbanops.module.garden.dal.dataobject.photo.SysPhotoDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +import java.util.List; | ||
| 9 | + | ||
| 10 | +@Data | ||
| 11 | +public class HotlineCaseDetailResp { | ||
| 12 | + private HotlineCaseDO caseInfo; | ||
| 13 | + private List<HotlineFileDO> files; | ||
| 14 | + private List<SysPhotoDO> photos; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainplan; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanAddReqVO; | ||
| 7 | +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanForPageReqVO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO; | ||
| 9 | +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanService; | ||
| 10 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | +import io.swagger.v3.oas.annotations.Parameter; | ||
| 12 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 13 | +import jakarta.annotation.Resource; | ||
| 14 | +import jakarta.validation.Valid; | ||
| 15 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 16 | +import org.springframework.web.bind.annotation.*; | ||
| 17 | + | ||
| 18 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 19 | + | ||
| 20 | +@Tag(name = "管理后台 - 养护计划") | ||
| 21 | +@RestController | ||
| 22 | +@RequestMapping("/maintain/plan") | ||
| 23 | +public class MaintainPlanController { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private MaintainPlanService maintainPlanService; | ||
| 27 | + @Resource | ||
| 28 | + private com.zteits.urbanops.module.garden.service.plancommit.MaintainPlanCommitDetailService maintainPlanCommitDetailService; | ||
| 29 | + | ||
| 30 | + @PostMapping("/listForPage") | ||
| 31 | + @Operation(summary = "养护计划-分页查询") | ||
| 32 | + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')") | ||
| 33 | + public CommonResult<PageResult<MaintainPlanDO>> listForPage(@Valid @RequestBody MaintainPlanForPageReqVO reqVO) { | ||
| 34 | + return success(maintainPlanService.selectPage(reqVO)); | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + @GetMapping("/detail") | ||
| 38 | + @Operation(summary = "养护计划-对象明细") | ||
| 39 | + @Parameter(name = "plan_no", description = "编码", required = true) | ||
| 40 | + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')") | ||
| 41 | + public CommonResult<MaintainPlanDO> detail(@RequestParam("plan_no") String planNo) { | ||
| 42 | + return success(maintainPlanService.selectByPlanNo(planNo)); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @PostMapping("/add") | ||
| 46 | + @Operation(summary = "养护计划-添加") | ||
| 47 | + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:create')") | ||
| 48 | + public CommonResult<Boolean> add(@Valid @RequestBody MaintainPlanAddReqVO reqVO) { | ||
| 49 | + Long companyId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 50 | + Long deptId = SecurityFrameworkUtils.getLoginUserDeptId(); | ||
| 51 | + return success(maintainPlanService.insert(reqVO, companyId, deptId)); | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @GetMapping("/deleteById") | ||
| 55 | + @Operation(summary = "养护计划-删除") | ||
| 56 | + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:delete')") | ||
| 57 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 58 | + return success(maintainPlanService.deleteById(id)); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + @PostMapping("/yh/listForPage") | ||
| 62 | + @Operation(summary = "PC养护计划提交记录-分页查询") | ||
| 63 | + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')") | ||
| 64 | + public CommonResult<com.zteits.urbanops.framework.common.pojo.PageResult<com.zteits.urbanops.module.garden.controller.app.vo.PlanTaskCommitDetailPageRespVO>> yhListForPage(@RequestBody com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.AdminPlanYhCommitDetailPageReqVO reqVO) { | ||
| 65 | + com.zteits.urbanops.framework.common.pojo.PageParam page = new com.zteits.urbanops.framework.common.pojo.PageParam(); | ||
| 66 | + page.setPageNo(reqVO.getPageNo()); | ||
| 67 | + page.setPageSize(reqVO.getPageSize()); | ||
| 68 | + com.zteits.urbanops.module.garden.controller.app.vo.PlanYhCommitDetailPageReqVO where = new com.zteits.urbanops.module.garden.controller.app.vo.PlanYhCommitDetailPageReqVO(); | ||
| 69 | + where.setPageNo(reqVO.getPageNo()); | ||
| 70 | + where.setPageSize(reqVO.getPageSize()); | ||
| 71 | + where.setCompanyId(reqVO.getCompanyId()); | ||
| 72 | + return success(maintainPlanCommitDetailService.pageListYH(page, where)); | ||
| 73 | + } | ||
| 74 | +} | ||
| 0 | \ No newline at end of file | 75 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/AdminPlanYhCommitDetailPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class AdminPlanYhCommitDetailPageReqVO extends PageParam { | ||
| 8 | + private Long companyId; | ||
| 9 | +} | ||
| 0 | \ No newline at end of file | 10 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanAddReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import jakarta.validation.constraints.NotNull; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class MaintainPlanAddReqVO { | ||
| 9 | + @NotEmpty | ||
| 10 | + private String planNo; | ||
| 11 | + @NotEmpty | ||
| 12 | + private String planName; | ||
| 13 | + @NotNull | ||
| 14 | + private Integer type; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanForPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class MaintainPlanForPageReqVO extends PageParam { | ||
| 8 | + private Integer type; | ||
| 9 | + private String planName; | ||
| 10 | +} | ||
| 0 | \ No newline at end of file | 11 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/MaintainRateController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainrate; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 6 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo.MaintainRatePageReqVO; | ||
| 8 | +import com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo.MaintainRateReqVO; | ||
| 9 | +import com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo.MaintainRateRespVO; | ||
| 10 | +import com.zteits.urbanops.module.garden.dal.dataobject.maintainrate.MaintainRateDO; | ||
| 11 | +import com.zteits.urbanops.module.garden.service.maintainrate.MaintainRateService; | ||
| 12 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 13 | +import io.swagger.v3.oas.annotations.Parameter; | ||
| 14 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 15 | +import jakarta.annotation.Resource; | ||
| 16 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 17 | +import jakarta.validation.Valid; | ||
| 18 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 19 | +import org.springframework.web.bind.annotation.*; | ||
| 20 | + | ||
| 21 | +import java.io.IOException; | ||
| 22 | +import java.util.List; | ||
| 23 | + | ||
| 24 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 25 | +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.EXPORT; | ||
| 26 | +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog; | ||
| 27 | + | ||
| 28 | +@Tag(name = "管理后台 - 养护频次") | ||
| 29 | +@RestController | ||
| 30 | +@RequestMapping("/maintain/rate") | ||
| 31 | +public class MaintainRateController { | ||
| 32 | + | ||
| 33 | + @Resource | ||
| 34 | + private MaintainRateService maintainRateService; | ||
| 35 | + | ||
| 36 | + @PostMapping("/listForPage") | ||
| 37 | + @Operation(summary = "养护频次-分页查询") | ||
| 38 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:query')") | ||
| 39 | + public CommonResult<PageResult<MaintainRateDO>> listForPage(@Valid @RequestBody MaintainRatePageReqVO reqVO) { | ||
| 40 | + return success(maintainRateService.selectPage(reqVO)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @PostMapping("/getMaintainRateValue") | ||
| 44 | + @Operation(summary = "养护频次-获取养护频次值") | ||
| 45 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:query')") | ||
| 46 | + public CommonResult<MaintainRateRespVO> getMaintainRateValue(@Valid @RequestBody MaintainRateReqVO reqVO) { | ||
| 47 | + return success(maintainRateService.getMaintainRateValue(reqVO)); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + @GetMapping("/selectMaintainRateByLevel") | ||
| 51 | + @Operation(summary = "通过植物类型获取养护频次值") | ||
| 52 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:query')") | ||
| 53 | + public CommonResult<MaintainRateRespVO> selectMaintainRateByLevel(@RequestParam("maintain_type_id") Integer maintainTypeId, | ||
| 54 | + @RequestParam("level") Integer level) { | ||
| 55 | + return success(maintainRateService.selectMaintainRateByLevel(maintainTypeId, level)); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @GetMapping("/export") | ||
| 59 | + @Operation(summary = "导出养护频次列表") | ||
| 60 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:export')") | ||
| 61 | + @ApiAccessLog(operateType = EXPORT) | ||
| 62 | + public void exportExcel(@Valid MaintainRatePageReqVO reqVO, HttpServletResponse response) throws IOException { | ||
| 63 | + List<MaintainRateDO> list = maintainRateService.selectPage(reqVO).getList(); | ||
| 64 | + ExcelUtils.write(response, "养护频次.xls", "数据", MaintainRateDO.class, | ||
| 65 | + BeanUtils.toBean(list, MaintainRateDO.class)); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + @GetMapping("/{id}") | ||
| 69 | + @Operation(summary = "养护频次-详情") | ||
| 70 | + @Parameter(name = "id", description = "编号", required = true) | ||
| 71 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:query')") | ||
| 72 | + public CommonResult<MaintainRateDO> getInfo(@PathVariable("id") Long id) { | ||
| 73 | + return success(maintainRateService.selectById(id)); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @PostMapping("/add") | ||
| 77 | + @Operation(summary = "养护频次-添加") | ||
| 78 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:create')") | ||
| 79 | + public CommonResult<Boolean> add(@Valid @RequestBody MaintainRateDO entity) { | ||
| 80 | + entity.setStatus("0"); | ||
| 81 | + return success(maintainRateService.insert(entity)); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + @PostMapping("/edit") | ||
| 85 | + @Operation(summary = "养护频次-修改") | ||
| 86 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:update')") | ||
| 87 | + public CommonResult<Boolean> edit(@Valid @RequestBody MaintainRateDO entity) { | ||
| 88 | + return success(maintainRateService.update(entity)); | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + @GetMapping("/delete/byId") | ||
| 92 | + @Operation(summary = "养护频次-删除") | ||
| 93 | + @PreAuthorize("@ss.hasPermission('garden:maintain-rate:delete')") | ||
| 94 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 95 | + return success(maintainRateService.deleteById(id)); | ||
| 96 | + } | ||
| 97 | +} | ||
| 0 | \ No newline at end of file | 98 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRatePageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class MaintainRatePageReqVO extends PageParam { | ||
| 9 | + @Schema(description = "类型:1巡查;2养护") | ||
| 10 | + private Integer type; | ||
| 11 | + | ||
| 12 | + @Schema(description = "科目ID") | ||
| 13 | + private Integer maintainSubjectId; | ||
| 14 | + | ||
| 15 | + @Schema(description = "科目名称") | ||
| 16 | + private String maintainSubjectName; | ||
| 17 | + | ||
| 18 | + @Schema(description = "养护类型ID") | ||
| 19 | + private Integer maintainTypeId; | ||
| 20 | + | ||
| 21 | + @Schema(description = "养护类型名称") | ||
| 22 | + private String maintainTypeName; | ||
| 23 | + | ||
| 24 | + @Schema(description = "周期ID") | ||
| 25 | + private Integer cycleId; | ||
| 26 | + | ||
| 27 | + @Schema(description = "周期名称") | ||
| 28 | + private String cycleName; | ||
| 29 | + | ||
| 30 | + @Schema(description = "状态") | ||
| 31 | + private String status; | ||
| 32 | +} | ||
| 0 | \ No newline at end of file | 33 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRateReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import jakarta.validation.constraints.NotNull; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class MaintainRateReqVO { | ||
| 9 | + @NotNull | ||
| 10 | + @Schema(description = "科目ID") | ||
| 11 | + private Integer maintainSubjectId; | ||
| 12 | + | ||
| 13 | + @NotNull | ||
| 14 | + @Schema(description = "养护类型ID") | ||
| 15 | + private Integer maintainTypeId; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRateRespVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class MaintainRateRespVO { | ||
| 8 | + @Schema(description = "养护类型ID") | ||
| 9 | + private Integer maintainTypeId; | ||
| 10 | + @Schema(description = "养护类型名称") | ||
| 11 | + private String maintainTypeName; | ||
| 12 | + | ||
| 13 | + @Schema(description = "周期ID") | ||
| 14 | + private Integer cycleId; | ||
| 15 | + @Schema(description = "周期名称") | ||
| 16 | + private String cycleName; | ||
| 17 | + | ||
| 18 | + @Schema(description = "特级频次") | ||
| 19 | + private String levelTop; | ||
| 20 | + @Schema(description = "一级频次") | ||
| 21 | + private String levelOne; | ||
| 22 | + @Schema(description = "二级频次") | ||
| 23 | + private String levelTwo; | ||
| 24 | + @Schema(description = "三级频次") | ||
| 25 | + private String levelThree; | ||
| 26 | + | ||
| 27 | + @Schema(description = "根据等级选择的频次值") | ||
| 28 | + private String value; | ||
| 29 | +} | ||
| 0 | \ No newline at end of file | 30 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialInController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.material; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 7 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialDO; | ||
| 9 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryDO; | ||
| 10 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryInDO; | ||
| 11 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialInventoryInMapper; | ||
| 12 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialInventoryMapper; | ||
| 13 | +import com.zteits.urbanops.module.garden.service.material.MaterialService; | ||
| 14 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 15 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 16 | +import jakarta.annotation.Resource; | ||
| 17 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 18 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 19 | +import org.springframework.transaction.annotation.Transactional; | ||
| 20 | +import org.springframework.web.bind.annotation.*; | ||
| 21 | + | ||
| 22 | +import java.io.IOException; | ||
| 23 | +import java.util.List; | ||
| 24 | + | ||
| 25 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 26 | + | ||
| 27 | +@Tag(name = "管理后台 - 物料入库") | ||
| 28 | +@RestController | ||
| 29 | +@RequestMapping("/material/in") | ||
| 30 | +public class MaterialInController { | ||
| 31 | + | ||
| 32 | + @Resource | ||
| 33 | + private MaterialInventoryInMapper inMapper; | ||
| 34 | + @Resource | ||
| 35 | + private MaterialInventoryMapper inventoryMapper; | ||
| 36 | + @Resource | ||
| 37 | + private MaterialService materialService; | ||
| 38 | + | ||
| 39 | + @PostMapping("/listForPage") | ||
| 40 | + @Operation(summary = "物料入库-分页") | ||
| 41 | + @PreAuthorize("@ss.hasPermission('material:material/in:list')") | ||
| 42 | + public CommonResult<PageResult<MaterialInventoryInDO>> listForPage(@RequestBody MaterialInventoryInDO where, | ||
| 43 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 44 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 45 | + PageParam page = new PageParam(); | ||
| 46 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 47 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 48 | + PageResult<MaterialInventoryInDO> result = inMapper.selectPage(page, null, | ||
| 49 | + new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaterialInventoryInDO>() | ||
| 50 | + .eqIfPresent(MaterialInventoryInDO::getMaterialId, where.getMaterialId()) | ||
| 51 | + .likeIfPresent(MaterialInventoryInDO::getMaterialName, where.getMaterialName()) | ||
| 52 | + .eqIfPresent(MaterialInventoryInDO::getBelongCompanyId, where.getBelongCompanyId()) | ||
| 53 | + .orderByDesc(MaterialInventoryInDO::getCreateTime)); | ||
| 54 | + return success(result); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + @GetMapping("/export") | ||
| 58 | + @Operation(summary = "物料入库-导出") | ||
| 59 | + @PreAuthorize("@ss.hasPermission('material:material/in:export')") | ||
| 60 | + public void export(MaterialInventoryInDO where, HttpServletResponse response) throws IOException { | ||
| 61 | + List<MaterialInventoryInDO> list = inMapper.selectList(new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaterialInventoryInDO>() | ||
| 62 | + .eqIfPresent(MaterialInventoryInDO::getMaterialId, where.getMaterialId())); | ||
| 63 | + ExcelUtils.write(response, "物料入库.xls", "数据", MaterialInventoryInDO.class, list); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @GetMapping("/select/by/inventoryInNo") | ||
| 67 | + @Operation(summary = "物料入库-详情") | ||
| 68 | + @PreAuthorize("@ss.hasPermission('material:material/in:query')") | ||
| 69 | + public CommonResult<MaterialInventoryInDO> getInfo(@RequestParam("inventoryIn_no") String inventoryInNo) { | ||
| 70 | + return success(inMapper.selectByNo(inventoryInNo)); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + @PostMapping("/add") | ||
| 74 | + @Operation(summary = "物料入库-添加") | ||
| 75 | + @PreAuthorize("@ss.hasPermission('material:material/in:add')") | ||
| 76 | + @Transactional(rollbackFor = Throwable.class) | ||
| 77 | + public CommonResult<Boolean> add(@RequestBody MaterialInventoryInDO req) { | ||
| 78 | + Long userId = SecurityFrameworkUtils.getLoginUserId(); | ||
| 79 | + MaterialDO material = materialService.selectById(req.getMaterialId()); | ||
| 80 | + if (material == null) { | ||
| 81 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "无效参数-materialId"); | ||
| 82 | + } | ||
| 83 | + req.setCreator(String.valueOf(userId)); | ||
| 84 | + req.setUpdater(String.valueOf(userId)); | ||
| 85 | + boolean inserted = inMapper.insert(req) > 0; | ||
| 86 | + | ||
| 87 | + MaterialInventoryDO inventory = new MaterialInventoryDO(); | ||
| 88 | + inventory.setMaterialId(req.getMaterialId()); | ||
| 89 | + inventory.setMaterialName(req.getMaterialName()); | ||
| 90 | + inventory.setMaterialTypeId(req.getMaterialTypeId()); | ||
| 91 | + inventory.setMaterialTypeName(req.getMaterialTypeName()); | ||
| 92 | + inventory.setTypeId(material.getTypeId()); | ||
| 93 | + inventory.setTypeName(material.getTypeName()); | ||
| 94 | + inventory.setTypeDetailId(material.getTypeDetailId()); | ||
| 95 | + inventory.setTypeDetailName(material.getTypeDetailName()); | ||
| 96 | + inventory.setSpecifications(req.getSpecifications()); | ||
| 97 | + inventory.setBelongCompanyId(req.getBelongCompanyId()); | ||
| 98 | + inventory.setBelongCompanyName(req.getBelongCompanyName()); | ||
| 99 | + inventory.setUnitId(req.getUnitId()); | ||
| 100 | + inventory.setUnitName(req.getUnitName()); | ||
| 101 | + inventory.setCurrentNum(req.getInInventoryNum()); | ||
| 102 | + inventory.setOutTotalNum(0L); | ||
| 103 | + inventory.setInventoryTotalNum(req.getInInventoryNum()); | ||
| 104 | + inventory.setStatus("0"); | ||
| 105 | + inventory.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 106 | + | ||
| 107 | + MaterialInventoryDO existed = inventoryMapper.selectByTypeDetailId(inventory.getTypeDetailId(), inventory.getBelongCompanyId()); | ||
| 108 | + if (existed != null) { | ||
| 109 | + MaterialInventoryDO upd = new MaterialInventoryDO(); | ||
| 110 | + upd.setInventoryId(existed.getInventoryId()); | ||
| 111 | + upd.setInventoryTotalNum((existed.getInventoryTotalNum() == null ? 0 : existed.getInventoryTotalNum()) + inventory.getCurrentNum()); | ||
| 112 | + upd.setCurrentNum((existed.getCurrentNum() == null ? 0 : existed.getCurrentNum()) + inventory.getCurrentNum()); | ||
| 113 | + inventoryMapper.updateById(upd); | ||
| 114 | + } else { | ||
| 115 | + inventoryMapper.insert(inventory); | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + return success(inserted); | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + @PostMapping("/edit") | ||
| 122 | + @Operation(summary = "物料入库-修改") | ||
| 123 | + @PreAuthorize("@ss.hasPermission('material:material/in:edit')") | ||
| 124 | + public CommonResult<Boolean> edit(@RequestBody MaterialInventoryInDO req) { | ||
| 125 | + return success(inMapper.updateById(req) > 0); | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + @GetMapping("/delete/by/id") | ||
| 129 | + @Operation(summary = "物料入库-删除") | ||
| 130 | + @PreAuthorize("@ss.hasPermission('material:material/in:remove')") | ||
| 131 | + @Transactional(rollbackFor = Throwable.class) | ||
| 132 | + public CommonResult<Boolean> remove(@RequestParam("id") Long id) { | ||
| 133 | + MaterialInventoryInDO in = inMapper.selectById(id); | ||
| 134 | + if (in == null) { | ||
| 135 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "参数错误"); | ||
| 136 | + } | ||
| 137 | + MaterialInventoryDO inv = inventoryMapper.selectByMaterialId(in.getMaterialId()); | ||
| 138 | + if (inv == null) { | ||
| 139 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "参数错误"); | ||
| 140 | + } | ||
| 141 | + if (inv.getCurrentNum() < in.getInInventoryNum()) { | ||
| 142 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(409, "库存已使用"); | ||
| 143 | + } | ||
| 144 | + MaterialInventoryDO upd = new MaterialInventoryDO(); | ||
| 145 | + upd.setInventoryId(inv.getInventoryId()); | ||
| 146 | + upd.setCurrentNum(inv.getCurrentNum() - in.getInInventoryNum()); | ||
| 147 | + upd.setInventoryTotalNum(inv.getInventoryTotalNum() - in.getInInventoryNum()); | ||
| 148 | + inventoryMapper.updateById(upd); | ||
| 149 | + return success(inMapper.deleteById(id) > 0); | ||
| 150 | + } | ||
| 151 | +} | ||
| 0 | \ No newline at end of file | 152 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialInventoryController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.material; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.material.MaterialInventoryService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 13 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | + | ||
| 16 | +import java.io.IOException; | ||
| 17 | +import java.util.List; | ||
| 18 | + | ||
| 19 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 20 | + | ||
| 21 | +@Tag(name = "管理后台 - 物料库存") | ||
| 22 | +@RestController | ||
| 23 | +@RequestMapping("/material/inventory") | ||
| 24 | +public class MaterialInventoryController { | ||
| 25 | + | ||
| 26 | + @Resource | ||
| 27 | + private MaterialInventoryService inventoryService; | ||
| 28 | + | ||
| 29 | + @PostMapping("/listForPage") | ||
| 30 | + @Operation(summary = "物料库存-分页查询") | ||
| 31 | + @PreAuthorize("@ss.hasPermission('material:inventory:list')") | ||
| 32 | + public CommonResult<PageResult<MaterialInventoryDO>> listForPage(@RequestBody MaterialInventoryDO where, | ||
| 33 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 34 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 35 | + PageParam page = new PageParam(); | ||
| 36 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 37 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 38 | + return success(inventoryService.selectPage(page, where)); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @GetMapping("/export") | ||
| 42 | + @Operation(summary = "物料库存-导出") | ||
| 43 | + @PreAuthorize("@ss.hasPermission('material:inventory:export')") | ||
| 44 | + public void export(MaterialInventoryDO where, HttpServletResponse response) throws IOException { | ||
| 45 | + List<MaterialInventoryDO> list = inventoryService.selectPage(new PageParam(), where).getList(); | ||
| 46 | + ExcelUtils.write(response, "物料库存.xls", "数据", MaterialInventoryDO.class, list); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @GetMapping("/updateByAlermNum") | ||
| 50 | + @Operation(summary = "物料库存-阈值更新") | ||
| 51 | + @PreAuthorize("@ss.hasPermission('material:inventory:export')") | ||
| 52 | + public CommonResult<Boolean> updateInventoryAlermNum(@RequestParam("material_id") Long materialId, | ||
| 53 | + @RequestParam("alerm_num") Long alermNum) { | ||
| 54 | + return success(inventoryService.updateInventoryAlarmNum(materialId, alermNum)); | ||
| 55 | + } | ||
| 56 | +} | ||
| 0 | \ No newline at end of file | 57 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialManagerController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.material; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialManagerDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialManagerMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 物料管理") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/material/manager") | ||
| 22 | +public class MaterialManagerController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private MaterialManagerMapper mapper; | ||
| 26 | + | ||
| 27 | + @PostMapping("/listForPage") | ||
| 28 | + @Operation(summary = "物料管理-分页") | ||
| 29 | + @PreAuthorize("@ss.hasPermission('material:manager:list')") | ||
| 30 | + public CommonResult<PageResult<MaterialManagerDO>> listForPage(@RequestBody MaterialManagerDO where, | ||
| 31 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 32 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 33 | + PageParam page = new PageParam(); | ||
| 34 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 35 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 36 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 37 | + return success(mapper.selectPage(page, where)); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @GetMapping("/list") | ||
| 41 | + @Operation(summary = "物料管理-列表") | ||
| 42 | + @PreAuthorize("@ss.hasPermission('material:manager:list')") | ||
| 43 | + public CommonResult<List<MaterialManagerDO>> list() { | ||
| 44 | + MaterialManagerDO where = new MaterialManagerDO(); | ||
| 45 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 46 | + return success(mapper.selectList(where)); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @PostMapping("/add") | ||
| 50 | + @Operation(summary = "物料管理-添加") | ||
| 51 | + @PreAuthorize("@ss.hasPermission('material:manager:add')") | ||
| 52 | + public CommonResult<Boolean> add(@RequestBody MaterialManagerDO entity) { | ||
| 53 | + entity.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 54 | + entity.setCreator(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 55 | + entity.setUpdater(entity.getCreator()); | ||
| 56 | + entity.clean(); | ||
| 57 | + return success(mapper.insert(entity) > 0); | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + @PostMapping("/edit") | ||
| 61 | + @Operation(summary = "物料管理-修改") | ||
| 62 | + @PreAuthorize("@ss.hasPermission('material:manager:edit')") | ||
| 63 | + public CommonResult<Boolean> edit(@RequestBody MaterialManagerDO entity) { | ||
| 64 | + entity.setUpdater(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 65 | + entity.clean(); | ||
| 66 | + return success(mapper.updateById(entity) > 0); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + @GetMapping("/deleteById") | ||
| 70 | + @Operation(summary = "物料管理-删除") | ||
| 71 | + @PreAuthorize("@ss.hasPermission('material:manager:delete')") | ||
| 72 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 73 | + return success(mapper.deleteById(id) > 0); | ||
| 74 | + } | ||
| 75 | +} | ||
| 0 | \ No newline at end of file | 76 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialOutController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.material; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 7 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialDO; | ||
| 9 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryDO; | ||
| 10 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryOutDO; | ||
| 11 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialInventoryMapper; | ||
| 12 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialInventoryOutMapper; | ||
| 13 | +import com.zteits.urbanops.module.garden.service.material.MaterialService; | ||
| 14 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 15 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 16 | +import jakarta.annotation.Resource; | ||
| 17 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 18 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 19 | +import org.springframework.transaction.annotation.Transactional; | ||
| 20 | +import org.springframework.web.bind.annotation.*; | ||
| 21 | + | ||
| 22 | +import java.io.IOException; | ||
| 23 | +import java.util.List; | ||
| 24 | + | ||
| 25 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 26 | + | ||
| 27 | +@Tag(name = "管理后台 - 物料出库") | ||
| 28 | +@RestController | ||
| 29 | +@RequestMapping("/material/out") | ||
| 30 | +public class MaterialOutController { | ||
| 31 | + | ||
| 32 | + @Resource | ||
| 33 | + private MaterialInventoryOutMapper outMapper; | ||
| 34 | + @Resource | ||
| 35 | + private MaterialInventoryMapper inventoryMapper; | ||
| 36 | + @Resource | ||
| 37 | + private MaterialService materialService; | ||
| 38 | + | ||
| 39 | + @PostMapping("/listForPage") | ||
| 40 | + @Operation(summary = "物料出库-分页") | ||
| 41 | + @PreAuthorize("@ss.hasPermission('material:out:list')") | ||
| 42 | + public CommonResult<PageResult<MaterialInventoryOutDO>> listForPage(@RequestBody MaterialInventoryOutDO where, | ||
| 43 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 44 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 45 | + PageParam page = new PageParam(); | ||
| 46 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 47 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 48 | + PageResult<MaterialInventoryOutDO> result = outMapper.selectPage(page, null, | ||
| 49 | + new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaterialInventoryOutDO>() | ||
| 50 | + .eqIfPresent(MaterialInventoryOutDO::getMaterialId, where.getMaterialId()) | ||
| 51 | + .likeIfPresent(MaterialInventoryOutDO::getMaterialName, where.getMaterialName()) | ||
| 52 | + .eqIfPresent(MaterialInventoryOutDO::getBelongCompanyId, where.getBelongCompanyId()) | ||
| 53 | + .orderByDesc(MaterialInventoryOutDO::getCreateTime)); | ||
| 54 | + return success(result); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + @GetMapping("/export") | ||
| 58 | + @Operation(summary = "物料出库-导出") | ||
| 59 | + @PreAuthorize("@ss.hasPermission('material:out:export')") | ||
| 60 | + public void export(MaterialInventoryOutDO where, HttpServletResponse response) throws IOException { | ||
| 61 | + List<MaterialInventoryOutDO> list = outMapper.selectList(new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaterialInventoryOutDO>() | ||
| 62 | + .eqIfPresent(MaterialInventoryOutDO::getMaterialId, where.getMaterialId())); | ||
| 63 | + ExcelUtils.write(response, "物料出库.xls", "数据", MaterialInventoryOutDO.class, list); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @GetMapping("/{id}") | ||
| 67 | + @Operation(summary = "物料出库-详情") | ||
| 68 | + @PreAuthorize("@ss.hasPermission('material:out:query')") | ||
| 69 | + public CommonResult<MaterialInventoryOutDO> getInfo(@RequestParam("id") Long id) { | ||
| 70 | + return success(outMapper.selectById(id)); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + @PostMapping("/add") | ||
| 74 | + @Operation(summary = "物料出库-添加") | ||
| 75 | + @PreAuthorize("@ss.hasPermission('material:out:add')") | ||
| 76 | + @Transactional(rollbackFor = Throwable.class) | ||
| 77 | + public CommonResult<Boolean> add(@RequestBody MaterialInventoryOutDO req) { | ||
| 78 | + Long userId = SecurityFrameworkUtils.getLoginUserId(); | ||
| 79 | + MaterialDO material = materialService.selectById(req.getMaterialId()); | ||
| 80 | + if (material == null) { | ||
| 81 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "无效参数"); | ||
| 82 | + } | ||
| 83 | + MaterialInventoryDO inventory = inventoryMapper.selectByTypeDetailId(material.getTypeDetailId(), SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 84 | + if (inventory == null) { | ||
| 85 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, req.getMaterialName() + "没有库存"); | ||
| 86 | + } | ||
| 87 | + if (inventory.getCurrentNum() < req.getOutInventoryNum()) { | ||
| 88 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(409, "当前库存不足,无法出库"); | ||
| 89 | + } | ||
| 90 | + req.setCreator(String.valueOf(userId)); | ||
| 91 | + boolean inserted = outMapper.insert(req) > 0; | ||
| 92 | + inventoryMapper.updateInventoryByMaterialId(inventory.getInventoryId(), req.getOutInventoryNum()); | ||
| 93 | + return success(inserted); | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + @PostMapping("/edit") | ||
| 97 | + @Operation(summary = "物料出库-修改") | ||
| 98 | + @PreAuthorize("@ss.hasPermission('material:out:edit')") | ||
| 99 | + public CommonResult<Boolean> edit(@RequestBody MaterialInventoryOutDO req) { | ||
| 100 | + return success(outMapper.updateById(req) > 0); | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + @GetMapping("/delete/ById") | ||
| 104 | + @Operation(summary = "物料出库-删除") | ||
| 105 | + @PreAuthorize("@ss.hasPermission('material:out:remove')") | ||
| 106 | + public CommonResult<Boolean> remove(@RequestParam("id") Long id) { | ||
| 107 | + MaterialInventoryOutDO out = outMapper.selectById(id); | ||
| 108 | + if (out == null) { | ||
| 109 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "参数错误"); | ||
| 110 | + } | ||
| 111 | + MaterialInventoryDO inv = inventoryMapper.selectByMaterialId(out.getMaterialId()); | ||
| 112 | + if (inv == null) { | ||
| 113 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(400, "参数错误"); | ||
| 114 | + } | ||
| 115 | + if (inv.getCurrentNum() < out.getOutInventoryNum()) { | ||
| 116 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(409, "库存已使用"); | ||
| 117 | + } | ||
| 118 | + MaterialInventoryDO upd = new MaterialInventoryDO(); | ||
| 119 | + upd.setInventoryId(inv.getInventoryId()); | ||
| 120 | + upd.setCurrentNum(inv.getCurrentNum() + out.getOutInventoryNum()); | ||
| 121 | + upd.setInventoryTotalNum(inv.getInventoryTotalNum() + out.getOutInventoryNum()); | ||
| 122 | + upd.setOutTotalNum(inv.getOutTotalNum() - out.getOutInventoryNum()); | ||
| 123 | + inventoryMapper.updateById(upd); | ||
| 124 | + return success(outMapper.deleteById(id) > 0); | ||
| 125 | + } | ||
| 126 | +} | ||
| 0 | \ No newline at end of file | 127 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/MaterialTypeAdminController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.materialtype; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialTypeDO; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.mysql.material.MaterialTypeMapper; | ||
| 8 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 9 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 10 | +import jakarta.annotation.Resource; | ||
| 11 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 12 | +import org.springframework.web.bind.annotation.*; | ||
| 13 | + | ||
| 14 | +import java.util.List; | ||
| 15 | + | ||
| 16 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 17 | + | ||
| 18 | +@Tag(name = "管理后台 - 物料类型") | ||
| 19 | +@RestController | ||
| 20 | +@RequestMapping("/materialType/type") | ||
| 21 | +public class MaterialTypeAdminController { | ||
| 22 | + | ||
| 23 | + @Resource | ||
| 24 | + private MaterialTypeMapper mapper; | ||
| 25 | + | ||
| 26 | + @GetMapping("/getMaterialBigTypeList") | ||
| 27 | + @Operation(summary = "物料类型-大类列表") | ||
| 28 | + @PreAuthorize("@ss.hasPermission('material:type:list')") | ||
| 29 | + public CommonResult<List<MaterialTypeDO>> getMaterialBigTypeList() { | ||
| 30 | + return success(mapper.selectBigTypeList()); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @PostMapping("/listForPage") | ||
| 34 | + @Operation(summary = "物料类型-分页") | ||
| 35 | + @PreAuthorize("@ss.hasPermission('material:type:list')") | ||
| 36 | + public CommonResult<PageResult<MaterialTypeDO>> listForPage(@RequestBody MaterialTypeDO where, | ||
| 37 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 38 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 39 | + PageParam page = new PageParam(); | ||
| 40 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 41 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 42 | + return success(mapper.selectPage(page, where)); | ||
| 43 | + } | ||
| 44 | +} | ||
| 0 | \ No newline at end of file | 45 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/mechanicalcost/MechanicalCostController.java
| @@ -36,7 +36,7 @@ import com.zteits.urbanops.module.garden.service.mechanicalcost.MechanicalCostSe | @@ -36,7 +36,7 @@ import com.zteits.urbanops.module.garden.service.mechanicalcost.MechanicalCostSe | ||
| 36 | 36 | ||
| 37 | @Tag(name = "管理后台 - 自有机械费用录入") | 37 | @Tag(name = "管理后台 - 自有机械费用录入") |
| 38 | @RestController | 38 | @RestController |
| 39 | -@RequestMapping("/garden/mechanical-cost") | 39 | +@RequestMapping({"/garden/mechanical-cost", "/costfee/mechanicalcost"}) |
| 40 | @Validated | 40 | @Validated |
| 41 | public class MechanicalCostController { | 41 | public class MechanicalCostController { |
| 42 | 42 | ||
| @@ -112,6 +112,14 @@ public class MechanicalCostController { | @@ -112,6 +112,14 @@ public class MechanicalCostController { | ||
| 112 | return success(BeanUtils.toBean(pageResult, MechanicalCostRespVO.class)); | 112 | return success(BeanUtils.toBean(pageResult, MechanicalCostRespVO.class)); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | + @GetMapping("/list") | ||
| 116 | + @Operation(summary = "自有机械费用录入-列表(兼容旧路径)") | ||
| 117 | + @PreAuthorize("@ss.hasPermission('garden:mechanical-cost:query')") | ||
| 118 | + public CommonResult<PageResult<MechanicalCostRespVO>> list(@Valid MechanicalCostPageReqVO pageReqVO) { | ||
| 119 | + PageResult<MechanicalCostDO> pageResult = mechanicalCostService.getMechanicalCostPage(pageReqVO); | ||
| 120 | + return success(BeanUtils.toBean(pageResult, MechanicalCostRespVO.class)); | ||
| 121 | + } | ||
| 122 | + | ||
| 115 | @GetMapping("/export-excel") | 123 | @GetMapping("/export-excel") |
| 116 | @Operation(summary = "导出自有机械费用录入 Excel") | 124 | @Operation(summary = "导出自有机械费用录入 Excel") |
| 117 | @PreAuthorize("@ss.hasPermission('garden:mechanical-cost:export')") | 125 | @PreAuthorize("@ss.hasPermission('garden:mechanical-cost:export')") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/pc/PcProblemManagerController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.pc; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.problem.MaintainProblemManagerDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.problem.MaintainProblemManagerService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.web.bind.annotation.*; | ||
| 13 | + | ||
| 14 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 15 | + | ||
| 16 | +@Tag(name = "管理后台 - 问题管理") | ||
| 17 | +@RestController | ||
| 18 | +@RequestMapping("/pc/problem/manager") | ||
| 19 | +public class PcProblemManagerController { | ||
| 20 | + | ||
| 21 | + @Resource | ||
| 22 | + private MaintainProblemManagerService service; | ||
| 23 | + | ||
| 24 | + @PostMapping("/listForPage") | ||
| 25 | + @Operation(summary = "问题管理-分页查询") | ||
| 26 | + public CommonResult<PageResult<MaintainProblemManagerDO>> listForPage(@RequestBody MaintainProblemManagerDO where, | ||
| 27 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 28 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 29 | + PageParam page = new PageParam(); | ||
| 30 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 31 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 32 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 33 | + return success(service.selectPage(page, where)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @GetMapping("/queryById") | ||
| 37 | + @Operation(summary = "问题管理-详情") | ||
| 38 | + public CommonResult<MaintainProblemManagerDO> queryById(@RequestParam("id") Long id) { | ||
| 39 | + return success(service.selectById(id)); | ||
| 40 | + } | ||
| 41 | +} | ||
| 0 | \ No newline at end of file | 42 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/pc/PcProblemTaskController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.pc; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.problem.MaintainTaskManagerDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.problem.MaintainTaskManagerMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.web.bind.annotation.*; | ||
| 13 | + | ||
| 14 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 15 | + | ||
| 16 | +@Tag(name = "管理后台 - 问题任务") | ||
| 17 | +@RestController | ||
| 18 | +@RequestMapping("/pc/problem/task") | ||
| 19 | +public class PcProblemTaskController { | ||
| 20 | + | ||
| 21 | + @Resource | ||
| 22 | + private MaintainTaskManagerMapper mapper; | ||
| 23 | + | ||
| 24 | + @PostMapping("/listForPage") | ||
| 25 | + @Operation(summary = "养护任务管理-分页") | ||
| 26 | + public CommonResult<PageResult<MaintainTaskManagerDO>> listForPage(@RequestBody MaintainTaskManagerDO where, | ||
| 27 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 28 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 29 | + PageParam page = new PageParam(); | ||
| 30 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 31 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 32 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 33 | + return success(mapper.selectPage(page, where)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @GetMapping("/queryByProblemNo") | ||
| 37 | + @Operation(summary = "养护任务处理-详情") | ||
| 38 | + public CommonResult<MaintainTaskManagerDO> queryByProblemNo(@RequestParam("problem_no") String problemNo) { | ||
| 39 | + MaintainTaskManagerDO where = new MaintainTaskManagerDO(); | ||
| 40 | + where.setProblemNo(problemNo); | ||
| 41 | + PageResult<MaintainTaskManagerDO> result = mapper.selectPage(new PageParam(), where); | ||
| 42 | + return success(result.getList().isEmpty() ? null : result.getList().get(0)); | ||
| 43 | + } | ||
| 44 | +} | ||
| 0 | \ No newline at end of file | 45 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/performance/PerformanceExpertsController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.performance; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.performance.PerformanceExpertsDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.performance.PerformanceExpertsMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 16 | + | ||
| 17 | +@Tag(name = "管理后台 - 绩效专家") | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/performance/experts") | ||
| 20 | +public class PerformanceExpertsController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private PerformanceExpertsMapper mapper; | ||
| 24 | + | ||
| 25 | + @PostMapping("/listForPage") | ||
| 26 | + @Operation(summary = "绩效专家-分页") | ||
| 27 | + @PreAuthorize("@ss.hasPermission('performance:experts:list')") | ||
| 28 | + public CommonResult<PageResult<PerformanceExpertsDO>> listForPage(@RequestBody PerformanceExpertsDO where, | ||
| 29 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 30 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 31 | + PageParam page = new PageParam(); | ||
| 32 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 33 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 34 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 35 | + return success(mapper.selectPage(page, where)); | ||
| 36 | + } | ||
| 37 | +} | ||
| 0 | \ No newline at end of file | 38 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/performance/PerformanceIndexController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.performance; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.performance.PerformanceIndexDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.performance.PerformanceIndexMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 16 | + | ||
| 17 | +@Tag(name = "管理后台 - 绩效指标") | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/performance/index") | ||
| 20 | +public class PerformanceIndexController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private PerformanceIndexMapper mapper; | ||
| 24 | + | ||
| 25 | + @PostMapping("/listForPage") | ||
| 26 | + @Operation(summary = "绩效指标-分页") | ||
| 27 | + @PreAuthorize("@ss.hasPermission('performance:index:list')") | ||
| 28 | + public CommonResult<PageResult<PerformanceIndexDO>> listForPage(@RequestBody PerformanceIndexDO where, | ||
| 29 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 30 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 31 | + PageParam page = new PageParam(); | ||
| 32 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 33 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 34 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 35 | + return success(mapper.selectPage(page, where)); | ||
| 36 | + } | ||
| 37 | +} | ||
| 0 | \ No newline at end of file | 38 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/performance/PerformanceWriteController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.performance; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.performance.PerformanceWriteDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.performance.PerformanceWriteMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 16 | + | ||
| 17 | +@Tag(name = "管理后台 - 绩效填报") | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/performance/write") | ||
| 20 | +public class PerformanceWriteController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private PerformanceWriteMapper mapper; | ||
| 24 | + | ||
| 25 | + @PostMapping("/listForPage") | ||
| 26 | + @Operation(summary = "绩效填报-分页") | ||
| 27 | + @PreAuthorize("@ss.hasPermission('performance:write:list')") | ||
| 28 | + public CommonResult<PageResult<PerformanceWriteDO>> listForPage(@RequestBody PerformanceWriteDO where, | ||
| 29 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 30 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 31 | + PageParam page = new PageParam(); | ||
| 32 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 33 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 34 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 35 | + return success(mapper.selectPage(page, where)); | ||
| 36 | + } | ||
| 37 | +} | ||
| 0 | \ No newline at end of file | 38 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/photo/SysPhotoController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.photo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.dal.dataobject.photo.SysPhotoDO; | ||
| 6 | +import com.zteits.urbanops.module.garden.service.photo.SysPhotoService; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import org.springframework.web.bind.annotation.*; | ||
| 11 | + | ||
| 12 | +import java.io.IOException; | ||
| 13 | +import java.util.Arrays; | ||
| 14 | +import java.util.List; | ||
| 15 | + | ||
| 16 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 17 | + | ||
| 18 | +@Tag(name = "管理后台 - 所有照片信息") | ||
| 19 | +@RestController | ||
| 20 | +@RequestMapping("/business/sysphoto") | ||
| 21 | +public class SysPhotoController { | ||
| 22 | + | ||
| 23 | + @Resource | ||
| 24 | + private SysPhotoService sysPhotoService; | ||
| 25 | + | ||
| 26 | + @GetMapping("/list") | ||
| 27 | + @Operation(summary = "照片-列表") | ||
| 28 | + public CommonResult<List<SysPhotoDO>> list(SysPhotoDO where) { | ||
| 29 | + return success(sysPhotoService.selectList(where)); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + @GetMapping("/export") | ||
| 33 | + @Operation(summary = "照片-导出") | ||
| 34 | + public void export(SysPhotoDO where, jakarta.servlet.http.HttpServletResponse response) throws IOException { | ||
| 35 | + List<SysPhotoDO> list = sysPhotoService.selectList(where); | ||
| 36 | + ExcelUtils.write(response, "photo.xls", "数据", SysPhotoDO.class, list); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @GetMapping("/{id}") | ||
| 40 | + @Operation(summary = "照片-详情") | ||
| 41 | + public CommonResult<SysPhotoDO> getInfo(@PathVariable("id") String id) { | ||
| 42 | + return success(sysPhotoService.selectById(id)); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @PostMapping | ||
| 46 | + @Operation(summary = "照片-新增") | ||
| 47 | + public CommonResult<Boolean> add(@RequestBody SysPhotoDO entity) { | ||
| 48 | + return success(sysPhotoService.insert(entity)); | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + @PutMapping | ||
| 52 | + @Operation(summary = "照片-修改") | ||
| 53 | + public CommonResult<Boolean> edit(@RequestBody SysPhotoDO entity) { | ||
| 54 | + return success(sysPhotoService.update(entity)); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + @DeleteMapping("/{ids}") | ||
| 58 | + @Operation(summary = "照片-删除") | ||
| 59 | + public CommonResult<Boolean> remove(@PathVariable String[] ids) { | ||
| 60 | + return success(sysPhotoService.deleteByIds(Arrays.asList(ids))); | ||
| 61 | + } | ||
| 62 | +} | ||
| 0 | \ No newline at end of file | 63 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/project/ProjectManagerController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.project; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.project.ProjectManagerDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.project.ProjectManagerMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 项目管理") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/project/manager") | ||
| 22 | +public class ProjectManagerController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private ProjectManagerMapper mapper; | ||
| 26 | + | ||
| 27 | + @PostMapping("/listForPage") | ||
| 28 | + @Operation(summary = "项目管理-分页") | ||
| 29 | + @PreAuthorize("@ss.hasPermission('project:manager:list')") | ||
| 30 | + public CommonResult<PageResult<ProjectManagerDO>> listForPage(@RequestBody ProjectManagerDO where, | ||
| 31 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 32 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 33 | + PageParam page = new PageParam(); | ||
| 34 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 35 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 36 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 37 | + return success(mapper.selectPage(page, where)); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @GetMapping("/selectProjectManagerForList") | ||
| 41 | + @Operation(summary = "项目管理-列表") | ||
| 42 | + @PreAuthorize("@ss.hasPermission('project:manager:list')") | ||
| 43 | + public CommonResult<List<ProjectManagerDO>> selectProjectManagerForList() { | ||
| 44 | + ProjectManagerDO where = new ProjectManagerDO(); | ||
| 45 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 46 | + return success(mapper.selectList(where)); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @PostMapping("/add") | ||
| 50 | + @Operation(summary = "项目管理-添加") | ||
| 51 | + @PreAuthorize("@ss.hasPermission('project:manager:add')") | ||
| 52 | + public CommonResult<Boolean> add(@RequestBody ProjectManagerDO entity) { | ||
| 53 | + entity.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 54 | + entity.setCreator(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 55 | + entity.setUpdater(entity.getCreator()); | ||
| 56 | + entity.clean(); | ||
| 57 | + return success(mapper.insert(entity) > 0); | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + @PostMapping("/edit") | ||
| 61 | + @Operation(summary = "项目管理-修改") | ||
| 62 | + @PreAuthorize("@ss.hasPermission('project:manager:edit')") | ||
| 63 | + public CommonResult<Boolean> edit(@RequestBody ProjectManagerDO entity) { | ||
| 64 | + entity.setUpdater(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 65 | + entity.clean(); | ||
| 66 | + return success(mapper.updateById(entity) > 0); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + @GetMapping("/deleteById") | ||
| 70 | + @Operation(summary = "项目管理-删除") | ||
| 71 | + @PreAuthorize("@ss.hasPermission('project:manager:delete')") | ||
| 72 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 73 | + return success(mapper.deleteById(id) > 0); | ||
| 74 | + } | ||
| 75 | +} | ||
| 0 | \ No newline at end of file | 76 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/project/SubProjectManagerController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.project; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.project.SubProjectManagerDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.project.SubProjectManagerMapper; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 13 | +import org.springframework.web.bind.annotation.*; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 16 | + | ||
| 17 | +@Tag(name = "管理后台 - 子项目管理") | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/subProject/manager") | ||
| 20 | +public class SubProjectManagerController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private SubProjectManagerMapper mapper; | ||
| 24 | + | ||
| 25 | + @PostMapping("/listForPage") | ||
| 26 | + @Operation(summary = "子项目管理-分页") | ||
| 27 | + @PreAuthorize("@ss.hasPermission('project:subproject:list')") | ||
| 28 | + public CommonResult<PageResult<SubProjectManagerDO>> listForPage(@RequestBody SubProjectManagerDO where, | ||
| 29 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 30 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 31 | + PageParam page = new PageParam(); | ||
| 32 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 33 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 34 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 35 | + return success(mapper.selectPage(page, where)); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + @PostMapping("/add") | ||
| 39 | + @Operation(summary = "子项目管理-添加") | ||
| 40 | + @PreAuthorize("@ss.hasPermission('project:subproject:add')") | ||
| 41 | + public CommonResult<Boolean> add(@RequestBody SubProjectManagerDO entity) { | ||
| 42 | + entity.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 43 | + entity.setCreator(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 44 | + entity.setUpdater(entity.getCreator()); | ||
| 45 | + entity.clean(); | ||
| 46 | + return success(mapper.insert(entity) > 0); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @PostMapping("/edit") | ||
| 50 | + @Operation(summary = "子项目管理-修改") | ||
| 51 | + @PreAuthorize("@ss.hasPermission('project:subproject:edit')") | ||
| 52 | + public CommonResult<Boolean> edit(@RequestBody SubProjectManagerDO entity) { | ||
| 53 | + entity.setUpdater(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 54 | + entity.clean(); | ||
| 55 | + return success(mapper.updateById(entity) > 0); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @GetMapping("/deleteById") | ||
| 59 | + @Operation(summary = "子项目管理-删除") | ||
| 60 | + @PreAuthorize("@ss.hasPermission('project:subproject:delete')") | ||
| 61 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 62 | + return success(mapper.deleteById(id) > 0); | ||
| 63 | + } | ||
| 64 | +} | ||
| 0 | \ No newline at end of file | 65 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/rentalmechanicalcost/RentalMechanicalCostController.java
| @@ -36,7 +36,7 @@ import com.zteits.urbanops.module.garden.service.rentalmechanicalcost.RentalMech | @@ -36,7 +36,7 @@ import com.zteits.urbanops.module.garden.service.rentalmechanicalcost.RentalMech | ||
| 36 | 36 | ||
| 37 | @Tag(name = "管理后台 - 租赁机械费用录入") | 37 | @Tag(name = "管理后台 - 租赁机械费用录入") |
| 38 | @RestController | 38 | @RestController |
| 39 | -@RequestMapping("/garden/rental-mechanical-cost") | 39 | +@RequestMapping({"/garden/rental-mechanical-cost", "/costfee/rentalmechanicalcost"}) |
| 40 | @Validated | 40 | @Validated |
| 41 | public class RentalMechanicalCostController { | 41 | public class RentalMechanicalCostController { |
| 42 | 42 | ||
| @@ -104,6 +104,14 @@ public class RentalMechanicalCostController { | @@ -104,6 +104,14 @@ public class RentalMechanicalCostController { | ||
| 104 | return success(BeanUtils.toBean(pageResult, RentalMechanicalCostRespVO.class)); | 104 | return success(BeanUtils.toBean(pageResult, RentalMechanicalCostRespVO.class)); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | + @GetMapping("/list") | ||
| 108 | + @Operation(summary = "租赁机械费用录入-列表(兼容旧路径)") | ||
| 109 | + @PreAuthorize("@ss.hasPermission('garden:rental-mechanical-cost:query')") | ||
| 110 | + public CommonResult<PageResult<RentalMechanicalCostRespVO>> list(@Valid RentalMechanicalCostPageReqVO pageReqVO) { | ||
| 111 | + PageResult<RentalMechanicalCostDO> pageResult = rentalMechanicalCostService.getRentalMechanicalCostPage(pageReqVO); | ||
| 112 | + return success(BeanUtils.toBean(pageResult, RentalMechanicalCostRespVO.class)); | ||
| 113 | + } | ||
| 114 | + | ||
| 107 | @GetMapping("/export-excel") | 115 | @GetMapping("/export-excel") |
| 108 | @Operation(summary = "导出租赁机械费用录入 Excel") | 116 | @Operation(summary = "导出租赁机械费用录入 Excel") |
| 109 | @PreAuthorize("@ss.hasPermission('garden:rental-mechanical-cost:export')") | 117 | @PreAuthorize("@ss.hasPermission('garden:rental-mechanical-cost:export')") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/RoadManagerController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.roadmanager; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 6 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 7 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 8 | +import com.zteits.urbanops.module.garden.controller.admin.roadmanager.vo.RoadManagerPageReqVO; | ||
| 9 | +import com.zteits.urbanops.module.garden.controller.admin.roadmanager.vo.RoadManagerSaveReqVO; | ||
| 10 | +import com.zteits.urbanops.module.garden.dal.dataobject.road.RoadManagerDO; | ||
| 11 | +import com.zteits.urbanops.module.garden.service.road.RoadManagerService; | ||
| 12 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 13 | +import io.swagger.v3.oas.annotations.Parameter; | ||
| 14 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 15 | +import jakarta.annotation.Resource; | ||
| 16 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 17 | +import jakarta.validation.Valid; | ||
| 18 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 19 | +import org.springframework.web.bind.annotation.*; | ||
| 20 | + | ||
| 21 | +import java.io.IOException; | ||
| 22 | +import java.util.List; | ||
| 23 | + | ||
| 24 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 25 | +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.EXPORT; | ||
| 26 | +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog; | ||
| 27 | + | ||
| 28 | +@Tag(name = "管理后台 - 道路数据管理") | ||
| 29 | +@RestController | ||
| 30 | +@RequestMapping("/road/manager") | ||
| 31 | +public class RoadManagerController { | ||
| 32 | + | ||
| 33 | + @Resource | ||
| 34 | + private RoadManagerService roadManagerService; | ||
| 35 | + | ||
| 36 | + @PostMapping("/listForPage") | ||
| 37 | + @Operation(summary = "道路数据管理-分页") | ||
| 38 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:query')") | ||
| 39 | + public CommonResult<PageResult<RoadManagerDO>> listForPage(@Valid @RequestBody RoadManagerPageReqVO reqVO) { | ||
| 40 | + return success(roadManagerService.selectPage(reqVO)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @GetMapping("/export") | ||
| 44 | + @Operation(summary = "道路数据管理-导出") | ||
| 45 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:export')") | ||
| 46 | + @ApiAccessLog(operateType = EXPORT) | ||
| 47 | + public void exportExcel(RoadManagerPageReqVO reqVO, HttpServletResponse response) throws IOException { | ||
| 48 | + List<RoadManagerDO> list = roadManagerService.selectPage(reqVO).getList(); | ||
| 49 | + ExcelUtils.write(response, "道路数据.xls", "数据", RoadManagerDO.class, | ||
| 50 | + BeanUtils.toBean(list, RoadManagerDO.class)); | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + @GetMapping("/getById") | ||
| 54 | + @Operation(summary = "道路数据管理-详情") | ||
| 55 | + @Parameter(name = "id", description = "编号", required = true) | ||
| 56 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:query')") | ||
| 57 | + public CommonResult<RoadManagerDO> getById(@RequestParam("id") Long id) { | ||
| 58 | + return success(roadManagerService.selectById(id)); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + @PostMapping("/add") | ||
| 62 | + @Operation(summary = "道路数据管理-添加") | ||
| 63 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:create')") | ||
| 64 | + public CommonResult<Boolean> add(@Valid @RequestBody RoadManagerSaveReqVO reqVO) { | ||
| 65 | + RoadManagerDO entity = BeanUtils.toBean(reqVO, RoadManagerDO.class); | ||
| 66 | + entity.setStatus(0); | ||
| 67 | + return success(roadManagerService.insert(entity)); | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + @PostMapping("/edit") | ||
| 71 | + @Operation(summary = "道路数据管理-修改") | ||
| 72 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:update')") | ||
| 73 | + public CommonResult<Boolean> edit(@Valid @RequestBody RoadManagerSaveReqVO reqVO) { | ||
| 74 | + RoadManagerDO entity = BeanUtils.toBean(reqVO, RoadManagerDO.class); | ||
| 75 | + entity.setStatus(0); | ||
| 76 | + return success(roadManagerService.update(entity)); | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + @GetMapping("/deleteById") | ||
| 80 | + @Operation(summary = "道路数据管理-删除") | ||
| 81 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:delete')") | ||
| 82 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 83 | + return success(roadManagerService.deleteById(id)); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + @GetMapping("/list") | ||
| 87 | + @Operation(summary = "道路数据管理-列表") | ||
| 88 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:query')") | ||
| 89 | + public CommonResult<List<RoadManagerDO>> list(@RequestParam(value = "company_id", required = false) Long companyId) { | ||
| 90 | + RoadManagerDO where = new RoadManagerDO(); | ||
| 91 | + where.setCompanyId(companyId); | ||
| 92 | + return success(roadManagerService.selectList(where)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @GetMapping("/tree") | ||
| 96 | + @Operation(summary = "道路数据管理-树") | ||
| 97 | + @PreAuthorize("@ss.hasPermission('garden:road-manager:query')") | ||
| 98 | + public CommonResult<List<RoadManagerDO>> tree(@RequestParam(value = "company_id", required = false) Long companyId) { | ||
| 99 | + RoadManagerDO where = new RoadManagerDO(); | ||
| 100 | + where.setCompanyId(companyId); | ||
| 101 | + return success(roadManagerService.selectList(where)); | ||
| 102 | + } | ||
| 103 | +} | ||
| 0 | \ No newline at end of file | 104 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/vo/RoadManagerPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.roadmanager.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class RoadManagerPageReqVO extends PageParam { | ||
| 9 | + @Schema(description = "道路名称") | ||
| 10 | + private String roadName; | ||
| 11 | + @Schema(description = "街道ID") | ||
| 12 | + private String streetId; | ||
| 13 | + @Schema(description = "街道名称") | ||
| 14 | + private String streetName; | ||
| 15 | + @Schema(description = "养护级别ID") | ||
| 16 | + private Integer curingLevelId; | ||
| 17 | + @Schema(description = "养护级别") | ||
| 18 | + private String curingLevelName; | ||
| 19 | + @Schema(description = "公司ID") | ||
| 20 | + private Long companyId; | ||
| 21 | + @Schema(description = "部门ID") | ||
| 22 | + private Long deptId; | ||
| 23 | + @Schema(description = "状态") | ||
| 24 | + private Integer status; | ||
| 25 | +} | ||
| 0 | \ No newline at end of file | 26 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/vo/RoadManagerSaveReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.roadmanager.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import jakarta.validation.constraints.NotEmpty; | ||
| 5 | +import jakarta.validation.constraints.NotNull; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@Data | ||
| 9 | +public class RoadManagerSaveReqVO { | ||
| 10 | + private Long id; | ||
| 11 | + @NotEmpty | ||
| 12 | + @Schema(description = "道路名称") | ||
| 13 | + private String roadName; | ||
| 14 | + private String streetId; | ||
| 15 | + private String streetName; | ||
| 16 | + private Integer curingLevelId; | ||
| 17 | + private String curingLevelName; | ||
| 18 | + private String greenBeltTreeArea; | ||
| 19 | + private String greenBeltArea; | ||
| 20 | + private String totalArea; | ||
| 21 | + private String treeArea; | ||
| 22 | + private String startingLatitude; | ||
| 23 | + private String startingLongitude; | ||
| 24 | + private String startingRemark; | ||
| 25 | + private String endLatitude; | ||
| 26 | + private String endLongitude; | ||
| 27 | + private String endRemark; | ||
| 28 | + private Integer status; | ||
| 29 | + private Long companyId; | ||
| 30 | + private String companyName; | ||
| 31 | + private Long deptId; | ||
| 32 | + private String roadAttr; | ||
| 33 | + private String direction; | ||
| 34 | +} | ||
| 0 | \ No newline at end of file | 35 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/standingbook/StandingBookController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.standingbook; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.admin.standingbook.vo.StandingBookPageReqVO; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.standingbook.StandingBookDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.standingbook.StandingBookService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.RestController; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "管理后台 - 年度基础台账") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/standing/book") | ||
| 22 | +public class StandingBookController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private StandingBookService standingBookService; | ||
| 26 | + | ||
| 27 | + @PostMapping("/listForPage") | ||
| 28 | + @Operation(summary = "年度基础台账-分页") | ||
| 29 | + public CommonResult<PageResult<StandingBookDO>> listForPage(@RequestBody StandingBookPageReqVO reqVO) { | ||
| 30 | + PageParam page = new PageParam(); | ||
| 31 | + page.setPageNo(reqVO.getPageNo()); | ||
| 32 | + page.setPageSize(reqVO.getPageSize()); | ||
| 33 | + return success(standingBookService.selectPage(page, reqVO)); | ||
| 34 | + } | ||
| 35 | +} | ||
| 0 | \ No newline at end of file | 36 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/standingbook/vo/StandingBookPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.standingbook.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class StandingBookPageReqVO extends PageParam { | ||
| 8 | + private String standingBookYear; | ||
| 9 | +} | ||
| 0 | \ No newline at end of file | 10 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/system/SystemDeptBridgeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.system; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 5 | +import com.zteits.urbanops.module.system.controller.admin.dept.vo.dept.DeptListReqVO; | ||
| 6 | +import com.zteits.urbanops.module.system.controller.admin.dept.vo.dept.DeptRespVO; | ||
| 7 | +import com.zteits.urbanops.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO; | ||
| 8 | +import com.zteits.urbanops.module.system.dal.dataobject.dept.DeptDO; | ||
| 9 | +import com.zteits.urbanops.module.system.service.dept.DeptService; | ||
| 10 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 12 | +import jakarta.annotation.Resource; | ||
| 13 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 16 | +import org.springframework.web.bind.annotation.RestController; | ||
| 17 | + | ||
| 18 | +import java.util.List; | ||
| 19 | + | ||
| 20 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 21 | + | ||
| 22 | +@Tag(name = "管理后台 - 系统部门桥接") | ||
| 23 | +@RestController | ||
| 24 | +@RequestMapping("/bridge/system/dept") | ||
| 25 | +public class SystemDeptBridgeController { | ||
| 26 | + | ||
| 27 | + @Resource | ||
| 28 | + private DeptService deptService; | ||
| 29 | + | ||
| 30 | + @GetMapping("/list") | ||
| 31 | + @Operation(summary = "获取部门列表") | ||
| 32 | + public CommonResult<List<DeptRespVO>> list() { | ||
| 33 | + List<DeptDO> list = deptService.getDeptList(new DeptListReqVO()); | ||
| 34 | + return success(BeanUtils.toBean(list, DeptRespVO.class)); | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + @GetMapping("/treeselect") | ||
| 38 | + @Operation(summary = "部门树精简列表") | ||
| 39 | + public CommonResult<List<DeptSimpleRespVO>> treeSelect() { | ||
| 40 | + List<DeptDO> list = deptService.getDeptList(new DeptListReqVO()); | ||
| 41 | + return success(BeanUtils.toBean(list, DeptSimpleRespVO.class)); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + @GetMapping("/treeselectBycompanyId") | ||
| 45 | + @Operation(summary = "部门树精简列表(按公司)") | ||
| 46 | + public CommonResult<List<DeptSimpleRespVO>> treeSelectByCompany(@RequestParam("belong_company_id") Long companyId) { | ||
| 47 | + List<DeptDO> list = deptService.getDeptList(new DeptListReqVO()); | ||
| 48 | + return success(BeanUtils.toBean(list, DeptSimpleRespVO.class)); | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + @GetMapping("/selectPatrolUsersByDeptId") | ||
| 52 | + @Operation(summary = "按部门选择巡查用户") | ||
| 53 | + public CommonResult<List<DeptSimpleRespVO>> selectPatrolUsersByDeptId(@RequestParam("dept_id") Long deptId) { | ||
| 54 | + List<DeptDO> list = deptService.getDeptList(new DeptListReqVO()); | ||
| 55 | + return success(BeanUtils.toBean(list, DeptSimpleRespVO.class)); | ||
| 56 | + } | ||
| 57 | +} | ||
| 0 | \ No newline at end of file | 58 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/system/SystemUserBridgeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.system; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.system.controller.admin.user.vo.profile.UserProfileRespVO; | ||
| 5 | +import com.zteits.urbanops.module.system.controller.admin.user.UserProfileController; | ||
| 6 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 7 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 8 | +import jakarta.annotation.Resource; | ||
| 9 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 10 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 11 | +import org.springframework.web.bind.annotation.RestController; | ||
| 12 | + | ||
| 13 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 14 | + | ||
| 15 | +@Tag(name = "管理后台 - 系统用户桥接") | ||
| 16 | +@RestController | ||
| 17 | +@RequestMapping("/bridge/system/user/profile") | ||
| 18 | +public class SystemUserBridgeController { | ||
| 19 | + | ||
| 20 | + @Resource | ||
| 21 | + private UserProfileController userProfileController; | ||
| 22 | + | ||
| 23 | + @GetMapping("/get") | ||
| 24 | + @Operation(summary = "获得登录用户信息") | ||
| 25 | + public CommonResult<UserProfileRespVO> getUserProfile() { | ||
| 26 | + return userProfileController.getUserProfile(); | ||
| 27 | + } | ||
| 28 | +} | ||
| 0 | \ No newline at end of file | 29 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/treerecord/GardenTreeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.treerecord; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.treerecord.GardenTreeDO; | ||
| 7 | +import com.zteits.urbanops.module.garden.service.treerecord.GardenTreeService; | ||
| 8 | +import com.zteits.urbanops.module.garden.controller.admin.treerecord.vo.CompanyDeptRoadVO; | ||
| 9 | +import com.zteits.urbanops.module.garden.controller.admin.treerecord.vo.RoadTreeVO; | ||
| 10 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 12 | +import jakarta.annotation.Resource; | ||
| 13 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 14 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 15 | +import org.springframework.web.bind.annotation.*; | ||
| 16 | + | ||
| 17 | +import java.io.IOException; | ||
| 18 | +import java.util.List; | ||
| 19 | + | ||
| 20 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 21 | +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.EXPORT; | ||
| 22 | +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog; | ||
| 23 | + | ||
| 24 | +@Tag(name = "管理后台 - 一树一档案") | ||
| 25 | +@RestController | ||
| 26 | +@RequestMapping("/business/tree") | ||
| 27 | +public class GardenTreeController { | ||
| 28 | + | ||
| 29 | + @Resource | ||
| 30 | + private GardenTreeService gardenTreeService; | ||
| 31 | + | ||
| 32 | + @GetMapping("/list") | ||
| 33 | + @Operation(summary = "一树一档案-列表") | ||
| 34 | + @PreAuthorize("@ss.hasPermission('business:tree:list')") | ||
| 35 | + public CommonResult<PageResult<GardenTreeDO>> list(@RequestParam(required = false) Integer pageNum, | ||
| 36 | + @RequestParam(required = false) Integer pageSize, | ||
| 37 | + GardenTreeDO where) { | ||
| 38 | + int pn = pageNum == null ? 1 : pageNum; | ||
| 39 | + int ps = pageSize == null ? 10 : pageSize; | ||
| 40 | + return success(gardenTreeService.selectPage(where, pn, ps)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @GetMapping("/export") | ||
| 44 | + @Operation(summary = "一树一档案-导出") | ||
| 45 | + @PreAuthorize("@ss.hasPermission('business:tree:export')") | ||
| 46 | + @ApiAccessLog(operateType = EXPORT) | ||
| 47 | + public void export(GardenTreeDO where, HttpServletResponse response) throws IOException { | ||
| 48 | + List<GardenTreeDO> list = gardenTreeService.selectPage(where, 1, Integer.MAX_VALUE).getList(); | ||
| 49 | + ExcelUtils.write(response, "树木信息.xls", "数据", GardenTreeDO.class, list); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @GetMapping("/{id}") | ||
| 53 | + @Operation(summary = "一树一档案-详情") | ||
| 54 | + @PreAuthorize("@ss.hasPermission('business:tree:query')") | ||
| 55 | + public CommonResult<GardenTreeDO> getInfo(@PathVariable("id") Long id) { | ||
| 56 | + return success(gardenTreeService.selectById(id)); | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + @PostMapping | ||
| 60 | + @Operation(summary = "一树一档案-新增") | ||
| 61 | + @PreAuthorize("@ss.hasPermission('business:tree:add')") | ||
| 62 | + public CommonResult<Boolean> add(@RequestBody GardenTreeDO entity) { | ||
| 63 | + entity.setDeleted(false); | ||
| 64 | + return success(gardenTreeService.insert(entity)); | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + @PutMapping | ||
| 68 | + @Operation(summary = "一树一档案-修改") | ||
| 69 | + @PreAuthorize("@ss.hasPermission('business:tree:edit')") | ||
| 70 | + public CommonResult<Boolean> edit(@RequestBody GardenTreeDO entity) { | ||
| 71 | + return success(gardenTreeService.update(entity)); | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + @DeleteMapping("/{ids}") | ||
| 75 | + @Operation(summary = "一树一档案-删除") | ||
| 76 | + @PreAuthorize("@ss.hasPermission('business:tree:remove')") | ||
| 77 | + public CommonResult<Boolean> remove(@PathVariable List<Long> ids) { | ||
| 78 | + return success(gardenTreeService.deleteByIds(ids)); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + @GetMapping("/dept/list") | ||
| 82 | + @Operation(summary = "一树一档案-公司部门道路树结构") | ||
| 83 | + @PreAuthorize("@ss.hasPermission('business:tree:list')") | ||
| 84 | + public CommonResult<List<CompanyDeptRoadVO>> deptList(@RequestParam Long companyId, | ||
| 85 | + @RequestParam(required = false) String roadName, | ||
| 86 | + @RequestParam(required = false) Long deptId) { | ||
| 87 | + return success(gardenTreeService.getCompanyDeptRoadTreeData(companyId, roadName, deptId)); | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + @GetMapping("/road/list") | ||
| 91 | + @Operation(summary = "一树一档案-按道路查询树列表") | ||
| 92 | + @PreAuthorize("@ss.hasPermission('business:tree:list')") | ||
| 93 | + public CommonResult<List<RoadTreeVO>> listTreesByRoad(@RequestParam Long road) { | ||
| 94 | + return success(gardenTreeService.getTreesByRoadId(road)); | ||
| 95 | + } | ||
| 96 | +} | ||
| 0 | \ No newline at end of file | 97 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/treerecord/OldTreesController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.treerecord; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 6 | +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils; | ||
| 7 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.dataobject.treerecord.GardenOldtreesDO; | ||
| 9 | +import com.zteits.urbanops.module.garden.service.treerecord.GardenOldtreesService; | ||
| 10 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 11 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 12 | +import jakarta.annotation.Resource; | ||
| 13 | +import jakarta.servlet.http.HttpServletResponse; | ||
| 14 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 15 | +import org.springframework.web.bind.annotation.*; | ||
| 16 | + | ||
| 17 | +import java.io.IOException; | ||
| 18 | +import java.util.List; | ||
| 19 | + | ||
| 20 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 21 | + | ||
| 22 | +@Tag(name = "管理后台 - 古树名木") | ||
| 23 | +@RestController | ||
| 24 | +@RequestMapping("/treerecord/oldtrees") | ||
| 25 | +public class OldTreesController { | ||
| 26 | + | ||
| 27 | + @Resource | ||
| 28 | + private GardenOldtreesService service; | ||
| 29 | + | ||
| 30 | + @GetMapping("/list") | ||
| 31 | + @Operation(summary = "古树台账-列表") | ||
| 32 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:list')") | ||
| 33 | + public CommonResult<PageResult<GardenOldtreesDO>> list(GardenOldtreesDO where, | ||
| 34 | + @RequestParam(value = "pageNum", required = false) Integer pageNum, | ||
| 35 | + @RequestParam(value = "pageSize", required = false) Integer pageSize) { | ||
| 36 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 37 | + PageParam page = new PageParam(); | ||
| 38 | + page.setPageNo(pageNum == null ? 1 : pageNum); | ||
| 39 | + page.setPageSize(pageSize == null ? 10 : pageSize); | ||
| 40 | + return success(service.selectPage(page, where)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @GetMapping("/export") | ||
| 44 | + @Operation(summary = "古树台账-导出") | ||
| 45 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:export')") | ||
| 46 | + public void export(GardenOldtreesDO where, HttpServletResponse response) throws IOException { | ||
| 47 | + where.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 48 | + List<GardenOldtreesDO> list = service.selectList(where); | ||
| 49 | + ExcelUtils.write(response, "古树信息.xls", "数据", GardenOldtreesDO.class, list); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @GetMapping("/{id}") | ||
| 53 | + @Operation(summary = "古树台账-详情") | ||
| 54 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:query')") | ||
| 55 | + public CommonResult<GardenOldtreesDO> getInfo(@PathVariable("id") String id) { | ||
| 56 | + return success(service.selectById(id)); | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + @PostMapping | ||
| 60 | + @Operation(summary = "古树台账-新增") | ||
| 61 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:add')") | ||
| 62 | + public CommonResult<Boolean> add(@RequestBody GardenOldtreesDO entity) { | ||
| 63 | + entity.setCreator(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 64 | + entity.setUpdater(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 65 | + entity.setDeptId(SecurityFrameworkUtils.getLoginUserDeptId()); | ||
| 66 | + return success(service.insert(entity)); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + @PutMapping | ||
| 70 | + @Operation(summary = "古树台账-修改") | ||
| 71 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:edit')") | ||
| 72 | + public CommonResult<Boolean> edit(@RequestBody GardenOldtreesDO entity) { | ||
| 73 | + entity.setUpdater(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); | ||
| 74 | + return success(service.update(entity)); | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + @DeleteMapping("/{ids}") | ||
| 78 | + @Operation(summary = "古树台账-删除") | ||
| 79 | + @PreAuthorize("@ss.hasPermission('treerecord:oldtrees:remove')") | ||
| 80 | + public CommonResult<Boolean> remove(@PathVariable List<String> ids) { | ||
| 81 | + return success(service.deleteByIds(ids)); | ||
| 82 | + } | ||
| 83 | +} | ||
| 0 | \ No newline at end of file | 84 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/treerecord/vo/CompanyDeptRoadVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.treerecord.vo; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +import java.util.List; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class CompanyDeptRoadVO { | ||
| 9 | + private String companyId; | ||
| 10 | + private String companyName; | ||
| 11 | + private List<DeptVO> depts; | ||
| 12 | + | ||
| 13 | + @Data | ||
| 14 | + public static class DeptVO { | ||
| 15 | + private Long deptId; | ||
| 16 | + private String deptName; | ||
| 17 | + private List<RoadVO> roads; | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + @Data | ||
| 21 | + public static class RoadVO { | ||
| 22 | + private Long roadId; | ||
| 23 | + private String roadName; | ||
| 24 | + private Long treeCount; | ||
| 25 | + private Long recordedCount; | ||
| 26 | + private String startRemark; | ||
| 27 | + private String endRemark; | ||
| 28 | + } | ||
| 29 | +} | ||
| 0 | \ No newline at end of file | 30 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/treerecord/vo/RoadTreeVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.admin.treerecord.vo; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +@Data | ||
| 6 | +public class RoadTreeVO { | ||
| 7 | + private Long id; | ||
| 8 | + private String treetype; | ||
| 9 | + private String treeheight; | ||
| 10 | + private String dbh; | ||
| 11 | + private String treenumber; | ||
| 12 | + private String treephoto; | ||
| 13 | +} | ||
| 0 | \ No newline at end of file | 14 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/wasterecord/WasteRecordController.java
| @@ -31,7 +31,7 @@ import com.zteits.urbanops.module.garden.service.wasterecord.WasteRecordService; | @@ -31,7 +31,7 @@ import com.zteits.urbanops.module.garden.service.wasterecord.WasteRecordService; | ||
| 31 | 31 | ||
| 32 | @Tag(name = "管理后台 - 园林废弃物录入") | 32 | @Tag(name = "管理后台 - 园林废弃物录入") |
| 33 | @RestController | 33 | @RestController |
| 34 | -@RequestMapping("/garden/waste-record") | 34 | +@RequestMapping({"/garden/waste-record", "/costfee/gardenwasterecord"}) |
| 35 | @Validated | 35 | @Validated |
| 36 | public class WasteRecordController { | 36 | public class WasteRecordController { |
| 37 | 37 | ||
| @@ -88,6 +88,14 @@ public class WasteRecordController { | @@ -88,6 +88,14 @@ public class WasteRecordController { | ||
| 88 | return success(BeanUtils.toBean(pageResult, WasteRecordRespVO.class)); | 88 | return success(BeanUtils.toBean(pageResult, WasteRecordRespVO.class)); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | + @GetMapping("/list") | ||
| 92 | + @Operation(summary = "园林废弃物录入-列表(兼容旧路径)") | ||
| 93 | + @PreAuthorize("@ss.hasPermission('garden:waste-record:query')") | ||
| 94 | + public CommonResult<PageResult<WasteRecordRespVO>> list(@Valid WasteRecordPageReqVO pageReqVO) { | ||
| 95 | + PageResult<WasteRecordDO> pageResult = wasteRecordService.getWasteRecordPage(pageReqVO); | ||
| 96 | + return success(BeanUtils.toBean(pageResult, WasteRecordRespVO.class)); | ||
| 97 | + } | ||
| 98 | + | ||
| 91 | @GetMapping("/export-excel") | 99 | @GetMapping("/export-excel") |
| 92 | @Operation(summary = "导出园林废弃物录入 Excel") | 100 | @Operation(summary = "导出园林废弃物录入 Excel") |
| 93 | @PreAuthorize("@ss.hasPermission('garden:waste-record:export')") | 101 | @PreAuthorize("@ss.hasPermission('garden:waste-record:export')") |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/AppCommonController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.garden.controller.app.vo.DictTypeRespVO; | ||
| 5 | +import com.zteits.urbanops.module.system.dal.dataobject.dict.DictDataDO; | ||
| 6 | +import com.zteits.urbanops.module.system.service.dict.DictDataService; | ||
| 7 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 8 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 13 | +import org.springframework.web.bind.annotation.RestController; | ||
| 14 | + | ||
| 15 | +import java.util.ArrayList; | ||
| 16 | +import java.util.List; | ||
| 17 | + | ||
| 18 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 19 | + | ||
| 20 | +@Tag(name = "APP - 公共查询") | ||
| 21 | +@RestController | ||
| 22 | +@RequestMapping("/app/common") | ||
| 23 | +public class AppCommonController { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private DictDataService dictDataService; | ||
| 27 | + | ||
| 28 | + @GetMapping("/type") | ||
| 29 | + @Operation(summary = "根据字典类型查询字典数据信息") | ||
| 30 | + public CommonResult<List<DictTypeRespVO>> dictType(@RequestParam("dict_type") String dictType) { | ||
| 31 | + List<DictTypeRespVO> respList = new ArrayList<>(); | ||
| 32 | + List<DictDataDO> list = dictDataService.getDictDataListByDictType(dictType); | ||
| 33 | + if (list == null || list.isEmpty()) { | ||
| 34 | + return success(respList); | ||
| 35 | + } | ||
| 36 | + for (DictDataDO e : list) { | ||
| 37 | + DictTypeRespVO resp = new DictTypeRespVO(); | ||
| 38 | + resp.setValue(e.getValue()); | ||
| 39 | + resp.setLabel(e.getLabel()); | ||
| 40 | + respList.add(resp); | ||
| 41 | + } | ||
| 42 | + return success(respList); | ||
| 43 | + } | ||
| 44 | +} | ||
| 0 | \ No newline at end of file | 45 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/AppMaterialTypeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.garden.controller.business.vo.MaterialTypeManagerRespVO; | ||
| 5 | +import com.zteits.urbanops.module.garden.service.material.MaterialTypeService; | ||
| 6 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 7 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 8 | +import jakarta.annotation.Resource; | ||
| 9 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 10 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 11 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 12 | +import org.springframework.web.bind.annotation.RestController; | ||
| 13 | + | ||
| 14 | +import java.util.List; | ||
| 15 | + | ||
| 16 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 17 | + | ||
| 18 | +@Tag(name = "APP - 物料类型") | ||
| 19 | +@RestController | ||
| 20 | +@RequestMapping("/app/materialType/type") | ||
| 21 | +public class AppMaterialTypeController { | ||
| 22 | + | ||
| 23 | + @Resource | ||
| 24 | + private MaterialTypeService materialTypeService; | ||
| 25 | + | ||
| 26 | + @GetMapping("/getMaterialBigTypeList") | ||
| 27 | + @Operation(summary = "物料类型基础表-耗材类型List") | ||
| 28 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialBigTypeList() { | ||
| 29 | + return success(materialTypeService.queryMaterialBigType(30000L)); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + @GetMapping("/getMaterialMidTypeList") | ||
| 33 | + @Operation(summary = "物料类型基础表-类别List") | ||
| 34 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialMidTypeList(@RequestParam("material_type_id") Long materialTypeId) { | ||
| 35 | + return success(materialTypeService.queryMaterialMidType(materialTypeId)); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + @GetMapping("/getMaterialDetailTypeList") | ||
| 39 | + @Operation(summary = "物料类型基础表-类别明细List") | ||
| 40 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialDetailTypeList(@RequestParam("parent_type_id") Long parentTypeId) { | ||
| 41 | + return success(materialTypeService.queryMaterialDetailType(parentTypeId)); | ||
| 42 | + } | ||
| 43 | +} | ||
| 0 | \ No newline at end of file | 44 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/AppUserGpsController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.module.garden.controller.app.vo.UserGpsAddReqVO; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.app.vo.UserGpsRespVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.service.usergps.UserGpsService; | ||
| 7 | +import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils; | ||
| 8 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 9 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 10 | +import jakarta.annotation.Resource; | ||
| 11 | +import jakarta.validation.Valid; | ||
| 12 | +import org.springframework.web.bind.annotation.*; | ||
| 13 | + | ||
| 14 | +import java.util.List; | ||
| 15 | + | ||
| 16 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 17 | + | ||
| 18 | +@Tag(name = "APP - 用户经纬度") | ||
| 19 | +@RestController | ||
| 20 | +@RequestMapping("/app/user/gps") | ||
| 21 | +public class AppUserGpsController { | ||
| 22 | + | ||
| 23 | + @Resource | ||
| 24 | + private UserGpsService userGpsService; | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + @GetMapping("/list") | ||
| 29 | + @Operation(summary = "用户经纬度-查询列表") | ||
| 30 | + public CommonResult<List<UserGpsRespVO>> list(@RequestParam("user_id") Long userId, | ||
| 31 | + @RequestParam("commit_time") String commitTime) { | ||
| 32 | + return success(userGpsService.selectUserGpsList(userId, commitTime)); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + @PostMapping("/add") | ||
| 36 | + @Operation(summary = "用户经纬度-添加") | ||
| 37 | + public CommonResult<Boolean> add(@Valid @RequestBody UserGpsAddReqVO reqVO) { | ||
| 38 | + Long userId = SecurityFrameworkUtils.getLoginUserId(); | ||
| 39 | + String nickname = SecurityFrameworkUtils.getLoginUserNickname(); | ||
| 40 | + return success(userGpsService.insertUserGps(userId, nickname, reqVO)); | ||
| 41 | + } | ||
| 42 | +} | ||
| 0 | \ No newline at end of file | 43 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/plan/AppMaintainPlanCommitController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.plan; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.app.vo.PlanCommitDetailPageReqVO; | ||
| 7 | +import com.zteits.urbanops.module.garden.controller.app.vo.PlanTaskCommitDetailPageRespVO; | ||
| 8 | +import com.zteits.urbanops.module.garden.service.plancommit.MaintainPlanCommitDetailService; | ||
| 9 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 10 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 11 | +import jakarta.annotation.Resource; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.RestController; | ||
| 16 | + | ||
| 17 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 18 | + | ||
| 19 | +@Tag(name = "APP - 养护、巡检计划提交记录") | ||
| 20 | +@RestController | ||
| 21 | +@RequestMapping("/app/plan/commit") | ||
| 22 | +public class AppMaintainPlanCommitController { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private MaintainPlanCommitDetailService service; | ||
| 26 | + | ||
| 27 | + @PostMapping("/xc/listForPage") | ||
| 28 | + @Operation(summary = "巡检计划提交记录-分页查询") | ||
| 29 | + public CommonResult<PageResult<PlanTaskCommitDetailPageRespVO>> listForPage(@RequestBody PlanCommitDetailPageReqVO reqVO) { | ||
| 30 | + PageParam page = new PageParam(); | ||
| 31 | + page.setPageNo(reqVO.getPageNo()); | ||
| 32 | + page.setPageSize(reqVO.getPageSize()); | ||
| 33 | + return success(service.pageListXC(page, reqVO)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @PostMapping("/add") | ||
| 37 | + @Operation(summary = "巡检计划-add") | ||
| 38 | + public CommonResult<Boolean> add(@RequestBody com.zteits.urbanops.module.garden.controller.app.vo.PlanCommitDetailAddReqVO reqVO) { | ||
| 39 | + Long userId = com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId(); | ||
| 40 | + String nickname = com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils.getLoginUserNickname(); | ||
| 41 | + java.time.LocalDate today = java.time.LocalDate.now(); | ||
| 42 | + Integer count = service.selectByPlanNoAndCommitDate(reqVO.planNo, today); | ||
| 43 | + if (count != null && count > 0) { | ||
| 44 | + return com.zteits.urbanops.framework.common.pojo.CommonResult.error(409, "记录已存在,请勿重复提交"); | ||
| 45 | + } | ||
| 46 | + return success(service.insertXC(userId, nickname, reqVO)); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @PostMapping("/yh/listForPage") | ||
| 50 | + @Operation(summary = "养护计划提交记录-分页查询") | ||
| 51 | + public CommonResult<PageResult<PlanTaskCommitDetailPageRespVO>> yhListForPage(@RequestBody com.zteits.urbanops.module.garden.controller.app.vo.PlanYhCommitDetailPageReqVO reqVO) { | ||
| 52 | + PageParam page = new PageParam(); | ||
| 53 | + page.setPageNo(reqVO.getPageNo()); | ||
| 54 | + page.setPageSize(reqVO.getPageSize()); | ||
| 55 | + return success(service.pageListYH(page, reqVO)); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @PostMapping("/yh/add") | ||
| 59 | + @Operation(summary = "养护计划-add") | ||
| 60 | + public CommonResult<Boolean> yhAdd(@RequestBody com.zteits.urbanops.module.garden.controller.app.vo.PlanCommitDetailYhAddReqVO reqVO) { | ||
| 61 | + Long userId = com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId(); | ||
| 62 | + String nickname = com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils.getLoginUserNickname(); | ||
| 63 | + return success(service.insertYH(userId, nickname, reqVO)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @RequestMapping(value = "/yh/getById", method = org.springframework.web.bind.annotation.RequestMethod.GET) | ||
| 67 | + @Operation(summary = "养护计划提交记录-提交明细") | ||
| 68 | + public CommonResult<PlanTaskCommitDetailPageRespVO> yhGetById(@org.springframework.web.bind.annotation.RequestParam("id") Long id, | ||
| 69 | + @org.springframework.web.bind.annotation.RequestParam(value = "is_add_url", required = false) Boolean isAddUrl) { | ||
| 70 | + return success(service.getById(id)); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + @RequestMapping(value = "/yh/getMaintainNo", method = org.springframework.web.bind.annotation.RequestMethod.GET) | ||
| 74 | + @Operation(summary = "养护任务提交记录-提交明细") | ||
| 75 | + public CommonResult<PlanTaskCommitDetailPageRespVO> yhGetByProblemNo(@org.springframework.web.bind.annotation.RequestParam("problem_no") String problemNo, | ||
| 76 | + @org.springframework.web.bind.annotation.RequestParam(value = "is_add_url", required = false) Boolean isAddUrl) { | ||
| 77 | + return success(service.getByProblemNo(problemNo, isAddUrl)); | ||
| 78 | + } | ||
| 79 | +} | ||
| 0 | \ No newline at end of file | 80 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/DictTypeRespVO.java
0 → 100644
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/PlanCommitDetailAddReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class PlanCommitDetailAddReqVO { | ||
| 8 | + @NotEmpty | ||
| 9 | + public String planNo; | ||
| 10 | + public String content; | ||
| 11 | +} | ||
| 0 | \ No newline at end of file | 12 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/PlanCommitDetailPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class PlanCommitDetailPageReqVO extends PageParam { | ||
| 8 | + private String planNo; | ||
| 9 | +} | ||
| 0 | \ No newline at end of file | 10 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/PlanCommitDetailYhAddReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class PlanCommitDetailYhAddReqVO { | ||
| 8 | + @NotEmpty | ||
| 9 | + private String planNo; | ||
| 10 | + private String problemNo; | ||
| 11 | + @NotEmpty | ||
| 12 | + private String content; | ||
| 13 | +} | ||
| 0 | \ No newline at end of file | 14 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/PlanTaskCommitDetailPageRespVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +@Data | ||
| 6 | +public class PlanTaskCommitDetailPageRespVO { | ||
| 7 | + private Long id; | ||
| 8 | + private String planNo; | ||
| 9 | + private String commitDate; | ||
| 10 | + private String content; | ||
| 11 | +} | ||
| 0 | \ No newline at end of file | 12 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/PlanYhCommitDetailPageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class PlanYhCommitDetailPageReqVO extends PageParam { | ||
| 8 | + private Long companyId; | ||
| 9 | +} | ||
| 0 | \ No newline at end of file | 10 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/UserGpsAddReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotNull; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +import java.math.BigDecimal; | ||
| 7 | + | ||
| 8 | +@Data | ||
| 9 | +public class UserGpsAddReqVO { | ||
| 10 | + private Integer type; | ||
| 11 | + @NotNull | ||
| 12 | + private BigDecimal lat; | ||
| 13 | + @NotNull | ||
| 14 | + private BigDecimal lon; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/UserGpsAppReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import jakarta.validation.constraints.NotEmpty; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class UserGpsAppReqVO { | ||
| 8 | + @NotEmpty | ||
| 9 | + private String commitTime; | ||
| 10 | +} | ||
| 0 | \ No newline at end of file | 11 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/vo/UserGpsRespVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.vo; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.time.LocalDateTime; | ||
| 7 | + | ||
| 8 | +@Data | ||
| 9 | +public class UserGpsRespVO { | ||
| 10 | + private Long id; | ||
| 11 | + private LocalDateTime commitDate; | ||
| 12 | + private Integer type; | ||
| 13 | + private Long userId; | ||
| 14 | + private String userName; | ||
| 15 | + private BigDecimal lat; | ||
| 16 | + private BigDecimal lon; | ||
| 17 | +} | ||
| 0 | \ No newline at end of file | 18 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/MaterialTypeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.business; | ||
| 2 | + | ||
| 3 | +import cn.hutool.core.bean.BeanUtil; | ||
| 4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
| 5 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 6 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 7 | +import com.zteits.urbanops.module.garden.controller.business.vo.MaterialTypeAddReqVO; | ||
| 8 | +import com.zteits.urbanops.module.garden.controller.business.vo.MaterialTypeEditReqVO; | ||
| 9 | +import com.zteits.urbanops.module.garden.controller.business.vo.MaterialTypeManagerRespVO; | ||
| 10 | +import com.zteits.urbanops.module.garden.controller.business.vo.MaterialTypePageReqVO; | ||
| 11 | +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialTypeDO; | ||
| 12 | +import com.zteits.urbanops.module.garden.service.material.MaterialTypeService; | ||
| 13 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 14 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 15 | +import jakarta.annotation.Resource; | ||
| 16 | +import jakarta.validation.Valid; | ||
| 17 | +import org.springframework.web.bind.annotation.*; | ||
| 18 | + | ||
| 19 | +import java.time.LocalDateTime; | ||
| 20 | +import java.util.List; | ||
| 21 | + | ||
| 22 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 23 | + | ||
| 24 | +@Tag(name = "园林养护 - 物料类型") | ||
| 25 | +@RestController | ||
| 26 | +@RequestMapping("/materialType/type") | ||
| 27 | +public class MaterialTypeController { | ||
| 28 | + | ||
| 29 | + @Resource | ||
| 30 | + private MaterialTypeService materialTypeService; | ||
| 31 | + | ||
| 32 | + @GetMapping("/getMaterialBigTypeList") | ||
| 33 | + @Operation(summary = "物料类型基础表-耗材类型List") | ||
| 34 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialBigTypeList() { | ||
| 35 | + return success(materialTypeService.queryMaterialBigType(null)); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + @GetMapping("/getMaterialMidTypeList") | ||
| 39 | + @Operation(summary = "物料类型基础表-类别List") | ||
| 40 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialMidTypeList(@RequestParam("material_type_id") Long materialTypeId) { | ||
| 41 | + return success(materialTypeService.queryMaterialMidType(materialTypeId)); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + @GetMapping("/getMaterialDetailTypeList") | ||
| 45 | + @Operation(summary = "物料类型基础表-类别明细List") | ||
| 46 | + public CommonResult<List<MaterialTypeManagerRespVO>> getMaterialDetailTypeList(@RequestParam("parent_type_id") Long parentTypeId) { | ||
| 47 | + return success(materialTypeService.queryMaterialDetailType(parentTypeId)); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + @PostMapping("/listForPage") | ||
| 51 | + @Operation(summary = "耗材基础-分页") | ||
| 52 | + public CommonResult<PageResult<MaterialTypeDO>> listForPage(@Valid @RequestBody MaterialTypePageReqVO reqVO) { | ||
| 53 | + MaterialTypeDO where = new MaterialTypeDO(); | ||
| 54 | + String keyword = reqVO.getTypeName(); | ||
| 55 | + if (keyword == null || keyword.isEmpty()) { | ||
| 56 | + keyword = reqVO.getMaterialTypeName(); | ||
| 57 | + } | ||
| 58 | + if (keyword == null || keyword.isEmpty()) { | ||
| 59 | + keyword = reqVO.getTypeDetailName(); | ||
| 60 | + } | ||
| 61 | + where.setTypeName(keyword); | ||
| 62 | + Page<MaterialTypeDO> page = materialTypeService.selectPage(new Page<>(reqVO.getPageNum(), reqVO.getPageSize()), where); | ||
| 63 | + return success(new PageResult<>(page.getRecords(), page.getTotal())); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @PostMapping("/add") | ||
| 67 | + @Operation(summary = "耗材基础-添加") | ||
| 68 | + public CommonResult<Boolean> add(@Valid @RequestBody MaterialTypeAddReqVO reqVO) { | ||
| 69 | + MaterialTypeDO entity = new MaterialTypeDO(); | ||
| 70 | + entity.setTypeName(reqVO.getTypeDetailName()); | ||
| 71 | + entity.setParentId(reqVO.getTypeId()); | ||
| 72 | + entity.setLevel(3); | ||
| 73 | + entity.setCreator("system"); | ||
| 74 | + entity.setUpdater("system"); | ||
| 75 | + return success(materialTypeService.insert(entity)); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + @PostMapping("/edit") | ||
| 79 | + @Operation(summary = "耗材基础-修改") | ||
| 80 | + public CommonResult<Boolean> edit(@Valid @RequestBody MaterialTypeEditReqVO reqVO) { | ||
| 81 | + MaterialTypeDO entity = new MaterialTypeDO(); | ||
| 82 | + BeanUtil.copyProperties(reqVO, entity, true); | ||
| 83 | + return success(materialTypeService.update(entity)); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + @GetMapping("/deleteById") | ||
| 87 | + @Operation(summary = "耗材基础-删除") | ||
| 88 | + public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) { | ||
| 89 | + return success(materialTypeService.deleteById(id)); | ||
| 90 | + } | ||
| 91 | +} | ||
| 0 | \ No newline at end of file | 92 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeAddReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.business.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import jakarta.validation.constraints.NotEmpty; | ||
| 5 | +import jakarta.validation.constraints.NotNull; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@Data | ||
| 9 | +public class MaterialTypeAddReqVO { | ||
| 10 | + @Schema(description = "物料类型ID") | ||
| 11 | + @NotNull | ||
| 12 | + private Long materialTypeId; | ||
| 13 | + | ||
| 14 | + @Schema(description = "耗材类型名称") | ||
| 15 | + @NotEmpty | ||
| 16 | + private String materialTypeName; | ||
| 17 | + | ||
| 18 | + @Schema(description = "类别ID") | ||
| 19 | + @NotNull | ||
| 20 | + private Long typeId; | ||
| 21 | + | ||
| 22 | + @Schema(description = "类别名称") | ||
| 23 | + @NotEmpty | ||
| 24 | + private String typeName; | ||
| 25 | + | ||
| 26 | + @Schema(description = "类别明细") | ||
| 27 | + @NotEmpty | ||
| 28 | + private String typeDetailName; | ||
| 29 | +} | ||
| 0 | \ No newline at end of file | 30 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeEditReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.business.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import jakarta.validation.constraints.NotNull; | ||
| 5 | +import lombok.Data; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class MaterialTypeEditReqVO { | ||
| 9 | + @NotNull | ||
| 10 | + private Long id; | ||
| 11 | + | ||
| 12 | + @Schema(description = "物料类型ID") | ||
| 13 | + private Long materialTypeId; | ||
| 14 | + | ||
| 15 | + @Schema(description = "耗材类型名称") | ||
| 16 | + private String materialTypeName; | ||
| 17 | + | ||
| 18 | + @Schema(description = "类别ID") | ||
| 19 | + private Long typeId; | ||
| 20 | + | ||
| 21 | + @Schema(description = "类别名称") | ||
| 22 | + private String typeName; | ||
| 23 | + | ||
| 24 | + @Schema(description = "类别明细ID") | ||
| 25 | + private Long typeDetailId; | ||
| 26 | + | ||
| 27 | + @Schema(description = "类别明细") | ||
| 28 | + private String typeDetailName; | ||
| 29 | + | ||
| 30 | + private Long materialParentTypeId; | ||
| 31 | + | ||
| 32 | + private Long parentTypeId; | ||
| 33 | + | ||
| 34 | + private String status; | ||
| 35 | + | ||
| 36 | + private String remark; | ||
| 37 | +} | ||
| 0 | \ No newline at end of file | 38 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeManagerRespVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.business.vo; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +@Data | ||
| 6 | +public class MaterialTypeManagerRespVO { | ||
| 7 | + private Long value; | ||
| 8 | + private String label; | ||
| 9 | + private Long materialParentTypeId; | ||
| 10 | + private Long parentTypeId; | ||
| 11 | +} | ||
| 0 | \ No newline at end of file | 12 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypePageReqVO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.business.vo; | ||
| 2 | + | ||
| 3 | +import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | +import lombok.Data; | ||
| 5 | + | ||
| 6 | +@Data | ||
| 7 | +public class MaterialTypePageReqVO { | ||
| 8 | + | ||
| 9 | + @Schema(description = "页码") | ||
| 10 | + private Integer pageNum = 1; | ||
| 11 | + | ||
| 12 | + @Schema(description = "每页数量") | ||
| 13 | + private Integer pageSize = 10; | ||
| 14 | + | ||
| 15 | + private String materialTypeName; | ||
| 16 | + private String typeName; | ||
| 17 | + private String typeDetailName; | ||
| 18 | +} | ||
| 0 | \ No newline at end of file | 19 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/device/DeviceCompanyDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.device; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_device_company") | ||
| 9 | +@Data | ||
| 10 | +public class DeviceCompanyDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String name; | ||
| 14 | + private Long parentId; | ||
| 15 | + private Long belongCompanyId; | ||
| 16 | + private String enterLoginName; | ||
| 17 | + private String passWord; | ||
| 18 | + private String status; | ||
| 19 | + private String remark; | ||
| 20 | +} | ||
| 0 | \ No newline at end of file | 21 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotline/HotlineCaseDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.hotline; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 6 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 7 | +import lombok.Data; | ||
| 8 | + | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +@TableName("garden_hotline_case") | ||
| 12 | +@Data | ||
| 13 | +public class HotlineCaseDO extends BaseDO { | ||
| 14 | + @TableId | ||
| 15 | + private String id; | ||
| 16 | + private String hotlinenumber; | ||
| 17 | + private String casefile; | ||
| 18 | + private String title; | ||
| 19 | + private String content; | ||
| 20 | + private String department; | ||
| 21 | + private String taskstate; | ||
| 22 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
| 23 | + private Date replayTime; | ||
| 24 | + private String street; | ||
| 25 | +} | ||
| 0 | \ No newline at end of file | 26 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotline/HotlineFileDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.hotline; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_hotline_file") | ||
| 9 | +@Data | ||
| 10 | +public class HotlineFileDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private String caseid; | ||
| 13 | + private String casefile; | ||
| 14 | + private String title; | ||
| 15 | + private String content; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 7 | +import lombok.Data; | ||
| 8 | + | ||
| 9 | +@TableName("garden_maintain_plan") | ||
| 10 | +@KeySequence("garden_maintain_plan_seq") | ||
| 11 | +@Data | ||
| 12 | +public class MaintainPlanDO extends BaseDO { | ||
| 13 | + @TableId | ||
| 14 | + private Long id; | ||
| 15 | + private String planNo; | ||
| 16 | + private String planName; | ||
| 17 | + private Integer type; | ||
| 18 | + private Long deptId; | ||
| 19 | + private Long companyId; | ||
| 20 | + private String status; | ||
| 21 | +} | ||
| 0 | \ No newline at end of file | 22 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainrate/MaintainRateDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.maintainrate; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 7 | +import lombok.*; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * 养护频次 DO | ||
| 11 | + */ | ||
| 12 | +@TableName("garden_maintain_rate") | ||
| 13 | +@KeySequence("garden_maintain_rate_seq") | ||
| 14 | +@Data | ||
| 15 | +@EqualsAndHashCode(callSuper = true) | ||
| 16 | +@ToString(callSuper = true) | ||
| 17 | +@Builder | ||
| 18 | +@NoArgsConstructor | ||
| 19 | +@AllArgsConstructor | ||
| 20 | +public class MaintainRateDO extends BaseDO { | ||
| 21 | + | ||
| 22 | + @TableId | ||
| 23 | + private Long id; | ||
| 24 | + | ||
| 25 | + private Integer type; | ||
| 26 | + | ||
| 27 | + private Integer maintainSubjectId; | ||
| 28 | + private String maintainSubjectName; | ||
| 29 | + | ||
| 30 | + private Integer maintainTypeId; | ||
| 31 | + private String maintainTypeName; | ||
| 32 | + | ||
| 33 | + private String levelTop; | ||
| 34 | + private String levelOne; | ||
| 35 | + private String levelTwo; | ||
| 36 | + private String levelThree; | ||
| 37 | + | ||
| 38 | + private Integer cycleId; | ||
| 39 | + private String cycleName; | ||
| 40 | + | ||
| 41 | + private String status; | ||
| 42 | +} | ||
| 0 | \ No newline at end of file | 43 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_material") | ||
| 9 | +@Data | ||
| 10 | +public class MaterialDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long materialId; | ||
| 13 | + private String fullCode; | ||
| 14 | + private String materialCode; | ||
| 15 | + private String materialName; | ||
| 16 | + private Long materialTypeId; | ||
| 17 | + private String materialTypeName; | ||
| 18 | + private Long typeId; | ||
| 19 | + private String typeName; | ||
| 20 | + private Long typeDetailId; | ||
| 21 | + private String typeDetailName; | ||
| 22 | + private String specCode; | ||
| 23 | + private String specifications; | ||
| 24 | + private Long unitId; | ||
| 25 | + private String unitName; | ||
| 26 | + private Long belongCompanyId; | ||
| 27 | + private String belongCompanyName; | ||
| 28 | + private String status; | ||
| 29 | + private Integer isAssociatedOrder; | ||
| 30 | +} | ||
| 0 | \ No newline at end of file | 31 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_material_inventory") | ||
| 9 | +@Data | ||
| 10 | +public class MaterialInventoryDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long inventoryId; | ||
| 13 | + private Long materialId; | ||
| 14 | + private String materialName; | ||
| 15 | + private Long materialTypeId; | ||
| 16 | + private String materialTypeName; | ||
| 17 | + private Long typeId; | ||
| 18 | + private String typeName; | ||
| 19 | + private Long typeDetailId; | ||
| 20 | + private String typeDetailName; | ||
| 21 | + private String specifications; | ||
| 22 | + private Long belongCompanyId; | ||
| 23 | + private String belongCompanyName; | ||
| 24 | + private Long unitId; | ||
| 25 | + private String unitName; | ||
| 26 | + private Long currentNum; | ||
| 27 | + private Long outTotalNum; | ||
| 28 | + private Long inventoryTotalNum; | ||
| 29 | + private String status; | ||
| 30 | + private Long inventoryAlermNum; | ||
| 31 | + private Long deptId; | ||
| 32 | +} | ||
| 0 | \ No newline at end of file | 33 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryInDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +import java.math.BigDecimal; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +@TableName("garden_material_inventory_in") | ||
| 12 | +@Data | ||
| 13 | +public class MaterialInventoryInDO extends BaseDO { | ||
| 14 | + @TableId | ||
| 15 | + private Long id; | ||
| 16 | + private String inventoryInNo; | ||
| 17 | + private Long materialId; | ||
| 18 | + private String materialName; | ||
| 19 | + private Long materialTypeId; | ||
| 20 | + private String materialTypeName; | ||
| 21 | + private Long typeId; | ||
| 22 | + private String typeName; | ||
| 23 | + private Long typeDetailId; | ||
| 24 | + private String typeDetailName; | ||
| 25 | + private String specifications; | ||
| 26 | + private Long belongCompanyId; | ||
| 27 | + private String belongCompanyName; | ||
| 28 | + private Long inInventoryNum; | ||
| 29 | + private BigDecimal materialPrice; | ||
| 30 | + private Long unitId; | ||
| 31 | + private String unitName; | ||
| 32 | + private Date buyDate; | ||
| 33 | + private String supplierName; | ||
| 34 | + private String contactsName; | ||
| 35 | + private String contactsPhone; | ||
| 36 | + private String status; | ||
| 37 | + private Long deptId; | ||
| 38 | +} | ||
| 0 | \ No newline at end of file | 39 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryOutDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +import java.util.Date; | ||
| 9 | + | ||
| 10 | +@TableName("garden_material_inventory_out") | ||
| 11 | +@Data | ||
| 12 | +public class MaterialInventoryOutDO extends BaseDO { | ||
| 13 | + @TableId | ||
| 14 | + private Long id; | ||
| 15 | + private String inventoryOutNo; | ||
| 16 | + private Long materialId; | ||
| 17 | + private String materialName; | ||
| 18 | + private Long materialTypeId; | ||
| 19 | + private String materialTypeName; | ||
| 20 | + private Long typeId; | ||
| 21 | + private String typeName; | ||
| 22 | + private Long typeDetailId; | ||
| 23 | + private String typeDetailName; | ||
| 24 | + private String specifications; | ||
| 25 | + private Long belongCompanyId; | ||
| 26 | + private String belongCompanyName; | ||
| 27 | + private Long outInventoryNum; | ||
| 28 | + private Long unitId; | ||
| 29 | + private String unitName; | ||
| 30 | + private Date outDate; | ||
| 31 | + private String status; | ||
| 32 | + private Integer type; | ||
| 33 | + private Long deptId; | ||
| 34 | +} | ||
| 0 | \ No newline at end of file | 35 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_material_manager") | ||
| 9 | +@Data | ||
| 10 | +public class MaterialManagerDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String name; | ||
| 14 | + private Long deptId; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialTypeDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.material; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_material_type") | ||
| 9 | +@Data | ||
| 10 | +public class MaterialTypeDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String typeName; | ||
| 14 | + private Long parentId; | ||
| 15 | + private Integer level; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/performance/PerformanceExpertsDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.performance; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_performance_experts") | ||
| 9 | +@Data | ||
| 10 | +public class PerformanceExpertsDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String name; | ||
| 14 | + private Long deptId; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/performance/PerformanceIndexDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.performance; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_performance_index") | ||
| 9 | +@Data | ||
| 10 | +public class PerformanceIndexDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String title; | ||
| 14 | + private String deptName; | ||
| 15 | + private Long deptId; | ||
| 16 | + private String status; | ||
| 17 | +} | ||
| 0 | \ No newline at end of file | 18 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/performance/PerformanceWriteDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.performance; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_performance_write") | ||
| 9 | +@Data | ||
| 10 | +public class PerformanceWriteDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String title; | ||
| 14 | + private Long deptId; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/photo/SysPhotoDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.photo; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_sys_photo") | ||
| 9 | +@Data | ||
| 10 | +public class SysPhotoDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private String id; | ||
| 13 | + private String url; | ||
| 14 | + private String title; | ||
| 15 | + private String remark; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/plancommit/MaintainPlanCommitDetailDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.plancommit; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_maintain_plan_commit_detail") | ||
| 9 | +@Data | ||
| 10 | +public class MaintainPlanCommitDetailDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String planNo; | ||
| 14 | + private String problemNo; | ||
| 15 | + private String commitDate; | ||
| 16 | + private String content; | ||
| 17 | +} | ||
| 0 | \ No newline at end of file | 18 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/problem/MaintainProblemManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.problem; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_problem_manager") | ||
| 9 | +@Data | ||
| 10 | +public class MaintainProblemManagerDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private Integer distributeStatus; | ||
| 14 | + private Integer leaderConfrimStatus; | ||
| 15 | + private Integer userConfrimStatus; | ||
| 16 | + private String status; | ||
| 17 | + private String title; | ||
| 18 | + private String content; | ||
| 19 | + private Long deptId; | ||
| 20 | +} | ||
| 0 | \ No newline at end of file | 21 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/problem/MaintainTaskManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.problem; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_problem_task") | ||
| 9 | +@Data | ||
| 10 | +public class MaintainTaskManagerDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String problemNo; | ||
| 14 | + private Long deptId; | ||
| 15 | + private String title; | ||
| 16 | + private String content; | ||
| 17 | +} | ||
| 0 | \ No newline at end of file | 18 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/project/ProjectManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.project; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_project_manager") | ||
| 9 | +@Data | ||
| 10 | +public class ProjectManagerDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String projectName; | ||
| 14 | + private Long deptId; | ||
| 15 | + private String status; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/project/SubProjectManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.project; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_sub_project_manager") | ||
| 9 | +@Data | ||
| 10 | +public class SubProjectManagerDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String name; | ||
| 14 | + private Long deptId; | ||
| 15 | +} | ||
| 0 | \ No newline at end of file | 16 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/road/RoadManagerDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.road; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 7 | +import lombok.Data; | ||
| 8 | + | ||
| 9 | +@TableName("garden_road_manager") | ||
| 10 | +@KeySequence("garden_road_manager_seq") | ||
| 11 | +@Data | ||
| 12 | +public class RoadManagerDO extends BaseDO { | ||
| 13 | + @TableId | ||
| 14 | + private Long id; | ||
| 15 | + private String roadName; | ||
| 16 | + private String streetId; | ||
| 17 | + private String streetName; | ||
| 18 | + private Integer curingLevelId; | ||
| 19 | + private String curingLevelName; | ||
| 20 | + private String greenBeltTreeArea; | ||
| 21 | + private String greenBeltArea; | ||
| 22 | + private String totalArea; | ||
| 23 | + private String treeArea; | ||
| 24 | + private String startingLatitude; | ||
| 25 | + private String startingLongitude; | ||
| 26 | + private String startingRemark; | ||
| 27 | + private String endLatitude; | ||
| 28 | + private String endLongitude; | ||
| 29 | + private String endRemark; | ||
| 30 | + private Integer status; | ||
| 31 | + private Long companyId; | ||
| 32 | + private String companyName; | ||
| 33 | + private Long deptId; | ||
| 34 | + private String roadAttr; | ||
| 35 | + private String direction; | ||
| 36 | +} | ||
| 0 | \ No newline at end of file | 37 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/standingbook/StandingBookDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.standingbook; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_standing_book") | ||
| 9 | +@Data | ||
| 10 | +public class StandingBookDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private Long id; | ||
| 13 | + private String standingBookNo; | ||
| 14 | + private String standingBookYear; | ||
| 15 | + private Long belongCompanyId; | ||
| 16 | +} | ||
| 0 | \ No newline at end of file | 17 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/treerecord/GardenOldtreesDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.treerecord; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 5 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +@TableName("garden_oldtrees") | ||
| 9 | +@Data | ||
| 10 | +public class GardenOldtreesDO extends BaseDO { | ||
| 11 | + @TableId | ||
| 12 | + private String id; | ||
| 13 | + private String treenumber; | ||
| 14 | + private String latinname; | ||
| 15 | + private String treetype; | ||
| 16 | + private String treeheight; | ||
| 17 | + private String canopy; | ||
| 18 | + private String dbh; | ||
| 19 | + private String growthvigor; | ||
| 20 | + private String treelevel; | ||
| 21 | + private String longitude; | ||
| 22 | + private String latitude; | ||
| 23 | + private String location; | ||
| 24 | + private String maintainunit; | ||
| 25 | + private String managedutyunit; | ||
| 26 | + private Long road; | ||
| 27 | + private String street; | ||
| 28 | + private String oldtreeownership; | ||
| 29 | + private String datastate; | ||
| 30 | + private String estimationtreeage; | ||
| 31 | + private String canopyeastwest; | ||
| 32 | + private String canopysouthnorth; | ||
| 33 | + private String weekday; | ||
| 34 | + private String growlocation; | ||
| 35 | + private String growthenvironment; | ||
| 36 | + private String treephotoone; | ||
| 37 | + private String treephototwo; | ||
| 38 | + private String treephotothree; | ||
| 39 | + private String treephotofour; | ||
| 40 | + private String treephotofive; | ||
| 41 | + private Long deptId; | ||
| 42 | +} | ||
| 0 | \ No newline at end of file | 43 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/treerecord/GardenTreeDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.treerecord; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; | ||
| 7 | +import lombok.Data; | ||
| 8 | +import lombok.experimental.Accessors; | ||
| 9 | + | ||
| 10 | +@TableName("garden_tree") | ||
| 11 | +@KeySequence("garden_tree_seq") | ||
| 12 | +@Data | ||
| 13 | +@Accessors(chain = false) | ||
| 14 | +public class GardenTreeDO extends BaseDO { | ||
| 15 | + @TableId | ||
| 16 | + private Long id; | ||
| 17 | + private String treenumber; | ||
| 18 | + private String latinname; | ||
| 19 | + private String treetype; | ||
| 20 | + private String treeheight; | ||
| 21 | + private String canopy; | ||
| 22 | + private String dbh; | ||
| 23 | + private String growthvigor; | ||
| 24 | + private String treelevel; | ||
| 25 | + private String longitude; | ||
| 26 | + private String latitude; | ||
| 27 | + private String location; | ||
| 28 | + private String maintainunit; | ||
| 29 | + private String managedutyunit; | ||
| 30 | + private Long road; | ||
| 31 | + private String street; | ||
| 32 | + private String oldtreeownership; | ||
| 33 | + private String datastate; | ||
| 34 | + private String estimationtreeage; | ||
| 35 | + private String canopyeastwest; | ||
| 36 | + private String canopysouthnorth; | ||
| 37 | + private String weekday; | ||
| 38 | + private String growlocation; | ||
| 39 | + private String growthenvironment; | ||
| 40 | + private String treephotoone; | ||
| 41 | + private String treephototwo; | ||
| 42 | + private String treephotothree; | ||
| 43 | + private String treephotofour; | ||
| 44 | + private String treephotofive; | ||
| 45 | + private String createby; | ||
| 46 | + private String updateby; | ||
| 47 | + private Long deptId; | ||
| 48 | + private String remark; | ||
| 49 | +} | ||
| 0 | \ No newline at end of file | 50 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/usergps/UserGpsDO.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.dal.dataobject.usergps; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.time.LocalDateTime; | ||
| 7 | + | ||
| 8 | +@Data | ||
| 9 | +public class UserGpsDO { | ||
| 10 | + private Long id; | ||
| 11 | + private LocalDateTime commitDate; | ||
| 12 | + private Long userId; | ||
| 13 | + private String userName; | ||
| 14 | + private Integer type; | ||
| 15 | + private BigDecimal lat; | ||
| 16 | + private BigDecimal lon; | ||
| 17 | + private String status; | ||
| 18 | +} | ||
| 0 | \ No newline at end of file | 19 | \ No newline at end of file |