|
@@ -6,12 +6,12 @@
|
|
|
<!-- 通用查询列 -->
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
item_id
|
|
item_id
|
|
|
- , order_id, item_index, sku_id, item_qty, price_std, amt_std, price_sale, item_amt, price_discount, non_std_code, out_status, outing_qty, outing_amt, out_qty, out_amt, return_qty, return_amt, remarks, flg_valid, cp_id
|
|
|
|
|
|
|
+ , order_id, item_index, sku_id, item_qty, price_std, amt_std, price_sale, item_amt, price_discount, non_std_code, out_status, outing_qty, outing_amt, out_qty, out_amt, return_qty, return_amt, remarks, flg_valid, cp_id, wh_id
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List_Response">
|
|
<sql id="Base_Column_List_Response">
|
|
|
t.item_id, t.order_id, t.item_index, t.sku_id, t.item_qty, t.price_std, t.amt_std, t.price_sale, t.item_amt, t.price_discount, t.non_std_code,
|
|
t.item_id, t.order_id, t.item_index, t.sku_id, t.item_qty, t.price_std, t.amt_std, t.price_sale, t.item_amt, t.price_discount, t.non_std_code,
|
|
|
- t.out_status, t.outing_qty, t.outing_amt, t.out_qty, t.out_amt, t.return_qty, t.return_amt, t.remarks, t.flg_valid, t.cp_id
|
|
|
|
|
|
|
+ t.out_status, t.outing_qty, t.outing_amt, t.out_qty, t.out_amt, t.return_qty, t.return_amt, t.remarks, t.flg_valid, t.cp_id, t.wh_id
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
@@ -37,6 +37,7 @@
|
|
|
<result column="remarks" property="remarks"/>
|
|
<result column="remarks" property="remarks"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
<result column="cp_id" property="cpId"/>
|
|
|
|
|
+ <result column="wh_id" property="whId"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
@@ -62,6 +63,7 @@
|
|
|
<result column="remarks" property="remarks"/>
|
|
<result column="remarks" property="remarks"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
<result column="cp_id" property="cpId"/>
|
|
|
|
|
+ <result column="wh_id" property="whId"/>
|
|
|
<result column="order_no" property="orderNo"/>
|
|
<result column="order_no" property="orderNo"/>
|
|
|
<result column="transferableQuantity" property="transferableQuantity"/>
|
|
<result column="transferableQuantity" property="transferableQuantity"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -163,7 +165,8 @@
|
|
|
t.out_amt,
|
|
t.out_amt,
|
|
|
t.return_qty,
|
|
t.return_qty,
|
|
|
t.return_amt,
|
|
t.return_amt,
|
|
|
- t.remarks
|
|
|
|
|
|
|
+ t.remarks,
|
|
|
|
|
+ t.wh_id
|
|
|
FROM dkic_b.t_psi_order_item as t
|
|
FROM dkic_b.t_psi_order_item as t
|
|
|
inner join dkic_b.t_mst_goods_sku tmgs on t.sku_id = tmgs.sku_id
|
|
inner join dkic_b.t_mst_goods_sku tmgs on t.sku_id = tmgs.sku_id
|
|
|
<include refid="Condition"/>
|
|
<include refid="Condition"/>
|
|
@@ -239,6 +242,7 @@
|
|
|
return_amt,
|
|
return_amt,
|
|
|
remarks,
|
|
remarks,
|
|
|
cp_id,
|
|
cp_id,
|
|
|
|
|
+ wh_id,
|
|
|
</trim>
|
|
</trim>
|
|
|
)
|
|
)
|
|
|
values
|
|
values
|
|
@@ -264,6 +268,7 @@
|
|
|
#{item.returnAmt},
|
|
#{item.returnAmt},
|
|
|
#{item.remarks},
|
|
#{item.remarks},
|
|
|
#{item.cpId},
|
|
#{item.cpId},
|
|
|
|
|
+ #{item.whId},
|
|
|
</trim>
|
|
</trim>
|
|
|
)
|
|
)
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -291,7 +296,7 @@
|
|
|
t.non_std_code,
|
|
t.non_std_code,
|
|
|
t.remarks,
|
|
t.remarks,
|
|
|
i.inv_id as "invId",
|
|
i.inv_id as "invId",
|
|
|
- i.wh_id as "whId",
|
|
|
|
|
|
|
+ i.wh_id,
|
|
|
i.inv_qty as "invQty",
|
|
i.inv_qty as "invQty",
|
|
|
i.usable_qty as "usableQty",
|
|
i.usable_qty as "usableQty",
|
|
|
i.wh_name as "whName"
|
|
i.wh_name as "whName"
|