コード例 #1
0
 public String getAirCompany() throws Exception {
   AirCompanyVO vo = new AirCompanyVO();
   vo.setAlias("请选择承运人");
   List<AirCompanyVO> airs = new ArrayList<AirCompanyVO>();
   airs.add(vo);
   airs.addAll(airService.getAirCompany());
   // vo.set
   result = new GridJsonPageData<AirCompanyVO>(airs.size(), airs);
   return "success";
 }
コード例 #2
0
 public String getAirBunk() throws Exception {
   String codeWord = getRequest().getParameter("codeWord");
   List<AirBunkVO> bunks = new ArrayList<AirBunkVO>();
   AirBunkVO vo = new AirBunkVO();
   vo.setBunk("请选择舱位");
   bunks.add(vo);
   if (StringUtils.isNotBlank(codeWord)) {
     bunks.addAll(airService.getAirBunk(codeWord));
   }
   result = new GridJsonPageData<AirBunkVO>(bunks.size(), bunks);
   return "success";
 }