3维数据查询bug修改

This commit is contained in:
joylink_zhangsai 2021-05-19 15:05:51 +08:00
parent c31d38dc66
commit e1481d66e0
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ public class Map3dModelController {
return this.iMap3dModelService.findAllModels();
}
@ApiOperation("按类型查询有效的数据")
@GetMapping("")
public List<Map3dModelVO> query(String resourceType) {
return this.iMap3dModelService.query(resourceType);

View File

@ -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());
}