Przeglądaj źródła

订单没有公司异常了支付状态变更异常了

xgb 4 dni temu
rodzic
commit
a9c824a2f3

+ 6 - 1
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreOrderScrmServiceImpl.java

@@ -1754,7 +1754,12 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
 
         FsStoreOrderAuditScrm orderAudit = new FsStoreOrderAuditScrm();
         orderAudit.setOrderId(order.getId());
-        orderAudit.setCompanyId(order.getCompanyId());
+        if(order.getCompanyId()==null){
+            orderAudit.setCompanyId(0L);
+        }else {
+            orderAudit.setCompanyId(order.getCompanyId());
+
+        }
         orderAudit.setCompanyUserId(order.getCompanyUserId());
         orderAudit.setAuditStatus(OrderAuditStateEnum.COMPANY_PENDING.getValue());
         orderAudit.setCreateTime(LocalDateTime.now());