|
|
@@ -4,8 +4,10 @@ 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.VideoInfoOther;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 电影信息其他Mapper
|
|
|
@@ -30,6 +32,7 @@ public interface VideoInfoOtherMapper {
|
|
|
"<if test=\"comment != null and comment != ''\">" +
|
|
|
" comment = #{comment}," +
|
|
|
"</if>" +
|
|
|
+ "modify_time=now()" +
|
|
|
"</set>" +
|
|
|
"where identification_code = #{identificationCode}" +
|
|
|
"</script>"})
|
|
|
@@ -52,4 +55,53 @@ public interface VideoInfoOtherMapper {
|
|
|
"VALUES (#{identificationCode}, #{picFlag}, now(), now()) " +
|
|
|
"ON DUPLICATE KEY UPDATE pic_flag=values(pic_flag),modify_time=now()")
|
|
|
int insertOrUpdate(String identificationCode, Integer picFlag);
|
|
|
+
|
|
|
+ @Insert("INSERT INTO video_info_other(identification_code, resolution_ratio, original, subtitle, recoding, create_time, modify_time) " +
|
|
|
+ "VALUES (#{identificationCode},#{resolutionRatio},#{original}, #{subtitle}, #{recoding}, now(), now())")
|
|
|
+ void insertVideoInfoOther(String identificationCode, String resolutionRatio, Integer original, Integer subtitle, Integer recoding);
|
|
|
+
|
|
|
+ @Update({"<script>" +
|
|
|
+ "update video_info_other " +
|
|
|
+ "<set>" +
|
|
|
+ "<if test=\"resolutionRatio != null and resolutionRatio != ''\">" +
|
|
|
+ " resolution_ratio = #{resolutionRatio}," +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"original != null\">" +
|
|
|
+ " original = #{original}," +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"subtitle != null\">" +
|
|
|
+ " subtitle = #{subtitle}," +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"recoding != null\">" +
|
|
|
+ " recoding = #{recoding}," +
|
|
|
+ "</if>" +
|
|
|
+ "modify_time=now()" +
|
|
|
+ "</set>" +
|
|
|
+ "where identification_code = #{identificationCode}" +
|
|
|
+ "</script>"})
|
|
|
+ void updateVideoInfoOther(String identificationCode, String resolutionRatio, Integer original, Integer subtitle, Integer recoding);
|
|
|
+
|
|
|
+ @Update("update video_info_other set delete_flag = 2,modify_time = now() where identification_code = #{identificationCode}")
|
|
|
+ void delByCode(String identificationCode);
|
|
|
+
|
|
|
+ @Select({"<script>" +
|
|
|
+ "select * from video_info_other WHERE delete_flag = 1" +
|
|
|
+ "<if test=\"identificationCode != null and identificationCode != ''\">" +
|
|
|
+ " and identification_code like concat('%',#{identificationCode},'%')" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"resolutionRatio != null and resolutionRatio != ''\">" +
|
|
|
+ " and resolution_ratio = #{resolutionRatio}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"original != null\">" +
|
|
|
+ " and original = #{original}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"subtitle != null\">" +
|
|
|
+ " and subtitle = #{subtitle}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"recoding != null\">" +
|
|
|
+ " and recoding = #{recoding}" +
|
|
|
+ "</if>" +
|
|
|
+ " order by modify_time desc" +
|
|
|
+ "</script>"})
|
|
|
+ List<VideoInfoOther> findVideoInfoOther4MultipleParams(String identificationCode, String resolutionRatio, Integer original, Integer subtitle, Integer recoding);
|
|
|
}
|