|
@@ -148,12 +148,13 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
public HttpRespMsg getCoutomCompanyAndMouldsByUser(UserVO userVO) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
List<CompanyVO> companyVOS = new ArrayList<>();
|
|
|
+ List<Integer> mouldIds = new ArrayList<>();
|
|
|
+ mouldIds.add(-1);
|
|
|
User currentUser = userMapper.selectOne(new QueryWrapper<User>().eq("head_imgurl", userVO.getToken()));
|
|
|
if (Constant.SYS_ID == currentUser.getParentId()) {
|
|
|
//此时是admin,可看到自己公司下的模具和交于生产的公司
|
|
|
QueryWrapper<Mould> qw = new QueryWrapper<>();
|
|
|
List<Mould> moulds = mouldMapper.selectList(qw.eq("company_id", currentUser.getCompanyId()));
|
|
|
- List<Integer> mouldIds = new ArrayList<>();
|
|
|
for (Mould mould : moulds) {
|
|
|
mouldIds.add(mould.getId());
|
|
|
}
|
|
@@ -161,7 +162,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
} else if (Constant.SYS_PARENT_ID == currentUser.getParentId()) {
|
|
|
//系统管理员创建admin,返回资产方公司
|
|
|
List<Mould> moulds = mouldMapper.selectList(new QueryWrapper<Mould>());
|
|
|
- List<Integer> mouldIds = new ArrayList<>();
|
|
|
for (Mould mould : moulds) {
|
|
|
mouldIds.add(mould.getId());
|
|
|
}
|
|
@@ -193,8 +193,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
|
}
|
|
|
List<Mould> moulds = mouldMapper.selectList(new QueryWrapper<Mould>().in("project_id",set));
|
|
|
- System.out.println(set + "_____" + moulds);
|
|
|
- List<Integer> mouldIds = new ArrayList<>();
|
|
|
for (Mould mould : moulds) {
|
|
|
mouldIds.add(mould.getId());
|
|
|
}
|