Pārlūkot izejas kodu

后端代码提交

mashengyi 3 gadi atpakaļ
vecāks
revīzija
070dfc0717

+ 4 - 1
src/main/java/com/jkcredit/invoice/service/lowerService/impl/SelfCarServiceLImpl.java

@@ -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());

+ 1 - 1
src/main/resources/mapper/customer/CustomerCarRecMapper.xml

@@ -90,7 +90,7 @@
     values (#{customerName,jdbcType=VARCHAR},#{companyNum,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{carNum,jdbcType=VARCHAR},
       #{carColor,jdbcType=VARCHAR}, #{custPhone,jdbcType=VARCHAR}, #{etcNum,jdbcType=VARCHAR}, 
       #{succTime,jdbcType=VARCHAR}, #{failTime,jdbcType=VARCHAR}, #{recStatus,jdbcType=INTEGER},#{businessType,jdbcType=INTEGER},
-      #{failReason,jdbcType=VARCHAR}),#{interType,jdbcType=INTEGER}
+      #{failReason,jdbcType=VARCHAR},#{interType,jdbcType=INTEGER})
   </insert>
   <insert id="insertSelective" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerCarRec">
     insert into t_customer_carRec