From ae414db7f7368886469f28614704ecd4b145561b Mon Sep 17 00:00:00 2001 From: wangziyangyang <707231019@qq.com> Date: Wed, 11 Mar 2020 08:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9F=BA=E7=A1=80=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=B4=E6=8A=A4=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SpTableManagerItemController.java | 19 +- .../basedata/manageritem/addOrUpdate.ftl | 346 ++++++++++++++++++ .../templates/basedata/manageritem/list.ftl | 217 +++++++++++ 3 files changed, 578 insertions(+), 4 deletions(-) create mode 100644 sparchetype/src/main/resources/templates/basedata/manageritem/addOrUpdate.ftl create mode 100644 sparchetype/src/main/resources/templates/basedata/manageritem/list.ftl diff --git a/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerItemController.java b/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerItemController.java index 2cd149c..3380a38 100644 --- a/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerItemController.java +++ b/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerItemController.java @@ -10,10 +10,8 @@ import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -34,6 +32,19 @@ public class SpTableManagerItemController extends BaseController { @Autowired private ISpTableManagerItemService iSpTableManagerItemService; + /** + * 主数据维护界面 + * + * @param model 模型 + * @return 主数据维护界面 + */ + @ApiOperation("主数据管理平台UI") + @ApiImplicitParams({@ApiImplicitParam(name = "model", value = "模型", defaultValue = "模型")}) + @GetMapping("/list-ui") + public String listUI(Model model) { + return "basedata/manageritem/list"; + } + /** * 根据表名称查询该表的全部字段数据库明细 * diff --git a/sparchetype/src/main/resources/templates/basedata/manageritem/addOrUpdate.ftl b/sparchetype/src/main/resources/templates/basedata/manageritem/addOrUpdate.ftl new file mode 100644 index 0000000..425e77b --- /dev/null +++ b/sparchetype/src/main/resources/templates/basedata/manageritem/addOrUpdate.ftl @@ -0,0 +1,346 @@ + + +
+ +