短信、通知以及建店完成更新用户数据
This commit is contained in:
@@ -143,4 +143,11 @@ public class EnterpriseUserDAO {
|
||||
}
|
||||
return enterpriseUserMapper.selectNameByUserId(userIdList);
|
||||
}
|
||||
|
||||
public List<EnterpriseUserDO> getUserListByRegionId(Long regionId){
|
||||
if(regionId == null){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return enterpriseUserMapper.getUserListByRegionId(regionId);
|
||||
}
|
||||
}
|
||||
@@ -180,4 +180,11 @@ public class RegionDao {
|
||||
public List<RegionDO> getFightRegionByRegionIds(List<String> regionIds) {
|
||||
return regionMapper.getFightRegionByRegionIds(regionIds);
|
||||
}
|
||||
|
||||
public RegionDO getRegionByStoreId(String storeId) {
|
||||
if (Objects.isNull(storeId)) {
|
||||
return null;
|
||||
}
|
||||
return regionMapper.getRegionByStoreId(storeId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,5 +48,13 @@ public class StoreDao {
|
||||
return storeMapper.getStoreNumByStoreIds(storeIdList);
|
||||
}
|
||||
|
||||
public StoreDO getByStoreNum(String storeNum) {
|
||||
if(StringUtils.isBlank(storeNum)) {
|
||||
return null;
|
||||
}
|
||||
return storeMapper.getByStoreNum(storeNum);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -83,4 +83,10 @@ public interface EnterpriseUserMapper {
|
||||
* @return
|
||||
*/
|
||||
List<String> getUserIdListByRegionId( @Param("regionId") Long regionId, @Param("userIdList") List<String> userId);
|
||||
/**
|
||||
* 获取部门人员
|
||||
* @return
|
||||
*/
|
||||
List<EnterpriseUserDO> getUserListByRegionId( @Param("regionId") Long regionId);
|
||||
|
||||
}
|
||||
@@ -104,4 +104,5 @@ public interface RegionMapper {
|
||||
RegionDO getBigRegionByRegionId(@Param("regionId") long regionId);
|
||||
|
||||
List<RegionDO> getFightRegionByRegionIds(@Param("regionIds") List<String> regionIds);
|
||||
|
||||
}
|
||||
|
||||
@@ -22,4 +22,6 @@ public interface StoreMapper {
|
||||
|
||||
List<String> getStoreNumByStoreIds(@Param("storeIds") List<String> storeIds);
|
||||
|
||||
StoreDO getByStoreNum(@Param("storeNum") String storeNum);
|
||||
|
||||
}
|
||||
|
||||
@@ -162,5 +162,11 @@
|
||||
and user_region_ids like concat('%', #{regionId}, '%')
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getUserListByRegionId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from enterprise_user_${enterpriseId}
|
||||
where user_region_ids like concat('%', #{regionId}, '%') and active = true
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -73,5 +73,10 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="getByStoreNum" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
where store_num = #{storeNum}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user