From edc00f6fbafa9bb74f736e47cafd000fb33ef4f1 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 28 四月 2025 20:39:00 +0800
Subject: [PATCH] 气体管路

---
 aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml b/aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml
index 58353fc..c2d9b94 100644
--- a/aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml
+++ b/aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml
@@ -29,7 +29,7 @@
 		<include refid="selectJobVo"/>
 		<where>
 			<if test="jobName != null and jobName != ''">
-				AND job_name like concat('%', #{jobName}, '%')
+				AND job_name like '%' || #{jobName} || '%'
 			</if>
 			<if test="jobGroup != null and jobGroup != ''">
 				AND job_group = #{jobGroup}
@@ -41,6 +41,7 @@
 				AND invoke_target like concat('%', #{invokeTarget}, '%')
 			</if>
 		</where>
+		order by job_id asc
 	</select>
 	
 	<select id="selectJobAll" resultMap="SysJobResult">
@@ -75,7 +76,7 @@
  			<if test="status !=null">status = #{status},</if>
  			<if test="remark != null and remark != ''">remark = #{remark},</if>
  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
- 			update_time = sysdate()
+ 			update_time = now()
  		</set>
  		where job_id = #{jobId}
 	</update>
@@ -104,7 +105,7 @@
  			<if test="status != null and status != ''">#{status},</if>
  			<if test="remark != null and remark != ''">#{remark},</if>
  			<if test="createBy != null and createBy != ''">#{createBy},</if>
- 			sysdate()
+ 			now()
  		)
 	</insert>
 

--
Gitblit v1.9.3