ソースを参照

Merge branch 'master' of http://git.dongkesoft.com:9001/iBOSS-2.0-Mini/iboss-server-mdm

zhoux 1 年間 前
コミット
a9a47cef40

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

@@ -516,7 +516,17 @@ sys.f_remove_zero(out_qty) as out_qty, out_amt, sys.f_remove_zero(return_qty) as
                t.outing_amt + t.out_amt                                                              as outing_amt,
                t.outing_amt + t.out_amt                                                              as outing_amt,
                t.non_std_code,
                t.non_std_code,
                t.remarks
                t.remarks
+                ,tmgus.unit_name         as "subUnitName"
+                ,tmgu.unit_name         as "unitName"
+                ,t.pack_box
+                ,tmgs.flg_sub_unit       as "flgSubUnit"
+                ,t.outing_box
+                ,t.outing_piece
+                ,t.out_box
+                ,t.out_piece
         FROM dkic_b.t_psi_outbound_item as t
         FROM dkic_b.t_psi_outbound_item as t
+                 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_mst_goods_sku tmgs on tmgs.sku_id = t.sku_id
                  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_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_psi_inventory tpi on tpi.inv_id = t.inv_id

+ 23 - 1
src/main/java/com/dk/mdm/mapper/ivt/OutboundMapper.xml

@@ -194,7 +194,16 @@
         <result column="sku_images" property="skuImages"/>
         <result column="sku_images" property="skuImages"/>
         <result column="wh_id" property="whId"/>
         <result column="wh_id" property="whId"/>
         <result column="wh_name" property="whName"/>
         <result column="wh_name" property="whName"/>
-
+        <result column="invQty" property="invQty"/>
+        <result column="usableQty" property="usableQty"/>
+        <result column="pack_box" property="packBox"/>
+        <result column="flgSubUnit" property="flgSubUnit"/>
+        <result column="subUnitName" property="subUnitName"/>
+        <result column="unitName" property="unitName"/>
+        <result column="outing_box" property="outingBox"/>
+        <result column="outing_piece" property="outingPiece"/>
+        <result column="out_box" property="box"/>
+        <result column="out_piece" property="piece"/>
     </resultMap>
     </resultMap>
     <!-- 通用条件列 -->
     <!-- 通用条件列 -->
     <sql id="Condition">
     <sql id="Condition">
@@ -1059,6 +1068,9 @@
                  left join dkic_b.t_mst_dictionary_data tmd on tmd.data_id = t.out_reason
                  left join dkic_b.t_mst_dictionary_data tmd on tmd.data_id = t.out_reason
                  Left join dkic_b.t_mst_supplier tmp on tmp.sup_id = t.sup_id
                  Left join dkic_b.t_mst_supplier tmp on tmp.sup_id = t.sup_id
                 left join  dkic_b.t_psi_outbound_item  tpoi  on tpoi.out_id = t.out_id
                 left join  dkic_b.t_psi_outbound_item  tpoi  on tpoi.out_id = t.out_id
+                left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpoi.inv_id
+                left join dkic_b.t_mst_unit as tmgu on tpoi.unit_id = tmgu.unit_id
+                left join dkic_b.t_mst_unit as tmgus on tpoi.sub_unit_id = tmgus.unit_id
         inner join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id  = tpoi.sku_id
         inner join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id  = tpoi.sku_id
         left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id  = tmgs.brand_id
         left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id  = tmgs.brand_id
         left join dkic_b.t_psi_inventory tpity on tpity.inv_id  = tpoi.inv_id
         left join dkic_b.t_psi_inventory tpity on tpity.inv_id  = tpoi.inv_id
@@ -1108,6 +1120,16 @@
         tmgs.sku_images AS list_sku_images,
         tmgs.sku_images AS list_sku_images,
                       tpity.wh_id AS list_wh_id,
                       tpity.wh_id AS list_wh_id,
                       tmw.wh_name AS list_wh_name
                       tmw.wh_name AS list_wh_name
+               ,sys.f_remove_zero(tpi.inv_qty)     as "invQty"
+               ,sys.f_remove_zero(tpi.usable_qty)    as "usableQty"
+               ,tmgus.unit_name         as "list_subUnitName"
+                ,tmgu.unit_name         as "list_unitName"
+                ,tpoi.pack_box  as "list_pack_box"
+                ,tmgs.flg_sub_unit       as "list_flgSubUnit"
+                ,tpoi.outing_box  as "list_outing_box"
+                ,tpoi.outing_piece  as "list_outing_piece"
+                ,tpoi.out_box  as "list_out_box"
+                ,tpoi.out_piece  as "list_out_piece"
     </sql>
     </sql>
 
 
     <select id="countByCondDetail" resultType="Long">
     <select id="countByCondDetail" resultType="Long">

+ 47 - 0
src/main/java/com/dk/mdm/model/response/ivt/OutboundResponse.java

@@ -50,8 +50,49 @@ public class OutboundResponse extends PageInfo<OutboundResponse> implements Seri
     @ApiModelProperty(value = "出库单ID")
     @ApiModelProperty(value = "出库单ID")
     @TableField(typeHandler = UuidTypeHandler.class)
     @TableField(typeHandler = UuidTypeHandler.class)
     private String outId;
     private String outId;
+    /**
+     * 库存数量
+     */
+    @Excel(name = "库存数量")
+    @ApiModelProperty(value = "库存数量")
+    private BigDecimal invQty;
+
+    @Excel(name = "可用量")
+    @ApiModelProperty(value = "可用量")
+    private BigDecimal usableQty;
 
 
 
 
+    @Excel(name = "包装")
+    @ApiModelProperty(value = "包装")
+    private Integer packBox;
+    /**
+     * 辅助单位标识
+     */
+    @Excel(name = "辅助单位标识")
+    @ApiModelProperty(value = "辅助单位标识")
+    private Boolean flgSubUnit;
+    @Excel(name = "包装单位名称")
+    @ApiModelProperty(value = "包装单位名称")
+    private String subUnitName;
+
+    @Excel(name = "基本单位名称")
+    @ApiModelProperty(value = "基本单位名称")
+    private String unitName;
+    @Excel(name = "箱(出库中)")
+    @ApiModelProperty(value = "箱(出库中)")
+    private  Integer outingBox;
+
+    @Excel(name = "片(出库中)")
+    @ApiModelProperty(value = "片(出库中)")
+    private  Integer outingPiece;
+
+    @Excel(name = "箱(已出库)")
+    @ApiModelProperty(value = "箱(已出库)")
+    private  Integer outBox;
+
+    @Excel(name = "片(已出库)")
+    @ApiModelProperty(value = "片(已出库)")
+    private  Integer outPiece;
     /**
     /**
      * 出库单号
      * 出库单号
      */
      */
@@ -277,7 +318,13 @@ public class OutboundResponse extends PageInfo<OutboundResponse> implements Seri
     @ApiModelProperty(value = "出库原因")
     @ApiModelProperty(value = "出库原因")
     private String outReasonName;
     private String outReasonName;
 
 
+    @Excel(name = "箱")
+    @ApiModelProperty(value = "箱")
+    private  Integer box;
 
 
+    @Excel(name = "片")
+    @ApiModelProperty(value = "片")
+    private  Integer piece;
 
 
     @ApiModelProperty(value = "出库单明细")
     @ApiModelProperty(value = "出库单明细")
     private List<OutboundItemResponse> goodsList;
     private List<OutboundItemResponse> goodsList;