文件名从 src/main/resources/mybatis/system/SysJobLogMapper.xml 修改 |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.ruoyi.project.monitor.mapper.SysJobLogMapper">
|
| | |
|
| | | <resultMap type="SysJobLog" id="SysJobLogResult">
|
| | | <resultMap type="com.ruoyi.project.monitor.domain.SysJobLog" id="SysJobLogResult"> |
| | | <id property="jobLogId" column="job_log_id" />
|
| | | <result property="jobName" column="job_name" />
|
| | | <result property="jobGroup" column="job_group" />
|
| | |
| | | from sys_job_log
|
| | | </sql>
|
| | |
|
| | | <select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
|
| | | <select id="selectJobLogList" parameterType="com.ruoyi.project.monitor.domain.SysJobLog" resultMap="SysJobLogResult"> |
| | | <include refid="selectJobLogVo"/>
|
| | | <where>
|
| | | <if test="jobName != null and jobName != ''">
|
| | |
| | | truncate table sys_job_log
|
| | | </update>
|
| | |
|
| | | <insert id="insertJobLog" parameterType="SysJobLog">
|
| | | <insert id="insertJobLog" parameterType="com.ruoyi.project.monitor.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>
|