3维数据查询bug修改
This commit is contained in:
parent
c31d38dc66
commit
e1481d66e0
@ -29,6 +29,7 @@ public class Map3dModelController {
|
||||
return this.iMap3dModelService.findAllModels();
|
||||
}
|
||||
|
||||
@ApiOperation("按类型查询有效的数据")
|
||||
@GetMapping("")
|
||||
public List<Map3dModelVO> query(String resourceType) {
|
||||
return this.iMap3dModelService.query(resourceType);
|
||||
|
@ -59,7 +59,7 @@ public class Map3dModelService implements IMap3dModelService {
|
||||
@Override
|
||||
public List<Map3dModelVO> query(String resourceType) {
|
||||
Map3dModelExample example = new Map3dModelExample();
|
||||
example.createCriteria().andResourceTypeEqualTo(resourceType);
|
||||
example.createCriteria().andResourceTypeEqualTo(resourceType).andStatusEqualTo(StatusEnum.Valid.getCode());
|
||||
List<Map3dModel> map3dModels = map3dModelDAO.selectByExample(example);
|
||||
return map3dModels.stream().map(Map3dModelVO::new).collect(Collectors.toList());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user