| | |
| | | import com.fzzy.igds.repository.CompanyRepository; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | /** |
| | | * jpa查询公司信息 |
| | | * @param companyId |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public List<Company> getDataById(String id) { |
| | | |
| | | return companyRepository.getDataById(id); |
| | | } |
| | | |
| | | /** |
| | | * jpa查询公司信息 |
| | | * @return |
| | | */ |
| | | public List<Company> getAllData(String companyId) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * jpa查询公司信息 |
| | | * @return |
| | | */ |
| | | public List<Company> getDataByParentId() { |
| | | |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | return companyRepository.getDataByParentId(user.getDeptId() + "%"); |
| | | } |
| | | |
| | | /** |
| | | * jpa新增公司信息 |
| | | * @param sysDept |
| | | * @return |