package com.unis.crk.cplbusiness.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unis.crk.cplbusiness.entity.CommoditySplitting;
import com.unis.crk.cplbusiness.entity.vo.CommoditySplittingVo;

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

/**
 * <p>
 * 商品拆分 服务类
 * </p>
 *
 * @author TangSong
 * @since 2022-05-23
 */
public interface ICommoditySplittingService extends IService<CommoditySplitting> {

        /**
         *修改商品拆分
         * @param param 商品拆分业务数据
         * @return
         */
        JSONObject update(CommoditySplitting param);
        /**
         *删除商品拆分数据
         * @param id 商品拆分主键尖
         * @return
         */
        JSONObject delete(String id);

        /**
         * 按照条件查询商品拆分信息
         * @param pageQuery
         * @throws Exception
         */
        IPage<Map<String,Object>> findPageVo(CommoditySplittingVo pageQuery) ;


        JSONObject saveSplits(List<CommoditySplitting> param) throws Exception;

        JSONObject delSplits(List<CommoditySplitting> param) throws Exception;
}
