Commit eb1fb03f by 胡懿

入库明细统计增加二维码状态

parent 7515a7b8
...@@ -207,19 +207,21 @@ ...@@ -207,19 +207,21 @@
s.name AS "shelves.name", s.name AS "shelves.name",
w.id AS "warehouse.id", w.id AS "warehouse.id",
w.name AS "warehouse.name", w.name AS "warehouse.name",
qr.state AS "state",
COUNT( a.id ) AS "num" COUNT( a.id ) AS "num"
FROM FROM
t_wh_storage_info a t_wh_storage_info a
LEFT JOIN t_wh_material_type type on a.type_id = type.id LEFT JOIN t_wh_material_type type on a.type_id = type.id
LEFT JOIN t_wh_shelves s on s.id = a.shelves_id LEFT JOIN t_wh_shelves s on s.id = a.shelves_id
LEFT JOIN t_wh_warehouse w on w.id = s.warehouse_id LEFT JOIN t_wh_warehouse w on w.id = s.warehouse_id
LEFT JOIN t_wh_qr qr ON qr.id = a.qr_id
<where> <where>
a.del_flag = #{DEL_FLAG_NORMAL} a.del_flag = #{DEL_FLAG_NORMAL}
<if test="storage != null and storage.id != null and storage.id != ''"> <if test="storage != null and storage.id != null and storage.id != ''">
AND a.storage_id = #{storage.id} AND a.storage_id = #{storage.id}
</if> </if>
</where> </where>
GROUP BY a.goods_info_id,a.shelves_id GROUP BY a.goods_info_id,a.shelves_id,qr.state
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment