|
@@ -16,6 +16,7 @@
|
|
|
*/
|
|
|
package org.springblade.archive.mapper;
|
|
|
|
|
|
+import org.apache.ibatis.annotations.MapKey;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.springblade.archive.dto.ArchivesAutoDTO;
|
|
|
import org.springblade.archive.entity.ArchivesAuto;
|
|
@@ -23,6 +24,7 @@ import org.springblade.archive.vo.ArchivesAutoVO;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* Mapper 接口
|
|
@@ -67,4 +69,10 @@ public interface ArchivesAutoMapper extends BaseMapper<ArchivesAuto> {
|
|
|
*/
|
|
|
List<ArchivesAutoVO> getAllArchiveByContractType(@Param("projectId") Long projectId,@Param("type") String type);
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取所有案卷年限,并分组
|
|
|
+ */
|
|
|
+ @MapKey("storage_time")
|
|
|
+ List<Map<String,String>> getAllArchiveAgeByContractType(@Param("projectId") Long projectId);
|
|
|
+
|
|
|
}
|