Browse Source

1.修复备货PDA扫码bug

dev-warehouse
zhenghaoyu 2 years ago
parent
commit
27b9147744
  1. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java
  2. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
  3. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.java
  4. 11
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml
  5. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java
  6. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java

@ -102,7 +102,8 @@ public class DistributionStockupAppController extends BladeController {
DistributionReservationEntity reservationEntity = distributionReservationService.getById(reservationId);
map.put("consignee",reservationEntity.getConsignee());
map.put("goodsAreaName",reservationEntity.getGoodsAreaName());
String stockupArea = distributionStockupService.selectStockupAreaByReservationId(reservationEntity.getId());
map.put("goodsAreaName",stockupArea);
if(orderStatus.equals(1)) {
//查询客户订单对应的
List<DistributionStockupOrderListVO> list = distributionStockupService.selectStockupOrderList(stockupDTO);

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

@ -104,7 +104,7 @@
ldsl.storage_location warehouseArea,
ldsl.tray_name trays,
ldsl.sku sku,
ldsl.unit unit,
ldsl.cargo_unit unit,
count(s.id) scanNum
from logpm_distribution_reservation ldr
left join logpm_distribution_reservation_stocklist ldrs on ldrs.reservation_id = ldr.id and ldrs.is_deleted = 0
@ -120,7 +120,7 @@
ldsl.storage_location,
ldsl.tray_name,
ldsl.sku,
ldsl.unit
ldsl.cargo_unit
</select>

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

@ -28,7 +28,6 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* 备货信息表 Mapper 接口
@ -111,4 +110,5 @@ public interface DistributionStockupMapper extends BaseMapper<DistributionStocku
*/
DistributionStockupVO getDeliveryStockupInfo(@Param("id")String id);
String selectStockupAreaByReservationId(@Param("reservationId") Long id);
}

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

@ -244,4 +244,15 @@
ldsi.stockup_id =#{id}
</where>
</select>
<select id="selectStockupAreaByReservationId" resultType="String">
select lwga.headline
from logpm_distribution_stockup_info ldsi
left join logpm_distribution_stockup lds on lds.id = ldsi.stockup_id and lds.is_deleted = 0
left join logpm_warehouse_goods_area lwga on lwga.id = lds.goods_area_id and lwga.is_deleted = 0
where ldsi.reservation_id = #{reservationId}
and ldsi.is_deleted = 0
</select>
</mapper>

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java

@ -100,4 +100,5 @@ public interface IDistributionStockupService extends BaseService<DistributionSto
List<String> createPackageCode(Long reservationId, Long stockListId, Integer packageNum);
String selectStockupAreaByReservationId(Long id);
}

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

@ -432,4 +432,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
return ls;
}
@Override
public String selectStockupAreaByReservationId(Long id) {
return baseMapper.selectStockupAreaByReservationId(id);
}
}

Loading…
Cancel
Save