package cn.com.ctop.common.module.mapper;

import cn.com.ctop.common.module.entity.UserCompany;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;

import java.util.List;

/**
 * 用户够公司
 *
 * @author: jeecg-boot
 * @date: 2019-11-14
 * @cersion: V1.0
 */
public interface UserCompanyMapper extends BaseMapper<UserCompany> {

    List<JSONObject> allCompany();

    JSONObject getCompanyInfoByAccountId(@Param("accountId") Long accountId);

    JSONObject getCompanyInfoByUserId(@Param("userId") String userId);
}
