| | |
| | | <![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 |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getAllByTaskId" resultMap="resultMap"> |
| | | SELECT |
| | | <include refid="tableColumnList" /> |
| | | FROM TASK_INFO |
| | | WHERE TASK_ID=#{id} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |