Преглед изворни кода

无车优化,自有车接口返回

Administrator пре 2 година
родитељ
комит
f86ff3ae1b

+ 2 - 2
doc/sql/20220620_mashengyi_01.sql

@@ -3,10 +3,10 @@ set define off
 
 -- 增加contractStatus字段,
 alter table t_billInvoice DROP COLUMN invoiceStatus;
-alter table t_billInvoice add  column invoiceStatus tinyint(4) DEFAULT NULL  COMMENT '发票状态 1、待开票 2、开票中 3、开票完成';
+alter table t_billInvoice add  column invoiceStatus tinyint(4) DEFAULT NULL  COMMENT '发票状态 1、待开票 2、开票中 3、开票完成',ALGORITHM=inplace,LOCK=NONE;
 
 alter table t_billInvoice DROP COLUMN msg;
-alter table t_billInvoice add  column msg varchar(200) CHARACTER SET utf8 DEFAULT NULL COMMENT '发票状态信息';
+alter table t_billInvoice add  column msg varchar(200) CHARACTER SET utf8 DEFAULT NULL COMMENT '发票状态信息',ALGORITHM=inplace,LOCK=NONE;
 commit;
 set feedback on
 set define on

+ 1 - 1
src/main/java/com/jkcredit/invoice/controller/business/NoCarController.java

@@ -219,7 +219,7 @@ public class NoCarController {
                          noCarWayBill.setBillwayStatus(-5);
                          noCarService.getInvoiceByWayBillNumReal(noCarWayBill,false);
                     }catch (Exception e){
-                        e.printStackTrace();
+                        log.info("1111111111222222"+e.getMessage());
                     }
                 });
             }

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

@@ -626,6 +626,7 @@ public class NoCarServiceImpl implements NoCarService{
                 //更改票状态
                 noCarWayBill.setBillwayStatus(tempStatus);
                 insertOrUpdateBill(noCarWayBill);
+
             }else {
                 //更改票状态
                 noCarWayBill.setPlateNum(responseRespR.getData().getPlateNum());
@@ -644,6 +645,7 @@ public class NoCarServiceImpl implements NoCarService{
                 //用set来去重计费信息
                 Set<NoCarCalculateInfor> carCalculateInfors = new HashSet<>();
                 invoiceProcessingListModels.stream().forEach(invoiceProcessingListModel -> {
+                    log.info("44444{}",invoiceProcessingListModel.getTransactionId());
                     BillInvoice billInvoice = buildFromInvoiceProcessingListModel(invoiceProcessingListModel);
                     billInvoice.setCompanyName(noCarWayBill.getCompanyName());
                     billInvoice.setCompanyNum(noCarWayBill.getCompanyNum());
@@ -670,9 +672,9 @@ public class NoCarServiceImpl implements NoCarService{
                         carCalculateInfors.add(calculateInfor);
                         billInvoice.setCalculateTime(calculateInfor.getCalculateTime());
                     }
-
                     billInvoiceMapper.insert(billInvoice);
                 });
+                log.info("6666666{}",noCarWayBill.getBillNum());
                 if(isKf == 3)   return new RespR(responseRespR.getData());
                 //统一插入交易id 和 和计费信息
                 Param param = paramService.getParamsByParamName("CUST_NOCAR_FEE");
@@ -699,6 +701,7 @@ public class NoCarServiceImpl implements NoCarService{
                 return new RespR(responseRespR.getData());
             }
         }
+        log.info("99999999{}",noCarWayBill.getBillNum());
         return new RespR("success");
     }
     public BillInvoice buildFromInvoiceProcessingListModel(InvoiceProcessingListModel invoiceProcessingListModel){