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/InspectionTaskMapper.xml | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mybatis/mapper/InspectionTaskMapper.xml b/src/main/resources/mybatis/mapper/InspectionTaskMapper.xml index ee8b284..0672d2f 100644 --- a/src/main/resources/mybatis/mapper/InspectionTaskMapper.xml +++ b/src/main/resources/mybatis/mapper/InspectionTaskMapper.xml @@ -22,8 +22,36 @@ </if> </sql> + <update id="updateById" parameterType="com.wgcloud.entity.InspectionTask"> + UPDATE INSPECTION_TASK + <set> + <if test="title != null"> + TITLE = #{title}, + </if> + <if test="type != null"> + TYPE = #{type}, + </if> + <if test="period != null"> + PERIOD = #{period}, + </if> + <if test="scope != null"> + SCOPE = #{scope}, + </if> + <if test="startDate != null"> + START_DATE = #{startDate}, + </if> + <if test="endDate != null"> + END_DATE = #{endDate}, + </if> + <if test="createTime != null"> + CREATE_TIME = #{createTime}, + </if> + </set> + WHERE ID = #{id} + </update> - <select id="selectById" resultMap="resultMap" parameterType="java.lang.String"> + + <select id="selectById" resultMap="resultMap" parameterType="java.lang.String"> SELECT <include refid="tableColumnList" /> FROM INSPECTION_TASK WHERE ID=#{id} -- Gitblit v1.9.1