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
 import org.springframework.beans.factory.annotation.Autowired;
3
 import org.springframework.beans.factory.annotation.Autowired;
4
 import org.springframework.stereotype.Component;
4
 import org.springframework.stereotype.Component;
5
+import com.github.pagehelper.PageHelper;
5
 import com.ruoyi.common.exception.ServiceException;
6
 import com.ruoyi.common.exception.ServiceException;
6
 import com.ruoyi.common.utils.SecurityUtils;
7
 import com.ruoyi.common.utils.SecurityUtils;
7
 import com.ruoyi.web.modules.trading.domain.BizDistributor;
8
 import com.ruoyi.web.modules.trading.domain.BizDistributor;
@@ -23,6 +24,7 @@ public class AppDistributorSessionSupport
23
         {
24
         {
24
             throw new ServiceException(AppDistributorHomeRules.MSG_NO_DISTRIBUTOR);
25
             throw new ServiceException(AppDistributorHomeRules.MSG_NO_DISTRIBUTOR);
25
         }
26
         }
27
+        PageHelper.clearPage();
26
         BizDistributor row = bizDistributorMapper.selectBizDistributorBySysUserId(userId);
28
         BizDistributor row = bizDistributorMapper.selectBizDistributorBySysUserId(userId);
27
         if (row == null || row.getId() == null)
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
 import org.springframework.beans.factory.annotation.Autowired;
3
 import org.springframework.beans.factory.annotation.Autowired;
4
 import org.springframework.stereotype.Component;
4
 import org.springframework.stereotype.Component;
5
+import com.github.pagehelper.PageHelper;
5
 import com.ruoyi.common.exception.ServiceException;
6
 import com.ruoyi.common.exception.ServiceException;
6
 import com.ruoyi.common.utils.SecurityUtils;
7
 import com.ruoyi.common.utils.SecurityUtils;
7
 import com.ruoyi.web.modules.trading.domain.BizSupplier;
8
 import com.ruoyi.web.modules.trading.domain.BizSupplier;
@@ -23,6 +24,7 @@ public class AppSupplierSessionSupport
23
         {
24
         {
24
             throw new ServiceException(AppSupplierHomeRules.MSG_NO_SUPPLIER);
25
             throw new ServiceException(AppSupplierHomeRules.MSG_NO_SUPPLIER);
25
         }
26
         }
27
+        PageHelper.clearPage();
26
         BizSupplier row = bizSupplierMapper.selectBizSupplierBySysUserId(userId);
28
         BizSupplier row = bizSupplierMapper.selectBizSupplierBySysUserId(userId);
27
         if (row == null || row.getId() == null)
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
     <select id="selectBizDistributorBySysUserId" parameterType="long" resultMap="BizDistributorResult">
43
     <select id="selectBizDistributorBySysUserId" parameterType="long" resultMap="BizDistributorResult">
44
         <include refid="selectVo"/>
44
         <include refid="selectVo"/>
45
         where sys_user_id = #{sysUserId} and del_flag = '0'
45
         where sys_user_id = #{sysUserId} and del_flag = '0'
46
-        limit 1
47
     </select>
46
     </select>
48
 
47
 
49
     <select id="selectMaxDistributorCodeForUpdate" resultType="string">
48
     <select id="selectMaxDistributorCodeForUpdate" resultType="string">

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

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