Browse Source

Merge branch 'dev' into pre-production

newStockUp
zhenghaoyu 1 year ago
parent
commit
88624b132b
  1. 5
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistributionAppReservationVO.java
  2. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml
  3. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml
  4. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliverySelfMapper.xml
  5. 19
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/vo/OuPaiDataPushVO.java

5
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistributionAppReservationVO.java

@ -59,6 +59,11 @@ public class DistributionAppReservationVO extends DistributionReservationEntity
*/
@ApiModelProperty(value = "签收数")
private Integer signNub;
/**
* 库存品数量
*/
@ApiModelProperty(value = "库存品数量")
private Integer inventoryNub;
/**

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml

@ -317,11 +317,12 @@
<select id="selectAppcustomListPage" resultType="com.logpm.distribution.vo.app.DistributionAppReservationVO">
SELECT DISTINCT ldr.id id, ldr.consignee consignee, ldr.reservation_num reservationNum, COALESCE(lds.loaded_number + lds.loadedin_number, 0) loadingNub,
(SELECT COALESCE(COUNT(*), 0) from logpm_distribution_reservation_stockarticle ldrs WHERE ldrs.reservation_id =ldr.id and ldrs.stock_article_status in (1,3) ) ordNub,
COALESCE(lds.received_quantity + lds.receivedin_quantity, 0) signNub, ldsk.stockup_area stockupArea
COALESCE(lds.received_quantity + lds.receivedin_quantity, 0) signNub, ldsk.stockup_area stockupArea,COALESCE(ldrs.reservation_num , 0) inventoryNub
FROM logpm_distribution_signfor lds
JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id and ldr.reservation_status != '40'
LEFT JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id and ldr.reservation_status != '40'
LEFT JOIN logpm_distribution_stockup_info ldsi on ldr.id = ldsi.reservation_id
LEFT JOIN logpm_distribution_stockup ldsk on ldsk.id = ldsi.stockup_id
LEFT JOIN logpm_distribution_reservation_stocklist ldrs on ldrs.reservation_id = ldr.id and ldrs.stock_list_status in (1,3)
WHERE lds.is_deleted = 0 AND lds.delivery_id = #{id}
</select>
<select id="selectDistributionAppDeliveryInventoryPage"

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml

@ -650,11 +650,11 @@
(SELECT COALESCE (COUNT(*) ,0)
FROM
logpm_distribution_signfor lds
join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id and ldr.reservation_status != '40'
join logpm_distribution_reservation_stockarticle ldrs on ldrs.reservation_id =ldr.id
WHERE lds.delivery_id = lddl.id and ldrs.stock_article_status in (1,3)
LEFT join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id and ldr.reservation_status != '40'
LEFT join logpm_distribution_reservation_stockarticle ldrs on ldrs.reservation_id =ldr.id and ldrs.stock_article_status in (1,3)
WHERE lds.delivery_id = lddl.id
) orderNumber,
(SELECT COALESCE (sum(ldr.reservation_num + ldr.reservation_stock_list_num) ,0)
(SELECT COALESCE (sum(ldr.reservation_num) ,0)
FROM
logpm_distribution_signfor lds
join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliverySelfMapper.xml

@ -54,7 +54,9 @@
</where>
</select>
<select id="selectListcustom" resultType="com.logpm.distribution.vo.app.DistributionAppDeliverySelfVO">
select id id,driver_id driverId, vehicle_id vehicleId,is_master isMaster,driver_name driverName,vehicle_nub vehicleNub FROM logpm_distribution_delivery_self where delivery_id = #{deliveryId}
select id id,driver_id driverId, vehicle_id vehicleId,is_master isMaster,driver_name driverName,vehicle_nub vehicleNub
FROM logpm_distribution_delivery_self
where delivery_id = #{deliveryId}
</select>
<select id="selectdeliveryList" resultType="java.lang.Long">
select delivery_id from logpm_distribution_delivery_self where driver_id = #{id}

19
blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/vo/OuPaiDataPushVO.java

@ -1,5 +1,6 @@
package com.logpm.factory.oupai.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
@ -8,11 +9,13 @@ public class OuPaiDataPushVO {
/**
* 仓库名称
*/
private String WarehouseName;
@JsonProperty("WarehouseName")
private String warehouseName;
/**
* 对象实体的名称
*/
private String TypeName;
@JsonProperty("TypeName")
private String typeName;
/**
* 0收货单开始收货
* 1收货单完成收货
@ -22,19 +25,23 @@ public class OuPaiDataPushVO {
* 5签收单签收
* 6签收单部分签收
*/
private int Event;
@JsonProperty("Event")
private int event;
/**
* 相关单号
*/
private String OrderCode;
@JsonProperty("OrderCode")
private String orderCode;
/**
* 对象key值Type实体对象对应的OID值唯一
*/
private String Key;
@JsonProperty("Key")
private String key;
/**
* 签名暂时为空
*/
private String Sign;
@JsonProperty("Sign")
private String sign;
}

Loading…
Cancel
Save