From 23623888df0dd1444526818139e502b5f8015a51 Mon Sep 17 00:00:00 2001 From: wangmengmeng <764361881@qq.com> Date: 星期四, 17 四月 2025 10:25:00 +0800 Subject: [PATCH] add wayline code --- ruoyi-system/src/main/resources/mapper/system/WaylineJobMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/WaylineJobMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WaylineJobMapper.xml index 776e2e6..34698f2 100644 --- a/ruoyi-system/src/main/resources/mapper/system/WaylineJobMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/WaylineJobMapper.xml @@ -11,10 +11,11 @@ <result property="updateTime" column="update_time" /> <result property="name" column="name" /> <result property="remark" column="remark" /> + <result property="jobIds" column="job_ids" /> </resultMap> <sql id="selectWaylineJobVo"> - select id, operations, create_time, update_time, name, remark from wayline_job + select id, operations, create_time, update_time, name, remark, job_ids from wayline_job </sql> <select id="selectWaylineJobList" parameterType="WaylineJob" resultMap="WaylineJobResult"> @@ -22,6 +23,7 @@ <where> <if test="operations != null and operations != ''"> and operations = #{operations}</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="jobIds != null and jobIds != ''"> and job_ids = #{jobIds}</if> </where> </select> @@ -38,6 +40,7 @@ <if test="updateTime != null">update_time,</if> <if test="name != null">name,</if> <if test="remark != null">remark,</if> + <if test="jobIds != null">job_ids,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="operations != null and operations != ''">#{operations},</if> @@ -45,6 +48,7 @@ <if test="updateTime != null">#{updateTime},</if> <if test="name != null">#{name},</if> <if test="remark != null">#{remark},</if> + <if test="jobIds != null">#{jobIds},</if> </trim> </insert> @@ -56,6 +60,7 @@ <if test="updateTime != null">update_time = #{updateTime},</if> <if test="name != null">name = #{name},</if> <if test="remark != null">remark = #{remark},</if> + <if test="jobIds != null">job_ids = #{jobIds},</if> </trim> where id = #{id} </update> -- Gitblit v1.9.3