소스 검색

库存查询

姜永辉 1 년 전
부모
커밋
f03a8b3e20
2개의 변경된 파일50개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      src/main/java/com/dk/mdm/mapper/ivt/InventoryMapper.xml
  2. 36 0
      src/main/java/com/dk/mdm/model/response/ivt/InventoryResponse.java

+ 14 - 0
src/main/java/com/dk/mdm/mapper/ivt/InventoryMapper.xml

@@ -61,6 +61,12 @@
                 <result column="price_standard" property="priceStandard"/>
                 <result column="price_wholesale" property="priceWholesale"/>
                 <result column="price_limited" property="priceLimited"/>
+        <result column="unit_id" property="unitId" typeHandler="UuidTypeHandler"/>
+        <result column="sub_unit_id" property="subUnitId" typeHandler="UuidTypeHandler"/>
+        <result column="pack_box" property="packBox"/>
+        <result column="subUnitName" property="subUnitName"/>
+        <result column="unitName" property="unitName"/>
+        <result column="flg_sub_unit" property="flgSubUnit"/>
         <result column="sku_images" property="skuImages" typeHandler="JsonTypeHandler"/>
 
     </resultMap>
@@ -141,6 +147,12 @@
         ,tmgs.price_wholesale
         ,tmgs.price_limited
         ,tmgs.sku_images
+        ,tmgs.unit_id
+        ,tmgs.sub_unit_id
+        ,tmgs.pack_box
+        ,tmu.unit_name    AS "unitName"
+        ,subtmu.unit_name AS "subUnitName"
+        ,tmgs.flg_sub_unit
         ,tmgb.brand_name
         ,tmgb.short_name
         ,tmw.wh_name
@@ -171,6 +183,8 @@
         left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpi.sku_id
         left join dkic_b.t_mst_warehouse tmw on tmw.wh_id = tpi.wh_id
         LEFT JOIN dkic_b.t_mst_goods_brand tmgb ON tmgb.brand_id = tmgs.brand_id
+        LEFT JOIN dkic_b.t_mst_unit tmu ON tmu.unit_id = tmgs.unit_id
+        LEFT JOIN dkic_b.t_mst_unit subtmu ON subtmu.unit_id = tmgs.sub_unit_id
     </sql>
 
 

+ 36 - 0
src/main/java/com/dk/mdm/model/response/ivt/InventoryResponse.java

@@ -229,6 +229,42 @@ public class InventoryResponse {
     private BigDecimal priceLimited;
 
 
+    /**
+     * 计量单位
+     */
+    @ApiModelProperty(value = "计量单位")
+    @TableField(exist = false,typeHandler = UuidTypeHandler.class)
+    private String unitId;
+
+
+    /**
+     * 辅助单位
+     */
+    @ApiModelProperty(value = "辅助单位")
+    @TableField(exist = false,typeHandler = UuidTypeHandler.class)
+    private String subUnitId;
+
+    @TableField(exist = false)
+    @ApiModelProperty(value = "计量单位")
+    private String unitName;
+
+    @TableField(exist = false)
+    @ApiModelProperty(value = "辅助单位")
+    private String subUnitName;
+
+    /**
+     * 包装
+     */
+    @TableField(exist = false)
+    @ApiModelProperty(value = "包装")
+    private Integer packBox;
+
+    /**
+     * 辅助单位标识
+     */
+    @TableField(exist = false)
+    @ApiModelProperty(value = "辅助单位标识")
+    private Boolean flgSubUnit;