|
|
@ -23,7 +23,7 @@ import org.springframework.stereotype.Repository; |
|
|
|
public interface VideoWarningMapper extends BaseMapper<VideoWarning> { |
|
|
|
@Select("<script>" + |
|
|
|
"SELECT a.id,a.code,a.type,a.name,a.warning_time," + |
|
|
|
" (case when a.type = 1 then (select dike_name from bs_sgc_df_gcda where dike_code = a.code and expr_date is null) end " + |
|
|
|
" (case when a.type = 1 then (select dike_name from bs_sgc_df_gcda where dike_code = a.code and expr_date is null) " + |
|
|
|
" when a.type = 2 then (select waga_name from bs_sgc_sz_jbxx where waga_code = a.code and expr_date is null ) end) as objName " + |
|
|
|
" FROM bs_sgc_stc_spfx a order by a.create_time desc" + |
|
|
|
" <if test='dto.code != null and dto.code != \"\"'>" + |
|
|
@ -46,7 +46,7 @@ public interface VideoWarningMapper extends BaseMapper<VideoWarning> { |
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
|
"SELECT a.id,a.code,a.type,a.name,a.warning_time ," + |
|
|
|
" (case when a.type = 1 then (select dike_name from bs_sgc_df_gcda where dike_code = a.code and expr_date is null) end " + |
|
|
|
" (case when a.type = 1 then (select dike_name from bs_sgc_df_gcda where dike_code = a.code and expr_date is null) " + |
|
|
|
" when a.type = 2 then (select waga_name from bs_sgc_sz_jbxx where waga_code = a.code and expr_date is null ) end) as objName, " + |
|
|
|
" FROM bs_sgc_stc_spfx a order by a.create_time desc" + |
|
|
|
" where a.id = #{id}" + |
|
|
|