Package org.g4studio.common.dao

Examples of org.g4studio.common.dao.Reader.queryForObject()


   * @return Dto
   */
  public Dto queryBalanceInfo(String jsbh) {
    Reader reader = (Reader) SpringBeanLoader.getSpringBean("g4Reader");
    Dto inDto = new BaseDto("sxh", jsbh);
    Dto outDto = (BaseDto)reader.queryForObject("Demo.queryBalanceInfo", inDto);
    return outDto;
  }

}
View Full Code Here


   * @return XML字符串
   */
  public String queryBalanceInfo(String jsbh){
    Reader reader = (Reader)SpringBeanLoader.getSpringBean("g4Reader");
    Dto inDto = new BaseDto("sxh", jsbh);
    Dto outDto = (BaseDto)reader.queryForObject("Demo.queryBalanceInfo", inDto);
    String outXml = XmlHelper.parseDto2Xml(outDto, "root", "balanceInfo");
    return outXml;
  }

}
View Full Code Here

    for (int i = 0; i < cardList.size(); i++) {
      MenuVo cardVo = (MenuVo) cardList.get(i);
      qDto.put("menuid", cardVo.getMenuid());
      qDto.put("accountType", pDto.getAsString("accountType"));
      List menuList = tagSupportService.getCardTreeList(qDto).getDefaultAList();
      String rootName = (String) sqlRunner.queryForObject("Organization.getMenuNameForCNPath", "01");
      Dto pathDto = new BaseDto();
      pathDto.put("01", rootName);
      Dto dto = new BaseDto();
      dto.put("menuList", generateMenuPathName(menuList, pathDto));
      dto.put("menuid", cardVo.getMenuid());
View Full Code Here

   */
  static public void addSession(HttpSession session, UserInfoVo userInfo) {
    ht.put(session.getId(), session);
    Reader g4Reader = (Reader)SpringBeanLoader.getSpringBean("g4Reader");
    MonitorService monitorService = (MonitorService)SpringBeanLoader.getSpringBean("monitorService");
    UserInfoVo usInfo = (UserInfoVo)g4Reader.queryForObject("Monitor.queryHttpSessionsByID", session.getId());
    if(G4Utils.isEmpty(usInfo)){
      monitorService.saveHttpSession(userInfo);
    }
  }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.