package org.jeecg.modules.order;

import cn.com.ctop.common.module.mapper.SysRoleMapper;
import com.alibaba.dubbo.config.annotation.Service;
import org.jeecg.common.system.api.ICommonService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Service(interfaceClass = ICommonService.class)
public class CommonServiceImpl implements ICommonService {
    @Resource
    private SysRoleMapper sysRoleMapper;
    @Override
    public String getRoleCodeByUserId(String userId) {
        return sysRoleMapper.getRoleCodeByUserId(userId);
    }
}
