6 changed files with 76 additions and 4 deletions
@ -0,0 +1,47 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* ReWarehouse and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* ReWarehouses of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* ReWarehouses in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the Warehouse. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package com.logpm.basicdata.wrapper; |
||||||
|
|
||||||
|
import com.logpm.warehouse.vo.WarehouseVisualizationVO; |
||||||
|
import org.springblade.common.constant.DictBizConstant; |
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||||
|
import org.springblade.system.cache.DictBizCache; |
||||||
|
|
||||||
|
/** |
||||||
|
* 备货扫描记录 包装类,返回视图层所需的字段 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-08-24 |
||||||
|
*/ |
||||||
|
public class BasicdataAllocationVOWrapper extends BaseEntityWrapper<WarehouseVisualizationVO, WarehouseVisualizationVO> { |
||||||
|
public static BasicdataAllocationVOWrapper build() { |
||||||
|
return new BasicdataAllocationVOWrapper(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public WarehouseVisualizationVO entityVO(WarehouseVisualizationVO WarehouseStock) { |
||||||
|
WarehouseStock.setOrderPackageStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_STATUS, WarehouseStock.getOrderPackageStatus())); |
||||||
|
WarehouseStock.setOrderPackageFreezeStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_FREEZE_STATUS, WarehouseStock.getOrderPackageFreezeStatus())); |
||||||
|
WarehouseStock.setOrderPackageGroundingStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_GROUNDING_STATUS, WarehouseStock.getOrderPackageGroundingStatus())); |
||||||
|
WarehouseStock.setOrderPackageStockupStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_STOCKUP_STATUS, WarehouseStock.getOrderPackageStockupStatus())); |
||||||
|
WarehouseStock.setOrderPackageReservationStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_RESERVATION_STATUS, WarehouseStock.getOrderPackageReservationStatus())); |
||||||
|
WarehouseStock.setOrderPackageLoadingStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_LOADING_STATUS, WarehouseStock.getOrderPackageLoadingStatus())); |
||||||
|
return WarehouseStock; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue