|
|
@ -30,12 +30,11 @@ public class WarehouseBussinessTypeService {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<WarehouseBussinessTypeEntity> getListByCode(String code) {
|
|
|
|
public List<WarehouseBussinessTypeEntity> getListByCode(String code) {
|
|
|
|
Page<WarehouseBussinessTypeEntity> page = new Page<>(-1, -1);
|
|
|
|
List<WarehouseBussinessTypeEntity> list = warehouseBussinessTypeDao.selectByCode(code);
|
|
|
|
Page<WarehouseBussinessTypeEntity> pageResult = warehouseBussinessTypeDao.selectListByCode(page, code);
|
|
|
|
if (CollUtil.isNotEmpty(list)) {
|
|
|
|
if (pageResult.getTotal() == 0) {
|
|
|
|
return list;
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return pageResult.getRecords();
|
|
|
|
return Collections.emptyList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|