kongdeqiang
2023-07-10 96f927cb94eec4a91df60973d4052cb812856e13
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>