|
@@ -104,7 +104,19 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
|
|
|
wrapper.eq(ProductInfo::getCompanyId, dto.getCompanyId());
|
|
wrapper.eq(ProductInfo::getCompanyId, dto.getCompanyId());
|
|
|
|
|
|
-
|
|
+
|
|
|
|
+ Long isRawMaterial = dto.getIsRawMaterial();
|
|
|
|
+ if (ObjectUtil.isNotEmpty(isRawMaterial)) {
|
|
|
|
+ if (isRawMaterial.equals(1)) {
|
|
|
|
+
|
|
|
|
+ wrapper.isNotNull("pi.rawMaterialId");
|
|
|
|
+ } else {
|
|
|
|
+
|
|
|
|
+ wrapper.isNull("pi.rawMaterialId");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
Integer isNeRawMaterial = dto.getIsNeRawMaterial();
|
|
Integer isNeRawMaterial = dto.getIsNeRawMaterial();
|
|
if (Objects.equals(isNeRawMaterial, 1)) {
|
|
if (Objects.equals(isNeRawMaterial, 1)) {
|
|
List<Long> pcIds = productClassifyService.listObject(ProductClassify::getId, q -> q
|
|
List<Long> pcIds = productClassifyService.listObject(ProductClassify::getId, q -> q
|