// Iterator iterator = gg_CZYB.getChildGG_CZYB_GWLB().iterator();
// while (iterator.hasNext()) {
// ((GG_CZYB_GWLB) iterator.next()).getGG_GWLB().getGwmc();
// }
loginInfo.put(MyVisit.USER_GG_CZYB, gg_CZYB);
GG_JGBH gg_JGBH = (GG_JGBH) this.baseDaoEntity.getHibernateDao().selectSingle(new GG_JGBH(gg_CZYB.getGG_JGBH().getJgbh()));//daoFactory.getGG_JGBHDao().load(gg_CZYB.getGG_JGBH());
GG_JGBH gg_JGBH_DW_Visit = new GG_JGBH();
gg_JGBH_DW_Visit.setJgbh(gg_JGBH.getJgbh());
gg_JGBH_DW_Visit.setJgmc(gg_JGBH.getJgmc());
gg_JGBH_DW_Visit.setJglb(gg_JGBH.getJglb());
gg_JGBH_DW_Visit.setJgbm(gg_JGBH.getJgbm());
gg_JGBH_DW_Visit.setArea(gg_JGBH.getArea());
String sql = "";
// if (gg_JGBH_DW_Visit.getJglb() == Constants_core.JGSF_ZBJG) {
// sql = "select distinct gg_lbfp.*\n" +
// " from gg_czyb_gwlb, gg_lbfp\n" +
// " where gg_lbfp.fpid = gg_czyb_gwlb.gwid\n" +
// " and gg_czyb_gwlb.czyid = :GG_CZYID";
// } else {
sql = "select gg_lbfp.* from gg_lbfp where fpid = :GG_CZYID";
// }
loginInfo.put(MyVisit.USER_GG_CZYLB, this.baseDaoEntity.getParaJdbcTemplate().queryForList(sql, new MapSqlParameterSource("GG_CZYID",gg_CZYB.getId())));
loginInfo.put(MyVisit.DW_GG_JGBH, gg_JGBH_DW_Visit);
loginInfo.put(MyVisit.LOGIN_TIME, DateUtil.getCurrentDateTimeView());
Map mapPara = new HashMap();
mapPara.put("SFDL", Constants_core.GG_CZYB_SFDL_YDL);
mapPara.put("ID", gg_CZYB.getId());
//系统不支持同一用户多次登录,是否登录状态改为未登录
// if(Constants_xt.XT_PZCS_CSBS_TYHDCDL_NO == XtpzcsConstants.getSdzOfInteger(Constants_xt.XT_PZCS_CSBS_TYHDCDL)) {
// baseDaoEntity.getParaJdbcTemplate().update("update gg_czyb set sfdl=:SFDL where id=:ID", mapPara);
// }
GG_XTRZ gg_XTRZ = new GG_XTRZ();
gg_XTRZ.setCzyid(gg_CZYB.getId());
gg_XTRZ.setName(gg_CZYB.getMc());
gg_XTRZ.setDwbh(gg_JGBH_DW_Visit.getJgbh());
gg_XTRZ.setArea(gg_JGBH_DW_Visit.getArea());
gg_XTRZ.setRoletype(gg_JGBH_DW_Visit.getJglb());
gg_XTRZ.setDlip(remoteIp);
gg_XTRZ.setCzsj(Long.valueOf(DateUtil.formateCalendar(Calendar.getInstance(), "yyyyMMddHHmmss")));
gg_XTRZ.setZxbz(Constants_core.GG_CZYB_SFDL_YDL);
this.baseDaoEntity.getHibernateDao().save(gg_XTRZ);
// daoFactory.getGG_XTRZDao().save(gg_XTRZ);