|  |  |  | 
|---|
|  |  |  | ( | 
|---|
|  |  |  | SELECT | 
|---|
|  |  |  | aoi.id, | 
|---|
|  |  |  | aoi.asn_id, | 
|---|
|  |  |  | aoi.asn_code, | 
|---|
|  |  |  | aoi.order_id, | 
|---|
|  |  |  | aoi.order_code, | 
|---|
|  |  |  | aoi.plat_item_id, | 
|---|
|  |  |  | aoi.po_detl_id, | 
|---|
|  |  |  | aoi.plat_order_code, | 
|---|
|  |  |  | aoi.project_code, | 
|---|
|  |  |  | aoi.ispt_status, | 
|---|
|  |  |  | aoi.ispt_result, | 
|---|
|  |  |  | aoi.batch, | 
|---|
|  |  |  | aoi.spec, | 
|---|
|  |  |  | aoi.model, | 
|---|
|  |  |  | aoi.plat_work_code, | 
|---|
|  |  |  | aoi.po_code, | 
|---|
|  |  |  | aoi.fields_index, | 
|---|
|  |  |  | aoi.matnr_id, | 
|---|
|  |  |  | 
|---|
|  |  |  | aoi.anfme, | 
|---|
|  |  |  | aoi.stock_unit, | 
|---|
|  |  |  | aoi.pur_qty, | 
|---|
|  |  |  | aoi.work_qty, | 
|---|
|  |  |  | aoi.pur_unit, | 
|---|
|  |  |  | aoi.prod_time, | 
|---|
|  |  |  | aoi.qty, | 
|---|
|  |  |  | 
|---|
|  |  |  | aoi.memo | 
|---|
|  |  |  | FROM | 
|---|
|  |  |  | man_asn_order_item aoi | 
|---|
|  |  |  | where aoi.deleted = 0 | 
|---|
|  |  |  | --                         LEFT JOIN man_qly_ispt_item qii ON aoi.id = qii.asn_item_id | 
|---|
|  |  |  | ) t | 
|---|
|  |  |  | ${ew.customSqlSegment} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="resultById" resultType="com.vincent.rsf.server.manager.entity.AsnOrderItem"> | 
|---|
|  |  |  | <select id="resultById" resultType="com.vincent.rsf.server.manager.entity.WkOrderItem"> | 
|---|
|  |  |  | SELECT | 
|---|
|  |  |  | * | 
|---|
|  |  |  | FROM | 
|---|
|  |  |  | ( | 
|---|
|  |  |  | SELECT | 
|---|
|  |  |  | aoi.id, | 
|---|
|  |  |  | aoi.asn_id, | 
|---|
|  |  |  | aoi.asn_code, | 
|---|
|  |  |  | aoi.order_id, | 
|---|
|  |  |  | aoi.order_code, | 
|---|
|  |  |  | aoi.plat_item_id, | 
|---|
|  |  |  | aoi.plat_work_code, | 
|---|
|  |  |  | aoi.po_detl_id, | 
|---|
|  |  |  | aoi.po_code, | 
|---|
|  |  |  | aoi.fields_index, | 
|---|
|  |  |  | 
|---|
|  |  |  | aoi.maktx, | 
|---|
|  |  |  | aoi.anfme, | 
|---|
|  |  |  | aoi.stock_unit, | 
|---|
|  |  |  | aoi.work_qty, | 
|---|
|  |  |  | aoi.pur_qty, | 
|---|
|  |  |  | aoi.pur_unit, | 
|---|
|  |  |  | aoi.prod_time, | 
|---|
|  |  |  | 
|---|
|  |  |  | aoi.memo | 
|---|
|  |  |  | FROM | 
|---|
|  |  |  | man_asn_order_item aoi | 
|---|
|  |  |  | where aoi.deleted = 0 | 
|---|
|  |  |  | --                         LEFT JOIN man_qly_ispt_item qii ON aoi.id = qii.asn_item_id | 
|---|
|  |  |  | ) t | 
|---|
|  |  |  | ${ew.customSqlSegment} | 
|---|