From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误
---
aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml b/aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml
index d5fae57..3e3e44b 100644
--- a/aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml
+++ b/aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.job.mapper.SysJobLogMapper">
- <resultMap type="SysJobLog" id="SysJobLogResult">
+ <resultMap type="com.aps.job.domain.SysJobLog" id="SysJobLogResult">
<id property="jobLogId" column="job_log_id" />
<result property="jobName" column="job_name" />
<result property="jobGroup" column="job_group" />
@@ -20,11 +20,11 @@
from sys_job_log
</sql>
- <select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
+ <select id="selectJobLogList" parameterType="com.aps.job.domain.SysJobLog" resultMap="SysJobLogResult">
<include refid="selectJobLogVo"/>
<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}
@@ -69,7 +69,7 @@
truncate table sys_job_log
</update>
- <insert id="insertJobLog" parameterType="SysJobLog">
+ <insert id="insertJobLog" parameterType="com.aps.job.domain.SysJobLog">
insert into sys_job_log(
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
@@ -87,7 +87,7 @@
<if test="jobMessage != null and jobMessage != ''">#{jobMessage},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="exceptionInfo != null and exceptionInfo != ''">#{exceptionInfo},</if>
- sysdate()
+ now()
)
</insert>
--
Gitblit v1.9.3