@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "materialProcessMethod" column= "material_process_method" />
<result property= "materialUnit" column= "material_unit" />
<result property= "hasStorageNum" column= "has_storage_num" />
<result property= "notifyHasArrivedNum" column= "notify_has_arrived_num" />
<result property= "notifyHasArrivedNum" column= "notify_has_arrived_num" />
<result property= "materialNoRmb" column= "material_no_rmb" />
<result property= "materialRmb" column= "material_rmb" />
<result property= "materialNum" column= "material_num" />
@ -235,14 +235,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where purchase_order_code = #{purchaseOrderCode} group by supplier_code
</select>
<select id= "selectPurh caseOrderStorageByPurchaseOrderCode" parameterType= "String" resultMap= "PurchaseOrderChildResult" >
<select id= "selectPurch aseOrderStorageByPurchaseOrderCode" parameterType= "String" resultMap= "PurchaseOrderChildResult" >
select p.purchase_order_code,p.purchase_plan_code,p.purchase_plan_correlation_code,
p.supplier_code,p.supplier_name,p.material_code,p.material_name,p.material_type,p.material_describe,
p.material_brand,p.material_photoUrl,p.material_process_method,p.material_unit,p.warehouseDept,p.material_no_rmb,
p.material_rmb,p.material_num,p.material_amount,p.material_sum,p.material_no_rmb_sum,p.material_rmb_sum,
p.material_real_num,p.material_real_no_rmb,p.material_real_rmb,p.material_real_no_rmb_sum,p.material_real_rmb_sum,
p.delivery_time,p.eceipt_status,p.payment_status,p.tax_rate,p.create_by,p.create_time,p.update_by,p.update_time,p.del_flag,w.has_storage_num,sum(w.notify_arrive_num) as notify_has_arrived_num
from purchase_order_child as p left join warehouse_storage_order_detail as w on p.purchase_order_code = w.related_order_code and p.material_code = w.material_no
p.delivery_time,p.eceipt_status,p.payment_status,p.tax_rate,p.create_by,p.create_time,p.update_by,p.update_time,p.del_flag,
w.has_storage_num,sum(w.notify_arrive_num) as notify_has_arrived_num
from purchase_order_child as p left join warehouse_storage_order_detail as w
on p.purchase_order_code = w.related_order_code
and p.material_code = w.material_no and p.supplier_code = w.supplier_code
where p.purchase_order_code = #{purchaseOrderCode} GROUP BY supplier_code,material_code
</select>
</mapper>