kongdeqiang
2023-02-22 9812f31d6402a268fa6fd35e8c3a2a59582b720d
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>