|
@@ -25,4 +25,15 @@
|
25
|
25
|
|
26
|
26
|
</select>
|
27
|
27
|
|
|
28
|
+ <!-- 损耗记录 -->
|
|
29
|
+ <select id="getLossRecord" resultType="com.unis.vis.model.OutboundMaterialInfo">
|
|
30
|
+ SELECT omi."material_name",oi."outbound_type",sdi.LABEL ,SUM(oi."quantity") ,omi."unit" ,SUM(omi."total_price")
|
|
31
|
+ FROM
|
|
32
|
+ "outbound_material_info" omi
|
|
33
|
+ LEFT JOIN "outbound_info" oi ON oi."outbound_id" = omi."outbound_id"
|
|
34
|
+ LEFT JOIN "outbound_status" os ON os."outbound_id" = omi."outbound_id"
|
|
35
|
+ LEFT JOIN SYS_DICT_ITEM sdi ON sdi.ITEM_VALUE = oi."outbound_type"
|
|
36
|
+ WHERE oi."status" =5 AND omi."is_available" = 0 AND sdi.DICT_TYPE = 'outbound_type'
|
|
37
|
+ GROUP BY oi."warehouse"
|
|
38
|
+ </select>
|
28
|
39
|
</mapper>
|