Просмотр исходного кода

/、tenant

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
8c72cb3ecd
5 измененных файлов: 13 добавлений и 13 удалений
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/domain/po/base/BaseTenantEntity.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java
  3. +4
    -4
      mallinkService/src/main/resources/mapper/TtCUserMapper.xml
  4. +3
    -3
      mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml
  5. +4
    -4
      mallinkService/src/main/resources/mapper/WxCUserMapper.xml

+ 1
- 1
mallinkService/src/main/java/com/iformall/domain/po/base/BaseTenantEntity.java Просмотреть файл

@@ -27,10 +27,10 @@ public class BaseTenantEntity extends BaseEntity {
protected String finalTenantId;

public String getFinalTenantId() {
finalTenantId = tenantId;
if (StringUtils.isNotBlank(parentTenantId)) {
finalTenantId = parentTenantId;
}
finalTenantId = tenantId;
return finalTenantId;
}



+ 1
- 1
mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java Просмотреть файл

@@ -44,10 +44,10 @@ public class TenantEntity extends BaseEntity {
}

public String getFinalTenantId() {
finalTenantId = tenantId;
if (StringUtils.isNotBlank(parentTenantId)) {
finalTenantId = parentTenantId;
}
finalTenantId = tenantId;
return finalTenantId;
}



+ 4
- 4
mallinkService/src/main/resources/mapper/TtCUserMapper.xml Просмотреть файл

@@ -319,16 +319,16 @@

</select>

<select id="findCountHistory" resultType="com.iformall.domain.vo.UserCountVo">
<select id="findCountHistory" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultType="com.iformall.domain.vo.UserCountVo">
select count(id) as incCount,
<if test="1 == reportType ">
date_format(create_date, '%Y-%m-%d') as reportTime,
date_format(create_date, '%Y-%m-%d') as reportTime
</if>
<if test="2 == reportType ">
date_format(create_date, '%Y-%m') as reportTime,
date_format(create_date, '%Y-%m') as reportTime
</if>
<if test="3 == reportType ">
date_format(create_date, '%Y') as reportTime,
date_format(create_date, '%Y') as reportTime
</if>

from tt_c_user


+ 3
- 3
mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml Просмотреть файл

@@ -307,13 +307,13 @@
<select id="findCountHistory" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultType="com.iformall.domain.vo.UserCountVo">
select count(wcubi.id) as incCount,
<if test="1 == reportType ">
date_format(wcubi.create_date, '%Y-%m-%d') as reportTime,
date_format(wcubi.create_date, '%Y-%m-%d') as reportTime
</if>
<if test="2 == reportType ">
date_format(wcubi.create_date, '%Y-%m') as reportTime,
date_format(wcubi.create_date, '%Y-%m') as reportTime
</if>
<if test="3 == reportType ">
date_format(wcubi.create_date, '%Y') as reportTime,
date_format(wcubi.create_date, '%Y') as reportTime
</if>
from wx_c_user_basic_info wcubi
where wcubi.`final_tenant_id` = #{finalTenantId}


+ 4
- 4
mallinkService/src/main/resources/mapper/WxCUserMapper.xml Просмотреть файл

@@ -321,16 +321,16 @@

</select>

<select id="findCountHistory" resultType="com.iformall.domain.vo.UserCountVo">
<select id="findCountHistory" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultType="com.iformall.domain.vo.UserCountVo">
select count(id) as incCount,
<if test="1 == reportType ">
date_format(create_date, '%Y-%m-%d') as reportTime,
date_format(create_date, '%Y-%m-%d') as reportTime
</if>
<if test="2 == reportType ">
date_format(create_date, '%Y-%m') as reportTime,
date_format(create_date, '%Y-%m') as reportTime
</if>
<if test="3 == reportType ">
date_format(create_date, '%Y') as reportTime,
date_format(create_date, '%Y') as reportTime
</if>
from wx_c_user
where `tenant_id` = #{tenantId}


Загрузка…
Отмена
Сохранить