package com.junmp.jyzb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.junmp.jyzb.api.bean.dto.FetchingDataDto.WarehouseInfoDto;
import com.junmp.jyzb.api.bean.dto.WarehouseDto;
import com.junmp.jyzb.api.bean.query.PolicemanReq;
import com.junmp.jyzb.api.bean.query.TjReq.TjOrgPriceReq;
import com.junmp.jyzb.api.bean.query.WarehouseReq;
import com.junmp.jyzb.api.bean.req.UpdateWarehouseReq;
import com.junmp.jyzb.entity.Temp.HumidityAndtemperature;
import com.junmp.jyzb.entity.Warehouse;
import com.junmp.jyzb.utils.ResponseResult;

import java.util.List;
import java.util.Map;

public interface WarehouseService extends IService<Warehouse> {

    //ResponseResult addWarehouse(Map<String, Object> msg);
    /**
     * 新增
     *
     * @param req
     */
    String AddWarehouse(UpdateWarehouseReq req);

    /**
     * 查询单个仓库信息
     *
     * @param req
     */
    WarehouseDto getOneWarehouse(WarehouseReq req);

//    ResponseResult deleteWarehouse(Map<String, Object> msg);
    boolean DeleteWarehouse(UpdateWarehouseReq req);

    /**
     * 编辑
     *
     * @param req
     */
    boolean updateWarehouse(UpdateWarehouseReq req);


    boolean changeWarehouseState(WarehouseReq req);

    List<WarehouseDto> getAllWarehouse(Long orgId,Integer state);


    //通过仓库id 判断仓库是否存在
    Warehouse WarehoustExist(String id);

    boolean SetInventoryInfo(String id);

    List<WarehouseInfoDto> alignWarehouseInfo(UpdateWarehouseReq req);

    boolean updateHumidityAndtemperature(HumidityAndtemperature req);

    List<HumidityAndtemperature> showHumidityAndtemperature(WarehouseReq req);

    void HumidityAndtemperatureExport(WarehouseReq req);
}
