From f1f213fd8ab97bb70c624d202ff039b8bfb57128 Mon Sep 17 00:00:00 2001 From: wengjx <2365319070@qq.com> Date: Fri, 5 Aug 2022 18:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E7=90=86=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/Archive_MasterMapper.xml | 49 ++++++++++++++++--- .../views/pathological/pathologicalReport.jsp | 41 +++++++++------- 2 files changed, 67 insertions(+), 23 deletions(-) diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index 0b9cb3de..41cc91d9 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -2210,12 +2210,49 @@ AND name LIKE '%' + #{name} + '%' - - and m.discharge_date_time >= CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120) - - - and m.discharge_date_time <= #{endDate,jdbcType=NCHAR}+ ' 23:59:59' - + + AND visit_id LIKE '%' + #{visitId} + '%' + + + + + + + + + + and m.discharge_date_time = #{dischargeDateTime,jdbcType=NVARCHAR} + + + + and m.discharge_date_time between CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) and + #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59' + + + and m.discharge_date_time >= CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) + + + and m.discharge_date_time <= #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59' + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/views/pathological/pathologicalReport.jsp b/src/main/webapp/WEB-INF/views/pathological/pathologicalReport.jsp index 1aab7d39..7760fe01 100644 --- a/src/main/webapp/WEB-INF/views/pathological/pathologicalReport.jsp +++ b/src/main/webapp/WEB-INF/views/pathological/pathologicalReport.jsp @@ -62,25 +62,25 @@ -<%--
--%> -<%-- --%> -<%-- -<%-- maxlength="2">--%> -<%--
--%> +
+ + +
-<%--
--%> -<%-- --%> -<%--
--%> -<%-- -<%-- maxlength="10" autocomplete="off"/>--%> -<%-- ---%> -<%-- -<%-- autocomplete="off"/>--%> -<%--
--%> -<%--
--%> +
+ +
+ + - + +
+
@@ -161,9 +161,12 @@ offset: offset, //页码 order: params.order, //排位命令(desc,asc) inpNo: "" + $("#inpNo").val(), + visitId : "" + $("#visitId").val(), startDate: $("#startDate").val(), endDate: $("#endDate").val(), - name: "" + $("#name").val() + name: "" + $("#name").val(), + startDateTo: $("#startDateTo").val(), + endDateTo: $("#endDateTo").val(), }; return temp; }, @@ -279,7 +282,11 @@ //刷新 $('#table').bootstrapTable('refresh'); }); - + //日期控件 + $(".input-daterange").datepicker({ + format: "yyyy-mm-dd", + language: "zh-CN" + }); \ No newline at end of file