From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
smartor/src/main/resources/mapper/smartor/BaseOrganizationMapper.xml | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/BaseOrganizationMapper.xml b/smartor/src/main/resources/mapper/smartor/BaseOrganizationMapper.xml
index eacaf7f..f818e74 100644
--- a/smartor/src/main/resources/mapper/smartor/BaseOrganizationMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/BaseOrganizationMapper.xml
@@ -84,8 +84,8 @@
<select id="selectBaseOrganizationList" parameterType="com.smartor.domain.BaseOrganization"
resultMap="BaseOrganizationResult">
<include refid="selectBaseOrganizationVo"/>
- <where>
- del_flag=0
+ WHERE 1=1
+ AND del_flag=0
<if test="OrganizationName != null and OrganizationName != ''">
and OrganizationName like concat('%', #{OrganizationName}, '%')
</if>
@@ -170,10 +170,9 @@
<if test="guid != null and guid != ''">
and guid = #{guid}
</if>
- <if test="orgid != null ">
+ <if test="orgid != null and orgid != ''">
and orgid = #{orgid}
</if>
- </where>
</select>
<select id="selectBaseOrganizationByID" parameterType="Long"
--
Gitblit v1.9.3