From 0d5a84d599cbfbd77b5663e592603f938b54409e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 11:31:33 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

---
 ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
index 5605c44..9777b36 100644
--- a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
+++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
@@ -27,7 +27,7 @@
 	
 	<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
 		<include refid="selectJobVo"/>
-		<where>
+		WHERE 1=1
 			<if test="jobName != null and jobName != ''">
 				AND job_name like concat('%', #{jobName}, '%')
 			</if>
@@ -40,7 +40,9 @@
 			<if test="invokeTarget != null and invokeTarget != ''">
 				AND invoke_target like concat('%', #{invokeTarget}, '%')
 			</if>
-		</where>
+			<if test="orgid != null and orgid != ''">
+				AND orgid = #{orgid}
+			</if>
 	</select>
 	
 	<select id="selectJobAll" resultMap="SysJobResult">

--
Gitblit v1.9.3