| | |
| | | </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} |