|
|
|
|
@ -19,6 +19,7 @@ import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
import org.springblade.core.secure.annotation.IsAdmin; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.constant.BladeConstant; |
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.wms.excel.StStorageLocationExcel; |
|
|
|
|
@ -26,6 +27,7 @@ import org.springblade.wms.pojo.entity.StStorageLocation; |
|
|
|
|
import org.springblade.wms.pojo.vo.StStorageLocationVO; |
|
|
|
|
import org.springblade.wms.service.IStRealtimeStockService; |
|
|
|
|
import org.springblade.wms.service.IStStorageLocationService; |
|
|
|
|
import org.springblade.wms.service.IStStorehouseService; |
|
|
|
|
import org.springblade.wms.wrapper.StStorageLocationWrapper; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
@ -51,6 +53,8 @@ public class StStorageLocationController extends BladeController { |
|
|
|
|
|
|
|
|
|
private final IStRealtimeStockService stRealtimeStockService; |
|
|
|
|
|
|
|
|
|
private final IStStorehouseService stStorehouseService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 库位维护表 详情 |
|
|
|
|
*/ |
|
|
|
|
@ -236,7 +240,7 @@ public class StStorageLocationController extends BladeController { |
|
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
|
// queryWrapper.lambda().eq(StStorageLocation::getTenantId, bladeUser.getTenantId());
|
|
|
|
|
//}
|
|
|
|
|
//queryWrapper.lambda().eq(StStorageLocationEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
|
|
|
|
queryWrapper.lambda().eq(StStorageLocation::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
|
|
|
|
List<StStorageLocationExcel> list = stStorageLocationService.exportStStorageLocation(queryWrapper); |
|
|
|
|
ExcelUtil.export(response, "库位维护表数据" + DateUtil.time(), "库位维护表数据表", list, StStorageLocationExcel.class); |
|
|
|
|
} |
|
|
|
|
|