| | |
| | | |
| | | import com.fgkj.actions.ActionUtil; |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_inf; |
| | | |
| | | public class CrossDomainLimitFilter implements Filter{ |
| | | public static final int max_connect_count = 10; |
| | |
| | | } |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | System.out.println("跨域访问域名或ip:"+request.getRemoteHost()+" At "+sdf.format(new Date())); |
| | | |
| | | User_inf u=new User_inf(); |
| | | u.setUSnId(""); |
| | | u.setUpassword(""); |
| | | u.setUId(9999); |
| | | request.getSession().setAttribute("user", u); |
| | | isAlowVisit = true; |
| | | }else{ |
| | | model.setMsg("校验码发送失败,key:"+key); |
| | |
| | | }
|
| | | maxb++;
|
| | | sql_str.add(sql);
|
| | | |
| | | String baoji_sql_main="REPLACE into db_user.tb_user_battgroup_baojigroup_battgroup(baoji_group_id,StationId,BattGroupId) values('100011','"+binf.getStationId()+"',"+binf.getBattGroupId()+")";
|
| | | sql_str.add(baoji_sql_main);
|
| | | |
| | | // System.out.println(baoji_sql_main);
|
| | | String baoji_sql="REPLACE into db_user.tb_user_battgroup_baojigroup_battgroup(baoji_group_id,StationId,BattGroupId) " +
|
| | | " SELECT baoji_group_id,'"+binf.getStationId()+"',"+binf.getBattGroupId()+" from db_user.tb_user_battgroup_baojigroup_usr where uid="+((User_inf)ActionUtil.getUser()).getUId();
|
| | |
| | | Boolean bl=false;
|
| | | boolean en = false;
|
| | | en=BattinfGroupFactory.backup_battinf();
|
| | | //System.out.println(en);
|
| | | //en = true; //试点版本不备份数据库
|
| | | if(en){
|
| | | bl=DAOHelper.makeManualCommit(DBUtil.getConn(), sql_str);
|