Przeglądaj źródła

fix bug

release_toaliyun_real
winter 2 lat temu
rodzic
commit
1ad3717bc0
2 zmienionych plików z 21 dodań i 2 usunięć
  1. +4
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/base/BaseController.java
  2. +17
    -0
      mallinkService/src/main/resources/mapper/WxShopMapper.xml

+ 4
- 2
mallinkAdmin/src/main/java/com/iformall/controller/base/BaseController.java Wyświetl plik

@@ -54,8 +54,8 @@ public class BaseController {
public MallUserInfo getUser(){
MallUserInfo user = (MallUserInfo) SecurityUtils.getSubject().getSession().getAttribute(UserSession.userInfo);
// MallUserInfo user = new MallUserInfo();
// user.setId(321127266275430400L);
// user.setName("alitest");
// user.setId(941561428182753280L);
// user.setName("tt01");
// user.setTenantId("789");
// user.setParentTenantId(null);
return user;
@@ -81,6 +81,8 @@ public class BaseController {
Session session = SecurityUtils.getSubject().getSession();
String tenantId = (String)session.getAttribute(UserSession.tenantId);
String parentTenantId = (String)session.getAttribute(UserSession.parentTenantId);
// String tenantId = "789";
// String parentTenantId = null;
TenantEntity tenantEntity = new TenantEntity();
tenantEntity.setTenantId(tenantId);
tenantEntity.setParentTenantId(parentTenantId);


+ 17
- 0
mallinkService/src/main/resources/mapper/WxShopMapper.xml Wyświetl plik

@@ -277,6 +277,15 @@
<if test=" null != pointType ">
and s.`point_type` = #{pointType}
</if>
<if test=" null != floorForRule and '' != floorForRule ">
and s.`floor` in (${floorForRule})
</if>
<if test=" null != businessForRule and '' != businessForRule ">
and s.`business_id` in (${businessForRule})
</if>
<if test=" null != ids ">
and s.id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
@@ -321,6 +330,10 @@
<if test=" null != floorForRule and '' != floorForRule ">
and s.`floor` in (${floorForRule})
</if>
<if test=" null != businessForRule and '' != businessForRule ">
and s.`business_id` in (${businessForRule})
</if>
<if test="null != sortColumn">
order by ${sortColumn} ${sortOrder}
@@ -429,6 +442,10 @@
<if test=" null != floorForRule and '' != floorForRule ">
and s.`floor` in (${floorForRule})
</if>
<if test=" null != businessForRule and '' != businessForRule ">
and s.`business_id` in (${businessForRule})
</if>
<if test=" null != ids ">
and s.id in


Ładowanie…
Anuluj
Zapisz