|
|
@ -13,7 +13,6 @@ import org.apache.ibatis.annotations.*; |
|
|
|
import org.apache.ibatis.jdbc.SQL; |
|
|
|
import org.springframework.stereotype.Repository; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -107,10 +106,10 @@ public interface DfPlanMapper extends BaseMapper<DfPlan> { |
|
|
|
"AND exists (select 1 from bs_sgc_df_xsjhzx zx where zx.operator_uid = #{searchDto.user}) " + |
|
|
|
"</if>" + |
|
|
|
"<if test='searchDto != null and searchDto.isStart != null and searchDto.isStart == true'>" + |
|
|
|
"AND r.remaining > 0 " + |
|
|
|
"AND r.id is not null " + |
|
|
|
"</if>" + |
|
|
|
"<if test='searchDto != null and searchDto.isStart != null and searchDto.isStart == false'>" + |
|
|
|
"AND r.remaining = 0 " + |
|
|
|
"AND r.id is null " + |
|
|
|
"</if>" + |
|
|
|
"ORDER BY last_time desc,sub.start_date " + |
|
|
|
"</script>") |
|
|
|