AmsContractTruckPriceMapper.java 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package com.steerinfo.dil.mapper;
  2. import com.steerinfo.dil.model.AmsContractTransportPrice;
  3. import com.steerinfo.framework.mapper.IBaseMapper;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Select;
  6. import java.math.BigDecimal;
  7. import java.util.List;
  8. import java.util.Map;
  9. @Mapper
  10. public interface AmsContractTruckPriceMapper extends IBaseMapper<AmsContractTransportPrice, BigDecimal> {
  11. //查询主键最大值
  12. @Select("select seq_truck_price.nextval from dual")
  13. BigDecimal selectMaxId();
  14. //查询物资价格中间表主键最大值
  15. @Select("select seq__ams_price_material.nextval from dual")
  16. BigDecimal selectPriceMaterialMaxId();
  17. //获取汽运单价信息
  18. List<Map<String, Object>> getAmsContractTransportPrice(Map<String,Object> map);
  19. //删除单价
  20. int deleteSalePrice(Map<String,Object> map);
  21. //获取全部承运商信息
  22. List<Map<String,Object>> getCarrierListByPrice(Map<String,Object> map);
  23. //获取全部承运商信息(根据单价地址获得的具体的承运商)
  24. List<Map<String,Object>> getCarrierListByAddress(Map<String,Object> map);
  25. //获取全部承运商信息(根据单价地址获得的具体的承运商)
  26. List<Map<String,Object>> getCarrierListByAddressNew(Integer addressId,String addressDeliveryAddress);
  27. //新增是刷新旧数据
  28. int updateOldDate(Map<String,Object> map);
  29. //删除单价信息
  30. int deleteSomeOneSalePrice(Map<String,Object> map);
  31. //修改单价信息
  32. int updateSomeOneSalePrice(Map<String,Object> map);
  33. //更新卸货地址
  34. int updateaddressDeliveryAddress(Map<String,Object> map);
  35. //更新单价
  36. int updatePriceValue(Map<String,Object> map);
  37. //更新单价(无运输距离)
  38. int updatePriceValueNew(Map<String,Object> map);
  39. //更新单价
  40. int updateHaulDistance(Map<String,Object> map);
  41. //获取承运商信息
  42. String getCarrierNameForDetail(String userId);
  43. //获取收货地址的信息
  44. List<Map<String,Object>> getReceiveAddressId(Map<String,Object> map);
  45. //获取已经计算出的单价值
  46. AmsContractTransportPrice getOnePriceMap(Map<String,Object> map);
  47. //获取汽运单价信息
  48. List<Map<String, Object>> getAmsContractTransportPriceForDetail(Map<String,Object> map);
  49. //获取承运商名称
  50. List<Map<String, Object>> getCarrierName();
  51. //获取线路编号
  52. List<Map<String, Object>> getLineNo();
  53. //获取运力编号
  54. List<Map<String, Object>> getCapacityNumber();
  55. //获取收货地址
  56. List<Map<String, Object>> getAddressDeliveryAddress(Map<String,Object> map);
  57. //获取收货地址(专门给计费详单使用)
  58. List<Map<String, Object>> getAddressDeliveryAddressForDetails(Map<String,Object> map);
  59. //获取要渲染的信息
  60. List<Map<String, Object>> selectByPriceId(BigDecimal priceId);
  61. //获取所有的油价
  62. List<Map<String, Object>> getOriginAndNowOilPrice();
  63. //通过油价变动率批量修改油价
  64. int batchUpdateTransportPriceByOilPrice(Double updateOilPrice);
  65. //通过主键查询参考运距
  66. BigDecimal getLinePathLength(BigDecimal lineId);
  67. //获取符合条件运价数值列表
  68. List<Map<String, Object>> getPriceValueList(BigDecimal oilTypeId);
  69. //获取运价和吨公里数值列表
  70. List<Map<String, Object>> getPriceValueAndPriceTonKilometer();
  71. //通过主键修改吨公里数
  72. int updatePriceTonKilometer(BigDecimal priceId,BigDecimal priceTonKilometer);
  73. //获取焦炭运价计算公式
  74. String getTruckFormula(BigDecimal formulaId);
  75. //查询货物名称
  76. String getCargonameValue(BigDecimal cargonameId);
  77. //获取货物类型
  78. List<Map<String, Object>> getCargoName();
  79. //获取油品名称
  80. List<Map<String, Object>> getOilTypeName();
  81. // 边输边查具体地址
  82. List<Map<String, Object>> getRealAddressByLike(Map<String, Object> map);
  83. BigDecimal selectFormulaId(BigDecimal priceId);
  84. List<Map<String, Object>> getInwardContractPrice(Map<String, Object> mapValue);
  85. List<Map<String, Object>> selectInwardPrice(Map<String, Object> mapvalue);
  86. List<Map<String, Object>> getRangePoint(Map<String, Object> mapValue);
  87. List<Map<String, Object>> selectwz(Map<String, Object> map);
  88. Map<String, Object> getcargonameId(Map<String, Object> map);
  89. int updateDCodd();
  90. int updateDCnew();
  91. Map<String, Object> selectByPlaceId(BigDecimal priceId);
  92. int updateByPriceId(Map<String, Object> updatePrice);
  93. int updateDelectByPlaceId(Map<String, Object> map);
  94. List<String> selectshdz(Map<String, Object> map);
  95. Map<String, Object> selectxxdz(Map<String, Object> map);
  96. void insertxxdz(Map<String, Object> map);
  97. Map<String, Object> selectcys(String cys);
  98. int selectMaxIdrrp();
  99. int selectMaxIdrra();
  100. void insertshdz(Map<String, Object> map);
  101. }