CANCERYS\kw093 2 недель назад
Родитель
Сommit
23f8ba24cc
2 измененных файлов: 5 добавлений и 3 удалений
  1. +2
    -2
      src/main/java/com/ffii/fpsms/modules/deliveryOrder/entity/DeliveryOrderRepository.kt
  2. +3
    -1
      src/main/java/com/ffii/fpsms/modules/stock/service/SuggestedPickLotService.kt

+ 2
- 2
src/main/java/com/ffii/fpsms/modules/deliveryOrder/entity/DeliveryOrderRepository.kt Просмотреть файл

@@ -112,10 +112,10 @@ fun searchDoLite(
fun searchDoLitePage( fun searchDoLitePage(
@Param("code") code: String?, @Param("code") code: String?,
@Param("shopName") shopName: String?, @Param("shopName") shopName: String?,
@Param("status") status: DeliveryOrderStatus?, // 直接用枚举最稳
@Param("status") status: DeliveryOrderStatus?,
@Param("etaStart") etaStart: LocalDateTime?, @Param("etaStart") etaStart: LocalDateTime?,
@Param("etaEnd") etaEnd: LocalDateTime?, @Param("etaEnd") etaEnd: LocalDateTime?,
pageable: Pageable pageable: Pageable
): Page<DeliveryOrderInfo>
): Page<DeliveryOrderInfoLite>
} }

+ 3
- 1
src/main/java/com/ffii/fpsms/modules/stock/service/SuggestedPickLotService.kt Просмотреть файл

@@ -318,7 +318,9 @@ open class SuggestedPickLotService(
if (doPreferredFloor != null && warehouseStoreId != doPreferredFloor) { if (doPreferredFloor != null && warehouseStoreId != doPreferredFloor) {
return@forEachIndexed return@forEachIndexed
} }
if (doPreferredFloor != null && warehouseStoreId != "1F" && warehouseStoreId != doPreferredFloor) {
return@forEachIndexed
}
val availableQtyInBaseUnits = calculateRemainingQtyForInfo(lotLine) val availableQtyInBaseUnits = calculateRemainingQtyForInfo(lotLine)
val holdQtyInBaseUnits = holdQtyMap[lotLine.id] ?: zero val holdQtyInBaseUnits = holdQtyMap[lotLine.id] ?: zero
val availableQtyInSalesUnits = availableQtyInBaseUnits val availableQtyInSalesUnits = availableQtyInBaseUnits


Загрузка…
Отмена
Сохранить