|
@@ -82,11 +82,18 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}else{
|
|
|
//此时是项目经理创建其他用户
|
|
|
User admin = userMapper.selectOne(new QueryWrapper<User>().eq("id", user.getParentId()));
|
|
|
- qw.eq("company_type",Constant.ASSETS_COMPANY).or().eq("id",admin.getCompanyId());
|
|
|
+ qw.eq("company_type",Constant.PRODUCER_COMPANY).or().eq("id",admin.getCompanyId());
|
|
|
}
|
|
|
return companyMapper.selectList(qw);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<Company> addCompanyListToProject(User user) {
|
|
|
+ QueryWrapper<Company> qw = new QueryWrapper<>();
|
|
|
+ qw.eq("company_type",Constant.PRODUCER_COMPANY);
|
|
|
+ return companyMapper.selectList(qw);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public HttpRespMsg deleteById(Integer id) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
@@ -98,4 +105,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
|
return msg;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|