|
@@ -1,5 +1,6 @@
|
|
|
package com.huimv.produce.produce.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.huimv.produce.produce.entity.ProdStock;
|
|
@@ -82,7 +83,10 @@ public class ProdStockServiceImpl extends ServiceImpl<ProdStockMapper, ProdStock
|
|
|
month1.add(prodStock.getMonth());
|
|
|
}
|
|
|
String stockType = prodStock.getStockType();
|
|
|
- Integer stockQuantity = prodStock.getStockQuantity();
|
|
|
+ Integer stockQuantity =0;
|
|
|
+ if (ObjectUtil.isNotEmpty(prodStock.getStockQuantity())){
|
|
|
+ stockQuantity = prodStock.getStockQuantity();
|
|
|
+ }
|
|
|
switch (stockType){
|
|
|
case "sow_stock":
|
|
|
sowStock.add(stockQuantity);
|