From d337c8e2e21df8ff7d2ecae493fa7a65627fedea Mon Sep 17 00:00:00 2001
From: Zhu Zhonghua <zhonghua@qq.com>
Date: 星期四, 22 五月 2025 14:52:48 +0800
Subject: [PATCH] 处理焊缝大数据插入异常问题
---
aps-modules/aps-job/src/main/resources/mapper/job/SysJobMapper.xml | 9 +++++----
1 files changed, 5 insertions(+), 4 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 37e1e1b..8fed4c3 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
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.job.mapper.SysJobMapper">
- <resultMap type="SysJob" id="SysJobResult">
+ <resultMap type="com.aps.job.domain.SysJob" id="SysJobResult">
<id property="jobId" column="job_id" />
<result property="jobName" column="job_name" />
<result property="jobGroup" column="job_group" />
@@ -25,7 +25,7 @@
from sys_job
</sql>
- <select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
+ <select id="selectJobList" parameterType="com.aps.job.domain.SysJob" resultMap="SysJobResult">
<include refid="selectJobVo"/>
<where>
<if test="jobName != null and jobName != ''">
@@ -41,6 +41,7 @@
AND invoke_target like concat('%', #{invokeTarget}, '%')
</if>
</where>
+ order by job_id asc
</select>
<select id="selectJobAll" resultMap="SysJobResult">
@@ -63,7 +64,7 @@
</foreach>
</delete>
- <update id="updateJob" parameterType="SysJob">
+ <update id="updateJob" parameterType="com.aps.job.domain.SysJob">
update sys_job
<set>
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
@@ -80,7 +81,7 @@
where job_id = #{jobId}
</update>
- <insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
+ <insert id="insertJob" parameterType="com.aps.job.domain.SysJob" useGeneratedKeys="true" keyProperty="jobId">
insert into sys_job(
<if test="jobId != null and jobId != 0">job_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
--
Gitblit v1.9.3