|
@@ -566,6 +566,7 @@
|
|
|
|
|
|
<select id="pdaList" resultType="com.jsh.erp.datasource.pda.vo.PDADepotItemVO">
|
|
|
SELECT
|
|
|
+ di.id AS id,
|
|
|
m.`name` AS material_name,
|
|
|
m.standard AS material_standard,
|
|
|
me.batch_number AS batch_number,
|
|
@@ -584,4 +585,51 @@
|
|
|
di.delete_flag = '0'
|
|
|
AND di.header_id = #{id}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="pdaDetail" resultType="com.jsh.erp.datasource.pda.vo.PDADepotItemVO">
|
|
|
+ SELECT
|
|
|
+ di.id AS id,
|
|
|
+ m.`name` AS material_name,
|
|
|
+ m.standard AS material_standard,
|
|
|
+ me.batch_number AS batch_number,
|
|
|
+ me.production_date AS production_date,
|
|
|
+ me.position AS position,
|
|
|
+ me.inventory AS inventory,
|
|
|
+ me.bar_code AS bar_code,
|
|
|
+ di.oper_number AS oper_number,
|
|
|
+
|
|
|
+ di.material_unit AS material_unit,
|
|
|
+ me.create_time AS create_time
|
|
|
+ FROM
|
|
|
+ jsh_depot_item di
|
|
|
+ LEFT JOIN jsh_material m ON di.material_id = m.id
|
|
|
+ LEFT JOIN jsh_material_extend me ON di.material_extend_id = me.id
|
|
|
+ WHERE
|
|
|
+ di.delete_flag = '0'
|
|
|
+ AND di.id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="materialDepotDetail" resultType="com.jsh.erp.datasource.pda.vo.PDADepotItemVO">
|
|
|
+ SELECT
|
|
|
+ di.id AS id,
|
|
|
+ di.material_id AS material_id,
|
|
|
+ m.`name` AS material_name,
|
|
|
+ d.name AS depot_name,
|
|
|
+ m.standard AS material_standard,
|
|
|
+ di.actual_quantity_in_storage AS actual_quantity_in_storage,
|
|
|
+ di.warehousing_time AS warehousing_time,
|
|
|
+ me.commodity_unit AS commodity_unit
|
|
|
+ FROM
|
|
|
+ jsh_depot_item di
|
|
|
+ LEFT JOIN jsh_material m ON di.material_id = m.id
|
|
|
+ LEFT JOIN jsh_material_extend me ON di.material_extend_id = me.id
|
|
|
+ LEFT JOIN jsh_depot d ON di.depot_id = d.id
|
|
|
+ WHERE
|
|
|
+ di.delete_flag = '0'
|
|
|
+ AND m.status in ('2','3')
|
|
|
+ AND di.type = #{type}
|
|
|
+ AND di.material_id = #{materialId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|