|
@@ -119,7 +119,7 @@
|
|
|
resultType="com.yh.saas.plugin.yiliangyiyun.entity.view.WarehouseNumView">
|
|
|
SELECT
|
|
|
REPLACE(wioi.goods_name,'(潮粮)','') as goodsName,
|
|
|
- ifnull(sum( case when wioi.goods_name like '%潮粮%' then wioi.pure_weight else wioi.net_weight end ),0) as pureWeight
|
|
|
+ ifnull(sum( case when wioi.goods_name like '%潮粮%' and wioi.type = '潮粮' then wioi.pure_weight else wioi.net_weight end ),0) as pureWeight
|
|
|
FROM
|
|
|
warehouse_in_out_info wioi
|
|
|
LEFT JOIN warehouse_base_info wbi ON wbi.id = wioi.base_id
|