From 96f927cb94eec4a91df60973d4052cb812856e13 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 10 七月 2023 09:11:54 +0800 Subject: [PATCH] 修改项目 --- src/main/resources/mybatis/mapper/TaskInfoMapper.xml | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mybatis/mapper/TaskInfoMapper.xml b/src/main/resources/mybatis/mapper/TaskInfoMapper.xml index d7d0024..2f868a6 100644 --- a/src/main/resources/mybatis/mapper/TaskInfoMapper.xml +++ b/src/main/resources/mybatis/mapper/TaskInfoMapper.xml @@ -14,10 +14,25 @@ </sql> <sql id="queryByParams"> - <if test="hostname != null"> + <if test="taskId != null"> <![CDATA[ AND TASK_ID = #{taskId} ]]> </if> </sql> + <update id="updateById" parameterType="com.wgcloud.entity.TaskInfo"> + update TASK_INFO + <set> + <if test="taskDate != null"> + TASK_DATE = #{taskDate}, + </if> + <if test="isOk != null"> + IS_OK = #{isOk}, + </if> + <if test="content != null"> + CONTENT = #{content}, + </if> + </set> + WHERE ID = #{id} + </update> <select id="selectById" resultMap="resultMap" parameterType="java.lang.String"> SELECT @@ -87,5 +102,12 @@ </where> </select> + <select id="getAllByTaskId" resultMap="resultMap"> + SELECT + <include refid="tableColumnList" /> + FROM TASK_INFO + WHERE TASK_ID=#{id} + </select> + </mapper> -- Gitblit v1.9.1