|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package org.springblade.wms.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
@ -337,6 +338,25 @@ public class StStorehouseController extends BladeController { |
|
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
|
// queryWrapper.lambda().eq(StStorehouse::getTenantId, bladeUser.getTenantId());
|
|
|
|
|
//}
|
|
|
|
|
String shCode = Func.toStr(stStorehouse.get("shCode")); |
|
|
|
|
if (StrUtil.isNotBlank(shCode)) { |
|
|
|
|
queryWrapper.lambda().like(StStorehouse::getShCode, shCode); |
|
|
|
|
} |
|
|
|
|
// 库房名称模糊查询
|
|
|
|
|
String shName = Func.toStr(stStorehouse.get("shName")); |
|
|
|
|
if (StrUtil.isNotBlank(shName)) { |
|
|
|
|
queryWrapper.lambda().like(StStorehouse::getShName, shName); |
|
|
|
|
} |
|
|
|
|
// 所属工装类型精准匹配
|
|
|
|
|
String toolingType = Func.toStr(stStorehouse.get("toolingType")); |
|
|
|
|
if (StrUtil.isNotBlank(toolingType)) { |
|
|
|
|
queryWrapper.lambda().eq(StStorehouse::getToolingType, toolingType); |
|
|
|
|
} |
|
|
|
|
// 保管员ID精准匹配(下拉框传ID)
|
|
|
|
|
Long saveUser = Func.toLong(stStorehouse.get("saveUser")); |
|
|
|
|
if (saveUser != null) { |
|
|
|
|
queryWrapper.lambda().eq(StStorehouse::getSaveUser, saveUser); |
|
|
|
|
} |
|
|
|
|
//queryWrapper.lambda().eq(StStorehouseEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
|
|
|
|
List<StStorehouseExcel> list = stStorehouseService.exportStStorehouse(queryWrapper); |
|
|
|
|
ExcelUtil.export(response, "库房维护表数据" + DateUtil.time(), "库房维护表数据表", list, StStorehouseExcel.class); |
|
|
|
|
|