/*
 * Author: wangjian
 * 生成Service
 */
package com.tofly.watermeter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tofly.watermeter.custom.entity.BwSbRkCkTwo;
import com.tofly.watermeter.custom.entity.MeterInfo;
import com.tofly.watermeter.custom.entity.SearchSb;
import com.tofly.watermeter.entity.Bwrkdetail;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 入库记录明细表
 *
 * @author admin
 * @date Wed Mar 10 00:00:00 CST 2021
 */
public interface BwrkdetailService extends IService<Bwrkdetail> {

//    boolean insert(List<Bwrkdetail> bwrkdetailList);
    boolean saveTwo(BwSbRkCkTwo sbrk);
//    /**
//     * 根据入库记录明细ID删除
//     * @param mxId
//     * @return
//     */
//    boolean deleteById(Long mxId);

    Page getSbByLsbh(String lsbh,Page page);

    void updateNum(Map<Long, Long> rkIdAndNum);

    Long getMaxId(String tableName);

    IPage<MeterInfo> getRkRecord(Page page , SearchSb searchSb, HttpServletResponse response);


}
