package com.steerinfo.dil.mapper; import com.steerinfo.dil.model.AmsContractTransportPrice; import com.steerinfo.framework.mapper.IBaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import java.math.BigDecimal; import java.util.List; import java.util.Map; @Mapper public interface AmsContractTruckPriceMapper extends IBaseMapper { //查询主键最大值 @Select("select seq_truck_price.nextval from dual") BigDecimal selectMaxId(); //查询物资价格中间表主键最大值 @Select("select seq__ams_price_material.nextval from dual") BigDecimal selectPriceMaterialMaxId(); //获取汽运单价信息 List> getAmsContractTransportPrice(Map map); //删除单价 int deleteSalePrice(Map map); //获取全部承运商信息 List> getCarrierListByPrice(Map map); //获取全部承运商信息(根据单价地址获得的具体的承运商) List> getCarrierListByAddress(Map map); //获取全部承运商信息(根据单价地址获得的具体的承运商) List> getCarrierListByAddressNew(Integer addressId,String addressDeliveryAddress); //新增是刷新旧数据 int updateOldDate(Map map); //删除单价信息 int deleteSomeOneSalePrice(Map map); //修改单价信息 int updateSomeOneSalePrice(Map map); //更新卸货地址 int updateaddressDeliveryAddress(Map map); //更新单价 int updatePriceValue(Map map); //更新单价(无运输距离) int updatePriceValueNew(Map map); //更新单价 int updateHaulDistance(Map map); //获取承运商信息 String getCarrierNameForDetail(String userId); //获取收货地址的信息 List> getReceiveAddressId(Map map); //获取已经计算出的单价值 AmsContractTransportPrice getOnePriceMap(Map map); //获取汽运单价信息 List> getAmsContractTransportPriceForDetail(Map map); //获取承运商名称 List> getCarrierName(); //获取线路编号 List> getLineNo(); //获取运力编号 List> getCapacityNumber(); //获取收货地址 List> getAddressDeliveryAddress(Map map); //获取收货地址(专门给计费详单使用) List> getAddressDeliveryAddressForDetails(Map map); //获取要渲染的信息 List> selectByPriceId(BigDecimal priceId); //获取所有的油价 List> getOriginAndNowOilPrice(); //通过油价变动率批量修改油价 int batchUpdateTransportPriceByOilPrice(Double updateOilPrice); //通过主键查询参考运距 BigDecimal getLinePathLength(BigDecimal lineId); //获取符合条件运价数值列表 List> getPriceValueList(BigDecimal oilTypeId); //获取运价和吨公里数值列表 List> getPriceValueAndPriceTonKilometer(); //通过主键修改吨公里数 int updatePriceTonKilometer(BigDecimal priceId,BigDecimal priceTonKilometer); //获取焦炭运价计算公式 String getTruckFormula(BigDecimal formulaId); //查询货物名称 String getCargonameValue(BigDecimal cargonameId); //获取货物类型 List> getCargoName(); //获取油品名称 List> getOilTypeName(); // 边输边查具体地址 List> getRealAddressByLike(Map map); BigDecimal selectFormulaId(BigDecimal priceId); List> getInwardContractPrice(Map mapValue); List> selectInwardPrice(Map mapvalue); List> getRangePoint(Map mapValue); List> selectwz(Map map); Map getcargonameId(Map map); int updateDCodd(); int updateDCnew(); Map selectByPlaceId(BigDecimal priceId); int updateByPriceId(Map updatePrice); int updateDelectByPlaceId(Map map); List selectshdz(Map map); Map selectxxdz(Map map); void insertxxdz(Map map); Map selectcys(String cys); int selectMaxIdrrp(); int selectMaxIdrra(); void insertshdz(Map map); }