hejiahui 2 anni fa
parent
commit
c3d6506c0c

+ 10 - 2
src/main/java/com/steerinfo/dil/service/impl/AmsContractTruckPriceServiceImpl.java

@@ -672,20 +672,22 @@ public class AmsContractTruckPriceServiceImpl implements IAmsContractTruckPriceS
         int i = 0;
         BigDecimal capacityTypeId = DataChange.dataToBigDecimal(mapValue.get("capacityTypeId"));
         BigDecimal lineId = DataChange.dataToBigDecimal(mapValue.get("rangeId"));
+        BigDecimal formulaId = DataChange.dataToBigDecimal(mapValue.get("cargonameId"));
         BigDecimal priceValue = DataChange.dataToBigDecimal(mapValue.get("priceValue"));
         Date priceDate = new Date((Long)mapValue.get("priceDate"));
         BigDecimal type = DataChange.dataToBigDecimal(mapValue.get("type"));
         BigDecimal oilpriceBase = DataChange.dataToBigDecimal(mapValue.get("oilpriceBase"));
-        BigDecimal oilTypeId = DataChange.dataToBigDecimal(mapValue.get("oilTypeId"));
+//        BigDecimal oilTypeId = DataChange.dataToBigDecimal(mapValue.get("oilTypeId"));
         BigDecimal oilpriceChangeThreshold = DataChange.dataToBigDecimal(mapValue.get("oilpriceChangeThreshold"));
         List<Map<String,Object>>mapList = (List<Map<String, Object>>) mapValue.get("mapList");
         BigDecimal priceId=DataChange.dataToBigDecimal(mapValue.get("priceId"));
 
         AmsContractTransportPrice amsContractTransportPrice = new AmsContractTransportPrice();
         amsContractTransportPrice.setOilpriceBase(oilpriceBase);
-        amsContractTransportPrice.setOilTypeId(oilTypeId);
+//        amsContractTransportPrice.setOilTypeId(oilTypeId);  油品名称
         amsContractTransportPrice.setPriceValue(priceValue);
         amsContractTransportPrice.setPriceDate(priceDate);
+        amsContractTransportPrice.setCargonameId(formulaId);
         amsContractTransportPrice.setPriceId(priceId);
         amsContractTransportPrice.setUpdateTime(new Date());
         i =  amsContractTruckPriceMapper.updateByPrimaryKeySelective(amsContractTransportPrice);
@@ -706,4 +708,10 @@ public class AmsContractTruckPriceServiceImpl implements IAmsContractTruckPriceS
         }
         return i;
     }
+
+    @Override
+    public List<Map<String, Object>> getwz(Map<String, Object> map){
+        List<Map<String, Object>> selectwz = amsContractTruckPriceMapper.selectwz(map);
+        return selectwz;
+    }
 }