Commit e9ca45a6 authored by zhangfeng's avatar zhangfeng

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

parent 155b1cdf
......@@ -625,13 +625,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