Parcourir la Source

交易市场平台(供应商)

wwh il y a 2 mois
Parent
commit
2291a56877

+ 2 - 0
baqing-admin/src/main/java/com/ruoyi/web/modules/trading/support/AppDistributorSessionSupport.java

@@ -2,6 +2,7 @@ package com.ruoyi.web.modules.trading.support;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Autowired;
4 4
 import org.springframework.stereotype.Component;
5
+import com.github.pagehelper.PageHelper;
5 6
 import com.ruoyi.common.exception.ServiceException;
6 7
 import com.ruoyi.common.utils.SecurityUtils;
7 8
 import com.ruoyi.web.modules.trading.domain.BizDistributor;
@@ -23,6 +24,7 @@ public class AppDistributorSessionSupport
23 24
         {
24 25
             throw new ServiceException(AppDistributorHomeRules.MSG_NO_DISTRIBUTOR);
25 26
         }
27
+        PageHelper.clearPage();
26 28
         BizDistributor row = bizDistributorMapper.selectBizDistributorBySysUserId(userId);
27 29
         if (row == null || row.getId() == null)
28 30
         {

+ 2 - 0
baqing-admin/src/main/java/com/ruoyi/web/modules/trading/support/AppSupplierSessionSupport.java

@@ -2,6 +2,7 @@ package com.ruoyi.web.modules.trading.support;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Autowired;
4 4
 import org.springframework.stereotype.Component;
5
+import com.github.pagehelper.PageHelper;
5 6
 import com.ruoyi.common.exception.ServiceException;
6 7
 import com.ruoyi.common.utils.SecurityUtils;
7 8
 import com.ruoyi.web.modules.trading.domain.BizSupplier;
@@ -23,6 +24,7 @@ public class AppSupplierSessionSupport
23 24
         {
24 25
             throw new ServiceException(AppSupplierHomeRules.MSG_NO_SUPPLIER);
25 26
         }
27
+        PageHelper.clearPage();
26 28
         BizSupplier row = bizSupplierMapper.selectBizSupplierBySysUserId(userId);
27 29
         if (row == null || row.getId() == null)
28 30
         {

+ 0 - 1
baqing-admin/src/main/resources/mapper/trading/BizDistributorMapper.xml

@@ -43,7 +43,6 @@
43 43
     <select id="selectBizDistributorBySysUserId" parameterType="long" resultMap="BizDistributorResult">
44 44
         <include refid="selectVo"/>
45 45
         where sys_user_id = #{sysUserId} and del_flag = '0'
46
-        limit 1
47 46
     </select>
48 47
 
49 48
     <select id="selectMaxDistributorCodeForUpdate" resultType="string">

+ 1 - 2
baqing-admin/src/main/resources/mapper/trading/BizSupplierMapper.xml

@@ -46,8 +46,7 @@
46 46
     </select>
47 47
 
48 48
     <select id="selectBizSupplierBySysUserId" parameterType="long" resultMap="BizSupplierResult">
49
-        select id, supplier_code, supplier_name
50
-        from biz_supplier
49
+        <include refid="selectVo"/>
51 50
         where sys_user_id = #{sysUserId} and del_flag = '0'
52 51
         limit 1
53 52
     </select>