Commit 9afefe9aba3c3706e6fb7d677a811941f9187833

Authored by 王富生
2 parents cb4fda97 99646c6e

Merge branch 'dev' into de_wangfs_202511

Showing 137 changed files with 6231 additions and 2297 deletions

Too many changes.

To preserve performance only 100 of 137 files are displayed.

urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineCaseAdminController.java deleted
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 -}  
87 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineCaseController.java deleted
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 -}  
33 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/HotlineFileController.java deleted
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 -}  
70 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotline/vo/HotlineCaseDetailResp.java deleted
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 -}  
16 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinecase/HotlineCaseController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinecase;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinecase.HotlineCaseDO;
  30 +import com.zteits.urbanops.module.garden.service.hotlinecase.HotlineCaseService;
  31 +
  32 +@Tag(name = "管理后台 - 12345案件信息")
  33 +@RestController
  34 +@RequestMapping("/garden/hotline-case")
  35 +@Validated
  36 +public class HotlineCaseController {
  37 +
  38 + @Resource
  39 + private HotlineCaseService hotlineCaseService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建12345案件信息")
  43 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:create')")
  44 + public CommonResult<String> createHotlineCase(@Valid @RequestBody HotlineCaseSaveReqVO createReqVO) {
  45 + return success(hotlineCaseService.createHotlineCase(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新12345案件信息")
  50 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:update')")
  51 + public CommonResult<Boolean> updateHotlineCase(@Valid @RequestBody HotlineCaseSaveReqVO updateReqVO) {
  52 + hotlineCaseService.updateHotlineCase(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除12345案件信息")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:delete')")
  60 + public CommonResult<Boolean> deleteHotlineCase(@RequestParam("id") String id) {
  61 + hotlineCaseService.deleteHotlineCase(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除12345案件信息")
  68 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:delete')")
  69 + public CommonResult<Boolean> deleteHotlineCaseList(@RequestParam("ids") List<String> ids) {
  70 + hotlineCaseService.deleteHotlineCaseListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得12345案件信息")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:query')")
  78 + public CommonResult<HotlineCaseRespVO> getHotlineCase(@RequestParam("id") String id) {
  79 + HotlineCaseDO hotlineCase = hotlineCaseService.getHotlineCase(id);
  80 + return success(BeanUtils.toBean(hotlineCase, HotlineCaseRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得12345案件信息分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:query')")
  86 + public CommonResult<PageResult<HotlineCaseRespVO>> getHotlineCasePage(@Valid HotlineCasePageReqVO pageReqVO) {
  87 + PageResult<HotlineCaseDO> pageResult = hotlineCaseService.getHotlineCasePage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, HotlineCaseRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出12345案件信息 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:hotline-case:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportHotlineCaseExcel(@Valid HotlineCasePageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<HotlineCaseDO> list = hotlineCaseService.getHotlineCasePage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "12345案件信息.xls", "数据", HotlineCaseRespVO.class,
  101 + BeanUtils.toBean(list, HotlineCaseRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinecase/vo/HotlineCasePageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 12345案件信息分页 Request VO")
  13 +@Data
  14 +public class HotlineCasePageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "工单编号")
  17 + private String hotlinenumber;
  18 +
  19 + @Schema(description = "12345工单文件")
  20 + private String casefile;
  21 +
  22 + @Schema(description = "事间来源:默认12345")
  23 + private String eventsouce;
  24 +
  25 + @Schema(description = "工单来源:集团 分公司")
  26 + private String casesource;
  27 +
  28 + @Schema(description = "市级编号")
  29 + private String citynum;
  30 +
  31 + @Schema(description = "区级编号")
  32 + private String regionnum;
  33 +
  34 + @Schema(description = "工单状态")
  35 + private String taskstate;
  36 +
  37 + @Schema(description = "权属信息 null 无 0权属 1非权属")
  38 + private String ownership;
  39 +
  40 + @Schema(description = "部门信息")
  41 + private String department;
  42 +
  43 + @Schema(description = "所属街道")
  44 + private String street;
  45 +
  46 + @Schema(description = "所属公司", example = "26510")
  47 + private String companyid;
  48 +
  49 + @Schema(description = "来电人姓名", example = "芋艿")
  50 + private String callName;
  51 +
  52 + @Schema(description = "来电人手机号")
  53 + private String callTel;
  54 +
  55 + @Schema(description = "接件时间")
  56 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  57 + private LocalDateTime[] acceptcasetime;
  58 +
  59 + @Schema(description = "截止时间")
  60 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  61 + private LocalDateTime[] endTime;
  62 +
  63 + @Schema(description = "详细地址")
  64 + private String address;
  65 +
  66 + @Schema(description = "工单内容")
  67 + private String content;
  68 +
  69 + @Schema(description = "工单照片")
  70 + private String casepic;
  71 +
  72 + @Schema(description = "是否派巡查")
  73 + private String dispatcher;
  74 +
  75 + @Schema(description = "巡查员")
  76 + private String dispperson;
  77 +
  78 + @Schema(description = "完成情况")
  79 + private String replyResult;
  80 +
  81 + @Schema(description = "完成图片1")
  82 + private String picResult1;
  83 +
  84 + @Schema(description = "完成图片2")
  85 + private String picResult2;
  86 +
  87 + @Schema(description = "完成图片3")
  88 + private String picResult3;
  89 +
  90 + @Schema(description = "工单完成时间")
  91 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  92 + private LocalDateTime[] finishTime;
  93 +
  94 + @Schema(description = "回复居民时间")
  95 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  96 + private LocalDateTime[] replayrtime;
  97 +
  98 + @Schema(description = "权属单位")
  99 + private String ownercompany;
  100 +
  101 + @Schema(description = "工单类型", example = "2")
  102 + private String casetype;
  103 +
  104 + @Schema(description = "办理结果:字典")
  105 + private String handingresult;
  106 +
  107 + @Schema(description = "处理情况")
  108 + private String resolvedesp;
  109 +
  110 + @Schema(description = "处理情况")
  111 + private String rstResolvedesp;
  112 +
  113 + @Schema(description = "转单人")
  114 + private String dealBy;
  115 +
  116 + @Schema(description = "上报时间")
  117 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  118 + private LocalDateTime[] dealTime;
  119 +
  120 + @Schema(description = "创建人")
  121 + private String createBy;
  122 +
  123 + @Schema(description = "创建时间")
  124 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  125 + private LocalDateTime[] createTime;
  126 +
  127 + @Schema(description = "修改人")
  128 + private String updateBy;
  129 +
  130 + @Schema(description = "结果录入人")
  131 + private String replayBy;
  132 +
  133 + @Schema(description = "回复时间,结果录入时间")
  134 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  135 + private LocalDateTime[] replayTime;
  136 +
  137 + @Schema(description = "确认权属人")
  138 + private String ownershipBy;
  139 +
  140 + @Schema(description = "确认权属时间")
  141 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  142 + private LocalDateTime[] ownershipTime;
  143 +
  144 + @Schema(description = "防止重复派单:1已经发送")
  145 + private String reserve1;
  146 +
  147 + @Schema(description = "小程序派单状态:1 待派单,2 派单中 3 派单处理完成")
  148 + private String reserve2;
  149 +
  150 + @Schema(description = "备注3")
  151 + private String reserve3;
  152 +
  153 +}
0 \ No newline at end of file 154 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinecase/vo/HotlineCaseRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 12345案件信息 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class HotlineCaseRespVO {
  14 +
  15 + @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9027")
  16 + @ExcelProperty("id")
  17 + private String id;
  18 +
  19 + @Schema(description = "工单编号")
  20 + @ExcelProperty("工单编号")
  21 + private String hotlinenumber;
  22 +
  23 + @Schema(description = "12345工单文件")
  24 + @ExcelProperty("12345工单文件")
  25 + private String casefile;
  26 +
  27 + @Schema(description = "事间来源:默认12345")
  28 + @ExcelProperty("事间来源:默认12345")
  29 + private String eventsouce;
  30 +
  31 + @Schema(description = "工单来源:集团 分公司")
  32 + @ExcelProperty("工单来源:集团 分公司")
  33 + private String casesource;
  34 +
  35 + @Schema(description = "市级编号", requiredMode = Schema.RequiredMode.REQUIRED)
  36 + @ExcelProperty("市级编号")
  37 + private String citynum;
  38 +
  39 + @Schema(description = "区级编号")
  40 + @ExcelProperty("区级编号")
  41 + private String regionnum;
  42 +
  43 + @Schema(description = "工单状态")
  44 + @ExcelProperty("工单状态")
  45 + private String taskstate;
  46 +
  47 + @Schema(description = "权属信息 null 无 0权属 1非权属")
  48 + @ExcelProperty("权属信息 null 无 0权属 1非权属")
  49 + private String ownership;
  50 +
  51 + @Schema(description = "部门信息")
  52 + @ExcelProperty("部门信息")
  53 + private String department;
  54 +
  55 + @Schema(description = "所属街道")
  56 + @ExcelProperty("所属街道")
  57 + private String street;
  58 +
  59 + @Schema(description = "所属公司", example = "26510")
  60 + @ExcelProperty("所属公司")
  61 + private String companyid;
  62 +
  63 + @Schema(description = "来电人姓名", example = "芋艿")
  64 + @ExcelProperty("来电人姓名")
  65 + private String callName;
  66 +
  67 + @Schema(description = "来电人手机号")
  68 + @ExcelProperty("来电人手机号")
  69 + private String callTel;
  70 +
  71 + @Schema(description = "接件时间")
  72 + @ExcelProperty("接件时间")
  73 + private LocalDateTime acceptcasetime;
  74 +
  75 + @Schema(description = "截止时间")
  76 + @ExcelProperty("截止时间")
  77 + private LocalDateTime endTime;
  78 +
  79 + @Schema(description = "详细地址")
  80 + @ExcelProperty("详细地址")
  81 + private String address;
  82 +
  83 + @Schema(description = "工单内容")
  84 + @ExcelProperty("工单内容")
  85 + private String content;
  86 +
  87 + @Schema(description = "工单照片")
  88 + @ExcelProperty("工单照片")
  89 + private String casepic;
  90 +
  91 + @Schema(description = "是否派巡查")
  92 + @ExcelProperty("是否派巡查")
  93 + private String dispatcher;
  94 +
  95 + @Schema(description = "巡查员")
  96 + @ExcelProperty("巡查员")
  97 + private String dispperson;
  98 +
  99 + @Schema(description = "完成情况")
  100 + @ExcelProperty("完成情况")
  101 + private String replyResult;
  102 +
  103 + @Schema(description = "完成图片1")
  104 + @ExcelProperty("完成图片1")
  105 + private String picResult1;
  106 +
  107 + @Schema(description = "完成图片2")
  108 + @ExcelProperty("完成图片2")
  109 + private String picResult2;
  110 +
  111 + @Schema(description = "完成图片3")
  112 + @ExcelProperty("完成图片3")
  113 + private String picResult3;
  114 +
  115 + @Schema(description = "工单完成时间")
  116 + @ExcelProperty("工单完成时间")
  117 + private LocalDateTime finishTime;
  118 +
  119 + @Schema(description = "回复居民时间")
  120 + @ExcelProperty("回复居民时间")
  121 + private LocalDateTime replayrtime;
  122 +
  123 + @Schema(description = "权属单位")
  124 + @ExcelProperty("权属单位")
  125 + private String ownercompany;
  126 +
  127 + @Schema(description = "工单类型", example = "2")
  128 + @ExcelProperty("工单类型")
  129 + private String casetype;
  130 +
  131 + @Schema(description = "办理结果:字典")
  132 + @ExcelProperty("办理结果:字典")
  133 + private String handingresult;
  134 +
  135 + @Schema(description = "处理情况")
  136 + @ExcelProperty("处理情况")
  137 + private String resolvedesp;
  138 +
  139 + @Schema(description = "处理情况")
  140 + @ExcelProperty("处理情况")
  141 + private String rstResolvedesp;
  142 +
  143 + @Schema(description = "转单人")
  144 + @ExcelProperty("转单人")
  145 + private String dealBy;
  146 +
  147 + @Schema(description = "上报时间")
  148 + @ExcelProperty("上报时间")
  149 + private LocalDateTime dealTime;
  150 +
  151 + @Schema(description = "创建人")
  152 + @ExcelProperty("创建人")
  153 + private String createBy;
  154 +
  155 + @Schema(description = "创建时间")
  156 + @ExcelProperty("创建时间")
  157 + private LocalDateTime createTime;
  158 +
  159 + @Schema(description = "修改人")
  160 + @ExcelProperty("修改人")
  161 + private String updateBy;
  162 +
  163 + @Schema(description = "结果录入人")
  164 + @ExcelProperty("结果录入人")
  165 + private String replayBy;
  166 +
  167 + @Schema(description = "回复时间,结果录入时间")
  168 + @ExcelProperty("回复时间,结果录入时间")
  169 + private LocalDateTime replayTime;
  170 +
  171 + @Schema(description = "确认权属人")
  172 + @ExcelProperty("确认权属人")
  173 + private String ownershipBy;
  174 +
  175 + @Schema(description = "确认权属时间")
  176 + @ExcelProperty("确认权属时间")
  177 + private LocalDateTime ownershipTime;
  178 +
  179 + @Schema(description = "防止重复派单:1已经发送")
  180 + @ExcelProperty("防止重复派单:1已经发送")
  181 + private String reserve1;
  182 +
  183 + @Schema(description = "小程序派单状态:1 待派单,2 派单中 3 派单处理完成")
  184 + @ExcelProperty("小程序派单状态:1 待派单,2 派单中 3 派单处理完成")
  185 + private String reserve2;
  186 +
  187 + @Schema(description = "备注3")
  188 + @ExcelProperty("备注3")
  189 + private String reserve3;
  190 +
  191 +}
0 \ No newline at end of file 192 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinecase/vo/HotlineCaseSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +@Schema(description = "管理后台 - 12345案件信息新增/修改 Request VO")
  11 +@Data
  12 +public class HotlineCaseSaveReqVO {
  13 +
  14 + @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9027")
  15 + private String id;
  16 +
  17 + @Schema(description = "工单编号")
  18 + private String hotlinenumber;
  19 +
  20 + @Schema(description = "12345工单文件")
  21 + private String casefile;
  22 +
  23 + @Schema(description = "事间来源:默认12345")
  24 + private String eventsouce;
  25 +
  26 + @Schema(description = "工单来源:集团 分公司")
  27 + private String casesource;
  28 +
  29 + @Schema(description = "市级编号", requiredMode = Schema.RequiredMode.REQUIRED)
  30 + @NotEmpty(message = "市级编号不能为空")
  31 + private String citynum;
  32 +
  33 + @Schema(description = "区级编号")
  34 + private String regionnum;
  35 +
  36 + @Schema(description = "工单状态")
  37 + private String taskstate;
  38 +
  39 + @Schema(description = "权属信息 null 无 0权属 1非权属")
  40 + private String ownership;
  41 +
  42 + @Schema(description = "部门信息")
  43 + private String department;
  44 +
  45 + @Schema(description = "所属街道")
  46 + private String street;
  47 +
  48 + @Schema(description = "所属公司", example = "26510")
  49 + private String companyid;
  50 +
  51 + @Schema(description = "来电人姓名", example = "芋艿")
  52 + private String callName;
  53 +
  54 + @Schema(description = "来电人手机号")
  55 + private String callTel;
  56 +
  57 + @Schema(description = "接件时间")
  58 + private LocalDateTime acceptcasetime;
  59 +
  60 + @Schema(description = "截止时间")
  61 + private LocalDateTime endTime;
  62 +
  63 + @Schema(description = "详细地址")
  64 + private String address;
  65 +
  66 + @Schema(description = "工单内容")
  67 + private String content;
  68 +
  69 + @Schema(description = "工单照片")
  70 + private String casepic;
  71 +
  72 + @Schema(description = "是否派巡查")
  73 + private String dispatcher;
  74 +
  75 + @Schema(description = "巡查员")
  76 + private String dispperson;
  77 +
  78 + @Schema(description = "完成情况")
  79 + private String replyResult;
  80 +
  81 + @Schema(description = "完成图片1")
  82 + private String picResult1;
  83 +
  84 + @Schema(description = "完成图片2")
  85 + private String picResult2;
  86 +
  87 + @Schema(description = "完成图片3")
  88 + private String picResult3;
  89 +
  90 + @Schema(description = "工单完成时间")
  91 + private LocalDateTime finishTime;
  92 +
  93 + @Schema(description = "回复居民时间")
  94 + private LocalDateTime replayrtime;
  95 +
  96 + @Schema(description = "权属单位")
  97 + private String ownercompany;
  98 +
  99 + @Schema(description = "工单类型", example = "2")
  100 + private String casetype;
  101 +
  102 + @Schema(description = "办理结果:字典")
  103 + private String handingresult;
  104 +
  105 + @Schema(description = "处理情况")
  106 + private String resolvedesp;
  107 +
  108 + @Schema(description = "处理情况")
  109 + private String rstResolvedesp;
  110 +
  111 + @Schema(description = "转单人")
  112 + private String dealBy;
  113 +
  114 + @Schema(description = "上报时间")
  115 + private LocalDateTime dealTime;
  116 +
  117 + @Schema(description = "创建人")
  118 + private String createBy;
  119 +
  120 + @Schema(description = "修改人")
  121 + private String updateBy;
  122 +
  123 + @Schema(description = "结果录入人")
  124 + private String replayBy;
  125 +
  126 + @Schema(description = "回复时间,结果录入时间")
  127 + private LocalDateTime replayTime;
  128 +
  129 + @Schema(description = "确认权属人")
  130 + private String ownershipBy;
  131 +
  132 + @Schema(description = "确认权属时间")
  133 + private LocalDateTime ownershipTime;
  134 +
  135 + @Schema(description = "防止重复派单:1已经发送")
  136 + private String reserve1;
  137 +
  138 + @Schema(description = "小程序派单状态:1 待派单,2 派单中 3 派单处理完成")
  139 + private String reserve2;
  140 +
  141 + @Schema(description = "备注3")
  142 + private String reserve3;
  143 +
  144 +}
0 \ No newline at end of file 145 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinefile/HotlineFileController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinefile;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinefile.HotlineFileDO;
  30 +import com.zteits.urbanops.module.garden.service.hotlinefile.HotlineFileService;
  31 +
  32 +@Tag(name = "管理后台 - 12345案件-文件")
  33 +@RestController
  34 +@RequestMapping("/garden/hotline-file")
  35 +@Validated
  36 +public class HotlineFileController {
  37 +
  38 + @Resource
  39 + private HotlineFileService hotlineFileService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建12345案件-文件")
  43 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:create')")
  44 + public CommonResult<String> createHotlineFile(@Valid @RequestBody HotlineFileSaveReqVO createReqVO) {
  45 + return success(hotlineFileService.createHotlineFile(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新12345案件-文件")
  50 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:update')")
  51 + public CommonResult<Boolean> updateHotlineFile(@Valid @RequestBody HotlineFileSaveReqVO updateReqVO) {
  52 + hotlineFileService.updateHotlineFile(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除12345案件-文件")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:delete')")
  60 + public CommonResult<Boolean> deleteHotlineFile(@RequestParam("id") String id) {
  61 + hotlineFileService.deleteHotlineFile(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除12345案件-文件")
  68 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:delete')")
  69 + public CommonResult<Boolean> deleteHotlineFileList(@RequestParam("ids") List<String> ids) {
  70 + hotlineFileService.deleteHotlineFileListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得12345案件-文件")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:query')")
  78 + public CommonResult<HotlineFileRespVO> getHotlineFile(@RequestParam("id") String id) {
  79 + HotlineFileDO hotlineFile = hotlineFileService.getHotlineFile(id);
  80 + return success(BeanUtils.toBean(hotlineFile, HotlineFileRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得12345案件-文件分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:query')")
  86 + public CommonResult<PageResult<HotlineFileRespVO>> getHotlineFilePage(@Valid HotlineFilePageReqVO pageReqVO) {
  87 + PageResult<HotlineFileDO> pageResult = hotlineFileService.getHotlineFilePage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, HotlineFileRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出12345案件-文件 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:hotline-file:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportHotlineFileExcel(@Valid HotlineFilePageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<HotlineFileDO> list = hotlineFileService.getHotlineFilePage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "12345案件-文件.xls", "数据", HotlineFileRespVO.class,
  101 + BeanUtils.toBean(list, HotlineFileRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinefile/vo/HotlineFilePageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 12345案件-文件分页 Request VO")
  13 +@Data
  14 +public class HotlineFilePageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "12345案件id", example = "21278")
  17 + private String caseId;
  18 +
  19 + @Schema(description = "文件id", example = "28882")
  20 + private String fileid;
  21 +
  22 + @Schema(description = "文件类型(办理文件、挂账文件、剔除文件等)", example = "2")
  23 + private String filetype;
  24 +
  25 + @Schema(description = "文件上传时间")
  26 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  27 + private LocalDateTime[] updatetime;
  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/hotlinefile/vo/HotlineFileRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 12345案件-文件 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class HotlineFileRespVO {
  14 +
  15 + @Schema(description = "12345案件id", example = "21278")
  16 + @ExcelProperty("12345案件id")
  17 + private String caseId;
  18 +
  19 + @Schema(description = "文件id", example = "28882")
  20 + @ExcelProperty("文件id")
  21 + private String fileid;
  22 +
  23 + @Schema(description = "文件类型(办理文件、挂账文件、剔除文件等)", example = "2")
  24 + @ExcelProperty("文件类型(办理文件、挂账文件、剔除文件等)")
  25 + private String filetype;
  26 +
  27 + @Schema(description = "文件上传时间")
  28 + @ExcelProperty("文件上传时间")
  29 + private LocalDateTime updatetime;
  30 +
  31 +}
0 \ No newline at end of file 32 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/hotlinefile/vo/HotlineFileSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +@Schema(description = "管理后台 - 12345案件-文件新增/修改 Request VO")
  11 +@Data
  12 +public class HotlineFileSaveReqVO {
  13 +
  14 + @Schema(description = "12345案件id", example = "21278")
  15 + private String caseId;
  16 +
  17 + @Schema(description = "文件id", example = "28882")
  18 + private String fileid;
  19 +
  20 + @Schema(description = "文件类型(办理文件、挂账文件、剔除文件等)", example = "2")
  21 + private String filetype;
  22 +
  23 + @Schema(description = "文件上传时间")
  24 + private LocalDateTime updatetime;
  25 +
  26 +}
0 \ No newline at end of file 27 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/MaintainRateController.java deleted
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 -}  
98 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRatePageReqVO.java deleted
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 -}  
33 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRateReqVO.java deleted
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 -}  
17 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainrate/vo/MaintainRateRespVO.java deleted
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 -}  
30 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.material;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.material.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialDO;
  30 +import com.zteits.urbanops.module.garden.service.material.MaterialService;
  31 +
  32 +@Tag(name = "管理后台 - 耗材管理")
  33 +@RestController
  34 +@RequestMapping("/garden/material")
  35 +@Validated
  36 +public class MaterialController {
  37 +
  38 + @Resource
  39 + private MaterialService materialService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建耗材管理")
  43 + @PreAuthorize("@ss.hasPermission('garden:material:create')")
  44 + public CommonResult<Long> createMaterial(@Valid @RequestBody MaterialSaveReqVO createReqVO) {
  45 + return success(materialService.createMaterial(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新耗材管理")
  50 + @PreAuthorize("@ss.hasPermission('garden:material:update')")
  51 + public CommonResult<Boolean> updateMaterial(@Valid @RequestBody MaterialSaveReqVO updateReqVO) {
  52 + materialService.updateMaterial(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除耗材管理")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:material:delete')")
  60 + public CommonResult<Boolean> deleteMaterial(@RequestParam("id") Long id) {
  61 + materialService.deleteMaterial(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除耗材管理")
  68 + @PreAuthorize("@ss.hasPermission('garden:material:delete')")
  69 + public CommonResult<Boolean> deleteMaterialList(@RequestParam("ids") List<Long> ids) {
  70 + materialService.deleteMaterialListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得耗材管理")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:material:query')")
  78 + public CommonResult<MaterialRespVO> getMaterial(@RequestParam("id") Long id) {
  79 + MaterialDO material = materialService.getMaterial(id);
  80 + return success(BeanUtils.toBean(material, MaterialRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得耗材管理分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:material:query')")
  86 + public CommonResult<PageResult<MaterialRespVO>> getMaterialPage(@Valid MaterialPageReqVO pageReqVO) {
  87 + PageResult<MaterialDO> pageResult = materialService.getMaterialPage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaterialRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出耗材管理 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:material:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaterialExcel(@Valid MaterialPageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaterialDO> list = materialService.getMaterialPage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "耗材管理.xls", "数据", MaterialRespVO.class,
  101 + BeanUtils.toBean(list, MaterialRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialInController.java deleted
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 -}  
152 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialInventoryController.java deleted
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 -}  
57 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialManagerController.java deleted
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 -}  
76 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/MaterialOutController.java deleted
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 -}  
127 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/vo/MaterialPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.material.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 耗材管理分页 Request VO")
  13 +@Data
  14 +public class MaterialPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "完整编码")
  17 + private String fullCode;
  18 +
  19 + @Schema(description = "物料编码")
  20 + private String materialCode;
  21 +
  22 + @Schema(description = "耗材名称", example = "李四")
  23 + private String materialName;
  24 +
  25 + @Schema(description = "耗材类型ID", example = "3767")
  26 + private Long materialTypeId;
  27 +
  28 + @Schema(description = "耗材类型名称", example = "张三")
  29 + private String materialTypeName;
  30 +
  31 + @Schema(description = "类别ID", example = "25951")
  32 + private Long typeId;
  33 +
  34 + @Schema(description = "类别名称:药品", example = "张三")
  35 + private String typeName;
  36 +
  37 + @Schema(description = "类别明细ID", example = "5524")
  38 + private Long typeDetailId;
  39 +
  40 + @Schema(description = "类别明细", example = "赵六")
  41 + private String typeDetailName;
  42 +
  43 + @Schema(description = "规格编码")
  44 + private String specCode;
  45 +
  46 + @Schema(description = "规格")
  47 + private String specifications;
  48 +
  49 + @Schema(description = "归属公司ID", example = "990")
  50 + private Long belongCompanyId;
  51 +
  52 + @Schema(description = "归属公司", example = "王五")
  53 + private String belongCompanyName;
  54 +
  55 + @Schema(description = "单位ID", example = "14415")
  56 + private Long unitId;
  57 +
  58 + @Schema(description = "单位", example = "芋艿")
  59 + private String unitName;
  60 +
  61 + @Schema(description = "创建时间")
  62 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  63 + private LocalDateTime[] createTime;
  64 +
  65 + @Schema(description = "备注", example = "随便")
  66 + private String remark;
  67 +
  68 + @Schema(description = "是否关联工单:0-否,1-是")
  69 + private Integer isAssociatedOrder;
  70 +
  71 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/vo/MaterialRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.material.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 耗材管理 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaterialRespVO {
  14 +
  15 + @Schema(description = "耗材ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14347")
  16 + @ExcelProperty("耗材ID")
  17 + private Long materialId;
  18 +
  19 + @Schema(description = "完整编码")
  20 + @ExcelProperty("完整编码")
  21 + private String fullCode;
  22 +
  23 + @Schema(description = "物料编码")
  24 + @ExcelProperty("物料编码")
  25 + private String materialCode;
  26 +
  27 + @Schema(description = "耗材名称", example = "李四")
  28 + @ExcelProperty("耗材名称")
  29 + private String materialName;
  30 +
  31 + @Schema(description = "耗材类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3767")
  32 + @ExcelProperty("耗材类型ID")
  33 + private Long materialTypeId;
  34 +
  35 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  36 + @ExcelProperty("耗材类型名称")
  37 + private String materialTypeName;
  38 +
  39 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25951")
  40 + @ExcelProperty("类别ID")
  41 + private Long typeId;
  42 +
  43 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  44 + @ExcelProperty("类别名称:药品")
  45 + private String typeName;
  46 +
  47 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5524")
  48 + @ExcelProperty("类别明细ID")
  49 + private Long typeDetailId;
  50 +
  51 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  52 + @ExcelProperty("类别明细")
  53 + private String typeDetailName;
  54 +
  55 + @Schema(description = "规格编码")
  56 + @ExcelProperty("规格编码")
  57 + private String specCode;
  58 +
  59 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  60 + @ExcelProperty("规格")
  61 + private String specifications;
  62 +
  63 + @Schema(description = "归属公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "990")
  64 + @ExcelProperty("归属公司ID")
  65 + private Long belongCompanyId;
  66 +
  67 + @Schema(description = "归属公司", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  68 + @ExcelProperty("归属公司")
  69 + private String belongCompanyName;
  70 +
  71 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14415")
  72 + @ExcelProperty("单位ID")
  73 + private Long unitId;
  74 +
  75 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  76 + @ExcelProperty("单位")
  77 + private String unitName;
  78 +
  79 + @Schema(description = "创建时间")
  80 + @ExcelProperty("创建时间")
  81 + private LocalDateTime createTime;
  82 +
  83 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
  84 + @ExcelProperty("备注")
  85 + private String remark;
  86 +
  87 + @Schema(description = "是否关联工单:0-否,1-是")
  88 + @ExcelProperty("是否关联工单:0-否,1-是")
  89 + private Integer isAssociatedOrder;
  90 +
  91 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/material/vo/MaterialSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.material.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 耗材管理新增/修改 Request VO")
  9 +@Data
  10 +public class MaterialSaveReqVO {
  11 +
  12 + @Schema(description = "耗材ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14347")
  13 + private Long materialId;
  14 +
  15 + @Schema(description = "完整编码")
  16 + private String fullCode;
  17 +
  18 + @Schema(description = "物料编码")
  19 + private String materialCode;
  20 +
  21 + @Schema(description = "耗材名称", example = "李四")
  22 + private String materialName;
  23 +
  24 + @Schema(description = "耗材类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3767")
  25 + @NotNull(message = "耗材类型ID不能为空")
  26 + private Long materialTypeId;
  27 +
  28 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  29 + @NotEmpty(message = "耗材类型名称不能为空")
  30 + private String materialTypeName;
  31 +
  32 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25951")
  33 + @NotNull(message = "类别ID不能为空")
  34 + private Long typeId;
  35 +
  36 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  37 + @NotEmpty(message = "类别名称:药品不能为空")
  38 + private String typeName;
  39 +
  40 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5524")
  41 + @NotNull(message = "类别明细ID不能为空")
  42 + private Long typeDetailId;
  43 +
  44 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  45 + @NotEmpty(message = "类别明细不能为空")
  46 + private String typeDetailName;
  47 +
  48 + @Schema(description = "规格编码")
  49 + private String specCode;
  50 +
  51 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  52 + @NotEmpty(message = "规格不能为空")
  53 + private String specifications;
  54 +
  55 + @Schema(description = "归属公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "990")
  56 + @NotNull(message = "归属公司ID不能为空")
  57 + private Long belongCompanyId;
  58 +
  59 + @Schema(description = "归属公司", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  60 + @NotEmpty(message = "归属公司不能为空")
  61 + private String belongCompanyName;
  62 +
  63 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14415")
  64 + @NotNull(message = "单位ID不能为空")
  65 + private Long unitId;
  66 +
  67 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  68 + @NotEmpty(message = "单位不能为空")
  69 + private String unitName;
  70 +
  71 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
  72 + @NotEmpty(message = "备注不能为空")
  73 + private String remark;
  74 +
  75 + @Schema(description = "是否关联工单:0-否,1-是")
  76 + private Integer isAssociatedOrder;
  77 +
  78 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventory/MaterialInventoryController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventory;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.materialinventory.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventory.MaterialInventoryDO;
  30 +import com.zteits.urbanops.module.garden.service.materialinventory.MaterialInventoryService;
  31 +
  32 +@Tag(name = "管理后台 - 物料库存")
  33 +@RestController
  34 +@RequestMapping("/garden/material-inventory")
  35 +@Validated
  36 +public class MaterialInventoryController {
  37 +
  38 + @Resource
  39 + private MaterialInventoryService materialInventoryService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建物料库存")
  43 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:create')")
  44 + public CommonResult<Long> createMaterialInventory(@Valid @RequestBody MaterialInventorySaveReqVO createReqVO) {
  45 + return success(materialInventoryService.createMaterialInventory(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新物料库存")
  50 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:update')")
  51 + public CommonResult<Boolean> updateMaterialInventory(@Valid @RequestBody MaterialInventorySaveReqVO updateReqVO) {
  52 + materialInventoryService.updateMaterialInventory(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除物料库存")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:delete')")
  60 + public CommonResult<Boolean> deleteMaterialInventory(@RequestParam("id") Long id) {
  61 + materialInventoryService.deleteMaterialInventory(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除物料库存")
  68 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:delete')")
  69 + public CommonResult<Boolean> deleteMaterialInventoryList(@RequestParam("ids") List<Long> ids) {
  70 + materialInventoryService.deleteMaterialInventoryListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得物料库存")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:query')")
  78 + public CommonResult<MaterialInventoryRespVO> getMaterialInventory(@RequestParam("id") Long id) {
  79 + MaterialInventoryDO materialInventory = materialInventoryService.getMaterialInventory(id);
  80 + return success(BeanUtils.toBean(materialInventory, MaterialInventoryRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得物料库存分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:query')")
  86 + public CommonResult<PageResult<MaterialInventoryRespVO>> getMaterialInventoryPage(@Valid MaterialInventoryPageReqVO pageReqVO) {
  87 + PageResult<MaterialInventoryDO> pageResult = materialInventoryService.getMaterialInventoryPage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaterialInventoryRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出物料库存 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaterialInventoryExcel(@Valid MaterialInventoryPageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaterialInventoryDO> list = materialInventoryService.getMaterialInventoryPage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "物料库存.xls", "数据", MaterialInventoryRespVO.class,
  101 + BeanUtils.toBean(list, MaterialInventoryRespVO.class));
  102 + }
  103 +
  104 + /**
  105 + * 物料库存-阈值更新
  106 + */
  107 + @Operation(summary = "物料库存-阈值更新")
  108 + @PreAuthorize("@ss.hasPermission('garden:material-inventory:update')")
  109 + @GetMapping("/updateByAlermNum")
  110 + public CommonResult updateInventoryAlermNum(@RequestParam("material_id") Long materialId, @RequestParam("alerm_num") Long alermNum) {
  111 + int count = materialInventoryService.updateInVentoryAlremNum(materialId, alermNum);
  112 + return success(count);
  113 + }
  114 +
  115 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventory/vo/MaterialInventoryPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventory.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 物料库存分页 Request VO")
  13 +@Data
  14 +public class MaterialInventoryPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "物料ID", example = "29414")
  17 + private Long materialId;
  18 +
  19 + @Schema(description = "物料名称", example = "李四")
  20 + private String materialName;
  21 +
  22 + @Schema(description = "物料类型ID", example = "24853")
  23 + private Long materialTypeId;
  24 +
  25 + @Schema(description = "耗材类型名称", example = "芋艿")
  26 + private String materialTypeName;
  27 +
  28 + @Schema(description = "类别ID", example = "30568")
  29 + private Long typeId;
  30 +
  31 + @Schema(description = "类别名称:药品", example = "芋艿")
  32 + private String typeName;
  33 +
  34 + @Schema(description = "类别明细ID", example = "6252")
  35 + private Long typeDetailId;
  36 +
  37 + @Schema(description = "类别明细", example = "芋艿")
  38 + private String typeDetailName;
  39 +
  40 + @Schema(description = "规格")
  41 + private String specifications;
  42 +
  43 + @Schema(description = "归属单位ID", example = "25626")
  44 + private Long belongCompanyId;
  45 +
  46 + @Schema(description = "归属单位", example = "李四")
  47 + private String belongCompanyName;
  48 +
  49 + @Schema(description = "单位ID", example = "6480")
  50 + private Long unitId;
  51 +
  52 + @Schema(description = "单位", example = "王五")
  53 + private String unitName;
  54 +
  55 + @Schema(description = "当前库存数量")
  56 + private Long currentNum;
  57 +
  58 + @Schema(description = "出库总数量(出库累加)")
  59 + private Long outTotalNum;
  60 +
  61 + @Schema(description = "库存总数量(入库累加)")
  62 + private Long inventoryTotalNum;
  63 +
  64 + @Schema(description = "创建时间")
  65 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  66 + private LocalDateTime[] createTime;
  67 +
  68 + @Schema(description = "库存预警阈值")
  69 + private Long inventoryAlermNum;
  70 +
  71 + @Schema(description = "部门ID", example = "11349")
  72 + private Long deptId;
  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/materialinventory/vo/MaterialInventoryRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventory.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 物料库存 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaterialInventoryRespVO {
  14 +
  15 + @Schema(description = "库存ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10980")
  16 + @ExcelProperty("库存ID")
  17 + private Long inventoryId;
  18 +
  19 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29414")
  20 + @ExcelProperty("物料ID")
  21 + private Long materialId;
  22 +
  23 + @Schema(description = "物料名称", example = "李四")
  24 + @ExcelProperty("物料名称")
  25 + private String materialName;
  26 +
  27 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24853")
  28 + @ExcelProperty("物料类型ID")
  29 + private Long materialTypeId;
  30 +
  31 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  32 + @ExcelProperty("耗材类型名称")
  33 + private String materialTypeName;
  34 +
  35 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30568")
  36 + @ExcelProperty("类别ID")
  37 + private Long typeId;
  38 +
  39 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  40 + @ExcelProperty("类别名称:药品")
  41 + private String typeName;
  42 +
  43 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6252")
  44 + @ExcelProperty("类别明细ID")
  45 + private Long typeDetailId;
  46 +
  47 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  48 + @ExcelProperty("类别明细")
  49 + private String typeDetailName;
  50 +
  51 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  52 + @ExcelProperty("规格")
  53 + private String specifications;
  54 +
  55 + @Schema(description = "归属单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25626")
  56 + @ExcelProperty("归属单位ID")
  57 + private Long belongCompanyId;
  58 +
  59 + @Schema(description = "归属单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  60 + @ExcelProperty("归属单位")
  61 + private String belongCompanyName;
  62 +
  63 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6480")
  64 + @ExcelProperty("单位ID")
  65 + private Long unitId;
  66 +
  67 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  68 + @ExcelProperty("单位")
  69 + private String unitName;
  70 +
  71 + @Schema(description = "当前库存数量", requiredMode = Schema.RequiredMode.REQUIRED)
  72 + @ExcelProperty("当前库存数量")
  73 + private Long currentNum;
  74 +
  75 + @Schema(description = "出库总数量(出库累加)", requiredMode = Schema.RequiredMode.REQUIRED)
  76 + @ExcelProperty("出库总数量(出库累加)")
  77 + private Long outTotalNum;
  78 +
  79 + @Schema(description = "库存总数量(入库累加)", requiredMode = Schema.RequiredMode.REQUIRED)
  80 + @ExcelProperty("库存总数量(入库累加)")
  81 + private Long inventoryTotalNum;
  82 +
  83 + @Schema(description = "创建时间")
  84 + @ExcelProperty("创建时间")
  85 + private LocalDateTime createTime;
  86 +
  87 + @Schema(description = "库存预警阈值", requiredMode = Schema.RequiredMode.REQUIRED)
  88 + @ExcelProperty("库存预警阈值")
  89 + private Long inventoryAlermNum;
  90 +
  91 + @Schema(description = "部门ID", example = "11349")
  92 + @ExcelProperty("部门ID")
  93 + private Long deptId;
  94 +
  95 +}
0 \ No newline at end of file 96 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventory/vo/MaterialInventorySaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventory.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 物料库存新增/修改 Request VO")
  9 +@Data
  10 +public class MaterialInventorySaveReqVO {
  11 +
  12 + @Schema(description = "库存ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10980")
  13 + private Long inventoryId;
  14 +
  15 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29414")
  16 + @NotNull(message = "物料ID不能为空")
  17 + private Long materialId;
  18 +
  19 + @Schema(description = "物料名称", example = "李四")
  20 + private String materialName;
  21 +
  22 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24853")
  23 + @NotNull(message = "物料类型ID不能为空")
  24 + private Long materialTypeId;
  25 +
  26 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  27 + @NotEmpty(message = "耗材类型名称不能为空")
  28 + private String materialTypeName;
  29 +
  30 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30568")
  31 + @NotNull(message = "类别ID不能为空")
  32 + private Long typeId;
  33 +
  34 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  35 + @NotEmpty(message = "类别名称:药品不能为空")
  36 + private String typeName;
  37 +
  38 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6252")
  39 + @NotNull(message = "类别明细ID不能为空")
  40 + private Long typeDetailId;
  41 +
  42 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  43 + @NotEmpty(message = "类别明细不能为空")
  44 + private String typeDetailName;
  45 +
  46 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  47 + @NotEmpty(message = "规格不能为空")
  48 + private String specifications;
  49 +
  50 + @Schema(description = "归属单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25626")
  51 + @NotNull(message = "归属单位ID不能为空")
  52 + private Long belongCompanyId;
  53 +
  54 + @Schema(description = "归属单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  55 + @NotEmpty(message = "归属单位不能为空")
  56 + private String belongCompanyName;
  57 +
  58 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6480")
  59 + @NotNull(message = "单位ID不能为空")
  60 + private Long unitId;
  61 +
  62 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  63 + @NotEmpty(message = "单位不能为空")
  64 + private String unitName;
  65 +
  66 + @Schema(description = "当前库存数量", requiredMode = Schema.RequiredMode.REQUIRED)
  67 + @NotNull(message = "当前库存数量不能为空")
  68 + private Long currentNum;
  69 +
  70 + @Schema(description = "出库总数量(出库累加)", requiredMode = Schema.RequiredMode.REQUIRED)
  71 + @NotNull(message = "出库总数量(出库累加)不能为空")
  72 + private Long outTotalNum;
  73 +
  74 + @Schema(description = "库存总数量(入库累加)", requiredMode = Schema.RequiredMode.REQUIRED)
  75 + @NotNull(message = "库存总数量(入库累加)不能为空")
  76 + private Long inventoryTotalNum;
  77 +
  78 + @Schema(description = "库存预警阈值", requiredMode = Schema.RequiredMode.REQUIRED)
  79 + @NotNull(message = "库存预警阈值不能为空")
  80 + private Long inventoryAlermNum;
  81 +
  82 + @Schema(description = "部门ID", example = "11349")
  83 + private Long deptId;
  84 +
  85 +}
0 \ No newline at end of file 86 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryin/MaterialInventoryInController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryin;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.materialinventoryin.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryin.MaterialInventoryInDO;
  30 +import com.zteits.urbanops.module.garden.service.materialinventoryin.MaterialInventoryInService;
  31 +
  32 +@Tag(name = "管理后台 - 物料入库")
  33 +@RestController
  34 +@RequestMapping("/garden/material-inventory-in")
  35 +@Validated
  36 +public class MaterialInventoryInController {
  37 +
  38 + @Resource
  39 + private MaterialInventoryInService materialInventoryInService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建物料入库")
  43 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:create')")
  44 + public CommonResult<Long> createMaterialInventoryIn(@Valid @RequestBody MaterialInventoryInSaveReqVO createReqVO) {
  45 + return success(materialInventoryInService.createMaterialInventoryIn(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新物料入库")
  50 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:update')")
  51 + public CommonResult<Boolean> updateMaterialInventoryIn(@Valid @RequestBody MaterialInventoryInSaveReqVO updateReqVO) {
  52 + materialInventoryInService.updateMaterialInventoryIn(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除物料入库")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:delete')")
  60 + public CommonResult<Boolean> deleteMaterialInventoryIn(@RequestParam("id") Long id) {
  61 + materialInventoryInService.deleteMaterialInventoryIn(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除物料入库")
  68 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:delete')")
  69 + public CommonResult<Boolean> deleteMaterialInventoryInList(@RequestParam("ids") List<Long> ids) {
  70 + materialInventoryInService.deleteMaterialInventoryInListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得物料入库")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:query')")
  78 + public CommonResult<MaterialInventoryInRespVO> getMaterialInventoryIn(@RequestParam("id") Long id) {
  79 + MaterialInventoryInDO materialInventoryIn = materialInventoryInService.getMaterialInventoryIn(id);
  80 + return success(BeanUtils.toBean(materialInventoryIn, MaterialInventoryInRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得物料入库分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:query')")
  86 + public CommonResult<PageResult<MaterialInventoryInRespVO>> getMaterialInventoryInPage(@Valid MaterialInventoryInPageReqVO pageReqVO) {
  87 + PageResult<MaterialInventoryInDO> pageResult = materialInventoryInService.getMaterialInventoryInPage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaterialInventoryInRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出物料入库 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-in:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaterialInventoryInExcel(@Valid MaterialInventoryInPageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaterialInventoryInDO> list = materialInventoryInService.getMaterialInventoryInPage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "物料入库.xls", "数据", MaterialInventoryInRespVO.class,
  101 + BeanUtils.toBean(list, MaterialInventoryInRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryin/vo/MaterialInventoryInPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryin.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import java.math.BigDecimal;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +
  11 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  12 +
  13 +@Schema(description = "管理后台 - 物料入库分页 Request VO")
  14 +@Data
  15 +public class MaterialInventoryInPageReqVO extends PageParam {
  16 +
  17 + @Schema(description = "入库批次号")
  18 + private String inventoryInNo;
  19 +
  20 + @Schema(description = "物料ID", example = "7335")
  21 + private Long materialId;
  22 +
  23 + @Schema(description = "物料名称", example = "芋艿")
  24 + private String materialName;
  25 +
  26 + @Schema(description = "物料类型ID", example = "27813")
  27 + private Long materialTypeId;
  28 +
  29 + @Schema(description = "耗材类型名称", example = "李四")
  30 + private String materialTypeName;
  31 +
  32 + @Schema(description = "类别ID", example = "24913")
  33 + private Long typeId;
  34 +
  35 + @Schema(description = "类别名称:药品", example = "李四")
  36 + private String typeName;
  37 +
  38 + @Schema(description = "类别明细ID", example = "53")
  39 + private Long typeDetailId;
  40 +
  41 + @Schema(description = "类别明细", example = "张三")
  42 + private String typeDetailName;
  43 +
  44 + @Schema(description = "规格")
  45 + private String specifications;
  46 +
  47 + @Schema(description = "归属单位ID", example = "27639")
  48 + private Long belongCompanyId;
  49 +
  50 + @Schema(description = "归属单位", example = "王五")
  51 + private String belongCompanyName;
  52 +
  53 + @Schema(description = "入库数量")
  54 + private Long inInventoryNum;
  55 +
  56 + @Schema(description = "单价", example = "17670")
  57 + private BigDecimal materialPrice;
  58 +
  59 + @Schema(description = "单位ID", example = "11362")
  60 + private Long unitId;
  61 +
  62 + @Schema(description = "单位", example = "李四")
  63 + private String unitName;
  64 +
  65 + @Schema(description = "采购日期")
  66 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  67 + private LocalDateTime[] buyDate;
  68 +
  69 + @Schema(description = "供应商名称", example = "王五")
  70 + private String supplierName;
  71 +
  72 + @Schema(description = "联系人", example = "赵六")
  73 + private String contactsName;
  74 +
  75 + @Schema(description = "联系人 电话")
  76 + private String contactsPhone;
  77 +
  78 + @Schema(description = "创建时间")
  79 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  80 + private LocalDateTime[] createTime;
  81 +
  82 + @Schema(description = "部门ID", example = "18025")
  83 + private Long deptId;
  84 +
  85 +}
0 \ No newline at end of file 86 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryin/vo/MaterialInventoryInRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryin.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import java.math.BigDecimal;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +import cn.idev.excel.annotation.*;
  10 +
  11 +@Schema(description = "管理后台 - 物料入库 Response VO")
  12 +@Data
  13 +@ExcelIgnoreUnannotated
  14 +public class MaterialInventoryInRespVO {
  15 +
  16 + @Schema(description = "入库ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16290")
  17 + @ExcelProperty("入库ID")
  18 + private Long id;
  19 +
  20 + @Schema(description = "入库批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  21 + @ExcelProperty("入库批次号")
  22 + private String inventoryInNo;
  23 +
  24 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7335")
  25 + @ExcelProperty("物料ID")
  26 + private Long materialId;
  27 +
  28 + @Schema(description = "物料名称", example = "芋艿")
  29 + @ExcelProperty("物料名称")
  30 + private String materialName;
  31 +
  32 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27813")
  33 + @ExcelProperty("物料类型ID")
  34 + private Long materialTypeId;
  35 +
  36 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  37 + @ExcelProperty("耗材类型名称")
  38 + private String materialTypeName;
  39 +
  40 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24913")
  41 + @ExcelProperty("类别ID")
  42 + private Long typeId;
  43 +
  44 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  45 + @ExcelProperty("类别名称:药品")
  46 + private String typeName;
  47 +
  48 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "53")
  49 + @ExcelProperty("类别明细ID")
  50 + private Long typeDetailId;
  51 +
  52 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  53 + @ExcelProperty("类别明细")
  54 + private String typeDetailName;
  55 +
  56 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  57 + @ExcelProperty("规格")
  58 + private String specifications;
  59 +
  60 + @Schema(description = "归属单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27639")
  61 + @ExcelProperty("归属单位ID")
  62 + private Long belongCompanyId;
  63 +
  64 + @Schema(description = "归属单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  65 + @ExcelProperty("归属单位")
  66 + private String belongCompanyName;
  67 +
  68 + @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
  69 + @ExcelProperty("入库数量")
  70 + private Long inInventoryNum;
  71 +
  72 + @Schema(description = "单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "17670")
  73 + @ExcelProperty("单价")
  74 + private BigDecimal materialPrice;
  75 +
  76 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11362")
  77 + @ExcelProperty("单位ID")
  78 + private Long unitId;
  79 +
  80 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  81 + @ExcelProperty("单位")
  82 + private String unitName;
  83 +
  84 + @Schema(description = "采购日期", requiredMode = Schema.RequiredMode.REQUIRED)
  85 + @ExcelProperty("采购日期")
  86 + private LocalDateTime buyDate;
  87 +
  88 + @Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  89 + @ExcelProperty("供应商名称")
  90 + private String supplierName;
  91 +
  92 + @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  93 + @ExcelProperty("联系人")
  94 + private String contactsName;
  95 +
  96 + @Schema(description = "联系人 电话", requiredMode = Schema.RequiredMode.REQUIRED)
  97 + @ExcelProperty("联系人 电话")
  98 + private String contactsPhone;
  99 +
  100 + @Schema(description = "创建时间")
  101 + @ExcelProperty("创建时间")
  102 + private LocalDateTime createTime;
  103 +
  104 + @Schema(description = "部门ID", example = "18025")
  105 + @ExcelProperty("部门ID")
  106 + private Long deptId;
  107 +
  108 +}
0 \ No newline at end of file 109 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryin/vo/MaterialInventoryInSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryin.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +import java.math.BigDecimal;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +
  11 +@Schema(description = "管理后台 - 物料入库新增/修改 Request VO")
  12 +@Data
  13 +public class MaterialInventoryInSaveReqVO {
  14 +
  15 + @Schema(description = "入库ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16290")
  16 + private Long id;
  17 +
  18 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7335")
  19 + @NotNull(message = "物料ID不能为空")
  20 + private Long materialId;
  21 +
  22 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  23 + @NotEmpty(message = "规格不能为空")
  24 + private String specifications;
  25 +
  26 + @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
  27 + @NotNull(message = "入库数量不能为空")
  28 + private Long inInventoryNum;
  29 +
  30 + @Schema(description = "单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "17670")
  31 + @NotNull(message = "单价不能为空")
  32 + private BigDecimal materialPrice;
  33 +
  34 + @Schema(description = "采购日期", requiredMode = Schema.RequiredMode.REQUIRED)
  35 + @NotNull(message = "采购日期不能为空")
  36 + private LocalDateTime buyDate;
  37 +
  38 + @Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  39 + @NotEmpty(message = "供应商名称不能为空")
  40 + private String supplierName;
  41 +
  42 + @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  43 + @NotEmpty(message = "联系人不能为空")
  44 + private String contactsName;
  45 +
  46 + @Schema(description = "联系人 电话", requiredMode = Schema.RequiredMode.REQUIRED)
  47 + @NotEmpty(message = "联系人 电话不能为空")
  48 + private String contactsPhone;
  49 +
  50 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryout/MaterialInventoryOutController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryout;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryout.MaterialInventoryOutDO;
  30 +import com.zteits.urbanops.module.garden.service.materialinventoryout.MaterialInventoryOutService;
  31 +
  32 +@Tag(name = "管理后台 - 物料出库")
  33 +@RestController
  34 +@RequestMapping("/garden/material-inventory-out")
  35 +@Validated
  36 +public class MaterialInventoryOutController {
  37 +
  38 + @Resource
  39 + private MaterialInventoryOutService materialInventoryOutService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建物料出库")
  43 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:create')")
  44 + public CommonResult<Long> createMaterialInventoryOut(@Valid @RequestBody MaterialInventoryOutSaveReqVO createReqVO) {
  45 + return success(materialInventoryOutService.createMaterialInventoryOut(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新物料出库")
  50 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:update')")
  51 + public CommonResult<Boolean> updateMaterialInventoryOut(@Valid @RequestBody MaterialInventoryOutSaveReqVO updateReqVO) {
  52 + materialInventoryOutService.updateMaterialInventoryOut(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除物料出库")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:delete')")
  60 + public CommonResult<Boolean> deleteMaterialInventoryOut(@RequestParam("id") Long id) {
  61 + materialInventoryOutService.deleteMaterialInventoryOut(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除物料出库")
  68 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:delete')")
  69 + public CommonResult<Boolean> deleteMaterialInventoryOutList(@RequestParam("ids") List<Long> ids) {
  70 + materialInventoryOutService.deleteMaterialInventoryOutListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得物料出库")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:query')")
  78 + public CommonResult<MaterialInventoryOutRespVO> getMaterialInventoryOut(@RequestParam("id") Long id) {
  79 + MaterialInventoryOutDO materialInventoryOut = materialInventoryOutService.getMaterialInventoryOut(id);
  80 + return success(BeanUtils.toBean(materialInventoryOut, MaterialInventoryOutRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得物料出库分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:query')")
  86 + public CommonResult<PageResult<MaterialInventoryOutRespVO>> getMaterialInventoryOutPage(@Valid MaterialInventoryOutPageReqVO pageReqVO) {
  87 + PageResult<MaterialInventoryOutDO> pageResult = materialInventoryOutService.getMaterialInventoryOutPage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaterialInventoryOutRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出物料出库 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:material-inventory-out:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaterialInventoryOutExcel(@Valid MaterialInventoryOutPageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaterialInventoryOutDO> list = materialInventoryOutService.getMaterialInventoryOutPage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "物料出库.xls", "数据", MaterialInventoryOutRespVO.class,
  101 + BeanUtils.toBean(list, MaterialInventoryOutRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryout/vo/MaterialInventoryOutPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 物料出库分页 Request VO")
  13 +@Data
  14 +public class MaterialInventoryOutPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "入库批次号")
  17 + private String inventoryOutNo;
  18 +
  19 + @Schema(description = "物料ID", example = "14541")
  20 + private Long materialId;
  21 +
  22 + @Schema(description = "物料名称", example = "芋艿")
  23 + private String materialName;
  24 +
  25 + @Schema(description = "物料类型ID", example = "9209")
  26 + private Long materialTypeId;
  27 +
  28 + @Schema(description = "耗材类型名称", example = "王五")
  29 + private String materialTypeName;
  30 +
  31 + @Schema(description = "类别ID", example = "12624")
  32 + private Long typeId;
  33 +
  34 + @Schema(description = "类别名称:药品", example = "芋艿")
  35 + private String typeName;
  36 +
  37 + @Schema(description = "类别明细ID", example = "24611")
  38 + private Long typeDetailId;
  39 +
  40 + @Schema(description = "类别明细", example = "王五")
  41 + private String typeDetailName;
  42 +
  43 + @Schema(description = "规格")
  44 + private String specifications;
  45 +
  46 + @Schema(description = "归属单位ID", example = "17128")
  47 + private Long belongCompanyId;
  48 +
  49 + @Schema(description = "归属单位", example = "李四")
  50 + private String belongCompanyName;
  51 +
  52 + @Schema(description = "出库数量")
  53 + private Long outInventoryNum;
  54 +
  55 + @Schema(description = "单位ID", example = "1033")
  56 + private Long unitId;
  57 +
  58 + @Schema(description = "单位", example = "芋艿")
  59 + private String unitName;
  60 +
  61 + @Schema(description = "出库日期")
  62 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  63 + private LocalDateTime[] outDate;
  64 +
  65 + @Schema(description = "备注", example = "你说的对")
  66 + private String remark;
  67 +
  68 + @Schema(description = "创建时间")
  69 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  70 + private LocalDateTime[] createTime;
  71 +
  72 + @Schema(description = "部门ID", example = "22618")
  73 + private Long deptId;
  74 +
  75 + @Schema(description = "类型: 1:手动出库;2:养护类出库", example = "1")
  76 + private Integer type;
  77 +
  78 +}
0 \ No newline at end of file 79 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryout/vo/MaterialInventoryOutRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 物料出库 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaterialInventoryOutRespVO {
  14 +
  15 + @Schema(description = "入库ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18713")
  16 + @ExcelProperty("入库ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "入库批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  20 + @ExcelProperty("入库批次号")
  21 + private String inventoryOutNo;
  22 +
  23 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14541")
  24 + @ExcelProperty("物料ID")
  25 + private Long materialId;
  26 +
  27 + @Schema(description = "物料名称", example = "芋艿")
  28 + @ExcelProperty("物料名称")
  29 + private String materialName;
  30 +
  31 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9209")
  32 + @ExcelProperty("物料类型ID")
  33 + private Long materialTypeId;
  34 +
  35 + @Schema(description = "耗材类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  36 + @ExcelProperty("耗材类型名称")
  37 + private String materialTypeName;
  38 +
  39 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12624")
  40 + @ExcelProperty("类别ID")
  41 + private Long typeId;
  42 +
  43 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  44 + @ExcelProperty("类别名称:药品")
  45 + private String typeName;
  46 +
  47 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24611")
  48 + @ExcelProperty("类别明细ID")
  49 + private Long typeDetailId;
  50 +
  51 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  52 + @ExcelProperty("类别明细")
  53 + private String typeDetailName;
  54 +
  55 + @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
  56 + @ExcelProperty("规格")
  57 + private String specifications;
  58 +
  59 + @Schema(description = "归属单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17128")
  60 + @ExcelProperty("归属单位ID")
  61 + private Long belongCompanyId;
  62 +
  63 + @Schema(description = "归属单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  64 + @ExcelProperty("归属单位")
  65 + private String belongCompanyName;
  66 +
  67 + @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED)
  68 + @ExcelProperty("出库数量")
  69 + private Long outInventoryNum;
  70 +
  71 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1033")
  72 + @ExcelProperty("单位ID")
  73 + private Long unitId;
  74 +
  75 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  76 + @ExcelProperty("单位")
  77 + private String unitName;
  78 +
  79 + @Schema(description = "出库日期", requiredMode = Schema.RequiredMode.REQUIRED)
  80 + @ExcelProperty("出库日期")
  81 + private LocalDateTime outDate;
  82 +
  83 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
  84 + @ExcelProperty("备注")
  85 + private String remark;
  86 +
  87 + @Schema(description = "创建时间")
  88 + @ExcelProperty("创建时间")
  89 + private LocalDateTime createTime;
  90 +
  91 + @Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22618")
  92 + @ExcelProperty("部门ID")
  93 + private Long deptId;
  94 +
  95 + @Schema(description = "类型: 1:手动出库;2:养护类出库", example = "1")
  96 + @ExcelProperty("类型: 1:手动出库;2:养护类出库")
  97 + private Integer type;
  98 +
  99 +}
0 \ No newline at end of file 100 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialinventoryout/vo/MaterialInventoryOutSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +@Schema(description = "管理后台 - 物料出库新增/修改 Request VO")
  11 +@Data
  12 +public class MaterialInventoryOutSaveReqVO {
  13 +
  14 + @Schema(description = "入库ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18713")
  15 + private Long id;
  16 +
  17 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14541")
  18 + @NotNull(message = "物料ID不能为空")
  19 + private Long materialId;
  20 +
  21 + @Schema(description = "物料名称", example = "芋艿")
  22 + private String materialName;
  23 +
  24 + @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED)
  25 + @NotNull(message = "出库数量不能为空")
  26 + private Long outInventoryNum;
  27 +
  28 + @Schema(description = "出库日期", requiredMode = Schema.RequiredMode.REQUIRED)
  29 + @NotNull(message = "出库日期不能为空")
  30 + private LocalDateTime outDate;
  31 +
  32 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/MaterialTypeAdminController.java deleted
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 -}  
45 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/MaterialTypeController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype;
  2 +
  3 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypePageReqVO;
  4 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeRespVO;
  5 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeSaveReqVO;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.materialtype.MaterialTypeDO;
  7 +import com.zteits.urbanops.module.garden.service.materialtype.MaterialTypeService;
  8 +import org.springframework.web.bind.annotation.*;
  9 +import jakarta.annotation.Resource;
  10 +import org.springframework.validation.annotation.Validated;
  11 +import org.springframework.security.access.prepost.PreAuthorize;
  12 +import io.swagger.v3.oas.annotations.tags.Tag;
  13 +import io.swagger.v3.oas.annotations.Parameter;
  14 +import io.swagger.v3.oas.annotations.Operation;
  15 +
  16 +import jakarta.validation.*;
  17 +import jakarta.servlet.http.*;
  18 +import java.util.*;
  19 +import java.io.IOException;
  20 +
  21 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  22 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  23 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  24 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  25 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  26 +
  27 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  28 +
  29 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  30 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  31 +
  32 +@Tag(name = "管理后台 - 物料类型")
  33 +@RestController
  34 +@RequestMapping("/garden/material-type")
  35 +@Validated
  36 +public class MaterialTypeController {
  37 +
  38 + @Resource
  39 + private MaterialTypeService materialTypeService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建物料类型")
  43 + @PreAuthorize("@ss.hasPermission('garden:material-type:create')")
  44 + public CommonResult<Long> createMaterialType(@Valid @RequestBody MaterialTypeSaveReqVO createReqVO) {
  45 + return success(materialTypeService.createMaterialType(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新物料类型")
  50 + @PreAuthorize("@ss.hasPermission('garden:material-type:update')")
  51 + public CommonResult<Boolean> updateMaterialType(@Valid @RequestBody MaterialTypeSaveReqVO updateReqVO) {
  52 + materialTypeService.updateMaterialType(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除物料类型")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:material-type:delete')")
  60 + public CommonResult<Boolean> deleteMaterialType(@RequestParam("id") Long id) {
  61 + materialTypeService.deleteMaterialType(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除物料类型")
  68 + @PreAuthorize("@ss.hasPermission('garden:material-type:delete')")
  69 + public CommonResult<Boolean> deleteMaterialTypeList(@RequestParam("ids") List<Long> ids) {
  70 + materialTypeService.deleteMaterialTypeListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得物料类型")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:material-type:query')")
  78 + public CommonResult<MaterialTypeRespVO> getMaterialType(@RequestParam("id") Long id) {
  79 + MaterialTypeDO materialType = materialTypeService.getMaterialType(id);
  80 + return success(BeanUtils.toBean(materialType, MaterialTypeRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得物料类型分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:material-type:query')")
  86 + public CommonResult<PageResult<MaterialTypeRespVO>> getMaterialTypePage(@Valid MaterialTypePageReqVO pageReqVO) {
  87 + PageResult<MaterialTypeDO> pageResult = materialTypeService.getMaterialTypePage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaterialTypeRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出物料类型 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:material-type:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaterialTypeExcel(@Valid MaterialTypePageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaterialTypeDO> list = materialTypeService.getMaterialTypePage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "物料类型.xls", "数据", MaterialTypeRespVO.class,
  101 + BeanUtils.toBean(list, MaterialTypeRespVO.class));
  102 + }
  103 +
  104 +
  105 + /**
  106 + * 获取物料类型详细信息
  107 + */
  108 + @Operation(summary ="物料类型基础表-耗材类型List")
  109 + @GetMapping(value = "/getMaterialBigTypeList")
  110 + @PreAuthorize("@ss.hasPermission('garden:material-type:query')")
  111 + public CommonResult getInfo() {
  112 + return success(materialTypeService.queryMaterialBigType(null));
  113 + }
  114 +
  115 + /**
  116 + * 获取物料类型详细信息
  117 + */
  118 + @Operation(summary ="物料类型基础表-类别List")
  119 + @GetMapping(value = "/getMaterialMidTypeList")
  120 + @PreAuthorize("@ss.hasPermission('garden:material-type:query')")
  121 + public CommonResult getMaterialMidTypeList(@RequestParam("material_type_id") Long materialTypeId) {
  122 + return success(materialTypeService.queryMaterialMidType(materialTypeId));
  123 + }
  124 +
  125 + /**
  126 + * 获取物料类型详细信息
  127 + */
  128 + @Operation(summary ="物料类型基础表-类别List")
  129 + @GetMapping(value = "/getMaterialDetailTypeList")
  130 + @PreAuthorize("@ss.hasPermission('garden:material-type:query')")
  131 + public CommonResult getMaterialDetailTypeList(@RequestParam("parent_type_id") Long parentTypeId) {
  132 + return success(materialTypeService.queryMaterialDetailType(parentTypeId));
  133 + }
  134 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/MaterialTypeManagerController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype;
  2 +
  3 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeManagerPageReqVO;
  4 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeManagerRespVO;
  5 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeManagerSaveReqVO;
  6 +import org.springframework.web.bind.annotation.*;
  7 +import jakarta.annotation.Resource;
  8 +import org.springframework.validation.annotation.Validated;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import io.swagger.v3.oas.annotations.tags.Tag;
  11 +import io.swagger.v3.oas.annotations.Parameter;
  12 +import io.swagger.v3.oas.annotations.Operation;
  13 +
  14 +import jakarta.validation.*;
  15 +import jakarta.servlet.http.*;
  16 +import java.util.*;
  17 +import java.io.IOException;
  18 +
  19 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  20 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  21 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  22 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  23 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  24 +
  25 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  26 +
  27 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  28 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  29 +
  30 +import com.zteits.urbanops.module.garden.dal.dataobject.materialtype.MaterialTypeManagerDO;
  31 +import com.zteits.urbanops.module.garden.service.materialtype.MaterialTypeManagerService;
  32 +
  33 +@Tag(name = "管理后台 - 耗材类别管理")
  34 +@RestController
  35 +@RequestMapping("/garden/material-type-manager")
  36 +@Validated
  37 +public class MaterialTypeManagerController {
  38 +
  39 + @Resource
  40 + private MaterialTypeManagerService materialTypeManagerService;
  41 +
  42 + @PostMapping("/create")
  43 + @Operation(summary = "创建耗材类别管理")
  44 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:create')")
  45 + public CommonResult<Long> createMaterialTypeManager(@Valid @RequestBody MaterialTypeManagerSaveReqVO createReqVO) {
  46 + return success(materialTypeManagerService.createMaterialTypeManager(createReqVO));
  47 + }
  48 +
  49 + @PutMapping("/update")
  50 + @Operation(summary = "更新耗材类别管理")
  51 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:update')")
  52 + public CommonResult<Boolean> updateMaterialTypeManager(@Valid @RequestBody MaterialTypeManagerSaveReqVO updateReqVO) {
  53 + materialTypeManagerService.updateMaterialTypeManager(updateReqVO);
  54 + return success(true);
  55 + }
  56 +
  57 + @DeleteMapping("/delete")
  58 + @Operation(summary = "删除耗材类别管理")
  59 + @Parameter(name = "id", description = "编号", required = true)
  60 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:delete')")
  61 + public CommonResult<Boolean> deleteMaterialTypeManager(@RequestParam("id") Long id) {
  62 + materialTypeManagerService.deleteMaterialTypeManager(id);
  63 + return success(true);
  64 + }
  65 +
  66 + @DeleteMapping("/delete-list")
  67 + @Parameter(name = "ids", description = "编号", required = true)
  68 + @Operation(summary = "批量删除耗材类别管理")
  69 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:delete')")
  70 + public CommonResult<Boolean> deleteMaterialTypeManagerList(@RequestParam("ids") List<Long> ids) {
  71 + materialTypeManagerService.deleteMaterialTypeManagerListByIds(ids);
  72 + return success(true);
  73 + }
  74 +
  75 + @GetMapping("/get")
  76 + @Operation(summary = "获得耗材类别管理")
  77 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  78 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:query')")
  79 + public CommonResult<MaterialTypeManagerRespVO> getMaterialTypeManager(@RequestParam("id") Long id) {
  80 + MaterialTypeManagerDO materialTypeManager = materialTypeManagerService.getMaterialTypeManager(id);
  81 + return success(BeanUtils.toBean(materialTypeManager, MaterialTypeManagerRespVO.class));
  82 + }
  83 +
  84 + @GetMapping("/page")
  85 + @Operation(summary = "获得耗材类别管理分页")
  86 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:query')")
  87 + public CommonResult<PageResult<MaterialTypeManagerRespVO>> getMaterialTypeManagerPage(@Valid MaterialTypeManagerPageReqVO pageReqVO) {
  88 + PageResult<MaterialTypeManagerDO> pageResult = materialTypeManagerService.getMaterialTypeManagerPage(pageReqVO);
  89 + return success(BeanUtils.toBean(pageResult, MaterialTypeManagerRespVO.class));
  90 + }
  91 +
  92 + @GetMapping("/export-excel")
  93 + @Operation(summary = "导出耗材类别管理 Excel")
  94 + @PreAuthorize("@ss.hasPermission('garden:material-type-manager:export')")
  95 + @ApiAccessLog(operateType = EXPORT)
  96 + public void exportMaterialTypeManagerExcel(@Valid MaterialTypeManagerPageReqVO pageReqVO,
  97 + HttpServletResponse response) throws IOException {
  98 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  99 + List<MaterialTypeManagerDO> list = materialTypeManagerService.getMaterialTypeManagerPage(pageReqVO).getList();
  100 + // 导出 Excel
  101 + ExcelUtils.write(response, "耗材类别管理.xls", "数据", MaterialTypeManagerRespVO.class,
  102 + BeanUtils.toBean(list, MaterialTypeManagerRespVO.class));
  103 + }
  104 +
  105 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeManagerPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 耗材类别管理分页 Request VO")
  13 +@Data
  14 +public class MaterialTypeManagerPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "种类ID", example = "1958")
  17 + private Long classifyId;
  18 +
  19 + @Schema(description = "种类名称", example = "芋艿")
  20 + private String classifyName;
  21 +
  22 + @Schema(description = "类别ID", example = "22418")
  23 + private Long typeId;
  24 +
  25 + @Schema(description = "类别名称", example = "王五")
  26 + private String typeName;
  27 +
  28 + @Schema(description = "类别明细ID", example = "22381")
  29 + private Long typeDetailId;
  30 +
  31 + @Schema(description = "类别明细名称", example = "芋艿")
  32 + private String typeDetailName;
  33 +
  34 + @Schema(description = "公司ID", example = "22461")
  35 + private Long companyId;
  36 +
  37 + @Schema(description = "公司名称", example = "李四")
  38 + private String companyName;
  39 +
  40 + @Schema(description = "数量")
  41 + private Long num;
  42 +
  43 + @Schema(description = "单位ID", example = "26719")
  44 + private Long unitId;
  45 +
  46 + @Schema(description = "单位", example = "张三")
  47 + private String unitName;
  48 +
  49 + @Schema(description = " 描述", example = "你说的对")
  50 + private String remark;
  51 +
  52 + @Schema(description = "状态(0正常 1停用)", example = "1")
  53 + private Integer status;
  54 +
  55 + @Schema(description = "创建者")
  56 + private String creator;
  57 +
  58 + @Schema(description = "创建时间")
  59 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  60 + private LocalDateTime[] createTime;
  61 +
  62 + @Schema(description = "更新者")
  63 + private String updater;
  64 +
  65 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeManagerRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 耗材类别管理 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaterialTypeManagerRespVO {
  14 +
  15 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22778")
  16 + @ExcelProperty("ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "种类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1958")
  20 + @ExcelProperty("种类ID")
  21 + private Long classifyId;
  22 +
  23 + @Schema(description = "种类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  24 + @ExcelProperty("种类名称")
  25 + private String classifyName;
  26 +
  27 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22418")
  28 + @ExcelProperty("类别ID")
  29 + private Long typeId;
  30 +
  31 + @Schema(description = "类别名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  32 + @ExcelProperty("类别名称")
  33 + private String typeName;
  34 +
  35 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22381")
  36 + @ExcelProperty("类别明细ID")
  37 + private Long typeDetailId;
  38 +
  39 + @Schema(description = "类别明细名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  40 + @ExcelProperty("类别明细名称")
  41 + private String typeDetailName;
  42 +
  43 + @Schema(description = "公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22461")
  44 + @ExcelProperty("公司ID")
  45 + private Long companyId;
  46 +
  47 + @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  48 + @ExcelProperty("公司名称")
  49 + private String companyName;
  50 +
  51 + @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
  52 + @ExcelProperty("数量")
  53 + private Long num;
  54 +
  55 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26719")
  56 + @ExcelProperty("单位ID")
  57 + private Long unitId;
  58 +
  59 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  60 + @ExcelProperty("单位")
  61 + private String unitName;
  62 +
  63 + @Schema(description = " 描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
  64 + @ExcelProperty(" 描述")
  65 + private String remark;
  66 +
  67 + @Schema(description = "状态(0正常 1停用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
  68 + @ExcelProperty("状态(0正常 1停用)")
  69 + private Integer status;
  70 +
  71 + @Schema(description = "创建者")
  72 + @ExcelProperty("创建者")
  73 + private String creator;
  74 +
  75 + @Schema(description = "创建时间")
  76 + @ExcelProperty("创建时间")
  77 + private LocalDateTime createTime;
  78 +
  79 + @Schema(description = "更新者")
  80 + @ExcelProperty("更新者")
  81 + private String updater;
  82 +
  83 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeManagerSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 耗材类别管理新增/修改 Request VO")
  9 +@Data
  10 +public class MaterialTypeManagerSaveReqVO {
  11 +
  12 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22778")
  13 + private Long id;
  14 +
  15 + @Schema(description = "种类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1958")
  16 + @NotNull(message = "种类ID不能为空")
  17 + private Long classifyId;
  18 +
  19 + @Schema(description = "种类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  20 + @NotEmpty(message = "种类名称不能为空")
  21 + private String classifyName;
  22 +
  23 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22418")
  24 + @NotNull(message = "类别ID不能为空")
  25 + private Long typeId;
  26 +
  27 + @Schema(description = "类别名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  28 + @NotEmpty(message = "类别名称不能为空")
  29 + private String typeName;
  30 +
  31 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22381")
  32 + @NotNull(message = "类别明细ID不能为空")
  33 + private Long typeDetailId;
  34 +
  35 + @Schema(description = "类别明细名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  36 + @NotEmpty(message = "类别明细名称不能为空")
  37 + private String typeDetailName;
  38 +
  39 + @Schema(description = "公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22461")
  40 + @NotNull(message = "公司ID不能为空")
  41 + private Long companyId;
  42 +
  43 + @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  44 + @NotEmpty(message = "公司名称不能为空")
  45 + private String companyName;
  46 +
  47 + @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
  48 + @NotNull(message = "数量不能为空")
  49 + private Long num;
  50 +
  51 + @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26719")
  52 + @NotNull(message = "单位ID不能为空")
  53 + private Long unitId;
  54 +
  55 + @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  56 + @NotEmpty(message = "单位不能为空")
  57 + private String unitName;
  58 +
  59 + @Schema(description = " 描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
  60 + @NotEmpty(message = " 描述不能为空")
  61 + private String remark;
  62 +
  63 + @Schema(description = "状态(0正常 1停用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
  64 + @NotNull(message = "状态(0正常 1停用)不能为空")
  65 + private Integer status;
  66 +
  67 + @Schema(description = "创建者")
  68 + private String creator;
  69 +
  70 + @Schema(description = "更新者")
  71 + private String updater;
  72 +
  73 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypePageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 物料类型分页 Request VO")
  13 +@Data
  14 +public class MaterialTypePageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "物料类型ID", example = "31914")
  17 + private Long materialTypeId;
  18 +
  19 + @Schema(description = "耗材类型名称:工具", example = "赵六")
  20 + private String materialTypeName;
  21 +
  22 + @Schema(description = "类别ID", example = "13166")
  23 + private Long typeId;
  24 +
  25 + @Schema(description = "类别名称:药品", example = "李四")
  26 + private String typeName;
  27 +
  28 + @Schema(description = "付物料类型ID", example = "4908")
  29 + private Long materialParentTypeId;
  30 +
  31 + @Schema(description = "类别明细ID", example = "2459")
  32 + private Long typeDetailId;
  33 +
  34 + @Schema(description = "类别明细", example = "赵六")
  35 + private String typeDetailName;
  36 +
  37 + @Schema(description = "父类别ID", example = "6341")
  38 + private Long parentTypeId;
  39 +
  40 + @Schema(description = "备注", example = "你猜")
  41 + private String remark;
  42 +
  43 + @Schema(description = "状态(0正常 1停用)", example = "2")
  44 + private String status;
  45 +
  46 + @Schema(description = "创建者")
  47 + private String creator;
  48 +
  49 + @Schema(description = "创建时间")
  50 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  51 + private LocalDateTime[] createTime;
  52 +
  53 + @Schema(description = "更新者")
  54 + private String updater;
  55 +
  56 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeResp.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +/**
  4 + * Copyright: Copyright (c) 2017 zteits
  5 + *
  6 + * @ClassName: MaterialTypeManagerResp.java
  7 + * @Description:
  8 + * @version: v1.0.0
  9 + * @author: wangfs
  10 + * @date: 2024-11-10 13:50
  11 + * Modification History:
  12 + * Date Author Version Description
  13 + * ---------------------------------------------------------*
  14 + * 2024-11-10 wangfs v1.0.0 创建
  15 + */
  16 +
  17 +public class MaterialTypeResp {
  18 +
  19 + private Long value;
  20 +
  21 + private String label;
  22 +
  23 + public Long getValue() {
  24 + return value;
  25 + }
  26 +
  27 + public void setValue(Long value) {
  28 + this.value = value;
  29 + }
  30 +
  31 + public String getLabel() {
  32 + return label;
  33 + }
  34 +
  35 + public void setLabel(String label) {
  36 + this.label = label;
  37 + }
  38 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 物料类型 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaterialTypeRespVO {
  14 +
  15 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23621")
  16 + @ExcelProperty("物料ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31914")
  20 + @ExcelProperty("物料类型ID")
  21 + private Long materialTypeId;
  22 +
  23 + @Schema(description = "耗材类型名称:工具", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  24 + @ExcelProperty("耗材类型名称:工具")
  25 + private String materialTypeName;
  26 +
  27 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13166")
  28 + @ExcelProperty("类别ID")
  29 + private Long typeId;
  30 +
  31 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  32 + @ExcelProperty("类别名称:药品")
  33 + private String typeName;
  34 +
  35 + @Schema(description = "付物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4908")
  36 + @ExcelProperty("付物料类型ID")
  37 + private Long materialParentTypeId;
  38 +
  39 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2459")
  40 + @ExcelProperty("类别明细ID")
  41 + private Long typeDetailId;
  42 +
  43 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  44 + @ExcelProperty("类别明细")
  45 + private String typeDetailName;
  46 +
  47 + @Schema(description = "父类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6341")
  48 + @ExcelProperty("父类别ID")
  49 + private Long parentTypeId;
  50 +
  51 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  52 + @ExcelProperty("备注")
  53 + private String remark;
  54 +
  55 + @Schema(description = "状态(0正常 1停用)", example = "2")
  56 + @ExcelProperty("状态(0正常 1停用)")
  57 + private String status;
  58 +
  59 + @Schema(description = "创建者")
  60 + @ExcelProperty("创建者")
  61 + private String creator;
  62 +
  63 + @Schema(description = "创建时间")
  64 + @ExcelProperty("创建时间")
  65 + private LocalDateTime createTime;
  66 +
  67 + @Schema(description = "更新者")
  68 + @ExcelProperty("更新者")
  69 + private String updater;
  70 +
  71 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/materialtype/vo/MaterialTypeSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.materialtype.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 物料类型新增/修改 Request VO")
  9 +@Data
  10 +public class MaterialTypeSaveReqVO {
  11 +
  12 + @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23621")
  13 + private Long id;
  14 +
  15 + @Schema(description = "物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31914")
  16 + @NotNull(message = "物料类型ID不能为空")
  17 + private Long materialTypeId;
  18 +
  19 + @Schema(description = "耗材类型名称:工具", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  20 + @NotEmpty(message = "耗材类型名称:工具不能为空")
  21 + private String materialTypeName;
  22 +
  23 + @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13166")
  24 + @NotNull(message = "类别ID不能为空")
  25 + private Long typeId;
  26 +
  27 + @Schema(description = "类别名称:药品", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  28 + @NotEmpty(message = "类别名称:药品不能为空")
  29 + private String typeName;
  30 +
  31 + @Schema(description = "付物料类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4908")
  32 + private Long materialParentTypeId;
  33 +
  34 + @Schema(description = "类别明细ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2459")
  35 + private Long typeDetailId;
  36 +
  37 + @Schema(description = "类别明细", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  38 + @NotEmpty(message = "类别明细不能为空")
  39 + private String typeDetailName;
  40 +
  41 + @Schema(description = "父类别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6341")
  42 + private Long parentTypeId;
  43 +
  44 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  45 + private String remark;
  46 +
  47 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/road/RoadController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.road;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.road.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.road.RoadDO;
  30 +import com.zteits.urbanops.module.garden.service.road.RoadService;
  31 +
  32 +@Tag(name = "管理后台 - 道路管理")
  33 +@RestController
  34 +@RequestMapping("/garden/road")
  35 +@Validated
  36 +public class RoadController {
  37 +
  38 + @Resource
  39 + private RoadService roadService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建道路管理")
  43 + @PreAuthorize("@ss.hasPermission('garden:road:create')")
  44 + public CommonResult<Long> createRoad(@Valid @RequestBody RoadSaveReqVO createReqVO) {
  45 + return success(roadService.createRoad(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新道路管理")
  50 + @PreAuthorize("@ss.hasPermission('garden:road:update')")
  51 + public CommonResult<Boolean> updateRoad(@Valid @RequestBody RoadSaveReqVO updateReqVO) {
  52 + roadService.updateRoad(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除道路管理")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:road:delete')")
  60 + public CommonResult<Boolean> deleteRoad(@RequestParam("id") Long id) {
  61 + roadService.deleteRoad(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除道路管理")
  68 + @PreAuthorize("@ss.hasPermission('garden:road:delete')")
  69 + public CommonResult<Boolean> deleteRoadList(@RequestParam("ids") List<Long> ids) {
  70 + roadService.deleteRoadListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得道路管理")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:road:query')")
  78 + public CommonResult<RoadRespVO> getRoad(@RequestParam("id") Long id) {
  79 + RoadDO road = roadService.getRoad(id);
  80 + return success(BeanUtils.toBean(road, RoadRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得道路管理分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:road:query')")
  86 + public CommonResult<PageResult<RoadRespVO>> getRoadPage(@Valid RoadPageReqVO pageReqVO) {
  87 + PageResult<RoadDO> pageResult = roadService.getRoadPage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, RoadRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出道路管理 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:road:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportRoadExcel(@Valid RoadPageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<RoadDO> list = roadService.getRoadPage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "道路管理.xls", "数据", RoadRespVO.class,
  101 + BeanUtils.toBean(list, RoadRespVO.class));
  102 + }
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/road/vo/RoadPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.road.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 道路管理分页 Request VO")
  13 +@Data
  14 +public class RoadPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "道路名称", example = "赵六")
  17 + private String roadName;
  18 +
  19 + @Schema(description = "街道ID", example = "30480")
  20 + private String streetId;
  21 +
  22 + @Schema(description = "街道名称", example = "赵六")
  23 + private String streetName;
  24 +
  25 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", example = "26337")
  26 + private Integer levelId;
  27 +
  28 + @Schema(description = "行道树绿化面积")
  29 + private String greenBeltTreeArea;
  30 +
  31 + @Schema(description = "绿化带面积")
  32 + private String greenBeltArea;
  33 +
  34 + @Schema(description = "总绿化带面积")
  35 + private String totalArea;
  36 +
  37 + @Schema(description = "行道树(棵)面积")
  38 + private String treeArea;
  39 +
  40 + @Schema(description = "起点经度")
  41 + private String startingLatitude;
  42 +
  43 + @Schema(description = "起点维度")
  44 + private String startingLongitude;
  45 +
  46 + @Schema(description = "起点描述", example = "你猜")
  47 + private String startingRemark;
  48 +
  49 + @Schema(description = "终点经度")
  50 + private String endLatitude;
  51 +
  52 + @Schema(description = "终点维度")
  53 + private String endLongitude;
  54 +
  55 + @Schema(description = "终点描述", example = "你猜")
  56 + private String endRemark;
  57 +
  58 + @Schema(description = "备注", example = "你猜")
  59 + private String remark;
  60 +
  61 + @Schema(description = "归属(一级部门id)", example = "2323")
  62 + private Long companyId;
  63 +
  64 + @Schema(description = "部门ID(道路负责部门id)", example = "13872")
  65 + private Long deptId;
  66 +
  67 + @Schema(description = "创建者", example = "赵六")
  68 + private String creatorName;
  69 +
  70 + @Schema(description = "创建时间")
  71 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  72 + private LocalDateTime[] createTime;
  73 +
  74 + @Schema(description = "更新者", example = "芋艿")
  75 + private String updaterName;
  76 +
  77 +}
0 \ No newline at end of file 78 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/road/vo/RoadRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.road.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 道路管理 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class RoadRespVO {
  14 +
  15 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15456")
  16 + @ExcelProperty("ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "道路名称", example = "赵六")
  20 + @ExcelProperty("道路名称")
  21 + private String roadName;
  22 +
  23 + @Schema(description = "街道ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30480")
  24 + @ExcelProperty("街道ID")
  25 + private String streetId;
  26 +
  27 + @Schema(description = "街道名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  28 + @ExcelProperty("街道名称")
  29 + private String streetName;
  30 +
  31 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", requiredMode = Schema.RequiredMode.REQUIRED, example = "26337")
  32 + @ExcelProperty("养护级别: 10:特级;11:一级:12:二级;13:三级")
  33 + private Integer levelId;
  34 +
  35 + @Schema(description = "行道树绿化面积", requiredMode = Schema.RequiredMode.REQUIRED)
  36 + @ExcelProperty("行道树绿化面积")
  37 + private String greenBeltTreeArea;
  38 +
  39 + @Schema(description = "绿化带面积", requiredMode = Schema.RequiredMode.REQUIRED)
  40 + @ExcelProperty("绿化带面积")
  41 + private String greenBeltArea;
  42 +
  43 + @Schema(description = "总绿化带面积", requiredMode = Schema.RequiredMode.REQUIRED)
  44 + @ExcelProperty("总绿化带面积")
  45 + private String totalArea;
  46 +
  47 + @Schema(description = "行道树(棵)面积", requiredMode = Schema.RequiredMode.REQUIRED)
  48 + @ExcelProperty("行道树(棵)面积")
  49 + private String treeArea;
  50 +
  51 + @Schema(description = "起点经度", requiredMode = Schema.RequiredMode.REQUIRED)
  52 + @ExcelProperty("起点经度")
  53 + private String startingLatitude;
  54 +
  55 + @Schema(description = "起点维度", requiredMode = Schema.RequiredMode.REQUIRED)
  56 + @ExcelProperty("起点维度")
  57 + private String startingLongitude;
  58 +
  59 + @Schema(description = "起点描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  60 + @ExcelProperty("起点描述")
  61 + private String startingRemark;
  62 +
  63 + @Schema(description = "终点经度", requiredMode = Schema.RequiredMode.REQUIRED)
  64 + @ExcelProperty("终点经度")
  65 + private String endLatitude;
  66 +
  67 + @Schema(description = "终点维度", requiredMode = Schema.RequiredMode.REQUIRED)
  68 + @ExcelProperty("终点维度")
  69 + private String endLongitude;
  70 +
  71 + @Schema(description = "终点描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  72 + @ExcelProperty("终点描述")
  73 + private String endRemark;
  74 +
  75 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  76 + @ExcelProperty("备注")
  77 + private String remark;
  78 +
  79 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2323")
  80 + @ExcelProperty("归属(一级部门id)")
  81 + private Long companyId;
  82 +
  83 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "13872")
  84 + @ExcelProperty("部门ID(道路负责部门id)")
  85 + private Long deptId;
  86 +
  87 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  88 + @ExcelProperty("创建者")
  89 + private String creatorName;
  90 +
  91 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  92 + @ExcelProperty("创建时间")
  93 + private LocalDateTime createTime;
  94 +
  95 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  96 + @ExcelProperty("更新者")
  97 + private String updaterName;
  98 +
  99 +}
0 \ No newline at end of file 100 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/road/vo/RoadSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.road.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 道路管理新增/修改 Request VO")
  9 +@Data
  10 +public class RoadSaveReqVO {
  11 +
  12 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15456")
  13 + private Long id;
  14 +
  15 + @Schema(description = "道路名称", example = "赵六")
  16 + private String roadName;
  17 +
  18 + @Schema(description = "街道ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30480")
  19 + @NotEmpty(message = "街道ID不能为空")
  20 + private String streetId;
  21 +
  22 + @Schema(description = "街道名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  23 + @NotEmpty(message = "街道名称不能为空")
  24 + private String streetName;
  25 +
  26 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", requiredMode = Schema.RequiredMode.REQUIRED, example = "26337")
  27 + @NotNull(message = "养护级别: 10:特级;11:一级:12:二级;13:三级不能为空")
  28 + private Integer levelId;
  29 +
  30 + @Schema(description = "行道树绿化面积", requiredMode = Schema.RequiredMode.REQUIRED)
  31 + @NotEmpty(message = "行道树绿化面积不能为空")
  32 + private String greenBeltTreeArea;
  33 +
  34 + @Schema(description = "绿化带面积", requiredMode = Schema.RequiredMode.REQUIRED)
  35 + @NotEmpty(message = "绿化带面积不能为空")
  36 + private String greenBeltArea;
  37 +
  38 + @Schema(description = "总绿化带面积", requiredMode = Schema.RequiredMode.REQUIRED)
  39 + @NotEmpty(message = "总绿化带面积不能为空")
  40 + private String totalArea;
  41 +
  42 + @Schema(description = "行道树(棵)面积", requiredMode = Schema.RequiredMode.REQUIRED)
  43 + @NotEmpty(message = "行道树(棵)面积不能为空")
  44 + private String treeArea;
  45 +
  46 + @Schema(description = "起点经度", requiredMode = Schema.RequiredMode.REQUIRED)
  47 + @NotEmpty(message = "起点经度不能为空")
  48 + private String startingLatitude;
  49 +
  50 + @Schema(description = "起点维度", requiredMode = Schema.RequiredMode.REQUIRED)
  51 + @NotEmpty(message = "起点维度不能为空")
  52 + private String startingLongitude;
  53 +
  54 + @Schema(description = "起点描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  55 + @NotEmpty(message = "起点描述不能为空")
  56 + private String startingRemark;
  57 +
  58 + @Schema(description = "终点经度", requiredMode = Schema.RequiredMode.REQUIRED)
  59 + @NotEmpty(message = "终点经度不能为空")
  60 + private String endLatitude;
  61 +
  62 + @Schema(description = "终点维度", requiredMode = Schema.RequiredMode.REQUIRED)
  63 + @NotEmpty(message = "终点维度不能为空")
  64 + private String endLongitude;
  65 +
  66 + @Schema(description = "终点描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  67 + @NotEmpty(message = "终点描述不能为空")
  68 + private String endRemark;
  69 +
  70 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  71 + @NotEmpty(message = "备注不能为空")
  72 + private String remark;
  73 +
  74 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2323")
  75 + @NotNull(message = "归属(一级部门id)不能为空")
  76 + private Long companyId;
  77 +
  78 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "13872")
  79 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  80 + private Long deptId;
  81 +
  82 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  83 + @NotEmpty(message = "创建者不能为空")
  84 + private String creatorName;
  85 +
  86 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  87 + @NotEmpty(message = "更新者不能为空")
  88 + private String updaterName;
  89 +
  90 +}
0 \ No newline at end of file 91 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/RoadManagerController.java deleted
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 -}  
104 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/vo/RoadManagerPageReqVO.java deleted
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 -}  
26 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/roadmanager/vo/RoadManagerSaveReqVO.java deleted
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 -}  
35 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/standingbook/StandingBookController.java deleted
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 -}  
36 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/standingbook/vo/StandingBookPageReqVO.java deleted
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 -}  
10 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/AppMaterialTypeController.java deleted
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 -}  
44 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/MaterialTypeController.java deleted
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 -}  
92 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeAddReqVO.java deleted
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 -}  
30 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeEditReqVO.java deleted
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 -}  
38 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypeManagerRespVO.java deleted
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 -}  
12 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/business/vo/MaterialTypePageReqVO.java deleted
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 -}  
19 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotline/HotlineCaseDO.java deleted
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 -}  
26 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotline/HotlineFileDO.java deleted
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 -}  
17 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotlinecase/HotlineCaseDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.hotlinecase;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import java.time.LocalDateTime;
  8 +import java.time.LocalDateTime;
  9 +import java.time.LocalDateTime;
  10 +import java.time.LocalDateTime;
  11 +import java.time.LocalDateTime;
  12 +import java.time.LocalDateTime;
  13 +import java.time.LocalDateTime;
  14 +import com.baomidou.mybatisplus.annotation.*;
  15 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  16 +
  17 +/**
  18 + * 12345案件信息 DO
  19 + *
  20 + * @author 超级管理员
  21 + */
  22 +@TableName("garden_hotline_case")
  23 +@KeySequence("garden_hotline_case_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  24 +@Data
  25 +@EqualsAndHashCode(callSuper = true)
  26 +@ToString(callSuper = true)
  27 +@Builder
  28 +@NoArgsConstructor
  29 +@AllArgsConstructor
  30 +public class HotlineCaseDO extends BaseDO {
  31 +
  32 + /**
  33 + * id
  34 + */
  35 + @TableId(type = IdType.INPUT)
  36 + private String id;
  37 + /**
  38 + * 工单编号
  39 + */
  40 + private String hotlinenumber;
  41 + /**
  42 + * 12345工单文件
  43 + */
  44 + private String casefile;
  45 + /**
  46 + * 事间来源:默认12345
  47 + */
  48 + private String eventsouce;
  49 + /**
  50 + * 工单来源:集团 分公司
  51 + */
  52 + private String casesource;
  53 + /**
  54 + * 市级编号
  55 + */
  56 + private String citynum;
  57 + /**
  58 + * 区级编号
  59 + */
  60 + private String regionnum;
  61 + /**
  62 + * 工单状态
  63 + */
  64 + private String taskstate;
  65 + /**
  66 + * 权属信息 null 无 0权属 1非权属
  67 + */
  68 + private String ownership;
  69 + /**
  70 + * 部门信息
  71 + */
  72 + private String department;
  73 + /**
  74 + * 所属街道
  75 + */
  76 + private String street;
  77 + /**
  78 + * 所属公司
  79 + */
  80 + private String companyid;
  81 + /**
  82 + * 来电人姓名
  83 + */
  84 + private String callName;
  85 + /**
  86 + * 来电人手机号
  87 + */
  88 + private String callTel;
  89 + /**
  90 + * 接件时间
  91 + */
  92 + private LocalDateTime acceptcasetime;
  93 + /**
  94 + * 截止时间
  95 + */
  96 + private LocalDateTime endTime;
  97 + /**
  98 + * 详细地址
  99 + */
  100 + private String address;
  101 + /**
  102 + * 工单内容
  103 + */
  104 + private String content;
  105 + /**
  106 + * 工单照片
  107 + */
  108 + private String casepic;
  109 + /**
  110 + * 是否派巡查
  111 + */
  112 + private String dispatcher;
  113 + /**
  114 + * 巡查员
  115 + */
  116 + private String dispperson;
  117 + /**
  118 + * 完成情况
  119 + */
  120 + private String replyResult;
  121 + /**
  122 + * 完成图片1
  123 + */
  124 + private String picResult1;
  125 + /**
  126 + * 完成图片2
  127 + */
  128 + private String picResult2;
  129 + /**
  130 + * 完成图片3
  131 + */
  132 + private String picResult3;
  133 + /**
  134 + * 工单完成时间
  135 + */
  136 + private LocalDateTime finishTime;
  137 + /**
  138 + * 回复居民时间
  139 + */
  140 + private LocalDateTime replayrtime;
  141 + /**
  142 + * 权属单位
  143 + */
  144 + private String ownercompany;
  145 + /**
  146 + * 工单类型
  147 + */
  148 + private String casetype;
  149 + /**
  150 + * 办理结果:字典
  151 + */
  152 + private String handingresult;
  153 + /**
  154 + * 处理情况
  155 + */
  156 + private String resolvedesp;
  157 + /**
  158 + * 处理情况
  159 + */
  160 + private String rstResolvedesp;
  161 + /**
  162 + * 转单人
  163 + */
  164 + private String dealBy;
  165 + /**
  166 + * 上报时间
  167 + */
  168 + private LocalDateTime dealTime;
  169 + /**
  170 + * 创建人
  171 + */
  172 + private String createBy;
  173 + /**
  174 + * 修改人
  175 + */
  176 + private String updateBy;
  177 + /**
  178 + * 结果录入人
  179 + */
  180 + private String replayBy;
  181 + /**
  182 + * 回复时间,结果录入时间
  183 + */
  184 + private LocalDateTime replayTime;
  185 + /**
  186 + * 确认权属人
  187 + */
  188 + private String ownershipBy;
  189 + /**
  190 + * 确认权属时间
  191 + */
  192 + private LocalDateTime ownershipTime;
  193 + /**
  194 + * 防止重复派单:1已经发送
  195 + */
  196 + private String reserve1;
  197 + /**
  198 + * 小程序派单状态:1 待派单,2 派单中 3 派单处理完成
  199 + */
  200 + private String reserve2;
  201 + /**
  202 + * 备注3
  203 + */
  204 + private String reserve3;
  205 +
  206 +
  207 +}
0 \ No newline at end of file 208 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/hotlinefile/HotlineFileDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.hotlinefile;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import com.baomidou.mybatisplus.annotation.*;
  7 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  8 +
  9 +/**
  10 + * 12345案件-文件 DO
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +@TableName("garden_hotline_file")
  15 +@KeySequence("garden_hotline_file_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  16 +@Data
  17 +@EqualsAndHashCode(callSuper = true)
  18 +@ToString(callSuper = true)
  19 +@Builder
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +public class HotlineFileDO extends BaseDO {
  23 +
  24 + /**
  25 + * 12345案件id
  26 + */
  27 + @TableId(type = IdType.INPUT)
  28 + private String caseId;
  29 + /**
  30 + * 文件id
  31 + */
  32 + private String fileid;
  33 + /**
  34 + * 文件类型(办理文件、挂账文件、剔除文件等)
  35 + */
  36 + private String filetype;
  37 + /**
  38 + * 文件上传时间
  39 + */
  40 + private LocalDateTime updatetime;
  41 +
  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/dal/dataobject/maintainrate/MaintainRateDO.java deleted
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 -}  
43 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialDO.java
1 package com.zteits.urbanops.module.garden.dal.dataobject.material; 1 package com.zteits.urbanops.module.garden.dal.dataobject.material;
2 2
3 -import com.baomidou.mybatisplus.annotation.TableId;  
4 -import com.baomidou.mybatisplus.annotation.TableName; 3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
5 import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO; 8 import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
6 -import lombok.Data;  
7 9
  10 +/**
  11 + * 耗材管理 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
8 @TableName("garden_material") 15 @TableName("garden_material")
  16 +@KeySequence("garden_material_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
9 @Data 17 @Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
10 public class MaterialDO extends BaseDO { 23 public class MaterialDO extends BaseDO {
  24 +
  25 + /**
  26 + * 耗材ID
  27 + */
11 @TableId 28 @TableId
12 private Long materialId; 29 private Long materialId;
  30 + /**
  31 + * 完整编码
  32 + */
13 private String fullCode; 33 private String fullCode;
  34 + /**
  35 + * 物料编码
  36 + */
14 private String materialCode; 37 private String materialCode;
  38 + /**
  39 + * 耗材名称
  40 + */
15 private String materialName; 41 private String materialName;
  42 + /**
  43 + * 耗材类型ID
  44 + */
16 private Long materialTypeId; 45 private Long materialTypeId;
  46 + /**
  47 + * 耗材类型名称
  48 + */
17 private String materialTypeName; 49 private String materialTypeName;
  50 + /**
  51 + * 类别ID
  52 + */
18 private Long typeId; 53 private Long typeId;
  54 + /**
  55 + * 类别名称:药品
  56 + */
19 private String typeName; 57 private String typeName;
  58 + /**
  59 + * 类别明细ID
  60 + */
20 private Long typeDetailId; 61 private Long typeDetailId;
  62 + /**
  63 + * 类别明细
  64 + */
21 private String typeDetailName; 65 private String typeDetailName;
  66 + /**
  67 + * 规格编码
  68 + */
22 private String specCode; 69 private String specCode;
  70 + /**
  71 + * 规格
  72 + */
23 private String specifications; 73 private String specifications;
24 - private Long unitId;  
25 - private String unitName; 74 + /**
  75 + * 归属公司ID
  76 + */
26 private Long belongCompanyId; 77 private Long belongCompanyId;
  78 + /**
  79 + * 归属公司
  80 + */
27 private String belongCompanyName; 81 private String belongCompanyName;
28 - private String status; 82 + /**
  83 + * 单位ID
  84 + */
  85 + private Long unitId;
  86 + /**
  87 + * 单位
  88 + */
  89 + private String unitName;
  90 + /**
  91 + * 备注
  92 + */
  93 + private String remark;
  94 + /**
  95 + * 是否关联工单:0-否,1-是
  96 + */
29 private Integer isAssociatedOrder; 97 private Integer isAssociatedOrder;
30 -}  
31 \ No newline at end of file 98 \ No newline at end of file
  99 +
  100 +
  101 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryDO.java deleted
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 -}  
33 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryInDO.java deleted
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 -}  
39 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialInventoryOutDO.java deleted
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 -}  
35 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/material/MaterialTypeDO.java deleted
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 -}  
17 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/materialinventory/MaterialInventoryDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.materialinventory;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
  8 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  9 +
  10 +/**
  11 + * 物料库存 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@TableName("garden_material_inventory")
  16 +@KeySequence("garden_material_inventory_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  17 +@Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +public class MaterialInventoryDO extends BaseDO {
  24 +
  25 + /**
  26 + * 库存ID
  27 + */
  28 + @TableId
  29 + private Long inventoryId;
  30 + /**
  31 + * 物料ID
  32 + */
  33 + private Long materialId;
  34 + /**
  35 + * 物料名称
  36 + */
  37 + private String materialName;
  38 + /**
  39 + * 物料类型ID
  40 + */
  41 + private Long materialTypeId;
  42 + /**
  43 + * 耗材类型名称
  44 + */
  45 + private String materialTypeName;
  46 + /**
  47 + * 类别ID
  48 + */
  49 + private Long typeId;
  50 + /**
  51 + * 类别名称:药品
  52 + */
  53 + private String typeName;
  54 + /**
  55 + * 类别明细ID
  56 + */
  57 + private Long typeDetailId;
  58 + /**
  59 + * 类别明细
  60 + */
  61 + private String typeDetailName;
  62 + /**
  63 + * 规格
  64 + */
  65 + private String specifications;
  66 + /**
  67 + * 归属单位ID
  68 + */
  69 + private Long belongCompanyId;
  70 + /**
  71 + * 归属单位
  72 + */
  73 + private String belongCompanyName;
  74 + /**
  75 + * 单位ID
  76 + */
  77 + private Long unitId;
  78 + /**
  79 + * 单位
  80 + */
  81 + private String unitName;
  82 + /**
  83 + * 当前库存数量
  84 + */
  85 + private Long currentNum;
  86 + /**
  87 + * 出库总数量(出库累加)
  88 + */
  89 + private Long outTotalNum;
  90 + /**
  91 + * 库存总数量(入库累加)
  92 + */
  93 + private Long inventoryTotalNum;
  94 + /**
  95 + * 库存预警阈值
  96 + */
  97 + private Long inventoryAlermNum;
  98 + /**
  99 + * 部门ID
  100 + */
  101 + private Long deptId;
  102 +
  103 +
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/materialinventoryin/MaterialInventoryInDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryin;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.math.BigDecimal;
  6 +import java.time.LocalDateTime;
  7 +import java.time.LocalDateTime;
  8 +import java.time.LocalDateTime;
  9 +import com.baomidou.mybatisplus.annotation.*;
  10 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  11 +
  12 +/**
  13 + * 物料入库 DO
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@TableName("garden_material_inventory_in")
  18 +@KeySequence("garden_material_inventory_in_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  19 +@Data
  20 +@EqualsAndHashCode(callSuper = true)
  21 +@ToString(callSuper = true)
  22 +@Builder
  23 +@NoArgsConstructor
  24 +@AllArgsConstructor
  25 +public class MaterialInventoryInDO extends BaseDO {
  26 +
  27 + /**
  28 + * 入库ID
  29 + */
  30 + @TableId
  31 + private Long id;
  32 + /**
  33 + * 入库批次号
  34 + */
  35 + private String inventoryInNo;
  36 + /**
  37 + * 物料ID
  38 + */
  39 + private Long materialId;
  40 + /**
  41 + * 物料名称
  42 + */
  43 + private String materialName;
  44 + /**
  45 + * 物料类型ID
  46 + */
  47 + private Long materialTypeId;
  48 + /**
  49 + * 耗材类型名称
  50 + */
  51 + private String materialTypeName;
  52 + /**
  53 + * 类别ID
  54 + */
  55 + private Long typeId;
  56 + /**
  57 + * 类别名称:药品
  58 + */
  59 + private String typeName;
  60 + /**
  61 + * 类别明细ID
  62 + */
  63 + private Long typeDetailId;
  64 + /**
  65 + * 类别明细
  66 + */
  67 + private String typeDetailName;
  68 + /**
  69 + * 规格
  70 + */
  71 + private String specifications;
  72 + /**
  73 + * 归属单位ID
  74 + */
  75 + private Long belongCompanyId;
  76 + /**
  77 + * 归属单位
  78 + */
  79 + private String belongCompanyName;
  80 + /**
  81 + * 入库数量
  82 + */
  83 + private Long inInventoryNum;
  84 + /**
  85 + * 单价
  86 + */
  87 + private BigDecimal materialPrice;
  88 + /**
  89 + * 单位ID
  90 + */
  91 + private Long unitId;
  92 + /**
  93 + * 单位
  94 + */
  95 + private String unitName;
  96 + /**
  97 + * 采购日期
  98 + */
  99 + private LocalDateTime buyDate;
  100 + /**
  101 + * 供应商名称
  102 + */
  103 + private String supplierName;
  104 + /**
  105 + * 联系人
  106 + */
  107 + private String contactsName;
  108 + /**
  109 + * 联系人 电话
  110 + */
  111 + private String contactsPhone;
  112 + /**
  113 + * 部门ID
  114 + */
  115 + private Long deptId;
  116 +
  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/dal/dataobject/materialinventoryout/MaterialInventoryOutDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryout;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import java.time.LocalDateTime;
  8 +import com.baomidou.mybatisplus.annotation.*;
  9 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  10 +
  11 +/**
  12 + * 物料出库 DO
  13 + *
  14 + * @author 超级管理员
  15 + */
  16 +@TableName("garden_material_inventory_out")
  17 +@KeySequence("garden_material_inventory_out_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  18 +@Data
  19 +@EqualsAndHashCode(callSuper = true)
  20 +@ToString(callSuper = true)
  21 +@Builder
  22 +@NoArgsConstructor
  23 +@AllArgsConstructor
  24 +public class MaterialInventoryOutDO extends BaseDO {
  25 +
  26 + /**
  27 + * 入库ID
  28 + */
  29 + @TableId
  30 + private Long id;
  31 + /**
  32 + * 入库批次号
  33 + */
  34 + private String inventoryOutNo;
  35 + /**
  36 + * 物料ID
  37 + */
  38 + private Long materialId;
  39 + /**
  40 + * 物料名称
  41 + */
  42 + private String materialName;
  43 + /**
  44 + * 物料类型ID
  45 + */
  46 + private Long materialTypeId;
  47 + /**
  48 + * 耗材类型名称
  49 + */
  50 + private String materialTypeName;
  51 + /**
  52 + * 类别ID
  53 + */
  54 + private Long typeId;
  55 + /**
  56 + * 类别名称:药品
  57 + */
  58 + private String typeName;
  59 + /**
  60 + * 类别明细ID
  61 + */
  62 + private Long typeDetailId;
  63 + /**
  64 + * 类别明细
  65 + */
  66 + private String typeDetailName;
  67 + /**
  68 + * 规格
  69 + */
  70 + private String specifications;
  71 + /**
  72 + * 归属单位ID
  73 + */
  74 + private Long belongCompanyId;
  75 + /**
  76 + * 归属单位
  77 + */
  78 + private String belongCompanyName;
  79 + /**
  80 + * 出库数量
  81 + */
  82 + private Long outInventoryNum;
  83 + /**
  84 + * 单位ID
  85 + */
  86 + private Long unitId;
  87 + /**
  88 + * 单位
  89 + */
  90 + private String unitName;
  91 + /**
  92 + * 出库日期
  93 + */
  94 + private LocalDateTime outDate;
  95 + /**
  96 + * 备注
  97 + */
  98 + private String remark;
  99 + /**
  100 + * 部门ID
  101 + */
  102 + private Long deptId;
  103 + /**
  104 + * 类型: 1:手动出库;2:养护类出库
  105 + */
  106 + private Integer type;
  107 +
  108 +
  109 +}
0 \ No newline at end of file 110 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/materialtype/MaterialTypeDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.materialtype;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
  8 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  9 +
  10 +/**
  11 + * 物料类型 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@TableName("garden_material_type")
  16 +@KeySequence("garden_material_type_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  17 +@Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +public class MaterialTypeDO extends BaseDO {
  24 +
  25 + /**
  26 + * 物料ID
  27 + */
  28 + @TableId
  29 + private Long id;
  30 + /**
  31 + * 物料类型ID
  32 + */
  33 + private Long materialTypeId;
  34 + /**
  35 + * 耗材类型名称:工具
  36 + */
  37 + private String materialTypeName;
  38 + /**
  39 + * 类别ID
  40 + */
  41 + private Long typeId;
  42 + /**
  43 + * 类别名称:药品
  44 + */
  45 + private String typeName;
  46 + /**
  47 + * 付物料类型ID
  48 + */
  49 + private Long materialParentTypeId;
  50 + /**
  51 + * 类别明细ID
  52 + */
  53 + private Long typeDetailId;
  54 + /**
  55 + * 类别明细
  56 + */
  57 + private String typeDetailName;
  58 + /**
  59 + * 父类别ID
  60 + */
  61 + private Long parentTypeId;
  62 + /**
  63 + * 备注
  64 + */
  65 + private String remark;
  66 +
  67 +
  68 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/materialtype/MaterialTypeManagerDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.materialtype;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
  8 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  9 +
  10 +/**
  11 + * 耗材类别管理 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@TableName("garden_material_type_manager")
  16 +@KeySequence("garden_material_type_manager_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  17 +@Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +public class MaterialTypeManagerDO extends BaseDO {
  24 +
  25 + /**
  26 + * ID
  27 + */
  28 + @TableId
  29 + private Long id;
  30 + /**
  31 + * 种类ID
  32 + */
  33 + private Long classifyId;
  34 + /**
  35 + * 种类名称
  36 + */
  37 + private String classifyName;
  38 + /**
  39 + * 类别ID
  40 + */
  41 + private Long typeId;
  42 + /**
  43 + * 类别名称
  44 + */
  45 + private String typeName;
  46 + /**
  47 + * 类别明细ID
  48 + */
  49 + private Long typeDetailId;
  50 + /**
  51 + * 类别明细名称
  52 + */
  53 + private String typeDetailName;
  54 + /**
  55 + * 公司ID
  56 + */
  57 + private Long companyId;
  58 + /**
  59 + * 公司名称
  60 + */
  61 + private String companyName;
  62 + /**
  63 + * 数量
  64 + */
  65 + private Long num;
  66 + /**
  67 + * 单位ID
  68 + */
  69 + private Long unitId;
  70 + /**
  71 + * 单位
  72 + */
  73 + private String unitName;
  74 + /**
  75 + * 描述
  76 + */
  77 + private String remark;
  78 + /**
  79 + * 状态(0正常 1停用)
  80 + */
  81 + private Integer status;
  82 +
  83 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/road/RoadDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.road;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
  8 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  9 +
  10 +/**
  11 + * 道路管理 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@TableName("garden_road")
  16 +@KeySequence("garden_road_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  17 +@Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +public class RoadDO extends BaseDO {
  24 +
  25 + /**
  26 + * ID
  27 + */
  28 + @TableId
  29 + private Long id;
  30 + /**
  31 + * 道路名称
  32 + */
  33 + private String roadName;
  34 + /**
  35 + * 街道ID
  36 + */
  37 + private String streetId;
  38 + /**
  39 + * 街道名称
  40 + */
  41 + private String streetName;
  42 + /**
  43 + * 养护级别: 10:特级;11:一级:12:二级;13:三级
  44 + */
  45 + private Integer levelId;
  46 + /**
  47 + * 行道树绿化面积
  48 + */
  49 + private String greenBeltTreeArea;
  50 + /**
  51 + * 绿化带面积
  52 + */
  53 + private String greenBeltArea;
  54 + /**
  55 + * 总绿化带面积
  56 + */
  57 + private String totalArea;
  58 + /**
  59 + * 行道树(棵)面积
  60 + */
  61 + private String treeArea;
  62 + /**
  63 + * 起点经度
  64 + */
  65 + private String startingLatitude;
  66 + /**
  67 + * 起点维度
  68 + */
  69 + private String startingLongitude;
  70 + /**
  71 + * 起点描述
  72 + */
  73 + private String startingRemark;
  74 + /**
  75 + * 终点经度
  76 + */
  77 + private String endLatitude;
  78 + /**
  79 + * 终点维度
  80 + */
  81 + private String endLongitude;
  82 + /**
  83 + * 终点描述
  84 + */
  85 + private String endRemark;
  86 + /**
  87 + * 备注
  88 + */
  89 + private String remark;
  90 + /**
  91 + * 归属(一级部门id)
  92 + */
  93 + private Long companyId;
  94 + /**
  95 + * 部门ID(道路负责部门id)
  96 + */
  97 + private Long deptId;
  98 + /**
  99 + * 创建者
  100 + */
  101 + private String creatorName;
  102 + /**
  103 + * 更新者
  104 + */
  105 + private String updaterName;
  106 +
  107 +
  108 +}
0 \ No newline at end of file 109 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/road/RoadManagerDO.java deleted
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 -}  
37 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/standingbook/StandingBookDO.java deleted
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 -}  
17 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/hotline/HotlineCaseMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.hotline;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
4 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
5 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
6 -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineCaseDO;  
7 -import org.apache.ibatis.annotations.Mapper;  
8 -  
9 -@Mapper  
10 -public interface HotlineCaseMapper extends BaseMapperX<HotlineCaseDO> {  
11 - default PageResult<HotlineCaseDO> selectPage(com.zteits.urbanops.framework.common.pojo.PageParam pageParam, HotlineCaseDO where) {  
12 - return selectPage(pageParam, null, new LambdaQueryWrapperX<HotlineCaseDO>()  
13 - .likeIfPresent(HotlineCaseDO::getTitle, where.getTitle())  
14 - .likeIfPresent(HotlineCaseDO::getContent, where.getContent())  
15 - .eqIfPresent(HotlineCaseDO::getDepartment, where.getDepartment())  
16 - .eqIfPresent(HotlineCaseDO::getTaskstate, where.getTaskstate())  
17 - .orderByDesc(HotlineCaseDO::getUpdateTime));  
18 - }  
19 -}  
20 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/hotline/HotlineFileMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.hotline;  
2 -  
3 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
4 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
5 -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO;  
6 -import org.apache.ibatis.annotations.Mapper;  
7 -  
8 -import java.util.List;  
9 -  
10 -@Mapper  
11 -public interface HotlineFileMapper extends BaseMapperX<HotlineFileDO> {  
12 - default List<HotlineFileDO> selectList(HotlineFileDO where) {  
13 - return selectList(new LambdaQueryWrapperX<HotlineFileDO>()  
14 - .likeIfPresent(HotlineFileDO::getTitle, where.getTitle())  
15 - .likeIfPresent(HotlineFileDO::getContent, where.getContent()));  
16 - }  
17 -}  
18 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/hotlinecase/HotlineCaseMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.hotlinecase;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinecase.HotlineCaseDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo.*;
  11 +
  12 +/**
  13 + * 12345案件信息 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface HotlineCaseMapper extends BaseMapperX<HotlineCaseDO> {
  19 +
  20 + default PageResult<HotlineCaseDO> selectPage(HotlineCasePageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<HotlineCaseDO>()
  22 + .eqIfPresent(HotlineCaseDO::getHotlinenumber, reqVO.getHotlinenumber())
  23 + .eqIfPresent(HotlineCaseDO::getCasefile, reqVO.getCasefile())
  24 + .eqIfPresent(HotlineCaseDO::getEventsouce, reqVO.getEventsouce())
  25 + .eqIfPresent(HotlineCaseDO::getCasesource, reqVO.getCasesource())
  26 + .eqIfPresent(HotlineCaseDO::getCitynum, reqVO.getCitynum())
  27 + .eqIfPresent(HotlineCaseDO::getRegionnum, reqVO.getRegionnum())
  28 + .eqIfPresent(HotlineCaseDO::getTaskstate, reqVO.getTaskstate())
  29 + .eqIfPresent(HotlineCaseDO::getOwnership, reqVO.getOwnership())
  30 + .eqIfPresent(HotlineCaseDO::getDepartment, reqVO.getDepartment())
  31 + .eqIfPresent(HotlineCaseDO::getStreet, reqVO.getStreet())
  32 + .eqIfPresent(HotlineCaseDO::getCompanyid, reqVO.getCompanyid())
  33 + .likeIfPresent(HotlineCaseDO::getCallName, reqVO.getCallName())
  34 + .eqIfPresent(HotlineCaseDO::getCallTel, reqVO.getCallTel())
  35 + .betweenIfPresent(HotlineCaseDO::getAcceptcasetime, reqVO.getAcceptcasetime())
  36 + .betweenIfPresent(HotlineCaseDO::getEndTime, reqVO.getEndTime())
  37 + .eqIfPresent(HotlineCaseDO::getAddress, reqVO.getAddress())
  38 + .eqIfPresent(HotlineCaseDO::getContent, reqVO.getContent())
  39 + .eqIfPresent(HotlineCaseDO::getCasepic, reqVO.getCasepic())
  40 + .eqIfPresent(HotlineCaseDO::getDispatcher, reqVO.getDispatcher())
  41 + .eqIfPresent(HotlineCaseDO::getDispperson, reqVO.getDispperson())
  42 + .eqIfPresent(HotlineCaseDO::getReplyResult, reqVO.getReplyResult())
  43 + .eqIfPresent(HotlineCaseDO::getPicResult1, reqVO.getPicResult1())
  44 + .eqIfPresent(HotlineCaseDO::getPicResult2, reqVO.getPicResult2())
  45 + .eqIfPresent(HotlineCaseDO::getPicResult3, reqVO.getPicResult3())
  46 + .betweenIfPresent(HotlineCaseDO::getFinishTime, reqVO.getFinishTime())
  47 + .betweenIfPresent(HotlineCaseDO::getReplayrtime, reqVO.getReplayrtime())
  48 + .eqIfPresent(HotlineCaseDO::getOwnercompany, reqVO.getOwnercompany())
  49 + .eqIfPresent(HotlineCaseDO::getCasetype, reqVO.getCasetype())
  50 + .eqIfPresent(HotlineCaseDO::getHandingresult, reqVO.getHandingresult())
  51 + .eqIfPresent(HotlineCaseDO::getResolvedesp, reqVO.getResolvedesp())
  52 + .eqIfPresent(HotlineCaseDO::getRstResolvedesp, reqVO.getRstResolvedesp())
  53 + .eqIfPresent(HotlineCaseDO::getDealBy, reqVO.getDealBy())
  54 + .betweenIfPresent(HotlineCaseDO::getDealTime, reqVO.getDealTime())
  55 + .eqIfPresent(HotlineCaseDO::getCreateBy, reqVO.getCreateBy())
  56 + .betweenIfPresent(HotlineCaseDO::getCreateTime, reqVO.getCreateTime())
  57 + .eqIfPresent(HotlineCaseDO::getUpdateBy, reqVO.getUpdateBy())
  58 + .eqIfPresent(HotlineCaseDO::getReplayBy, reqVO.getReplayBy())
  59 + .betweenIfPresent(HotlineCaseDO::getReplayTime, reqVO.getReplayTime())
  60 + .eqIfPresent(HotlineCaseDO::getOwnershipBy, reqVO.getOwnershipBy())
  61 + .betweenIfPresent(HotlineCaseDO::getOwnershipTime, reqVO.getOwnershipTime())
  62 + .eqIfPresent(HotlineCaseDO::getReserve1, reqVO.getReserve1())
  63 + .eqIfPresent(HotlineCaseDO::getReserve2, reqVO.getReserve2())
  64 + .eqIfPresent(HotlineCaseDO::getReserve3, reqVO.getReserve3())
  65 + .orderByDesc(HotlineCaseDO::getId));
  66 + }
  67 +
  68 +}
0 \ No newline at end of file 69 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/hotlinefile/HotlineFileMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.hotlinefile;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinefile.HotlineFileDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo.*;
  11 +
  12 +/**
  13 + * 12345案件-文件 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface HotlineFileMapper extends BaseMapperX<HotlineFileDO> {
  19 +
  20 + default PageResult<HotlineFileDO> selectPage(HotlineFilePageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<HotlineFileDO>()
  22 + .eqIfPresent(HotlineFileDO::getCaseId, reqVO.getCaseId())
  23 + .eqIfPresent(HotlineFileDO::getFileid, reqVO.getFileid())
  24 + .eqIfPresent(HotlineFileDO::getFiletype, reqVO.getFiletype())
  25 + .betweenIfPresent(HotlineFileDO::getUpdatetime, reqVO.getUpdatetime())
  26 + .orderByDesc(HotlineFileDO::getCaseId));
  27 + }
  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/dal/mysql/maintainrate/MaintainRateMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.maintainrate;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
4 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
5 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
6 -import com.zteits.urbanops.module.garden.dal.dataobject.maintainrate.MaintainRateDO;  
7 -import com.zteits.urbanops.module.garden.controller.admin.maintainrate.vo.MaintainRatePageReqVO;  
8 -import org.apache.ibatis.annotations.Mapper;  
9 -  
10 -@Mapper  
11 -public interface MaintainRateMapper extends BaseMapperX<MaintainRateDO> {  
12 -  
13 - default PageResult<MaintainRateDO> selectPage(MaintainRatePageReqVO reqVO) {  
14 - return selectPage(reqVO, new LambdaQueryWrapperX<MaintainRateDO>()  
15 - .eqIfPresent(MaintainRateDO::getType, reqVO.getType())  
16 - .eqIfPresent(MaintainRateDO::getMaintainSubjectId, reqVO.getMaintainSubjectId())  
17 - .likeIfPresent(MaintainRateDO::getMaintainSubjectName, reqVO.getMaintainSubjectName())  
18 - .eqIfPresent(MaintainRateDO::getMaintainTypeId, reqVO.getMaintainTypeId())  
19 - .likeIfPresent(MaintainRateDO::getMaintainTypeName, reqVO.getMaintainTypeName())  
20 - .eqIfPresent(MaintainRateDO::getCycleId, reqVO.getCycleId())  
21 - .likeIfPresent(MaintainRateDO::getCycleName, reqVO.getCycleName())  
22 - .eqIfPresent(MaintainRateDO::getStatus, reqVO.getStatus())  
23 - .orderByDesc(MaintainRateDO::getId));  
24 - }  
25 -}  
26 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialInventoryInMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.material;  
2 -  
3 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
4 -import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryInDO;  
5 -import org.apache.ibatis.annotations.Mapper;  
6 -  
7 -@Mapper  
8 -public interface MaterialInventoryInMapper extends BaseMapperX<MaterialInventoryInDO> {  
9 - default MaterialInventoryInDO selectByNo(String inventoryInNo) {  
10 - return selectOne(new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaterialInventoryInDO>()  
11 - .eq(MaterialInventoryInDO::getInventoryInNo, inventoryInNo));  
12 - }  
13 -}  
14 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialInventoryMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.material;  
2 -  
3 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
4 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
5 -import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryDO;  
6 -import org.apache.ibatis.annotations.Mapper;  
7 -import org.apache.ibatis.annotations.Param;  
8 -  
9 -@Mapper  
10 -public interface MaterialInventoryMapper extends BaseMapperX<MaterialInventoryDO> {  
11 -  
12 - default MaterialInventoryDO selectByMaterialId(Long materialId) {  
13 - return selectOne(new LambdaQueryWrapperX<MaterialInventoryDO>().eq(MaterialInventoryDO::getMaterialId, materialId));  
14 - }  
15 -  
16 - default MaterialInventoryDO selectByTypeDetailId(Long typeDetailId, Long companyId) {  
17 - return selectOne(new LambdaQueryWrapperX<MaterialInventoryDO>()  
18 - .eq(MaterialInventoryDO::getTypeDetailId, typeDetailId)  
19 - .eq(MaterialInventoryDO::getBelongCompanyId, companyId));  
20 - }  
21 -  
22 - default int updateInventoryByMaterialId(Long inventoryId, Long outNum) {  
23 - MaterialInventoryDO inv = selectById(inventoryId);  
24 - if (inv == null) return 0;  
25 - MaterialInventoryDO upd = new MaterialInventoryDO();  
26 - upd.setInventoryId(inventoryId);  
27 - upd.setCurrentNum(inv.getCurrentNum() - outNum);  
28 - upd.setOutTotalNum(inv.getOutTotalNum() == null ? outNum : inv.getOutTotalNum() + outNum);  
29 - return updateById(upd);  
30 - }  
31 -  
32 - default int updateInventoryAlarmNum(Long materialId, Long inventoryAlermNum) {  
33 - MaterialInventoryDO inv = selectByMaterialId(materialId);  
34 - if (inv == null) return 0;  
35 - MaterialInventoryDO upd = new MaterialInventoryDO();  
36 - upd.setInventoryId(inv.getInventoryId());  
37 - upd.setInventoryAlermNum(inventoryAlermNum);  
38 - return updateById(upd);  
39 - }  
40 -}  
41 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialInventoryOutMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.material;  
2 -  
3 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
4 -import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialInventoryOutDO;  
5 -import org.apache.ibatis.annotations.Mapper;  
6 -  
7 -@Mapper  
8 -public interface MaterialInventoryOutMapper extends BaseMapperX<MaterialInventoryOutDO> {  
9 -}  
10 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialManagerMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.material;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
4 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
5 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
6 -import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialManagerDO;  
7 -import org.apache.ibatis.annotations.Mapper;  
8 -  
9 -import java.util.List;  
10 -  
11 -@Mapper  
12 -public interface MaterialManagerMapper extends BaseMapperX<MaterialManagerDO> {  
13 - default PageResult<MaterialManagerDO> selectPage(com.zteits.urbanops.framework.common.pojo.PageParam pageParam, MaterialManagerDO where) {  
14 - return selectPage(pageParam, null, new LambdaQueryWrapperX<MaterialManagerDO>()  
15 - .likeIfPresent(MaterialManagerDO::getName, where.getName())  
16 - .eqIfPresent(MaterialManagerDO::getDeptId, where.getDeptId())  
17 - .orderByDesc(MaterialManagerDO::getUpdateTime));  
18 - }  
19 -  
20 - default List<MaterialManagerDO> selectList(MaterialManagerDO where) {  
21 - return selectList(new LambdaQueryWrapperX<MaterialManagerDO>()  
22 - .likeIfPresent(MaterialManagerDO::getName, where.getName())  
23 - .eqIfPresent(MaterialManagerDO::getDeptId, where.getDeptId())  
24 - .orderByAsc(MaterialManagerDO::getName));  
25 - }  
26 -}  
27 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialMapper.java
1 package com.zteits.urbanops.module.garden.dal.mysql.material; 1 package com.zteits.urbanops.module.garden.dal.mysql.material;
2 2
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
3 import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX; 7 import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
4 import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialDO; 8 import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialDO;
5 import org.apache.ibatis.annotations.Mapper; 9 import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.material.vo.*;
6 11
  12 +/**
  13 + * 耗材管理 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
7 @Mapper 17 @Mapper
8 public interface MaterialMapper extends BaseMapperX<MaterialDO> { 18 public interface MaterialMapper extends BaseMapperX<MaterialDO> {
9 -}  
10 \ No newline at end of file 19 \ No newline at end of file
  20 +
  21 + default PageResult<MaterialDO> selectPage(MaterialPageReqVO reqVO) {
  22 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialDO>()
  23 + .eqIfPresent(MaterialDO::getFullCode, reqVO.getFullCode())
  24 + .eqIfPresent(MaterialDO::getMaterialCode, reqVO.getMaterialCode())
  25 + .likeIfPresent(MaterialDO::getMaterialName, reqVO.getMaterialName())
  26 + .eqIfPresent(MaterialDO::getMaterialTypeId, reqVO.getMaterialTypeId())
  27 + .likeIfPresent(MaterialDO::getMaterialTypeName, reqVO.getMaterialTypeName())
  28 + .eqIfPresent(MaterialDO::getTypeId, reqVO.getTypeId())
  29 + .likeIfPresent(MaterialDO::getTypeName, reqVO.getTypeName())
  30 + .eqIfPresent(MaterialDO::getTypeDetailId, reqVO.getTypeDetailId())
  31 + .likeIfPresent(MaterialDO::getTypeDetailName, reqVO.getTypeDetailName())
  32 + .eqIfPresent(MaterialDO::getSpecCode, reqVO.getSpecCode())
  33 + .eqIfPresent(MaterialDO::getSpecifications, reqVO.getSpecifications())
  34 + .eqIfPresent(MaterialDO::getBelongCompanyId, reqVO.getBelongCompanyId())
  35 + .likeIfPresent(MaterialDO::getBelongCompanyName, reqVO.getBelongCompanyName())
  36 + .eqIfPresent(MaterialDO::getUnitId, reqVO.getUnitId())
  37 + .likeIfPresent(MaterialDO::getUnitName, reqVO.getUnitName())
  38 + .betweenIfPresent(MaterialDO::getCreateTime, reqVO.getCreateTime())
  39 + .eqIfPresent(MaterialDO::getRemark, reqVO.getRemark())
  40 + .eqIfPresent(MaterialDO::getIsAssociatedOrder, reqVO.getIsAssociatedOrder())
  41 + .orderByDesc(MaterialDO::getMaterialId));
  42 + }
  43 +
  44 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/material/MaterialTypeMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.material;  
2 -  
3 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
4 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
5 -import com.zteits.urbanops.module.garden.dal.dataobject.material.MaterialTypeDO;  
6 -import org.apache.ibatis.annotations.Mapper;  
7 -  
8 -import java.util.List;  
9 -  
10 -@Mapper  
11 -public interface MaterialTypeMapper extends BaseMapperX<MaterialTypeDO> {  
12 - default List<MaterialTypeDO> selectBigTypeList() {  
13 - return selectList(new LambdaQueryWrapperX<MaterialTypeDO>().eq(MaterialTypeDO::getLevel, 1).orderByAsc(MaterialTypeDO::getTypeName));  
14 - }  
15 -  
16 - default com.zteits.urbanops.framework.common.pojo.PageResult<MaterialTypeDO> selectPage(com.zteits.urbanops.framework.common.pojo.PageParam pageParam, MaterialTypeDO where) {  
17 - return selectPage(pageParam, null, new LambdaQueryWrapperX<MaterialTypeDO>()  
18 - .likeIfPresent(MaterialTypeDO::getTypeName, where.getTypeName())  
19 - .eqIfPresent(MaterialTypeDO::getParentId, where.getParentId())  
20 - .orderByAsc(MaterialTypeDO::getTypeName));  
21 - }  
22 -}  
23 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/materialinventory/MaterialInventoryMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.materialinventory;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventory.MaterialInventoryDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.materialinventory.vo.*;
  11 +
  12 +/**
  13 + * 物料库存 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface MaterialInventoryMapper extends BaseMapperX<MaterialInventoryDO> {
  19 +
  20 + default PageResult<MaterialInventoryDO> selectPage(MaterialInventoryPageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialInventoryDO>()
  22 + .eqIfPresent(MaterialInventoryDO::getMaterialId, reqVO.getMaterialId())
  23 + .likeIfPresent(MaterialInventoryDO::getMaterialName, reqVO.getMaterialName())
  24 + .eqIfPresent(MaterialInventoryDO::getMaterialTypeId, reqVO.getMaterialTypeId())
  25 + .likeIfPresent(MaterialInventoryDO::getMaterialTypeName, reqVO.getMaterialTypeName())
  26 + .eqIfPresent(MaterialInventoryDO::getTypeId, reqVO.getTypeId())
  27 + .likeIfPresent(MaterialInventoryDO::getTypeName, reqVO.getTypeName())
  28 + .eqIfPresent(MaterialInventoryDO::getTypeDetailId, reqVO.getTypeDetailId())
  29 + .likeIfPresent(MaterialInventoryDO::getTypeDetailName, reqVO.getTypeDetailName())
  30 + .eqIfPresent(MaterialInventoryDO::getSpecifications, reqVO.getSpecifications())
  31 + .eqIfPresent(MaterialInventoryDO::getBelongCompanyId, reqVO.getBelongCompanyId())
  32 + .likeIfPresent(MaterialInventoryDO::getBelongCompanyName, reqVO.getBelongCompanyName())
  33 + .eqIfPresent(MaterialInventoryDO::getUnitId, reqVO.getUnitId())
  34 + .likeIfPresent(MaterialInventoryDO::getUnitName, reqVO.getUnitName())
  35 + .eqIfPresent(MaterialInventoryDO::getCurrentNum, reqVO.getCurrentNum())
  36 + .eqIfPresent(MaterialInventoryDO::getOutTotalNum, reqVO.getOutTotalNum())
  37 + .eqIfPresent(MaterialInventoryDO::getInventoryTotalNum, reqVO.getInventoryTotalNum())
  38 + .betweenIfPresent(MaterialInventoryDO::getCreateTime, reqVO.getCreateTime())
  39 + .eqIfPresent(MaterialInventoryDO::getInventoryAlermNum, reqVO.getInventoryAlermNum())
  40 + .eqIfPresent(MaterialInventoryDO::getDeptId, reqVO.getDeptId())
  41 + .orderByDesc(MaterialInventoryDO::getMaterialId));
  42 + }
  43 +
  44 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/materialinventoryin/MaterialInventoryInMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.materialinventoryin;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryin.MaterialInventoryInDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.materialinventoryin.vo.*;
  11 +
  12 +/**
  13 + * 物料入库 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface MaterialInventoryInMapper extends BaseMapperX<MaterialInventoryInDO> {
  19 +
  20 + default PageResult<MaterialInventoryInDO> selectPage(MaterialInventoryInPageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialInventoryInDO>()
  22 + .eqIfPresent(MaterialInventoryInDO::getInventoryInNo, reqVO.getInventoryInNo())
  23 + .eqIfPresent(MaterialInventoryInDO::getMaterialId, reqVO.getMaterialId())
  24 + .likeIfPresent(MaterialInventoryInDO::getMaterialName, reqVO.getMaterialName())
  25 + .eqIfPresent(MaterialInventoryInDO::getMaterialTypeId, reqVO.getMaterialTypeId())
  26 + .likeIfPresent(MaterialInventoryInDO::getMaterialTypeName, reqVO.getMaterialTypeName())
  27 + .eqIfPresent(MaterialInventoryInDO::getTypeId, reqVO.getTypeId())
  28 + .likeIfPresent(MaterialInventoryInDO::getTypeName, reqVO.getTypeName())
  29 + .eqIfPresent(MaterialInventoryInDO::getTypeDetailId, reqVO.getTypeDetailId())
  30 + .likeIfPresent(MaterialInventoryInDO::getTypeDetailName, reqVO.getTypeDetailName())
  31 + .eqIfPresent(MaterialInventoryInDO::getSpecifications, reqVO.getSpecifications())
  32 + .eqIfPresent(MaterialInventoryInDO::getBelongCompanyId, reqVO.getBelongCompanyId())
  33 + .likeIfPresent(MaterialInventoryInDO::getBelongCompanyName, reqVO.getBelongCompanyName())
  34 + .eqIfPresent(MaterialInventoryInDO::getInInventoryNum, reqVO.getInInventoryNum())
  35 + .eqIfPresent(MaterialInventoryInDO::getMaterialPrice, reqVO.getMaterialPrice())
  36 + .eqIfPresent(MaterialInventoryInDO::getUnitId, reqVO.getUnitId())
  37 + .likeIfPresent(MaterialInventoryInDO::getUnitName, reqVO.getUnitName())
  38 + .betweenIfPresent(MaterialInventoryInDO::getBuyDate, reqVO.getBuyDate())
  39 + .likeIfPresent(MaterialInventoryInDO::getSupplierName, reqVO.getSupplierName())
  40 + .likeIfPresent(MaterialInventoryInDO::getContactsName, reqVO.getContactsName())
  41 + .eqIfPresent(MaterialInventoryInDO::getContactsPhone, reqVO.getContactsPhone())
  42 + .betweenIfPresent(MaterialInventoryInDO::getCreateTime, reqVO.getCreateTime())
  43 + .eqIfPresent(MaterialInventoryInDO::getDeptId, reqVO.getDeptId())
  44 + .orderByDesc(MaterialInventoryInDO::getId));
  45 + }
  46 +
  47 +}
0 \ No newline at end of file 48 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/materialinventoryout/MaterialInventoryOutMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.materialinventoryout;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.materialinventoryout.MaterialInventoryOutDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo.*;
  11 +
  12 +/**
  13 + * 物料出库 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface MaterialInventoryOutMapper extends BaseMapperX<MaterialInventoryOutDO> {
  19 +
  20 + default PageResult<MaterialInventoryOutDO> selectPage(MaterialInventoryOutPageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialInventoryOutDO>()
  22 + .eqIfPresent(MaterialInventoryOutDO::getInventoryOutNo, reqVO.getInventoryOutNo())
  23 + .eqIfPresent(MaterialInventoryOutDO::getMaterialId, reqVO.getMaterialId())
  24 + .likeIfPresent(MaterialInventoryOutDO::getMaterialName, reqVO.getMaterialName())
  25 + .eqIfPresent(MaterialInventoryOutDO::getMaterialTypeId, reqVO.getMaterialTypeId())
  26 + .likeIfPresent(MaterialInventoryOutDO::getMaterialTypeName, reqVO.getMaterialTypeName())
  27 + .eqIfPresent(MaterialInventoryOutDO::getTypeId, reqVO.getTypeId())
  28 + .likeIfPresent(MaterialInventoryOutDO::getTypeName, reqVO.getTypeName())
  29 + .eqIfPresent(MaterialInventoryOutDO::getTypeDetailId, reqVO.getTypeDetailId())
  30 + .likeIfPresent(MaterialInventoryOutDO::getTypeDetailName, reqVO.getTypeDetailName())
  31 + .eqIfPresent(MaterialInventoryOutDO::getSpecifications, reqVO.getSpecifications())
  32 + .eqIfPresent(MaterialInventoryOutDO::getBelongCompanyId, reqVO.getBelongCompanyId())
  33 + .likeIfPresent(MaterialInventoryOutDO::getBelongCompanyName, reqVO.getBelongCompanyName())
  34 + .eqIfPresent(MaterialInventoryOutDO::getOutInventoryNum, reqVO.getOutInventoryNum())
  35 + .eqIfPresent(MaterialInventoryOutDO::getUnitId, reqVO.getUnitId())
  36 + .likeIfPresent(MaterialInventoryOutDO::getUnitName, reqVO.getUnitName())
  37 + .betweenIfPresent(MaterialInventoryOutDO::getOutDate, reqVO.getOutDate())
  38 + .eqIfPresent(MaterialInventoryOutDO::getRemark, reqVO.getRemark())
  39 + .betweenIfPresent(MaterialInventoryOutDO::getCreateTime, reqVO.getCreateTime())
  40 + .eqIfPresent(MaterialInventoryOutDO::getDeptId, reqVO.getDeptId())
  41 + .eqIfPresent(MaterialInventoryOutDO::getType, reqVO.getType())
  42 + .orderByDesc(MaterialInventoryOutDO::getId));
  43 + }
  44 +
  45 +}
0 \ No newline at end of file 46 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/materialtype/MaterialTypeManagerMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.materialtype;
  2 +
  3 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  4 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  5 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  6 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypeManagerPageReqVO;
  7 +import com.zteits.urbanops.module.garden.dal.dataobject.materialtype.MaterialTypeManagerDO;
  8 +import org.apache.ibatis.annotations.Mapper;
  9 +
  10 +/**
  11 + * 耗材类别管理 Mapper
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@Mapper
  16 +public interface MaterialTypeManagerMapper extends BaseMapperX<MaterialTypeManagerDO> {
  17 +
  18 + default PageResult<MaterialTypeManagerDO> selectPage(MaterialTypeManagerPageReqVO reqVO) {
  19 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialTypeManagerDO>()
  20 + .eqIfPresent(MaterialTypeManagerDO::getClassifyId, reqVO.getClassifyId())
  21 + .likeIfPresent(MaterialTypeManagerDO::getClassifyName, reqVO.getClassifyName())
  22 + .eqIfPresent(MaterialTypeManagerDO::getTypeId, reqVO.getTypeId())
  23 + .likeIfPresent(MaterialTypeManagerDO::getTypeName, reqVO.getTypeName())
  24 + .eqIfPresent(MaterialTypeManagerDO::getTypeDetailId, reqVO.getTypeDetailId())
  25 + .likeIfPresent(MaterialTypeManagerDO::getTypeDetailName, reqVO.getTypeDetailName())
  26 + .eqIfPresent(MaterialTypeManagerDO::getCompanyId, reqVO.getCompanyId())
  27 + .likeIfPresent(MaterialTypeManagerDO::getCompanyName, reqVO.getCompanyName())
  28 + .eqIfPresent(MaterialTypeManagerDO::getNum, reqVO.getNum())
  29 + .eqIfPresent(MaterialTypeManagerDO::getUnitId, reqVO.getUnitId())
  30 + .likeIfPresent(MaterialTypeManagerDO::getUnitName, reqVO.getUnitName())
  31 + .eqIfPresent(MaterialTypeManagerDO::getRemark, reqVO.getRemark())
  32 + .eqIfPresent(MaterialTypeManagerDO::getStatus, reqVO.getStatus())
  33 + .betweenIfPresent(MaterialTypeManagerDO::getCreateTime, reqVO.getCreateTime())
  34 + .orderByDesc(MaterialTypeManagerDO::getId));
  35 + }
  36 +
  37 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/materialtype/MaterialTypeMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.materialtype;
  2 +
  3 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  4 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  5 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  6 +import com.zteits.urbanops.module.garden.controller.admin.materialtype.vo.MaterialTypePageReqVO;
  7 +import com.zteits.urbanops.module.garden.dal.dataobject.materialtype.MaterialTypeDO;
  8 +import org.apache.ibatis.annotations.Mapper;
  9 +
  10 +/**
  11 + * 物料类型 Mapper
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@Mapper
  16 +public interface MaterialTypeMapper extends BaseMapperX<MaterialTypeDO> {
  17 +
  18 + default PageResult<MaterialTypeDO> selectPage(MaterialTypePageReqVO reqVO) {
  19 + return selectPage(reqVO, new LambdaQueryWrapperX<MaterialTypeDO>()
  20 + .likeIfPresent(MaterialTypeDO::getTypeName, reqVO.getTypeName())
  21 + .orderByDesc(MaterialTypeDO::getId));
  22 + }
  23 +
  24 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/road/RoadManagerMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.road;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
4 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
5 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
6 -import com.zteits.urbanops.module.garden.controller.admin.roadmanager.vo.RoadManagerPageReqVO;  
7 -import com.zteits.urbanops.module.garden.dal.dataobject.road.RoadManagerDO;  
8 -import org.apache.ibatis.annotations.Mapper;  
9 -  
10 -@Mapper  
11 -public interface RoadManagerMapper extends BaseMapperX<RoadManagerDO> {  
12 -  
13 - default PageResult<RoadManagerDO> selectPage(RoadManagerPageReqVO reqVO) {  
14 - return selectPage(reqVO, new LambdaQueryWrapperX<RoadManagerDO>()  
15 - .likeIfPresent(RoadManagerDO::getRoadName, reqVO.getRoadName())  
16 - .eqIfPresent(RoadManagerDO::getStreetId, reqVO.getStreetId())  
17 - .likeIfPresent(RoadManagerDO::getStreetName, reqVO.getStreetName())  
18 - .eqIfPresent(RoadManagerDO::getCuringLevelId, reqVO.getCuringLevelId())  
19 - .likeIfPresent(RoadManagerDO::getCuringLevelName, reqVO.getCuringLevelName())  
20 - .eqIfPresent(RoadManagerDO::getCompanyId, reqVO.getCompanyId())  
21 - .eqIfPresent(RoadManagerDO::getDeptId, reqVO.getDeptId())  
22 - .eqIfPresent(RoadManagerDO::getStatus, reqVO.getStatus())  
23 - .orderByDesc(RoadManagerDO::getId));  
24 - }  
25 -}  
26 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/road/RoadMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.road;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.road.RoadDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.road.vo.*;
  11 +
  12 +/**
  13 + * 道路管理 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface RoadMapper extends BaseMapperX<RoadDO> {
  19 +
  20 + default PageResult<RoadDO> selectPage(RoadPageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<RoadDO>()
  22 + .likeIfPresent(RoadDO::getRoadName, reqVO.getRoadName())
  23 + .eqIfPresent(RoadDO::getStreetId, reqVO.getStreetId())
  24 + .likeIfPresent(RoadDO::getStreetName, reqVO.getStreetName())
  25 + .eqIfPresent(RoadDO::getLevelId, reqVO.getLevelId())
  26 + .eqIfPresent(RoadDO::getGreenBeltTreeArea, reqVO.getGreenBeltTreeArea())
  27 + .eqIfPresent(RoadDO::getGreenBeltArea, reqVO.getGreenBeltArea())
  28 + .eqIfPresent(RoadDO::getTotalArea, reqVO.getTotalArea())
  29 + .eqIfPresent(RoadDO::getTreeArea, reqVO.getTreeArea())
  30 + .eqIfPresent(RoadDO::getStartingLatitude, reqVO.getStartingLatitude())
  31 + .eqIfPresent(RoadDO::getStartingLongitude, reqVO.getStartingLongitude())
  32 + .eqIfPresent(RoadDO::getStartingRemark, reqVO.getStartingRemark())
  33 + .eqIfPresent(RoadDO::getEndLatitude, reqVO.getEndLatitude())
  34 + .eqIfPresent(RoadDO::getEndLongitude, reqVO.getEndLongitude())
  35 + .eqIfPresent(RoadDO::getEndRemark, reqVO.getEndRemark())
  36 + .eqIfPresent(RoadDO::getRemark, reqVO.getRemark())
  37 + .eqIfPresent(RoadDO::getCompanyId, reqVO.getCompanyId())
  38 + .eqIfPresent(RoadDO::getDeptId, reqVO.getDeptId())
  39 + .likeIfPresent(RoadDO::getCreatorName, reqVO.getCreatorName())
  40 + .betweenIfPresent(RoadDO::getCreateTime, reqVO.getCreateTime())
  41 + .likeIfPresent(RoadDO::getUpdaterName, reqVO.getUpdaterName())
  42 + .orderByDesc(RoadDO::getId));
  43 + }
  44 +
  45 +}
0 \ No newline at end of file 46 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/standingbook/StandingBookMapper.java deleted
1 -package com.zteits.urbanops.module.garden.dal.mysql.standingbook;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
4 -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;  
5 -import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;  
6 -import com.zteits.urbanops.module.garden.dal.dataobject.standingbook.StandingBookDO;  
7 -import org.apache.ibatis.annotations.Mapper;  
8 -  
9 -@Mapper  
10 -public interface StandingBookMapper extends BaseMapperX<StandingBookDO> {  
11 - default PageResult<StandingBookDO> selectPage(com.zteits.urbanops.framework.common.pojo.PageParam pageParam, StandingBookDO where) {  
12 - return selectPage(pageParam, null, new LambdaQueryWrapperX<StandingBookDO>()  
13 - .eqIfPresent(StandingBookDO::getStandingBookYear, where.getStandingBookYear())  
14 - .orderByDesc(StandingBookDO::getId));  
15 - }  
16 -}  
17 \ No newline at end of file 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java
@@ -72,4 +72,19 @@ public interface ErrorCodeConstants { @@ -72,4 +72,19 @@ public interface ErrorCodeConstants {
72 ErrorCode PLAN_RATE_EXISTS = new ErrorCode(1-200-200-001, "养护频次已存在"); 72 ErrorCode PLAN_RATE_EXISTS = new ErrorCode(1-200-200-001, "养护频次已存在");
73 ErrorCode PLAN_RATE_LEVEL_ID_DUPLICATE = new ErrorCode(1-200-200-002, "养护等级重复"); 73 ErrorCode PLAN_RATE_LEVEL_ID_DUPLICATE = new ErrorCode(1-200-200-002, "养护等级重复");
74 74
  75 + ErrorCode MATERIAL_TYPE_NOT_EXISTS = new ErrorCode(1-100-004-001, "物料类型不存在");
  76 + ErrorCode MATERIAL_TYPE_MANAGER_NOT_EXISTS = new ErrorCode(1-100-004-002, "耗材类别管理不存在");
  77 +
  78 + ErrorCode MATERIAL_NOT_EXISTS = new ErrorCode(1-100-004-003, "耗材管理不存在");
  79 +
  80 +
  81 + ErrorCode HOTLINE_FILE_NOT_EXISTS = new ErrorCode(1-300-001-001, "12345案件-文件不存在");
  82 +
  83 + ErrorCode HOTLINE_CASE_NOT_EXISTS = new ErrorCode(1-300-001-002, "12345案件-案件不存在");
  84 +
  85 +
  86 + ErrorCode MATERIAL_INVENTORY_IN_NOT_EXISTS = new ErrorCode(1-100-004-004, "物料入库不存在");
  87 +
  88 + ErrorCode MATERIAL_INVENTORY_OUT_NOT_EXISTS = new ErrorCode(1-100-004-005, "物料出库不存在");
  89 + ErrorCode MATERIAL_INVENTORY_NOT_EXISTS = new ErrorCode(1-100-004-006, "物料库存不存在");
75 } 90 }
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotline/HotlineCaseService.java deleted
1 -package com.zteits.urbanops.module.garden.service.hotline;  
2 -  
3 -import com.zteits.urbanops.framework.common.pojo.PageParam;  
4 -import com.zteits.urbanops.framework.common.pojo.PageResult;  
5 -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineCaseDO;  
6 -  
7 -public interface HotlineCaseService {  
8 - PageResult<HotlineCaseDO> selectPage(PageParam pageParam, HotlineCaseDO where);  
9 - HotlineCaseDO selectById(String id);  
10 - Boolean insert(HotlineCaseDO entity);  
11 - Boolean update(HotlineCaseDO entity);  
12 - Boolean deleteByIds(java.util.List<String> ids);  
13 - com.zteits.urbanops.module.garden.controller.admin.hotline.vo.HotlineCaseDetailResp getDetail(String id);  
14 -}  
15 \ No newline at end of file 0 \ No newline at end of file