Browse Source

Merge branch 'dev' into pre-production

# Conflicts:
#	blade-biz-common/src/main/java/org/springblade/common/constant/OldSystemDataPushConfig.java
visual
pref_mail@163.com 3 months ago
parent
commit
f69618a5fc
  1. 3
      blade-biz-common/src/main/java/org/springblade/common/constant/OldSystemDataPushConfig.java
  2. 4
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java
  3. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
  4. 54
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml
  5. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java
  6. 20
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

3
blade-biz-common/src/main/java/org/springblade/common/constant/OldSystemDataPushConfig.java

@ -96,6 +96,9 @@ public class OldSystemDataPushConfig {
//清远志邦
warehourseIds.add("153");
//兴义仓
warehourseIds.add("155");
}

4
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java

@ -71,6 +71,10 @@ public class DistributionStockupVO extends DistributionStockupEntity {
private String orderCode; //订单自编号
private String descriptionGoods;
private Integer reservationNum; //预约数量
/**
* 预约编号
*/
private String reservationCode;
private Date stockupDate;
private Integer number;
private String goodsAllocation; //货位

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

@ -551,16 +551,15 @@
<where>
lds.id =#{id}
</where>-->
select DISTINCT ldsi.stockup_id , ldpl.id id,ldpl.order_package_code orderPackageCode,lds.type
select ldsi.stockup_id , ldr.reservation_code, ldpl.id id,ldpl.order_package_code orderPackageCode,lds.type
stockupStatus,ldpl.firsts,ldpl.second,ldpl.third_product thirdProduct,
ldpl.material_name materialName,lds.create_time stockupDate,lds.stockup_area stockupArea,ldpl.goods_allocation
goodsAllocation,lwt.pallet_name pallet
goodsAllocation,ldpl.pallet pallet
from logpm_distribution_stockup_info ldsi
LEFT JOIN logpm_distribution_reservation ldr on ldr.id= ldsi.reservation_id
LEFT JOIN logpm_distribution_reservation_package ldrp on ldrp.reservation_id = ldsi.reservation_id
LEFT JOIN logpm_distribution_parcel_list ldpl on ldpl.id = ldrp.parce_list_id
LEFT JOIN logpm_distribution_stock lds on ldpl.id = lds.parcel_list_id and lds.stockup_id = ldsi.stockup_id
LEFT JOIN logpm_warehouse_tray_goods lwtg on lwtg.association_id = ldpl.id and lwtg.association_type = '3'
LEFT JOIN logpm_warehouse_tray lwt on lwtg.tray_id = lwt.id
<where>
ldsi.stockup_id =#{id} and ldpl.order_package_code is not null and ldsi.stock_status != 4 AND ldrp.packet_bar_status != 2
</where>

54
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml

@ -944,33 +944,43 @@
</select>
<select id="detailReservationOwn" resultType="com.logpm.distribution.vo.DistributionStockupVO">
select DISTINCT ldr.consignee ,ldr.delivery_address deliveryAddress,ldr.delivery_phone
deliveryPhone,ldr.mall_name mallName,
ldr.stock_article_id stockArticleId,ldr.stockup_status stockupStatus,ldr.reserve_quantity reserveQuantity,ldr.end_time_stocking endTimeStocking,
ldr.start_time_stocking startTimeStocking,ldr.stock_order_quantity stockOrderQuantity,
(
select GROUP_CONCAT(DISTINCT lwug.position_code) goodsAllocation
from logpm_distribution_reservation_package ldrp
LEFT JOIN logpm_warehouse_updown_goods lwug on lwug.association_id = ldrp.parce_list_id
where ldrp.reservation_id = ldsi.reservation_id
) goodsAllocation,
SELECT
ldr.reservation_code,
ldr.consignee,
ldr.delivery_address deliveryAddress,
ldr.delivery_phone deliveryPhone,
ldr.mall_name mallName,
ldr.stock_article_id stockArticleId,
ldr.stockup_status stockupStatus,
ldr.reserve_quantity reserveQuantity,
ldr.end_time_stocking endTimeStocking,
ldr.start_time_stocking startTimeStocking,
ldr.stock_order_quantity stockOrderQuantity,
CONCAT(IFNULL(GROUP_CONCAT( DISTINCT ldpl.pallet ),''),',',IFNULL(GROUP_CONCAT( DISTINCT ldsl.tray_name ),'')) pallet,
CONCAT(IFNULL(GROUP_CONCAT( DISTINCT ldpl.goods_allocation ),''),',',IFNULL(GROUP_CONCAT( DISTINCT ldsl.storage_location ),'')) goodsAllocation,
ldr.stockup_status stockStatus,
ldr.reservation_num reservationNum,
ldr.reservation_stock_list_num reservationStockListNum
from logpm_distribution_reservation ldr
LEFT JOIN logpm_distribution_stockup_info ldsi on ldr.id = ldsi.reservation_id
FROM
logpm_distribution_stockup lds
LEFT JOIN logpm_distribution_stockup_info ldsi ON lds.id = ldsi.stockup_id
LEFT JOIN logpm_distribution_reservation ldr ON ldr.id = ldsi.reservation_id
left join logpm_distribution_reservation_package ldrp ON ldrp.reservation_id = ldr.id
LEFT JOIN logpm_distribution_parcel_list ldpl ON ldpl.id = ldrp.parce_list_id
LEFT JOIN logpm_distribution_reservation_stocklist ldrs on ldrs.reservation_id = ldr.id
LEFT JOIN logpm_distribution_stock_list ldsl ON ldrs.stocklist_id = ldsl.id
<where>
ldr.id in (select reservation_id
from logpm_distribution_stockup_info )
and ldsi.stockup_id = #{param.id}
and ldr.is_deleted = 0
and ldsi.stock_status != 4
lds.id = #{param.id}
AND ldr.is_deleted = 0
AND ldsi.stock_status != 4
<if test="param.stockupStatus != null and param.stockupStatus !=''"> and ldr.stockup_status = #{param.stockupStatus} </if>
<if test="param.mallName != null and param.mallName !=''"> and ldr.mall_name = #{param.mallName} </if>
<if test="param.goodsAllocation != null and param.goodsAllocation !=''"> and lwug.position_code like concat('%', #{param.goodsAllocation},'%' )</if>
<if test="param.goodsAllocation != null and param.goodsAllocation !=''"> and ldpl.goods_allocation like concat('%', #{param.goodsAllocation},'%' )</if>
<if test="param.startTimeStocking != null and param.startTimeStocking != '' ">and date_format(from_unixtime( ldr.start_time_stocking),'%Y-%m-%d') = date_format(#{param.startTimeStocking },'%Y-%m-%d') </if>
<if test="param.endTimeStocking != null and param.endTimeStocking != '' ">and date_format(from_unixtime( ldr.end_time_stocking),'%Y-%m-%d') = date_format(#{param.endTimeStocking },'%Y-%m-%d') </if>
</where>
GROUP BY
ldr.id;
</select>
<select id="detailOrderOwn" resultType="com.logpm.distribution.vo.DistributionStockupVO">
@ -982,9 +992,9 @@
lds.stockup_area AS stockupArea,
ldsa.id stockArticleId,
(
SELECT GROUP_CONCAT(DISTINCT lwug.position_code)
SELECT GROUP_CONCAT(DISTINCT dpl.goods_allocation)
FROM logpm_distribution_parcel_list dpl
left join logpm_warehouse_updown_goods lwug on dpl.id = lwug.association_id
WHERE dpl.stock_article_id = ldrs.stock_article_id
) AS goodsAllocation
FROM logpm_distribution_stockup_info ldsi
@ -1010,6 +1020,7 @@
ldsii.cargo_unit cargoUnit,
ldsii.id stockListId,
ldrsi.reservation_id reservationId,
ldr.reservation_code reservationCode,
ldrsi.reservation_num reservationNum,
lds.stockup_area stockupArea,
lds.stockup_status stockupStatus,
@ -1019,7 +1030,8 @@
( SELECT count( ds.id ) FROM logpm_distribution_stock ds WHERE ds.stock_list_id = ldsii.id AND ds.reservation_id = ldsi.reservation_id ) number,
ldrsi.stock_status stockStatus,
ldrsi.start_time_stocking startTimeStocking,
ldrsi.end_time_stocking endTimeStocking
ldrsi.end_time_stocking endTimeStocking,
ldsii.storage_location
from logpm_distribution_stockup_info ldsi
LEFT JOIN logpm_distribution_reservation ldr ON ldsi.reservation_id = ldr.id
LEFT JOIN logpm_distribution_reservation_stocklist ldrsi ON ldrsi.reservation_id = ldsi.reservation_id

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java

@ -236,8 +236,8 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
i.setStockupStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_STOCKUP_STATUS, i.getStockupStatus()));
}
//出现货位信息
String s = warehouseUpdownGoodsClient.selectMsgBywrap(i.getId());
i.setGoodsAllocation(s);
// String s = warehouseUpdownGoodsClient.selectMsgBywrap(i.getId());
// i.setGoodsAllocation(s);
});
return parcelListOwn;
}

20
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

@ -1668,16 +1668,16 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if (b) {
//查询库存品
IPage<DistributionStockupVO> inventoryOwn = baseMapper.getInventoryOwn(page, id);
List<DistributionStockupVO> records = inventoryOwn.getRecords();
for (DistributionStockupVO record : records) {
Long warehouseId = record.getWarehouseId();
Long mallId = record.getMallId();
String sku = record.getSku();
//查询库位信息
String allocations = warehouseUpdownTypeClient.findStockListAllocations(warehouseId, mallId, sku);
record.setGoodsAllocation(allocations);
}
inventoryOwn.setRecords(records);
// List<DistributionStockupVO> records = inventoryOwn.getRecords();
//// for (DistributionStockupVO record : records) {
//// Long warehouseId = record.getWarehouseId();
//// Long mallId = record.getMallId();
//// String sku = record.getSku();
//// //查询库位信息
//// String allocations = warehouseUpdownTypeClient.findStockListAllocations(warehouseId, mallId, sku);
//// record.setGoodsAllocation(allocations);
//// }
// inventoryOwn.setRecords(records);
return inventoryOwn;
} else {

Loading…
Cancel
Save