| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.community.warehouse.PageDonatesDTO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseDonatesVO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.DonatesStatisticsVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.panzhihua.common.model.dtos.community.warehouse.ExportDonatesDTO; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ExportDonatesVO; |
| | | import com.panzhihua.service_community.entity.ComActWarehouseDonates; |
| | | |
| | | /** |
| | |
| | | @Mapper |
| | | public interface ComActWarehouseDonatesDao extends BaseMapper<ComActWarehouseDonates> { |
| | | |
| | | /** |
| | | * 批量插入捐赠物品 |
| | | * @param donateList |
| | | * @return |
| | | */ |
| | | int batchInsertDonates(@Param("donateList") List<ComActWarehouseDonates> donateList); |
| | | |
| | | /** |
| | | * 根据id查找导出数据 |
| | | * @param needExportIds |
| | | * @return |
| | | */ |
| | | List<ExportDonatesVO> exportDonatesByIds(@Param("needExportIds") List<Long> needExportIds); |
| | | |
| | | /** |
| | | * 根据查询条件导出数据 |
| | | * @param exportDonatesDTO |
| | | * @return |
| | | */ |
| | | List<ExportDonatesVO> exportDonatesBySearch(@Param("exportDonatesDTO") ExportDonatesDTO exportDonatesDTO); |
| | | |
| | | /** |
| | | * 社区后台分页查询捐赠物品 |
| | | * @param page |
| | | * @param pageDonatesDTO |
| | | * @return |
| | | */ |
| | | IPage<ComActWarehouseDonatesVO> pageDonates(@Param("page") Page page, @Param("pageDonatesDTO") PageDonatesDTO pageDonatesDTO); |
| | | |
| | | /** |
| | | * 查看捐赠详情 |
| | | * @param donatesId |
| | | * @return |
| | | */ |
| | | ComActWarehouseDonatesVO selectDetailById(@Param("donatesId") Long donatesId); |
| | | |
| | | /** |
| | | * 捐赠物品统计查询 |
| | | * @param communityId |
| | | * @param currentYear |
| | | * @param currentMonth |
| | | * @param today |
| | | * @return |
| | | */ |
| | | DonatesStatisticsVO selectDonatesStatistics(@Param("communityId") Long communityId, @Param("currentYear") String currentYear, |
| | | @Param("currentMonth") String currentMonth, @Param("today") String today); |
| | | |
| | | /** |
| | | * 居民自治大屏-捐赠记录 |
| | | * @param communityId |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | List<String> getWarehouseDonateRecords(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | /** |
| | | * 居民自治大屏-爱心传递 |
| | | * @param communityId |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | List<String> getWarehouseLoveTransfer(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | /** |
| | | * 居民自治大屏-捐赠物品图片 |
| | | * @param communityId |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | List<String> getWarehouseImages(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | } |