From c4f1fcc51989a014f9737689c123b3266f13ccda Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期二, 20 二月 2024 18:07:44 +0800 Subject: [PATCH] zjh 2024/02/20--1 --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java index e00a6a5..eff536a 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java @@ -17,6 +17,7 @@ import com.ltkj.common.utils.bean.BeanUtils; import com.ltkj.framework.config.MatchUtils; import com.ltkj.hosp.domain.*; +import com.ltkj.hosp.mapper.TestMapper; import com.ltkj.hosp.service.*; import com.ltkj.system.domain.SysPost; import com.ltkj.system.domain.SysUserPost; @@ -98,6 +99,8 @@ private ITjRulesService tjRulesService; @Autowired public RedisTemplate<Object,Object> redisTemplate; + @Resource + private TestMapper testMapper; /** @@ -834,6 +837,33 @@ } + @GetMapping("/getTjYxjcList") + @ApiOperation("鏌ヨ涓汉褰卞搷妫�鏌ラ」鐩粨鏋滈泦") + public AjaxResult getTjYxjcList(@ApiParam(value = "濮撳悕") @RequestParam String patname, + @ApiParam(value = "鎬у埆") @RequestParam String sex, + @ApiParam(value = "骞撮緞") @RequestParam String patage, + @ApiParam(value = "骞撮緞鍗曚綅") @RequestParam String patagename, + @ApiParam(value = "鐢熸棩)") @RequestParam Date patbirth) { + + String format = DateUtil.format(patbirth, "yyyy.MM.dd"); + + List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList(patname,sex,patage+patagename,format); + return AjaxResult.success(tjYxjcList); + } + + +// @GetMapping("/getSsTjYxjcList") +// @ApiOperation("鏌ヨ涓汉褰卞搷妫�鏌ラ」鐩粨鏋滈泦(鎼滅礌鐢�)") +// public AjaxResult getSsTjYxjcList(@ApiParam(value = "濮撳悕") @RequestParam String patname, +// @ApiParam(value = "鎬у埆") @RequestParam String sex, +// @ApiParam(value = "骞撮緞") @RequestParam String patage) { +// +// +// List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList(patname,sex,null,null); +// return AjaxResult.success(tjYxjcList); +// } + + -- Gitblit v1.8.0