|
@@ -175,7 +175,7 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
|
if (carrierName!=null){
|
|
|
String[] split = carrierName.split("/");
|
|
|
for (String s2 : split) {
|
|
|
- BigDecimal carrierIdForCarrierName = amsContractTruckPriceMapper.getCarrierIdForCarrierName("%" + s2 + "%");
|
|
|
+ BigDecimal carrierIdForCarrierName = amsContractTruckPriceMapper.getCarrierIdForCarrierName(s2);
|
|
|
amsContractTransportPrice.setCarrierId(carrierIdForCarrierName);
|
|
|
amsContractTransportPrice.setPriceId(amsContractTruckPriceMapper.selectMaxId());
|
|
|
amsContractTruckPriceMapper.insertSelective(amsContractTransportPrice);
|
|
@@ -188,7 +188,7 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
|
if (carrierName!=null){
|
|
|
String[] split = carrierName.split("/");
|
|
|
for (String s2 : split) {
|
|
|
- BigDecimal carrierIdForCarrierName = amsContractTruckPriceMapper.getCarrierIdForCarrierName("%" + s2 + "%");
|
|
|
+ BigDecimal carrierIdForCarrierName = amsContractTruckPriceMapper.getCarrierIdForCarrierName(s2);
|
|
|
amsContractTransportPrice.setCarrierId(carrierIdForCarrierName);
|
|
|
amsContractTransportPrice.setPriceId(amsContractTruckPriceMapper.selectMaxId());
|
|
|
amsContractTruckPriceMapper.insertSelective(amsContractTransportPrice);
|