package com.newfiber.api.pc.service; import com.baomidou.mybatisplus.service.IService; import com.newfiber.api.core.commons.PageRequestObject; import com.newfiber.api.core.commons.PageResultObject; import com.newfiber.api.pc.dto.SiteDataOperationDTO; import com.newfiber.api.pc.dto.SiteSubDTO; import com.newfiber.api.pc.dto.DataOperationDTO; import com.newfiber.api.pc.model.meet.HouseSiteSupplies; import java.util.List; /** * @Author:zzh * @CreateDate:2020/11/25 13:43 * @Description: */ public interface HouseSiteSuppliesService extends IService<HouseSiteSupplies> { List<HouseSiteSupplies> querySupByHouseSiteId(Integer hId); PageResultObject<HouseSiteSupplies> queryPage(PageRequestObject<SiteSubDTO> pageRequestObject); /** * 新增物资 * @param houseSiteSupplies */ void addHouseSiteSup(HouseSiteSupplies houseSiteSupplies); /** * 更新物资 * @param houseSiteSupplies */ void updateHouseSiteSup(HouseSiteSupplies houseSiteSupplies); /** * 添加警情或进行警情调度的时候从选择的存放点中扣除相应的物资数量 * @param dataOperationDTO 数据操作DTO * @return */ boolean deductionSupplies(Integer alertId,Integer hId,List<DataOperationDTO> dataOperationDTO); /** * 结束警情时,归还相对应的物资(从哪个站点拿的就还哪里去) * @param alertId 警情id * @return */ boolean returnSupplies(Integer alertId,List<SiteDataOperationDTO> dataOperationDTO); /** * 删除物资 * @param id 物资主键id * @param hId 物资存放点id */ void deleteHouseSiteSup(Integer id,Integer hId); }