package com.gunshi.project.hsz.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.gunshi.project.hsz.entity.so.ByPlanPageSo; import com.gunshi.project.hsz.model.ByPlanDetail; import jakarta.validation.constraints.NotNull; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.io.Serializable; import java.util.List; @Mapper public interface ByPlanDetailMapper extends BaseMapper { @Select(""" """) List selectList(@Param("planId")String planId, @Param("dto") ByPlanPageSo dto); @Select(""" select count(*) from by_plan_detail t where t.pre_place_detail_id = #{id} """) int selectByPPDI(@Param("id") Serializable id); }