|
@@ -5,7 +5,11 @@
|
|
|
<!-- 通用设置 -->
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- item_id, pur_id, item_index, sku_id, item_qty, price_std, amt_std, price_pur, item_amt, price_discount, non_std_code, into_status, intoing_qty, intoing_amt, into_qty, into_amt, return_qty, return_amt, remarks, flg_valid, cp_id, op_create_time, op_create_user_id, op_update_time, op_update_user_id, op_app_code, op_timestamp, op_db_user
|
|
|
|
|
|
|
+ item_id, pur_id, item_index, sku_id, sys.f_remove_zero(item_qty) as item_qty, price_std, amt_std, price_pur,
|
|
|
|
|
+ item_amt, price_discount, non_std_code, into_status, sys.f_remove_zero(intoing_qty) as intoing_qty, intoing_amt,
|
|
|
|
|
+ sys.f_remove_zero(into_qty) as into_qty, into_amt, sys.f_remove_zero(return_qty) as return_qty, return_amt,
|
|
|
|
|
+ remarks, flg_valid, cp_id, op_create_time,
|
|
|
|
|
+ op_create_user_id, op_update_time, op_update_user_id, op_app_code, op_timestamp, op_db_user
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<!-- Response通用查询列 -->
|
|
<!-- Response通用查询列 -->
|
|
@@ -14,7 +18,7 @@
|
|
|
tppi.pur_id,
|
|
tppi.pur_id,
|
|
|
tppi.item_index,
|
|
tppi.item_index,
|
|
|
tppi.sku_id,
|
|
tppi.sku_id,
|
|
|
- tppi.item_qty,
|
|
|
|
|
|
|
+ sys.f_remove_zero(tppi.item_qty) as item_qty,
|
|
|
tppi.price_std as "pricePurchase",
|
|
tppi.price_std as "pricePurchase",
|
|
|
tppi.price_std,
|
|
tppi.price_std,
|
|
|
tppi.amt_std,
|
|
tppi.amt_std,
|
|
@@ -23,11 +27,11 @@
|
|
|
tppi.price_discount,
|
|
tppi.price_discount,
|
|
|
tppi.non_std_code,
|
|
tppi.non_std_code,
|
|
|
tppi.into_status,
|
|
tppi.into_status,
|
|
|
- tppi.intoing_qty,
|
|
|
|
|
|
|
+ sys.f_remove_zero(tppi.intoing_qty) as intoing_qty,
|
|
|
tppi.intoing_amt,
|
|
tppi.intoing_amt,
|
|
|
- tppi.into_qty,
|
|
|
|
|
|
|
+ sys.f_remove_zero(tppi.into_qty) as into_qty,
|
|
|
tppi.into_amt,
|
|
tppi.into_amt,
|
|
|
- tppi.return_qty,
|
|
|
|
|
|
|
+ sys.f_remove_zero(tppi.return_qty) as return_qty,
|
|
|
tppi.return_amt,
|
|
tppi.return_amt,
|
|
|
tppi.remarks,
|
|
tppi.remarks,
|
|
|
tppi.flg_valid,
|
|
tppi.flg_valid,
|