/** * 按场地查询可用车辆 * * @param field * @return */ public String findVehicle(String field) { InstructionVehicleDao dao = new InstructionVehicleDao(); String sql = "select * from instruction_vehicle_infomation where belong = '" + field + "'"; return Utils.parseJson(dao.queryObjSql(sql)); }
/** * 场地查询 * * @return */ public String findField() { TrainingFieldDao fieldDao = new TrainingFieldDao(); return Utils.parseJson(fieldDao.findAll()); }