|
|
|
@ -240,7 +240,25 @@ public class StStorageLocationController extends BladeController { |
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
// queryWrapper.lambda().eq(StStorageLocation::getTenantId, bladeUser.getTenantId());
|
|
|
|
// queryWrapper.lambda().eq(StStorageLocation::getTenantId, bladeUser.getTenantId());
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
queryWrapper.lambda().eq(StStorageLocation::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
|
|
|
queryWrapper.clear(); |
|
|
|
|
|
|
|
Object shIdObj = stStorageLocation.get("shId"); |
|
|
|
|
|
|
|
String shId = shIdObj != null ? shIdObj.toString() : ""; |
|
|
|
|
|
|
|
if (org.springblade.core.tool.utils.StringUtil.isNotBlank(shId)) { |
|
|
|
|
|
|
|
queryWrapper.like("sl.sh_id", shId); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object locationObj = stStorageLocation.get("location"); |
|
|
|
|
|
|
|
String location = locationObj != null ? locationObj.toString().trim() : ""; |
|
|
|
|
|
|
|
if (org.springblade.core.tool.utils.StringUtil.isNotBlank(location)) { |
|
|
|
|
|
|
|
queryWrapper.like("sl.location", location); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object goodsCodeObj = stStorageLocation.get("goodsCode"); |
|
|
|
|
|
|
|
String goodsCode = goodsCodeObj != null ? goodsCodeObj.toString().trim() : ""; |
|
|
|
|
|
|
|
if (org.springblade.core.tool.utils.StringUtil.isNotBlank(goodsCode)) { |
|
|
|
|
|
|
|
queryWrapper.like("sl.goods_code", goodsCode); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
queryWrapper.eq("sl.is_deleted", BladeConstant.DB_NOT_DELETED); |
|
|
|
List<StStorageLocationExcel> list = stStorageLocationService.exportStStorageLocation(queryWrapper); |
|
|
|
List<StStorageLocationExcel> list = stStorageLocationService.exportStStorageLocation(queryWrapper); |
|
|
|
ExcelUtil.export(response, "库位维护表数据" + DateUtil.time(), "库位维护表数据表", list, StStorageLocationExcel.class); |
|
|
|
ExcelUtil.export(response, "库位维护表数据" + DateUtil.time(), "库位维护表数据表", list, StStorageLocationExcel.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|