Commit 9e4fb7dd authored by zhangfeng's avatar zhangfeng

bugfix-366: 礼品管理不可选已关闭的仓库

parent 49260a8c
......@@ -539,13 +539,16 @@ public class WarehouseServiceImpl implements WarehouseService {
@Override
public List<WarehouseDO> getWarehouseListSimple(String title) {
LambdaQueryWrapperX<WarehouseDO> queryWrapperX = new LambdaQueryWrapperX<WarehouseDO>()
.eq(WarehouseDO::getStatus, 0);
if (StringUtils.isBlank(title)) {
return warehouseMapper.selectList();
return warehouseMapper.selectList(queryWrapperX);
}
// 模糊搜索中文名和英文名
return warehouseMapper.selectList(new LambdaQueryWrapperX<WarehouseDO>()
.like(WarehouseDO::getTitleZh, title)
queryWrapperX.like(WarehouseDO::getTitleZh, title)
.or()
.like(WarehouseDO::getTitleEn, title));
.like(WarehouseDO::getTitleEn, title);
return warehouseMapper.selectList(queryWrapperX);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment