|
|
@ -10,6 +10,8 @@ import org.apache.ibatis.annotations.Param; |
|
|
|
import org.apache.ibatis.annotations.Select; |
|
|
|
import org.springframework.stereotype.Repository; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ClassName: VideoWarningMapper |
|
|
|
* @Description: TODO |
|
|
@ -41,8 +43,14 @@ public interface VideoWarningMapper extends BaseMapper<VideoWarning> { |
|
|
|
"#{type}" + |
|
|
|
"</foreach>" + |
|
|
|
"</if>" + |
|
|
|
"<if test='order != null' and order.size() > 0'>" + |
|
|
|
"ORDER BY " + |
|
|
|
"<foreach collection='order' item='value' separator=','>" + |
|
|
|
"${value.key} ${value.value}" + |
|
|
|
"</foreach>" + |
|
|
|
"</if>" + |
|
|
|
"</script>") |
|
|
|
IPage<VideoWarningDto> search(Page<VideoWarning> page, @Param("dto") WarningQueDto dto); |
|
|
|
IPage<VideoWarningDto> search(Page<VideoWarning> page, @Param("dto") WarningQueDto dto, @Param("order") Map<String, Object> params); |
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
|
"SELECT a.id,a.code,a.type,a.name,a.warning_time ," + |
|
|
|