|  |  | 
 |  |  | package com.dy.pmsPlatform.station; | 
 |  |  |  | 
 |  |  | import cn.hutool.json.JSONArray; | 
 |  |  | import cn.hutool.json.JSONObject; | 
 |  |  | import com.alibaba.excel.util.StringUtils; | 
 |  |  | import com.dy.common.webUtil.QueryResultVo; | 
 |  |  | import com.dy.pmsGlobal.daoPlt.PltProductionLineMapper; | 
 |  |  | 
 |  |  |     public List<PltStation> selectAll() { | 
 |  |  |         return dao.selectAll(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public JSONArray selectAllIdAndName() { | 
 |  |  |         List<PltStation> list = dao.selectAll(); | 
 |  |  |         JSONArray child = new JSONArray(); | 
 |  |  |         list.forEach(item->{ | 
 |  |  |             child.add(new JSONObject().set("id", String.valueOf(item.getId())).set("name", item.getName())); | 
 |  |  |         }); | 
 |  |  |         return child; | 
 |  |  |     } | 
 |  |  | } | 
 |  |  |  |