|
@@ -5,7 +5,7 @@
|
|
|
<!-- 通用设置 -->
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- item_id, into_id, into_type, from_id, from_item_id, item_index, sku_id, item_qty, price_into, item_amt, non_std_code, into_status, intoing_qty, intoing_amt, into_qty, into_amt, return_qty, return_amt, remarks, inv_id, cost_price, cost_amt, out_qty, inv_qty, 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, into_id, into_type, from_id, from_item_id, item_index, sku_id, price_into, non_std_code, into_status, intoing_qty, intoing_amt, into_qty, into_amt, return_qty, return_amt, remarks, inv_id, cost_price, cost_amt, out_qty, inv_qty, 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>
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
@@ -17,9 +17,7 @@
|
|
|
<result column="from_item_id" property="fromItemId" typeHandler="UuidTypeHandler"/>
|
|
<result column="from_item_id" property="fromItemId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="item_index" property="itemIndex"/>
|
|
<result column="item_index" property="itemIndex"/>
|
|
|
<result column="sku_id" property="skuId" typeHandler="UuidTypeHandler"/>
|
|
<result column="sku_id" property="skuId" typeHandler="UuidTypeHandler"/>
|
|
|
- <result column="item_qty" property="itemQty"/>
|
|
|
|
|
<result column="price_into" property="priceInto"/>
|
|
<result column="price_into" property="priceInto"/>
|
|
|
- <result column="item_amt" property="itemAmt"/>
|
|
|
|
|
<result column="non_std_code" property="nonStdCode"/>
|
|
<result column="non_std_code" property="nonStdCode"/>
|
|
|
<result column="into_status" property="intoStatus"/>
|
|
<result column="into_status" property="intoStatus"/>
|
|
|
<result column="intoing_qty" property="intoingQty"/>
|
|
<result column="intoing_qty" property="intoingQty"/>
|
|
@@ -66,15 +64,9 @@
|
|
|
<if test="skuId != null and skuId != ''">
|
|
<if test="skuId != null and skuId != ''">
|
|
|
AND sku_id = #{skuId}
|
|
AND sku_id = #{skuId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="itemQty != null">
|
|
|
|
|
- AND item_qty = #{itemQty}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="priceInto != null">
|
|
<if test="priceInto != null">
|
|
|
AND price_into = #{priceInto}
|
|
AND price_into = #{priceInto}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="itemAmt != null">
|
|
|
|
|
- AND item_amt = #{itemAmt}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="nonStdCode != null and nonStdCode != ''">
|
|
<if test="nonStdCode != null and nonStdCode != ''">
|
|
|
AND non_std_code = #{nonStdCode}
|
|
AND non_std_code = #{nonStdCode}
|
|
|
</if>
|
|
</if>
|
|
@@ -210,9 +202,7 @@
|
|
|
from_item_id,
|
|
from_item_id,
|
|
|
item_index,
|
|
item_index,
|
|
|
sku_id,
|
|
sku_id,
|
|
|
- item_qty,
|
|
|
|
|
price_into,
|
|
price_into,
|
|
|
- item_amt,
|
|
|
|
|
non_std_code,
|
|
non_std_code,
|
|
|
into_status,
|
|
into_status,
|
|
|
intoing_qty,
|
|
intoing_qty,
|
|
@@ -241,9 +231,7 @@
|
|
|
#{item.fromItemId}::uuid,
|
|
#{item.fromItemId}::uuid,
|
|
|
#{item.itemIndex},
|
|
#{item.itemIndex},
|
|
|
#{item.skuId}::uuid,
|
|
#{item.skuId}::uuid,
|
|
|
- #{item.itemQty},
|
|
|
|
|
#{item.priceInto},
|
|
#{item.priceInto},
|
|
|
- #{item.itemAmt},
|
|
|
|
|
#{item.nonStdCode},
|
|
#{item.nonStdCode},
|
|
|
#{item.intoStatus},
|
|
#{item.intoStatus},
|
|
|
#{item.intoingQty},
|
|
#{item.intoingQty},
|