package cn.huge.module.griddata.dao.mapper; import cn.huge.module.griddata.domain.CaseAgent; import cn.huge.module.griddata.domain.CaseInfo; import cn.huge.module.griddata.domain.CaseInfoUnfold; import cn.huge.module.griddata.domain.CasePerson; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Service; import java.util.List; public interface CaseInfoMapper extends BaseMapper { @Select("select * from dyh_case_info order by create_time desc limit 1") CaseInfo getLastCaseInfo(); @Select("select count(*) from dyh_case_info where id = #{caseId}") int countCaseInfo(@Param("caseId") String caseId); @Insert("") int insertBatchCaseInfo(@Param("list") List list); @Insert("") int insertBatchCaseInfoUnfold(@Param("list") List list); @Insert("") int insertBatchCasePerson(@Param("list") List list); @Insert("") int inertBatchCaseAgent(@Param("list") List list); }