|
@@ -196,10 +196,14 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- Long companyId = SecurityUtils.getCompanyId();
|
|
|
- if (!Objects.equals(companyId, 100L)) {
|
|
|
- dto.setCompanyId(companyId);
|
|
|
+
|
|
|
+
|
|
|
+ if (!ObjectUtil.equals(dto.getDisablePerm(), 1)) {
|
|
|
+
|
|
|
+ Long companyId = SecurityUtils.getCompanyId();
|
|
|
+ if (!Objects.equals(companyId, 100L)) {
|
|
|
+ dto.setCompanyId(companyId);
|
|
|
+ }
|
|
|
}
|
|
|
wrapper.and(q1 -> q1.
|
|
|
and(q -> q.eq("pi", ProductInfo::getDefinition, 1).eq("pi", ProductInfo::getCompanyId, dto.getCompanyId()))
|