Problem result = new Problem();
result = (Problem) cdp.get(problem);
ArrayList solutions = result.getSolutions();
// 0为判断是否有修改问题的权限,即判定是不是有正在投票的solution,目前是有问题正在投票就没有修改权限,false是没有修改权限,true是有修改权限
judgeresult[0] = true;
Solution solution = new Solution();
if (solutions.size() > 0) {
int i = 0;
while (judgeresult[0] == true && i < solutions.size()) {
solution = (Solution) solutions.get(i);
if (solution.getIsVoting().equals("Y")) {
judgeresult[0] = false;
}
i++;
}
}