@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "materialBrand" column= "material_brand" />
<result property= "materialDescribe" column= "material_describe" />
<result property= "materialPhotourl" column= "material_photoUrl" />
<result property= "warehouseDept" column= "warehouseDept" />
<result property= "materialProcessMethod" column= "material_process_method" />
<result property= "materialUnit" column= "material_unit" />
<result property= "hasStorageNum" column= "has_storage_num" />
@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select purchase_order_child_id, purchase_order_code, purchase_plan_code,purchase_plan_correlation_code,
supplier_code, supplier_name,
material_code, material_name,material_type, material_describe,material_brand,
material_photoUrl, material_process_method,material_unit,
material_photoUrl, material_process_method,material_unit,warehouseDept,
material_no_rmb, material_rmb, material_num,
material_amount, material_sum, material_no_rmb_sum, material_rmb_sum,
material_real_num, material_real_no_rmb, material_real_rmb, material_real_no_rmb_sum,
@ -95,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "materialPhotourl != null" > material_photo_url,</if>
<if test= "materialProcessMethod != null" > material_process_method,</if>
<if test= "materialUnit != null" > material_unit,</if>
<if test= "warehouseDept != null" > warehouseDept,</if>
<if test= "materialNoRmb != null" > material_no_rmb,</if>
<if test= "materialRmb != null" > material_rmb,</if>
<if test= "materialNum != null" > material_num,</if>
@ -131,6 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "materialPhotourl != null" > #{materialPhotourl},</if>
<if test= "materialProcessMethod != null" > #{materialProcessMethod},</if>
<if test= "materialUnit != null" > #{materialUnit},</if>
<if test= "warehouseDept != null" > #{warehouseDept},</if>
<if test= "materialNoRmb != null" > #{materialNoRmb},</if>
<if test= "materialRmb != null" > #{materialRmb},</if>
<if test= "materialNum != null" > #{materialNum},</if>
@ -170,6 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "materialPhotourl != null" > material_photo_url = #{materialPhotourl}</if>
<if test= "materialProcessMethod != null" > material_process_method = #{materialProcessMethod},</if>
<if test= "materialUnit != null" > material_unit = #{materialUnit},</if>
<if test= "warehouseDept != null" > warehouse_dept = #{warehouseDept},</if>
<if test= "materialNoRmb != null" > material_no_rmb = #{materialNoRmb},</if>
<if test= "materialRmb != null" > material_rmb = #{materialRmb},</if>
<if test= "materialNum != null" > material_num = #{materialNum},</if>
@ -237,12 +241,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id= "selectPurhcaseOrderStorageByPurchaseOrderCode" parameterType= "String" resultMap= "PurchaseOrderChildResult" >
select p.purchase_order_child_id,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_photo_url,p.material_process_method,p.material_unit,p.material_no_rmb,
p.material_brand,p.material_photo_url,p.material_process_method,p.material_unit,p.warehouse_dept,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,
(select w.has_storage_num from warehouse_storage_order_detail as w where w.material_no = p.material_code and w.related_order_code = p.purchase_order_code and w.supplier_code = p.supplier_code) as has_storage_num,
(select w.notify_has_arrived_num from warehouse_storage_order_detail as w where w.material_no = p.material_code and w.related_order_code = p.purchase_order_code and w.supplier_code = p.supplier_code) as notify_has_arrived_num
(select sum( w.has_storage_num) from warehouse_storage_order_detail as w where w.material_no = p.material_code and w.related_order_code = p.purchase_order_code and w.supplier_code = p.supplier_code) as has_storage_num,
(select sum( w.notify_has_arrived_num) from warehouse_storage_order_detail as w where w.material_no = p.material_code and w.related_order_code = p.purchase_order_code and w.supplier_code = p.supplier_code) as notify_has_arrived_num
from purchase_order_child as p where p.purchase_order_code = #{purchaseOrderCode};
</select>
</mapper>