diff --git a/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskGroupMapper.xml b/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskGroupMapper.xml
index d0b5919..f8df072 100644
--- a/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskGroupMapper.xml
+++ b/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskGroupMapper.xml
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{examCode},
#{groupCode},
- (select nvl(max(order_id),0) + 1 from exam_task_group where exam_code = #{examCode}),
+ (select ifnull(max(order_id),0) + 1 from exam_task_group where exam_code = #{examCode}),
diff --git a/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskManagerMapper.xml b/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskManagerMapper.xml
index 5c5075b..19ead06 100644
--- a/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskManagerMapper.xml
+++ b/exam-online-api/hig-application/src/main/resources/mapper/exam/ExamTaskManagerMapper.xml
@@ -30,13 +30,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
@@ -86,8 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{jobMessage},
#{status},
#{exceptionInfo},
- sysdate
+ now()
)
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/exam-online-api/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/exam-online-api/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
index d53b3cb..a4dbe21 100644
--- a/exam-online-api/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
+++ b/exam-online-api/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
@@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
status = #{status},
remark = #{remark},
update_by = #{updateBy},
- update_time = sysdate
+ update_time = now()
where job_id = #{jobId}
@@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{status},
#{remark},
#{createBy},
- sysdate
+ now()
)
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
index 22bd12b..6f5c259 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -42,19 +42,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- AND config_name like '%' || #{configName} || '%'
+ AND config_name like concat('%', #{configName}, '%')
AND config_type = #{configType}
- AND config_key like '%' || #{configKey} || '%'
+ AND config_key like concat('%', #{configKey}, '%')
- AND to_char(create_time,'yyyy-MM-dd') >= #{params.beginTime}
+ AND date_format(create_time,'%Y-%m-%d') >= #{params.beginTime}
- AND to_char(create_time,'yyyy-MM-dd') <= #{params.endTime}
+ AND date_format(create_time,'%Y-%m-%d') <= #{params.endTime}
@@ -75,14 +75,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
remark,
create_time
)values(
- (select nvl(max(config_id),0) + 1 from sys_config),
+ (select ifnull(max(config_id),0) + 1 from sys_config),
#{configName},
#{configKey},
#{configValue},
#{configType},
#{createBy},
#{remark},
- sysdate
+ now()
)
@@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
config_type = #{configType},
update_by = #{updateBy},
remark = #{remark},
- update_time = sysdate
+ update_time = now()
where config_id = #{configId}
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index 6a8fd4e..5e4c3ab 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -99,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
create_by,
create_time
)values(
- (select nvl(max(dept_id),0) + 1 from sys_dept),
+ (select ifnull(max(dept_id),0) + 1 from sys_dept),
#{parentId},
#{deptCode},
#{deptName},
@@ -111,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{status},
'0',
#{createBy},
- sysdate
+ now()
)
@@ -128,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
email = #{email},
status = #{status},
update_by = #{updateBy},
- update_time = sysdate
+ update_time = now()
where dept_id = #{deptId}
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
index dd69cc4..3866585 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
status = #{status},
remark = #{remark},
update_by = #{updateBy},
- update_time = sysdate
+ update_time = now()
where dict_code = #{dictCode}
@@ -108,7 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
create_by,
create_time
)values(
- (select nvl(max(config_id),0) + 1 from sys_config),
+ (select ifnull(max(config_id),0) + 1 from sys_config),
#{dictSort},
#{dictLabel},
#{dictValue},
@@ -119,7 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{status},
#{remark},
#{createBy},
- sysdate
+ now()
)
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
index 54626a1..517eaeb 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -24,19 +24,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- AND dict_name like '%' || #{dictName} || '%'
+ AND dict_name like concat('%', #{dictName}, '%')
AND status = #{status}
- AND dict_type like '%' || #{dictType} || '%'
+ AND dict_type like concat('%', #{dictType}, '%')
- AND to_char(create_time,'yyyy-MM-dd') >= #{params.beginTime}
+ AND date_format(create_time,'%Y-%m-%d') >= #{params.beginTime}
- AND to_char(create_time,'yyyy-MM-dd') <= #{params.endTime}
+ AND date_format(create_time,'%Y-%m-%d') <= #{params.endTime}
@@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
status = #{status},
remark = #{remark},
update_by = #{updateBy},
- update_time = sysdate
+ update_time = now()
where dict_id = #{dictId}
@@ -94,14 +94,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
create_by,
create_time
)values(
- (select nvl(max(dict_id),0) + 1 from sys_dict_type),
+ (select ifnull(max(dict_id),0) + 1 from sys_dict_type),
#{dictName},
#{dictType},
#{status},
#{remark},
#{createBy},
- sysdate
+ now()
)
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
index f7dbe1c..471f7dc 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
@@ -18,26 +18,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into sys_logininfor (info_id,user_name, status, ipaddr, login_location, browser, os, msg, login_time)
- values ((select nvl(max(info_id),0) + 1 from sys_logininfor),#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate)
+ values ((select ifnull(max(info_id),0) + 1 from sys_logininfor),#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, now())
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor
- AND ipaddr like '%' || #{ipaddr} || '%'
+ AND ipaddr like concat('%', #{ipaddr}, '%')
AND status = #{status}
- AND user_name like '%' || #{userName} || '%'
+ AND user_name like concat('%', #{userName}, '%')
- AND to_char(login_time,'yyyy-MM-dd') >= #{params.beginTime}
+ AND date_format(login_time,'%Y-%m-%d') >= #{params.beginTime}
- AND to_char(login_time,'yyyy-MM-dd') <= #{params.endTime}
+ AND date_format(login_time,'%Y-%m-%d') <= #{params.endTime}
order by info_id desc
@@ -54,4 +54,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
truncate table sys_logininfor
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
index 411095a..ddb8857 100644
--- a/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
+++ b/exam-online-api/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -27,7 +27,7 @@
@@ -48,13 +48,13 @@