|
|
@@ -3,6 +3,7 @@ package top.lvzhiqiang.mapper;
|
|
|
import org.apache.ibatis.annotations.Delete;
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
import top.lvzhiqiang.entity.CrawlerJavbusLog;
|
|
|
import top.lvzhiqiang.entity.CrawlerJavbusProfile;
|
|
|
|
|
|
@@ -93,4 +94,13 @@ public interface CrawlerJavbusProfileMapper {
|
|
|
*/
|
|
|
@Select("SELECT * FROM crawler_javbus_log WHERE delete_flag = 1 and status = #{status}")
|
|
|
List<CrawlerJavbusLog> findJavbusLogByStatus(Integer status);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据id删除
|
|
|
+ */
|
|
|
+ @Update("update crawler_javbus_log set delete_flag = 2, modify_time = now() where id = #{id}")
|
|
|
+ void deleteJavbusLogById(Long id);
|
|
|
+
|
|
|
+ @Update("update crawler_javbus_log set delete_flag = 2, error_msg=#{errorMsg}, modify_time = now() where id = #{id}")
|
|
|
+ void deleteJavbusLogById(Long id, String errorMsg);
|
|
|
}
|