|
@@ -59,6 +59,7 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
|
|
|
@Autowired
|
|
|
CustomerService customerService;
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public RespR<List<CardTradeModel>> getTradeList(TradeRequestVo tradeRequestVo) {
|
|
|
log.info("获取交易开始SelfCarServiceLImpl.getTradeList{}",tradeRequestVo);
|
|
|
Customer customer = customerMapper.selectByCustomerName(tradeRequestVo.getCustomerName());
|
|
@@ -97,6 +98,7 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
|
|
|
List<CardTradeModel> result = cardTradeResponse.getResult();
|
|
|
//对不存在的tradeId入表
|
|
|
if(result!=null && result.size()>0){
|
|
|
+ customerCarRecMapper.selectByETCForLock(tradeRequestVo.getEtcId());
|
|
|
for(CardTradeModel cardTradeModel:result){
|
|
|
SelfCarTrade selfCarTrade = sellCarTradeMapper.selectByTradeId(cardTradeModel.getTradeId());
|
|
|
if(selfCarTrade == null){
|
|
@@ -341,7 +343,7 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
|
|
|
selfCarInvoice.setCompanyNum(customerRec.getCompanyNum());
|
|
|
selfCarInvoice.setEnStation(b2BInvoiceListModel.getEnStationName());
|
|
|
selfCarInvoice.setExStation(b2BInvoiceListModel.getExStationName());
|
|
|
- SelfCarInvoice selfCarInvoice1 = selfCarInvoiceMapper.selectByCodeAndNum(selfCarInvoice);
|
|
|
+ List<SelfCarInvoice> selfCarInvoice1 = selfCarInvoiceMapper.selectByCodeAndNum(selfCarInvoice);
|
|
|
if(selfCarInvoice1==null){
|
|
|
selfCarInvoiceMapper.insert(selfCarInvoice);
|
|
|
}
|