package com.unis.crk.cplbusiness.service;

import com.unis.crk.cplbusiness.entity.DataKcglCplxckcDefault;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unis.crk.cplbusiness.entity.vo.DataKcglCplxckcDefaultVo;
import cn.hutool.json.JSONObject;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.unis.crk.enums.EditStatus;
import com.unis.crk.enums.StoreWorkType;

/**
 * <p>
 * 成品粮形成库存 服务类
 * </p>
 *
 * @author TangSong
 * @since 2022-03-21
 */
public interface IDataKcglCplxckcDefaultService extends IService<DataKcglCplxckcDefault> {


        /**
         * 按照条件查询成品粮形成库存信息
         * @param pageQuery
         * @throws Exception
         */
        IPage<Map<String,Object>> findPageVo(DataKcglCplxckcDefaultVo pageQuery) ;

    /**
     * 保存库存相关数据
     * @param dataId
     * @param unitId
     * @param loginName
     * @param editStatus
     * @param workType
     * @return
     */
    boolean makeStockDetail(String dataId, String unitId, String loginName,
    EditStatus editStatus, StoreWorkType workType);

    IPage<Map<String,Object>>  findPageVoBgtz(DataKcglCplxckcDefaultVo pageQuery);
}
