diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java index 005f3ae..e1dfebb 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java @@ -37,6 +37,17 @@ public class TemplateController { return new ResponseEntity<>(HttpStatus.OK); } + @GetMapping("/getTemplateList") + @Log("前端打印模板名称下拉选列表") + public ResponseEntity getTemplateList() { + return new ResponseEntity<>(templateService.getTemplateList(), HttpStatus.OK); + } + + @GetMapping("/getTicketList") + @Log("前端模板需要关联的工单下拉选列表") + public ResponseEntity getTicketList() { + return new ResponseEntity<>(templateService.getTicketList(), HttpStatus.OK); + } @GetMapping("/id") @Log("根据id查询模板") diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java index 8713fc8..246374f 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java @@ -1,5 +1,6 @@ package org.nl.system.service.template; +import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; import org.nl.common.domain.query.PageQuery; @@ -15,6 +16,19 @@ public interface TemplateService extends IService