|
@@ -546,6 +546,7 @@
|
|
SUM(IFNULL(old_qty,0)) as oldQty
|
|
SUM(IFNULL(old_qty,0)) as oldQty
|
|
FROM worker_stock t
|
|
FROM worker_stock t
|
|
WHERE identity = #{identity}
|
|
WHERE identity = #{identity}
|
|
|
|
+ AND goods_type = 'P'
|
|
<if test="websitId != null and websitId != ''">
|
|
<if test="websitId != null and websitId != ''">
|
|
AND t.websit_id = #{websitId}
|
|
AND t.websit_id = #{websitId}
|
|
</if>
|
|
</if>
|