| | |
| | | package com.dji.sample.patches.service; |
| | | |
| | | import com.dji.sample.common.model.PaginationData; |
| | | import com.dji.sample.media.model.MediaFileEntity; |
| | | import com.dji.sample.patches.model.Param.PatchesParam; |
| | | import com.dji.sample.patches.model.entity.PatchesEntity; |
| | | import com.dji.sample.patches.model.entity.LotInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface GetPatchesService { |
| | | PaginationData<PatchesEntity> limitGet(PatchesParam param); |
| | | /** |
| | | * 分页获取数据的接口实现。 |
| | | * @param param 包含分页信息和查询条件的工作空间ID。 |
| | | * @return 返回一个包含查询结果和分页信息的PaginationData对象。 |
| | | */ |
| | | PaginationData<LotInfo> limitGet(PatchesParam param); |
| | | int delPatches(String workspaceId); |
| | | |
| | | int deleteOne(int id); |
| | | /** |
| | | * 根据条件获取照片的分页数据 |
| | | * |
| | | * @param param 包含分页信息和查询条件的参数对象 |
| | | * @param dkbh 查询条件中带有地块编号关键字,用于文件名的模糊搜索 |
| | | * @return 返回照片的分页数据,包括分页信息和照片实体列表 |
| | | */ |
| | | PaginationData<MediaFileEntity> getPhoto(PatchesParam param,String dkbh); |
| | | LotInfo getPatchesFromId(String patchesId); |
| | | /** |
| | | * 根据条件获取照片的分页数据 |
| | | * |
| | | * @param workspaceId 工作空间的ID,用于指定查询的工作空间 |
| | | * @param dkbh 查询条件中带有地块编号关键字,用于文件名的模糊搜索 |
| | | * @return 返回照片的分页数据,包括分页信息和照片实体列表 |
| | | */ |
| | | List<MediaFileEntity> listPohto(String dkbh, String workspaceId); |
| | | |
| | | /** |
| | | * 根据地块编号和工作空间ID获取地块信息。 |
| | | * @param dkbh 地块编号,用于查询特定定单的地块信息。 |
| | | * @param workspaceId 工作空间ID,用于查询属于特定工作空间的地块信息。 |
| | | * @return 返回匹配给定地块编号和工作空间ID的地块信息对象。如果找不到匹配的记录,则返回null。 |
| | | */ |
| | | LotInfo getLotinfo(String dkbh,String workspaceId); |
| | | |
| | | List<LotInfo>listLotinfo(); |
| | | |
| | | void insertLotinfo(List<LotInfo> list); |
| | | |
| | | LotInfo getLotinfoToDb(String dkbh); |
| | | } |