7 changed files with 103 additions and 78 deletions
@ -1,19 +0,0 @@ |
|||||||
//
|
|
||||||
// Source code recreated from a .class file by IntelliJ IDEA
|
|
||||||
// (powered by Fernflower decompiler)
|
|
||||||
//
|
|
||||||
|
|
||||||
package org.springblade.video_image.video.mapper; |
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param; |
|
||||||
import org.springblade.video_image.video.entity.PointLeafNode; |
|
||||||
|
|
||||||
import java.util.List; |
|
||||||
|
|
||||||
public interface VideoBaseMapper{ |
|
||||||
int clearBindingRelation(@Param("videoList") List<Long> var1); |
|
||||||
|
|
||||||
List<PointLeafNode> getVideoList(@Param("pointIdList") List<Long> var1); |
|
||||||
|
|
||||||
int deleteById(long var1); |
|
||||||
} |
|
||||||
@ -1,43 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
|
|
||||||
<mapper namespace="org.springblade.video_image.video.mapper.VideoBaseMapper"> |
|
||||||
|
|
||||||
<sql id="Video_Base_Column_List"> |
|
||||||
id, name, pointId, inUse |
|
||||||
</sql> |
|
||||||
|
|
||||||
<sql id="Clear_Condition"> |
|
||||||
<where> |
|
||||||
<choose> |
|
||||||
<when test="videoList != null and !videoList.isEmpty()"> |
|
||||||
AND id IN ( |
|
||||||
<foreach collection="videoList" item="videoId" separator=","> |
|
||||||
#{videoId} |
|
||||||
</foreach> |
|
||||||
) |
|
||||||
</when> |
|
||||||
<otherwise> |
|
||||||
AND 1 = 2 |
|
||||||
</otherwise> |
|
||||||
</choose> |
|
||||||
</where> |
|
||||||
</sql> |
|
||||||
|
|
||||||
<sql id="List_Condition"> |
|
||||||
<where> |
|
||||||
<choose> |
|
||||||
<when test="pointIdList != null and !pointIdList.isEmpty()"> |
|
||||||
AND pointId IN ( |
|
||||||
<foreach collection="pointIdList" item="pointId" separator=","> |
|
||||||
#{pointId} |
|
||||||
</foreach> |
|
||||||
) |
|
||||||
</when> |
|
||||||
<otherwise> |
|
||||||
AND 1 = 2 |
|
||||||
</otherwise> |
|
||||||
</choose> |
|
||||||
</where> |
|
||||||
</sql> |
|
||||||
</mapper> |
|
||||||
Loading…
Reference in new issue