Jelajahi Sumber

自有车优化

Administrator 3 tahun lalu
induk
melakukan
f1ae611a31

+ 1 - 1
src/main/java/com/jkcredit/invoice/service/lowerservice/impl/NoCarServiceImpl.java

@@ -625,7 +625,7 @@ public class NoCarServiceImpl implements NoCarService{
                     billInvoice.setCustomerName(noCarWayBill.getCustomerName());
                     //扣费明细入账
                     NoCarCalculateInfor calculateInfor = new NoCarCalculateInfor();
-                    if(noCarWayBill.getInterType()!=4){
+                    if(noCarWayBill.getInterType()!=4 && noCarWayBill.getInterType()!=3){
                         calculateInfor.setCalculateTime(DateUtil.getCurrentDateStr());
                     }else{
                         calculateInfor.setCalculateTime("2021-01-11 00:00:00");

+ 3 - 1
src/main/java/com/jkcredit/invoice/service/lowerservice/impl/SelfCarServiceLImpl.java

@@ -190,7 +190,9 @@ public class SelfCarServiceLImpl implements SelfCarServiceL {
             double needFee = 0;
             //更新交易id申请开票时间,并将转态改为开票中
             for(String tradeId : tradeIds){
-                SelfCarTrade selfCarTrade =  sellCarTradeMapper.selectByTradeId(tradeId).get(0);
+                List<SelfCarTrade> selfCarTrades = sellCarTradeMapper.selectByTradeId(tradeId);
+                if(selfCarTrades == null || selfCarTrades.size() == 0){continue;}
+                SelfCarTrade selfCarTrade =  selfCarTrades.get(0);
                 selfCarTrade.setStatus(2);
                 selfCarTrade.setAclTime(DateUtil.getCurrentDateStr());
                 selfCarTrade.setApplId(b2BInvoiceApplyResponse.getApplyId());