Commit 9cdfe589 authored by hkl's avatar hkl

feat:1.代码提交

parent 227f17c6
......@@ -90,4 +90,20 @@ public class LightAliasController extends JeecgController<LineAlias, ILineAliasS
lineAliasService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
@AutoLog(value = "线路车站-线别管理-获取线别管理")
@ApiOperation(value = "线路车站-线别管理-获取线别管理", notes = "线路车站-线别管理-获取线别管理")
@GetMapping(value = "/listAll")
public Result<List<Map<String, Object>>> listAll() {
List<LineAlias> records = lineAliasService.list();
List<Map<String, Object>> list = new ArrayList<>();
for (LineAlias alias : records) {
Map<String, Object> map = new HashMap<>();
map.put("label", alias.getLineAliasCode());
map.put("value", alias.getLineAliasName());
list.add(map);
}
return Result.OK(list);
}
}
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