From ec23ec3d3dc4ec1ba7d79ba4f46ae2c31d5a16a9 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 10:49:10 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
smartor/src/main/resources/mapper/smartor/PatMedOperationMapper.xml | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationMapper.xml
index aba4680..74e12f5 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationMapper.xml
@@ -156,8 +156,9 @@
<select id="selectPatMedOperationList" parameterType="com.smartor.domain.PatMedOperation"
resultMap="PatMedOperationResult">
<include refid="selectPatMedOperationVo"/>
- <where>
- del_flag='0'
+ WHERE 1=1
+
+ AND del_flag='0'
<if test="patid != null ">
and patid = #{patid}
</if>
@@ -186,10 +187,10 @@
<!-- and operatortime = #{operatortime}-->
<!-- </if>-->
<if test="beginTime != null ">and date_format(operatortime,'%y%m%d') >=
- date_format(#{beginTime},'%y%m%d')
+ AND date_format(#{beginTime},'%y%m%d')
</if>
<if test="endTime != null ">and date_format(operatortime,'%y%m%d') <=
- date_format(#{endTime},'%y%m%d')
+ AND date_format(#{endTime},'%y%m%d')
</if>
<if test="opreqtime != null ">
and opreqtime = #{opreqtime}
@@ -356,7 +357,7 @@
<if test="opleveldesc != null and opleveldesc != ''">
and opleveldesc = #{opleveldesc}
</if>
- </where>
+
</select>
<select id="selectPatMedOperationById" parameterType="Long"
--
Gitblit v1.9.3