diff --git a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/agentservice/LingShanAgentServiceCategoryResultDTO.java b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/agentservice/LingShanAgentServiceCategoryResultDTO.java new file mode 100644 index 0000000000..c3a6bfc0c7 --- /dev/null +++ b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/agentservice/LingShanAgentServiceCategoryResultDTO.java @@ -0,0 +1,23 @@ +package com.epmet.dto.result.agentservice; + +import lombok.Data; + +@Data +public class LingShanAgentServiceCategoryResultDTO { + + /** + * 租户号 + */ + private String id; + + /** + * 类别名称 + */ + private String categoryName; + + /** + * 描述 + */ + private String description; + +} diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/LingShanAgentServiceController.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/LingShanAgentServiceController.java index 682d69c6d1..bff96e088f 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/LingShanAgentServiceController.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/LingShanAgentServiceController.java @@ -11,6 +11,7 @@ import com.epmet.commons.tools.validator.ValidatorUtils; import com.epmet.dto.form.agentservice.WorkCloseAgentServiceFormDTO; import com.epmet.dto.form.lingshan.AgentServiceResiSubmitFormDTO; import com.epmet.dto.result.agentservice.AgentServiceList4WorkPcResultDTO; +import com.epmet.dto.result.agentservice.LingShanAgentServiceCategoryResultDTO; import com.epmet.dto.result.agentservice.ResiMyCreatedAgentServiceResultDTO; import com.epmet.dto.result.agentservice.WorkServiceAgentResultDTO; import com.epmet.service.LingShanAgentServiceService; @@ -34,6 +35,19 @@ public class LingShanAgentServiceController { @Autowired private LingShanAgentServiceService lingShanServiceAgentService; + /** + * @Description: 服务分类 + * @param : + * @Return com.epmet.commons.tools.utils.Result + * @Author: wangxianzhang + * @Date: 2023/5/11 2:57 PM + */ + @GetMapping("serviceCategoryList") + public Result> listServiceCategories() { + List l = lingShanServiceAgentService.listServiceCategories(); + return new Result>().ok(l); + } + /** * @description: 居民端-提交代办服务 * @param form: diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/LingShanAgentServiceService.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/LingShanAgentServiceService.java index 22990448cf..f5c2d7ba47 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/LingShanAgentServiceService.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/LingShanAgentServiceService.java @@ -3,6 +3,7 @@ package com.epmet.service; import com.epmet.commons.tools.page.PageData; import com.epmet.dto.form.lingshan.AgentServiceResiSubmitFormDTO; import com.epmet.dto.result.agentservice.AgentServiceList4WorkPcResultDTO; +import com.epmet.dto.result.agentservice.LingShanAgentServiceCategoryResultDTO; import com.epmet.dto.result.agentservice.ResiMyCreatedAgentServiceResultDTO; import com.epmet.dto.result.agentservice.WorkServiceAgentResultDTO; @@ -28,4 +29,6 @@ public interface LingShanAgentServiceService { String agentName, Date processTimeStart, Date processTimeEnd, Integer pageNo, Integer pageSize); void workPcDelete(String id); + + List listServiceCategories(); } diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java index c31835cc02..2a0c261b8b 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java @@ -25,6 +25,7 @@ import com.epmet.dao.LingshanAgentServiceRecordDao; import com.epmet.dto.form.lingshan.AgentServiceResiSubmitFormDTO; import com.epmet.dto.result.LoginUserDetailsResultDTO; import com.epmet.dto.result.agentservice.AgentServiceList4WorkPcResultDTO; +import com.epmet.dto.result.agentservice.LingShanAgentServiceCategoryResultDTO; import com.epmet.dto.result.agentservice.ResiMyCreatedAgentServiceResultDTO; import com.epmet.dto.result.agentservice.WorkServiceAgentResultDTO; import com.epmet.entity.LingshanAgentServiceCategoryEntity; @@ -61,6 +62,11 @@ public class LingShanAgentServiceServiceImpl implements LingShanAgentServiceServ public static final String AGENT_SERVICE_LOCK_PREFIX = "lingshan:agentservice:statuschange:"; + @Override + public List listServiceCategories() { + List es = agentServiceCategoryDao.selectList(new LambdaQueryWrapper<>()); + return ConvertUtils.sourceToTarget(es, LingShanAgentServiceCategoryResultDTO.class); + } @Override public void resiSubmit(AgentServiceResiSubmitFormDTO form) {