PCTrainingExperienceController

This commit is contained in:
guohb
2024-04-07 17:01:45 +08:00
parent 84efb14e53
commit 257aa09005
7 changed files with 72 additions and 6 deletions

View File

@@ -66,5 +66,4 @@ public interface EnterpriseUserMapper {
EnterpriseUserDO selectByMobile( @Param("mobile") String mobile);
EnterpriseUserDO selectByInvestmentManager( @Param("investmentManager") String investmentManager);
}

View File

@@ -97,4 +97,5 @@ public interface RegionMapper {
List<RegionDO> listByThirdRegionType(@Param("parentId")Long parentId, @Param("thirdRegionType")String thirdRegionType);
RegionDO getRegionByStoreId(@Param("storeId") String storeId);
}

View File

@@ -138,4 +138,5 @@ public interface SysRoleMapper {
List<SysRoleDO> getRolesByNamesAndSource(@Param("roleNames") List<String> roleNames, @Param("source") String source);
List<SysRoleDO> getXFStoreManager(@Param("roleNames") List<String> roleNames);
}

View File

@@ -345,6 +345,13 @@
and third_region_type = #{thirdRegionType}
</if>
</select>
<select id="getRegionByStoreId" resultType="com.cool.store.entity.RegionDO">
select <include refid="fields"/>
from region_${enterpriseId}
where deleted = 0
and store_id = #{storeId}
and region_type = 'store'
</select>
</mapper>

View File

@@ -358,5 +358,21 @@
#{roleName}
</foreach>
</select>
<select id="getXFStoreManager" resultType="com.cool.store.entity.SysRoleDO">
select
*
from sys_role_${enterpriseId}
where
(
source = 'sync'
or
source = 'sync_position'
)
and role_name in
<foreach collection="roleNames" item="roleName" open="(" close=")" separator=",">
#{roleName}
</foreach>
</select>
</mapper>