From 6b34c3ba5cf27dd8693e2bd23426fe96fefd9688 Mon Sep 17 00:00:00 2001
From: jiangqs <343695869@qq.com>
Date: 星期日, 30 七月 2023 23:42:35 +0800
Subject: [PATCH] bug

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java |   31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
index 52ddec8..3505a77 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
@@ -983,19 +983,24 @@
         submitInfo.setId_card_info(id_card_info);
         //企业填写
         if(shopAuthentication.getMainType()==2){
-            submitInfo.setOwner(true);
-            List<UboInfo> ubo_info_list = new ArrayList<>();
-            UboInfo uboInfo = new UboInfo();
-            uboInfo.setUbo_id_doc_type("IDENTIFICATION_TYPE_MAINLAND_IDCARD");
-            uboInfo.setUbo_id_doc_copy(shopAuthentication.getUboIcFront());
-            uboInfo.setUbo_id_doc_copy_back(shopAuthentication.getUboIcBack());
-            uboInfo.setUbo_id_doc_name(shopAuthentication.getUboName());
-            uboInfo.setUbo_id_doc_number(shopAuthentication.getUboIdCard());
-            uboInfo.setUbo_id_doc_address(shopAuthentication.getUboIcAddress());
-            uboInfo.setUbo_id_doc_period_begin(shopAuthentication.getUboIcStartDate());
-            uboInfo.setUbo_id_doc_period_end(shopAuthentication.getUboIcEndDate());
-            ubo_info_list.add(uboInfo);
-            submitInfo.setUbo_info_list(ubo_info_list);
+            //受益人
+            if(shopAuthentication.getOwner()==1){
+                submitInfo.setOwner(true);
+            }else{
+                submitInfo.setOwner(false);
+                List<UboInfo> ubo_info_list = new ArrayList<>();
+                UboInfo uboInfo = new UboInfo();
+                uboInfo.setUbo_id_doc_type("IDENTIFICATION_TYPE_MAINLAND_IDCARD");
+                uboInfo.setUbo_id_doc_copy(shopAuthentication.getUboIcFront());
+                uboInfo.setUbo_id_doc_copy_back(shopAuthentication.getUboIcBack());
+                uboInfo.setUbo_id_doc_name(shopAuthentication.getUboName());
+                uboInfo.setUbo_id_doc_number(shopAuthentication.getUboIdCard());
+                uboInfo.setUbo_id_doc_address(shopAuthentication.getUboIcAddress());
+                uboInfo.setUbo_id_doc_period_begin(shopAuthentication.getUboIcStartDate());
+                uboInfo.setUbo_id_doc_period_end(shopAuthentication.getUboIcEndDate());
+                ubo_info_list.add(uboInfo);
+                submitInfo.setUbo_info_list(ubo_info_list);
+            }
         }
         //结算账户信息
         AccountInfo accountInfo = new AccountInfo();

--
Gitblit v1.7.1