package com.steerinfo.dil.mapper; import com.steerinfo.dil.model.BmstruckDetailsOrder; import com.steerinfo.framework.mapper.IBaseMapper; import java.math.*; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; @Mapper public interface BmstruckDetailsOrderMapper extends IBaseMapper { /** * 展示汽运详单 * @param mapVal * @return */ List> getTruckDetailsOrderList(Map mapVal); /** * 新增汽运详单 * @param bmstruckDetailsOrder * @return */ int insertSelective(BmstruckDetailsOrder bmstruckDetailsOrder); /** * 查询最大id * @return */ BigDecimal selectMaxId(); /** * 运单id * @param orderId * @return */ BigDecimal getOrderType(BigDecimal orderId); /** * 展示汽运实绩列表 * @param mapVal * @return */ List> getTruckResultList(Map mapVal); /** * 查询计算因子 * @param orderId * @return */ BigDecimal getFormulaMembers(BigDecimal orderId); /** * 得到价格id * @return */ Map getPriceId(BigDecimal orderId); /** * 得到价格 * @return */ BigDecimal getPriceValue(BigDecimal priceId); /** * 得到到厂湿重 * @param orderId * @return */ BigDecimal getNetWeight(BigDecimal orderId); // /** // * 生成汽运账单 // * @param mapList // * @return // */ // int addTruckStatement(List> mapList); @Select("select seq_BMSTRUCK_STATEMENT.nextval from dual") BigDecimal selectDetailsId(); /** * 展示汽运实绩列表 * @param mapVal * @return */ List> getSaleTruckResultList(Map mapVal); /** * 查看未转账单的详单 * @param mapVal * @return */ List> getUnFinishedTruckDetailsOrderList(Map mapVal); /** * 查看详单 * @param mapVal * @return */ List> getSaleTruckDetailsOrderList(Map mapVal); //计时 List> getUnFinishedTimeTruckDetailsOrderList(Map mapVal); //计数 List> getUnFinishedNumTruckDetailsOrderList(Map mapVal); //计重 List> getUnFinishedWeightTruckDetailsOrderList(Map mapVal); //包月 List> getUnFinishedMonthTruckDetailsOrderList(Map mapVal); //通过运单id获取需求类型(需求类型(0:计重;1:计时;2:计次;3:包月)) Map getSettlement(BigDecimal orderId); //通过物资id与需求类型获取单价 BigDecimal getPriceByWz(String requirementType, Integer materialId); }