于继渤 преди 1 година
родител
ревизия
74b44e0329

+ 12 - 0
src/main/java/com/dk/mdm/mapper/ivt/OutboundItemMapper.xml

@@ -123,6 +123,10 @@
         <result column="sub_unit_code" property="subUnitCode"/>
         <result column="sub_unit_name" property="subUnitName"/>
         <result column="pack_box" property="packBox"/>
+        <result column="flgSubUnit" property="flgSubUnit"/>
+        <result column="subUnitName" property="subUnitName"/>
+        <result column="unitName" property="unitName"/>
+
     </resultMap>
 
     <!-- 通用条件列 -->
@@ -372,7 +376,13 @@
                t.item_index,
                t.sku_id,
                tmgs.sku_images,
+               tmgs.flg_sub_unit AS "flgSubUnit",
+               t.outing_box AS "outingBox",
+               t.outing_piece AS "outingPiece",
                tmgs.price_standard AS "priceStandard",
+                tmgs.pack_box AS "packBox",
+                tmgus.unit_name         as "subUnitName",
+                tmgu.unit_name         as "unitName",
                tmgs.sku_code                                                             as "skuCode",
                tmgs.sku_model                                                            as "skuModel",
                tmgs.sku_name                                                             as "skuName",
@@ -396,6 +406,8 @@
                  left join dkic_b.t_psi_order_item as tpoi on tpoi.item_id = t.from_item_id
                  left join dkic_b.t_psi_order as tpo on tpo.order_id = t.from_id
                  left join dkic_b.t_mst_goods_sku tmgs on t.sku_id = tmgs.sku_id
+                 left join dkic_b.t_mst_unit as tmgu on t.unit_id = tmgu.unit_id
+                 left join dkic_b.t_mst_unit as tmgus on t.sub_unit_id = tmgus.unit_id
                  left join dkic_b.t_psi_inventory as tpi on tpi.inv_id = t.inv_id
                  left join dkic_b.t_mst_warehouse as tmw on tmw.wh_id = tpi.wh_id
                  left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id

+ 1 - 1
src/main/java/com/dk/mdm/model/response/ivt/OutboundItemResponse.java

@@ -372,7 +372,7 @@ public class OutboundItemResponse {
     private String subUnitName;
 
 
-
+    private Boolean flgSubUnit;
 
     private static final long serialVersionUID = 1L;