|
@@ -449,10 +449,13 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
|
|
|
|
|
|
public void updateETCRec(CustomerCarRec customerCarRec){
|
|
|
//根据车牌号查询是新增还是更新
|
|
|
+ log.info("检验成功入库参数{}",customerCarRec);
|
|
|
CustomerCarRec customerCarRec1 = customerCarRecMapper.selectByETC(customerCarRec.getEtcNum());
|
|
|
if (customerCarRec1 == null) {
|
|
|
+ log.info("检验成功入库新增参数{}",customerCarRec);
|
|
|
customerCarRecMapper.insert(customerCarRec);
|
|
|
} else {
|
|
|
+ log.info("检验成功入库更新参数{}",customerCarRec);
|
|
|
customerCarRecMapper.updateETCByPrimaryKey(customerCarRec);
|
|
|
}
|
|
|
}
|
|
@@ -492,7 +495,7 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
|
|
|
customerCarRec.setCustomerName(customerRec.getCustomerName());
|
|
|
customerCarRec.setCompanyNum(customerRec.getCompanyNum());
|
|
|
customerCarRec.setCarNum(cardValidCodeToBModel.getPlateNum());
|
|
|
- customerCarRec.setEtcNum(cardValidCodeToBModel.getEtcCardId());
|
|
|
+ customerCarRec.setEtcNum(cardValidCodeToBModel.getCardId());
|
|
|
customerCarRec.setCarColor(cardValidCodeToBModel.getPlateColor()+"");
|
|
|
customerCarRec.setRecStatus(CommonConstants.REC_STATUS_SUC);
|
|
|
customerCarRec.setSuccTime(DateUtil.getCurrentDateStr());
|