From 9812f31d6402a268fa6fd35e8c3a2a59582b720d Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期三, 22 二月 2023 15:57:58 +0800 Subject: [PATCH] 增加service --- src/main/resources/mybatis/mapper/TaskInfoMapper.xml | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mybatis/mapper/TaskInfoMapper.xml b/src/main/resources/mybatis/mapper/TaskInfoMapper.xml index d7d0024..2cfe149 100644 --- a/src/main/resources/mybatis/mapper/TaskInfoMapper.xml +++ b/src/main/resources/mybatis/mapper/TaskInfoMapper.xml @@ -18,6 +18,21 @@ <![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