|
@@ -144,8 +144,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
dto.setCompanyId(companyId);
|
|
|
}
|
|
|
wrapper.and(q1 -> q1.
|
|
|
- and(q -> q.eq(ProductInfo::getDefinition, 1).eq(ProductInfo::getCompanyId, dto.getCompanyId()))
|
|
|
- .or().eq(ProductInfo::getDefinition, 2)
|
|
|
+ and(q -> q.eq("pi", ProductInfo::getDefinition, 1).eq("pi", ProductInfo::getCompanyId, dto.getCompanyId()))
|
|
|
+ .or().eq("pi", ProductInfo::getDefinition, 2)
|
|
|
);
|
|
|
|
|
|
wrapper.orderByDesc("pi", ProductInfo::getId);
|
|
@@ -772,8 +772,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
dto.setCompanyId(companyId);
|
|
|
}
|
|
|
wrapper.and(q1 -> q1.
|
|
|
- and(q -> q.eq(ProductInfo::getDefinition, 1).eq(ProductInfo::getCompanyId, dto.getCompanyId()))
|
|
|
- .or().eq(ProductInfo::getDefinition, 2)
|
|
|
+ and(q -> q.eq("pi", ProductInfo::getDefinition, 1).eq("pi", ProductInfo::getCompanyId, dto.getCompanyId()))
|
|
|
+ .or().eq("pi", ProductInfo::getDefinition, 2)
|
|
|
);
|
|
|
|
|
|
List<ProductInfo> productInfoList = this.list(wrapper);
|