‘linchangsheng’ 2 settimane fa
parent
commit
019e41125c

+ 2 - 7
src/main/java/com/gree/mall/miniapp/logic/order/OrderLogic.java

@@ -564,13 +564,8 @@ public class OrderLogic {
             orderInfo.setWorkerPhone(user.getWorkPhone());
             orderInfo.setPosition(user.getPosition());
         }
-        ServiceWorkerBean serviceWorkerBean = userInfoMapper.queryWebsitByWorkId(orderInfo.getWorkerId());
-        if (serviceWorkerBean != null) {
-            orderInfo.setWebsitId(serviceWorkerBean.getAdminWebsitId());
-            orderInfo.setWebsitNumber(serviceWorkerBean.getWebsitNumber());
-            orderInfo.setWebsitName(serviceWorkerBean.getWebsit());
-        }
-        return serviceWorkerBean;
+
+        return new ServiceWorkerBean();
     }
 
 

+ 1 - 1
src/main/resources/mapper/UserInfoMapper.xml

@@ -14,7 +14,7 @@
 
 
     <select id="queryWebsitByWorkId" resultType="com.gree.mall.miniapp.bean.user.ServiceWorkerBean">
-        select aw.`name` as websit, eww.position, eww.name as workerRealName,aw.id adminWebsitId,aw.websit_number,aw.websit_id
+        select aw.`name` as websit, eww.position, eww.name as workerRealName,aw.websit_id adminWebsitId,aw.websit_number,aw.websit_id
         from enterprise_wechat_worker eww
                  left join admin_websit aw
                            on eww.main_department = aw.websit_id and eww.corp_id = aw.corp_id