Commit d014bbe1341d20608326a2b923112405b70bd497
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java
Showing
31 changed files
with
1448 additions
and
418 deletions
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/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/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/enums/ErrorCodeConstants.java
| @@ -77,6 +77,12 @@ public interface ErrorCodeConstants { | @@ -77,6 +77,12 @@ public interface ErrorCodeConstants { | ||
| 77 | 77 | ||
| 78 | ErrorCode MATERIAL_NOT_EXISTS = new ErrorCode(1-100-004-003, "耗材管理不存在"); | 78 | ErrorCode MATERIAL_NOT_EXISTS = new ErrorCode(1-100-004-003, "耗材管理不存在"); |
| 79 | 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 | + | ||
| 80 | ErrorCode MATERIAL_INVENTORY_IN_NOT_EXISTS = new ErrorCode(1-100-004-004, "物料入库不存在"); | 86 | ErrorCode MATERIAL_INVENTORY_IN_NOT_EXISTS = new ErrorCode(1-100-004-004, "物料入库不存在"); |
| 81 | 87 | ||
| 82 | ErrorCode MATERIAL_INVENTORY_OUT_NOT_EXISTS = new ErrorCode(1-100-004-005, "物料出库不存在"); | 88 | ErrorCode MATERIAL_INVENTORY_OUT_NOT_EXISTS = new ErrorCode(1-100-004-005, "物料出库不存在"); |
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 |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotline/HotlineCaseServiceImpl.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 | -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO; | ||
| 7 | -import com.zteits.urbanops.module.garden.dal.dataobject.photo.SysPhotoDO; | ||
| 8 | -import com.zteits.urbanops.module.garden.dal.mysql.hotline.HotlineCaseMapper; | ||
| 9 | -import com.zteits.urbanops.module.garden.dal.mysql.hotline.HotlineFileMapper; | ||
| 10 | -import com.zteits.urbanops.module.garden.dal.mysql.photo.SysPhotoMapper; | ||
| 11 | -import jakarta.annotation.Resource; | ||
| 12 | -import org.springframework.stereotype.Service; | ||
| 13 | - | ||
| 14 | -import java.util.List; | ||
| 15 | - | ||
| 16 | -@Service | ||
| 17 | -public class HotlineCaseServiceImpl implements HotlineCaseService { | ||
| 18 | - | ||
| 19 | - @Resource | ||
| 20 | - private HotlineCaseMapper mapper; | ||
| 21 | - @Resource(name = "hotlineFileMapper") | ||
| 22 | - private HotlineFileMapper fileMapper; | ||
| 23 | - @Resource | ||
| 24 | - private SysPhotoMapper photoMapper; | ||
| 25 | - | ||
| 26 | - @Override | ||
| 27 | - public PageResult<HotlineCaseDO> selectPage(PageParam pageParam, HotlineCaseDO where) { | ||
| 28 | - return mapper.selectPage(pageParam, where); | ||
| 29 | - } | ||
| 30 | - | ||
| 31 | - @Override | ||
| 32 | - public HotlineCaseDO selectById(String id) { | ||
| 33 | - return mapper.selectById(id); | ||
| 34 | - } | ||
| 35 | - | ||
| 36 | - @Override | ||
| 37 | - public Boolean insert(HotlineCaseDO entity) { | ||
| 38 | - return mapper.insert(entity) > 0; | ||
| 39 | - } | ||
| 40 | - | ||
| 41 | - @Override | ||
| 42 | - public Boolean update(HotlineCaseDO entity) { | ||
| 43 | - return mapper.updateById(entity) > 0; | ||
| 44 | - } | ||
| 45 | - | ||
| 46 | - @Override | ||
| 47 | - public Boolean deleteByIds(List<String> ids) { | ||
| 48 | - return mapper.deleteBatchIds(ids) > 0; | ||
| 49 | - } | ||
| 50 | - | ||
| 51 | - @Override | ||
| 52 | - public com.zteits.urbanops.module.garden.controller.admin.hotline.vo.HotlineCaseDetailResp getDetail(String id) { | ||
| 53 | - com.zteits.urbanops.module.garden.controller.admin.hotline.vo.HotlineCaseDetailResp resp = new com.zteits.urbanops.module.garden.controller.admin.hotline.vo.HotlineCaseDetailResp(); | ||
| 54 | - resp.setCaseInfo(mapper.selectById(id)); | ||
| 55 | - HotlineFileDO whereFile = new HotlineFileDO(); | ||
| 56 | - whereFile.setCaseid(id); | ||
| 57 | - java.util.List<HotlineFileDO> files = fileMapper.selectList(whereFile); | ||
| 58 | - resp.setFiles(files); | ||
| 59 | - SysPhotoDO wherePhoto = new SysPhotoDO(); | ||
| 60 | - java.util.List<SysPhotoDO> photos = photoMapper.selectList(wherePhoto); | ||
| 61 | - resp.setPhotos(photos); | ||
| 62 | - return resp; | ||
| 63 | - } | ||
| 64 | -} | ||
| 65 | \ No newline at end of file | 0 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotline/HotlineFileService.java deleted
| 1 | -package com.zteits.urbanops.module.garden.service.hotline; | ||
| 2 | - | ||
| 3 | -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO; | ||
| 4 | -import org.springframework.web.multipart.MultipartFile; | ||
| 5 | - | ||
| 6 | -import java.util.List; | ||
| 7 | - | ||
| 8 | -public interface HotlineFileService { | ||
| 9 | - Object parseFile(MultipartFile file) throws Exception; | ||
| 10 | - List<HotlineFileDO> selectList(HotlineFileDO where); | ||
| 11 | - HotlineFileDO selectById(String caseid); | ||
| 12 | - Boolean insert(HotlineFileDO entity); | ||
| 13 | - Boolean update(HotlineFileDO entity); | ||
| 14 | - Boolean deleteByIds(List<String> ids); | ||
| 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/service/hotline/HotlineFileServiceImpl.java deleted
| 1 | -package com.zteits.urbanops.module.garden.service.hotline; | ||
| 2 | - | ||
| 3 | -import com.zteits.urbanops.module.garden.dal.dataobject.hotline.HotlineFileDO; | ||
| 4 | -import com.zteits.urbanops.module.garden.dal.mysql.hotline.HotlineFileMapper; | ||
| 5 | -import jakarta.annotation.Resource; | ||
| 6 | -import org.springframework.stereotype.Service; | ||
| 7 | -import org.springframework.web.multipart.MultipartFile; | ||
| 8 | - | ||
| 9 | -import java.util.List; | ||
| 10 | - | ||
| 11 | -@Service | ||
| 12 | -public class HotlineFileServiceImpl implements HotlineFileService { | ||
| 13 | - | ||
| 14 | - @Resource | ||
| 15 | - private HotlineFileMapper mapper; | ||
| 16 | - | ||
| 17 | - @Override | ||
| 18 | - public Object parseFile(MultipartFile file) throws Exception { | ||
| 19 | - return java.util.Collections.emptyMap(); | ||
| 20 | - } | ||
| 21 | - | ||
| 22 | - @Override | ||
| 23 | - public List<HotlineFileDO> selectList(HotlineFileDO where) { | ||
| 24 | - return mapper.selectList(where); | ||
| 25 | - } | ||
| 26 | - | ||
| 27 | - @Override | ||
| 28 | - public HotlineFileDO selectById(String caseid) { | ||
| 29 | - return mapper.selectById(caseid); | ||
| 30 | - } | ||
| 31 | - | ||
| 32 | - @Override | ||
| 33 | - public Boolean insert(HotlineFileDO entity) { | ||
| 34 | - return mapper.insert(entity) > 0; | ||
| 35 | - } | ||
| 36 | - | ||
| 37 | - @Override | ||
| 38 | - public Boolean update(HotlineFileDO entity) { | ||
| 39 | - return mapper.updateById(entity) > 0; | ||
| 40 | - } | ||
| 41 | - | ||
| 42 | - @Override | ||
| 43 | - public Boolean deleteByIds(List<String> ids) { | ||
| 44 | - return mapper.deleteBatchIds(ids) > 0; | ||
| 45 | - } | ||
| 46 | -} | ||
| 47 | \ No newline at end of file | 0 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotlinecase/HotlineCaseService.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.service.hotlinecase; | ||
| 2 | + | ||
| 3 | +import java.util.*; | ||
| 4 | +import jakarta.validation.*; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo.*; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinecase.HotlineCaseDO; | ||
| 7 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 8 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 12345案件信息 Service 接口 | ||
| 12 | + * | ||
| 13 | + * @author 超级管理员 | ||
| 14 | + */ | ||
| 15 | +public interface HotlineCaseService { | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 创建12345案件信息 | ||
| 19 | + * | ||
| 20 | + * @param createReqVO 创建信息 | ||
| 21 | + * @return 编号 | ||
| 22 | + */ | ||
| 23 | + String createHotlineCase(@Valid HotlineCaseSaveReqVO createReqVO); | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 更新12345案件信息 | ||
| 27 | + * | ||
| 28 | + * @param updateReqVO 更新信息 | ||
| 29 | + */ | ||
| 30 | + void updateHotlineCase(@Valid HotlineCaseSaveReqVO updateReqVO); | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 删除12345案件信息 | ||
| 34 | + * | ||
| 35 | + * @param id 编号 | ||
| 36 | + */ | ||
| 37 | + void deleteHotlineCase(String id); | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 批量删除12345案件信息 | ||
| 41 | + * | ||
| 42 | + * @param ids 编号 | ||
| 43 | + */ | ||
| 44 | + void deleteHotlineCaseListByIds(List<String> ids); | ||
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * 获得12345案件信息 | ||
| 48 | + * | ||
| 49 | + * @param id 编号 | ||
| 50 | + * @return 12345案件信息 | ||
| 51 | + */ | ||
| 52 | + HotlineCaseDO getHotlineCase(String id); | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 获得12345案件信息分页 | ||
| 56 | + * | ||
| 57 | + * @param pageReqVO 分页查询 | ||
| 58 | + * @return 12345案件信息分页 | ||
| 59 | + */ | ||
| 60 | + PageResult<HotlineCaseDO> getHotlineCasePage(HotlineCasePageReqVO pageReqVO); | ||
| 61 | + | ||
| 62 | +} | ||
| 0 | \ No newline at end of file | 63 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotlinecase/HotlineCaseServiceImpl.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.service.hotlinecase; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo.HotlineCasePageReqVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.controller.admin.hotlinecase.vo.HotlineCaseSaveReqVO; | ||
| 7 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinecase.HotlineCaseDO; | ||
| 8 | +import com.zteits.urbanops.module.garden.dal.mysql.hotlinecase.HotlineCaseMapper; | ||
| 9 | +import jakarta.annotation.Resource; | ||
| 10 | +import org.springframework.stereotype.Service; | ||
| 11 | +import org.springframework.validation.annotation.Validated; | ||
| 12 | + | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 15 | +import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception; | ||
| 16 | +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.HOTLINE_CASE_NOT_EXISTS; | ||
| 17 | + | ||
| 18 | +/** | ||
| 19 | + * 12345案件信息 Service 实现类 | ||
| 20 | + * | ||
| 21 | + * @author 超级管理员 | ||
| 22 | + */ | ||
| 23 | +@Service | ||
| 24 | +@Validated | ||
| 25 | +public class HotlineCaseServiceImpl implements HotlineCaseService { | ||
| 26 | + | ||
| 27 | + @Resource | ||
| 28 | + private HotlineCaseMapper hotlineCaseMapper; | ||
| 29 | + | ||
| 30 | + @Override | ||
| 31 | + public String createHotlineCase(HotlineCaseSaveReqVO createReqVO) { | ||
| 32 | + // 插入 | ||
| 33 | + HotlineCaseDO hotlineCase = BeanUtils.toBean(createReqVO, HotlineCaseDO.class); | ||
| 34 | + hotlineCaseMapper.insert(hotlineCase); | ||
| 35 | + | ||
| 36 | + // 返回 | ||
| 37 | + return hotlineCase.getId(); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @Override | ||
| 41 | + public void updateHotlineCase(HotlineCaseSaveReqVO updateReqVO) { | ||
| 42 | + // 校验存在 | ||
| 43 | + validateHotlineCaseExists(updateReqVO.getId()); | ||
| 44 | + // 更新 | ||
| 45 | + HotlineCaseDO updateObj = BeanUtils.toBean(updateReqVO, HotlineCaseDO.class); | ||
| 46 | + hotlineCaseMapper.updateById(updateObj); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @Override | ||
| 50 | + public void deleteHotlineCase(String id) { | ||
| 51 | + // 校验存在 | ||
| 52 | + validateHotlineCaseExists(id); | ||
| 53 | + // 删除 | ||
| 54 | + hotlineCaseMapper.deleteById(id); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + @Override | ||
| 58 | + public void deleteHotlineCaseListByIds(List<String> ids) { | ||
| 59 | + // 删除 | ||
| 60 | + hotlineCaseMapper.deleteByIds(ids); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + | ||
| 64 | + private void validateHotlineCaseExists(String id) { | ||
| 65 | + if (hotlineCaseMapper.selectById(id) == null) { | ||
| 66 | + throw exception(HOTLINE_CASE_NOT_EXISTS); | ||
| 67 | + } | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + @Override | ||
| 71 | + public HotlineCaseDO getHotlineCase(String id) { | ||
| 72 | + return hotlineCaseMapper.selectById(id); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + @Override | ||
| 76 | + public PageResult<HotlineCaseDO> getHotlineCasePage(HotlineCasePageReqVO pageReqVO) { | ||
| 77 | + return hotlineCaseMapper.selectPage(pageReqVO); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | +} | ||
| 0 | \ No newline at end of file | 81 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotlinefile/HotlineFileService.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.service.hotlinefile; | ||
| 2 | + | ||
| 3 | +import java.util.*; | ||
| 4 | +import jakarta.validation.*; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo.*; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinefile.HotlineFileDO; | ||
| 7 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 8 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 12345案件-文件 Service 接口 | ||
| 12 | + * | ||
| 13 | + * @author 超级管理员 | ||
| 14 | + */ | ||
| 15 | +public interface HotlineFileService { | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 创建12345案件-文件 | ||
| 19 | + * | ||
| 20 | + * @param createReqVO 创建信息 | ||
| 21 | + * @return 编号 | ||
| 22 | + */ | ||
| 23 | + String createHotlineFile(@Valid HotlineFileSaveReqVO createReqVO); | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 更新12345案件-文件 | ||
| 27 | + * | ||
| 28 | + * @param updateReqVO 更新信息 | ||
| 29 | + */ | ||
| 30 | + void updateHotlineFile(@Valid HotlineFileSaveReqVO updateReqVO); | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 删除12345案件-文件 | ||
| 34 | + * | ||
| 35 | + * @param id 编号 | ||
| 36 | + */ | ||
| 37 | + void deleteHotlineFile(String id); | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 批量删除12345案件-文件 | ||
| 41 | + * | ||
| 42 | + * @param ids 编号 | ||
| 43 | + */ | ||
| 44 | + void deleteHotlineFileListByIds(List<String> ids); | ||
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * 获得12345案件-文件 | ||
| 48 | + * | ||
| 49 | + * @param id 编号 | ||
| 50 | + * @return 12345案件-文件 | ||
| 51 | + */ | ||
| 52 | + HotlineFileDO getHotlineFile(String id); | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 获得12345案件-文件分页 | ||
| 56 | + * | ||
| 57 | + * @param pageReqVO 分页查询 | ||
| 58 | + * @return 12345案件-文件分页 | ||
| 59 | + */ | ||
| 60 | + PageResult<HotlineFileDO> getHotlineFilePage(HotlineFilePageReqVO pageReqVO); | ||
| 61 | + | ||
| 62 | +} | ||
| 0 | \ No newline at end of file | 63 | \ No newline at end of file |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/hotlinefile/HotlineFileServiceImpl.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.service.hotlinefile; | ||
| 2 | + | ||
| 3 | +import cn.hutool.core.collection.CollUtil; | ||
| 4 | +import org.springframework.stereotype.Service; | ||
| 5 | +import jakarta.annotation.Resource; | ||
| 6 | +import org.springframework.validation.annotation.Validated; | ||
| 7 | +import org.springframework.transaction.annotation.Transactional; | ||
| 8 | + | ||
| 9 | +import java.util.*; | ||
| 10 | +import com.zteits.urbanops.module.garden.controller.admin.hotlinefile.vo.*; | ||
| 11 | +import com.zteits.urbanops.module.garden.dal.dataobject.hotlinefile.HotlineFileDO; | ||
| 12 | +import com.zteits.urbanops.framework.common.pojo.PageResult; | ||
| 13 | +import com.zteits.urbanops.framework.common.pojo.PageParam; | ||
| 14 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 15 | + | ||
| 16 | +import com.zteits.urbanops.module.garden.dal.mysql.hotlinefile.HotlineFileMapper; | ||
| 17 | + | ||
| 18 | +import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception; | ||
| 19 | +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.convertList; | ||
| 20 | +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.diffList; | ||
| 21 | +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*; | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + * 12345案件-文件 Service 实现类 | ||
| 25 | + * | ||
| 26 | + * @author 超级管理员 | ||
| 27 | + */ | ||
| 28 | +@Service | ||
| 29 | +@Validated | ||
| 30 | +public class HotlineFileServiceImpl implements HotlineFileService { | ||
| 31 | + | ||
| 32 | + @Resource | ||
| 33 | + private HotlineFileMapper hotlineFileMapper; | ||
| 34 | + | ||
| 35 | + @Override | ||
| 36 | + public String createHotlineFile(HotlineFileSaveReqVO createReqVO) { | ||
| 37 | + // 插入 | ||
| 38 | + HotlineFileDO hotlineFile = BeanUtils.toBean(createReqVO, HotlineFileDO.class); | ||
| 39 | + hotlineFileMapper.insert(hotlineFile); | ||
| 40 | + | ||
| 41 | + // 返回 | ||
| 42 | + return hotlineFile.getFileid(); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @Override | ||
| 46 | + public void updateHotlineFile(HotlineFileSaveReqVO updateReqVO) { | ||
| 47 | + // 校验存在 | ||
| 48 | + validateHotlineFileExists(updateReqVO.getFileid()); | ||
| 49 | + // 更新 | ||
| 50 | + HotlineFileDO updateObj = BeanUtils.toBean(updateReqVO, HotlineFileDO.class); | ||
| 51 | + hotlineFileMapper.updateById(updateObj); | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Override | ||
| 55 | + public void deleteHotlineFile(String id) { | ||
| 56 | + // 校验存在 | ||
| 57 | + validateHotlineFileExists(id); | ||
| 58 | + // 删除 | ||
| 59 | + hotlineFileMapper.deleteById(id); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + @Override | ||
| 63 | + public void deleteHotlineFileListByIds(List<String> ids) { | ||
| 64 | + // 删除 | ||
| 65 | + hotlineFileMapper.deleteByIds(ids); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + | ||
| 69 | + private void validateHotlineFileExists(String id) { | ||
| 70 | + if (hotlineFileMapper.selectById(id) == null) { | ||
| 71 | + throw exception(HOTLINE_FILE_NOT_EXISTS); | ||
| 72 | + } | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + @Override | ||
| 76 | + public HotlineFileDO getHotlineFile(String id) { | ||
| 77 | + return hotlineFileMapper.selectById(id); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + @Override | ||
| 81 | + public PageResult<HotlineFileDO> getHotlineFilePage(HotlineFilePageReqVO pageReqVO) { | ||
| 82 | + return hotlineFileMapper.selectPage(pageReqVO); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | +} | ||
| 0 | \ No newline at end of file | 86 | \ No newline at end of file |
urbanops-module-garden/src/main/resources/mapper/hotlinecase/HotlineCaseMapper.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.hotlinecase.HotlineCaseMapper"> | ||
| 4 | + | ||
| 5 | + <!-- | ||
| 6 | + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 | ||
| 7 | + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 | ||
| 8 | + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 | ||
| 9 | + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ | ||
| 10 | + --> | ||
| 11 | + | ||
| 12 | +</mapper> | ||
| 0 | \ No newline at end of file | 13 | \ No newline at end of file |
urbanops-module-garden/src/main/resources/mapper/hotlinefile/HotlineFileMapper.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.hotlinefile.HotlineFileMapper"> | ||
| 4 | + | ||
| 5 | + <!-- | ||
| 6 | + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 | ||
| 7 | + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 | ||
| 8 | + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 | ||
| 9 | + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ | ||
| 10 | + --> | ||
| 11 | + | ||
| 12 | +</mapper> | ||
| 0 | \ No newline at end of file | 13 | \ No newline at end of file |