|
@@ -109,6 +109,7 @@
|
|
|
<result column="orderQty" property="orderQty"/>
|
|
<result column="orderQty" property="orderQty"/>
|
|
|
<result column="canOutingQty" property="canOutingQty"/>
|
|
<result column="canOutingQty" property="canOutingQty"/>
|
|
|
<result column="whId" property="whId"/>
|
|
<result column="whId" property="whId"/>
|
|
|
|
|
+ <result column="wh_id" property="whId"/>
|
|
|
<result column="invQty" property="invQty"/>
|
|
<result column="invQty" property="invQty"/>
|
|
|
<result column="usableQty" property="usableQty"/>
|
|
<result column="usableQty" property="usableQty"/>
|
|
|
<result column="whName" property="whName"/>
|
|
<result column="whName" property="whName"/>
|
|
@@ -516,6 +517,47 @@
|
|
|
order by t.item_index
|
|
order by t.item_index
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <!-- 根据条件进行查询(退货编辑用) -->
|
|
|
|
|
+ <select id="selectByCondForReturnEditWx" resultMap="BaseResultMapResponse">
|
|
|
|
|
+ SELECT t.item_id,
|
|
|
|
|
+ t.out_id,
|
|
|
|
|
+ t.s_out_id,
|
|
|
|
|
+ t.s_out_item_id,
|
|
|
|
|
+ t.s_order_id,
|
|
|
|
|
+ t.s_order_item_id,
|
|
|
|
|
+ t.item_index,
|
|
|
|
|
+ t.sku_id,
|
|
|
|
|
+ tmgs.sku_images,
|
|
|
|
|
+ tmgb.brand_name,
|
|
|
|
|
+ tmgb.short_name,
|
|
|
|
|
+ tmgs.sku_code as "skuCode",
|
|
|
|
|
+ tmgs.sku_model as "skuModel",
|
|
|
|
|
+ tmgs.sku_name as "skuName",
|
|
|
|
|
+ COALESCE(tpobi.out_qty, 0) as "outboundOutQty",
|
|
|
|
|
+ t.out_qty - t.return_qty as "canReturnQty",
|
|
|
|
|
+ t.inv_id,
|
|
|
|
|
+ tpi.wh_id,
|
|
|
|
|
+ tpi.inv_qty as "invQty",
|
|
|
|
|
+ tpi.usable_qty as "usableQty",
|
|
|
|
|
+ tmw.wh_name as "whName",
|
|
|
|
|
+ t.price_out,
|
|
|
|
|
+ t.outing_qty + t.out_qty as outing_qty,
|
|
|
|
|
+ t.outing_amt + t.out_amt as outing_amt,
|
|
|
|
|
+
|
|
|
|
|
+ t.out_qty,
|
|
|
|
|
+ t.out_amt,
|
|
|
|
|
+ t.non_std_code,
|
|
|
|
|
+ t.remarks
|
|
|
|
|
+ FROM dkic_b.t_psi_outbound_item as t
|
|
|
|
|
+ left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = t.sku_id
|
|
|
|
|
+ left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id
|
|
|
|
|
+ left join dkic_b.t_psi_inventory tpi on tpi.inv_id = t.inv_id
|
|
|
|
|
+ left join dkic_b.t_mst_warehouse tmw on tmw.wh_id = tpi.wh_id
|
|
|
|
|
+ left join dkic_b.t_psi_outbound_item as tpobi on tpobi.item_id = t.s_out_item_id
|
|
|
|
|
+ where t.flg_valid
|
|
|
|
|
+ and t.out_id = #{id}::uuid
|
|
|
|
|
+ order by t.item_index
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
<!--修改退货信息 -->
|
|
<!--修改退货信息 -->
|
|
|
<update id="updateReturnMessage" parameterType="com.dk.mdm.model.pojo.ivt.OutboundItem">
|
|
<update id="updateReturnMessage" parameterType="com.dk.mdm.model.pojo.ivt.OutboundItem">
|