public boolean doCreate(List<Privilege> pid, Integer groupid)
			throws Exception {
		boolean flag = false ;
		String sql = "INSERT INTO admingroup_privilege(pid,groupid) VALUES (?,?)";
		this.pstmt = this.conn.prepareStatement(sql);
		Iterator<Privilege> iterPri = pid.iterator();
		while (iterPri.hasNext()) {
			Privilege pri = iterPri.next();
			this.pstmt.setInt(1,pri.getPid());
			this.pstmt.setInt(2, groupid);
			this.pstmt.addBatch();
		}
		if (this.pstmt.executeBatch().length > 0) {
			flag = true ;
		}
		return flag;
	}