| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.core.model.StationObjModel; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return R.error("请输入初始化长度"); |
| | | } |
| | | |
| | | List<HashMap<String, Object>> list = new ArrayList<>(); |
| | | List<StationObjModel> list = new ArrayList<>(); |
| | | for (int i = param.getStationNo(); i < param.getStationNo() + param.getInitLength(); i++) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("devpNo", param.getDevpNo()); |
| | | map.put("stationId", i); |
| | | list.add(map); |
| | | StationObjModel stationObjModel = new StationObjModel(); |
| | | stationObjModel.setDeviceNo(param.getDevpNo()); |
| | | stationObjModel.setStationId(i); |
| | | list.add(stationObjModel); |
| | | } |
| | | |
| | | basDevp.setStationList(JSON.toJSONString(list)); |