From 9b20f34f84cee06eafdb0cc349b1f6815037991e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=BF=8A=E6=9D=B0?= <9463626+zhou-junjiezjj@user.noreply.gitee.com> Date: Tue, 22 Oct 2024 14:33:54 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=B7=A5=E5=8D=95=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/TemplateController.java | 11 + .../service/template/TemplateService.java | 14 + .../system/service/template/dto/Template.java | 5 +- .../template/dto/mapper/TemplateMapper.java | 1 + .../template/impl/TemplateServiceImpl.java | 52 +- acs/nladmin-ui/src/api/acs/order/order.js | 40 +- acs/nladmin-ui/src/api/acs/order/template.js | 16 +- acs/nladmin-ui/src/views/acs/order/app.vue | 1 + .../src/views/acs/order/template.vue | 595 +++++++++++------- 9 files changed, 473 insertions(+), 262 deletions(-) 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