package cn.ezhizao.project.business.company.service.impl;

import cn.ezhizao.common.constant.HttpStatus;
import cn.ezhizao.common.exception.ServiceException;
import cn.ezhizao.common.utils.StringUtils;
import cn.ezhizao.common.utils.bean.BeanValidators;
import cn.ezhizao.project.business.company.domain.BizCompany;
import cn.ezhizao.project.business.company.mapper.BizCompanyMapper;
import cn.ezhizao.project.business.company.service.IBizCompanyService;
import cn.ezhizao.project.system.domain.SysUser;
import cn.ezhizao.project.system.mapper.SysUserMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.Validator;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

/**
 * companyService业务层处理
 *
 * @author ezhizao
 * @date 2023-10-16
 */
@Service
public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCompany> implements IBizCompanyService
{
    @Resource
    private BizCompanyMapper bizCompanyMapper;
    @Resource
    private SysUserMapper sysUserMapper;
    @Resource
    private Validator validator;

    @Override
    public BizCompany getById(Long id) {
        BizCompany company = super.getById(id);
        return company;
    }

    /**
     * 查询company列表
     *
     * @param bizCompany company
     * @return company
     */
    @Override
    public List<BizCompany> getList(BizCompany bizCompany)
    {
        return bizCompanyMapper.getList(bizCompany);
    }

    /**
     * 物理删除
     * @param bizCompany
     * @return 删除结果
     */
    @Override
    public int physicalDelete(BizCompany bizCompany){ return bizCompanyMapper.physicalDelete(bizCompany); }

}
