.getProblemsolutionId());
finalsolution = (Finalsolution) sdp.get(finalsolution);
finalsolution.setFinalgoodNum(new Long(finalsolution
.getFinalgoodNum().intValue() + 1));
sdp.update(finalsolution);
FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
fse.setIsGood("Y");
sdp.create(fse);
xml
.append("<message>success</message><choose>flower</choose><problemsolutionId>"
+ pse.getProblemsolutionId()
+ "</problemsolutionId></result>");
}
} catch (EasyJException e) {
xml.append("<message>failure</message></result>");
}
try {
if (request.getParameter("useState").equals("Y")) {
ps.setVotingGoodNum((new Long(ps.getVotingGoodNum()
.intValue() + 1)));
cdp.update(ps);
pse.setStage(2);
pse.setIsGood("Y");
sdp.create(pse);
xml
.append("<message>success</message><choose>flower</choose><problemsolutionId>"
+ pse.getProblemsolutionId()
+ "</problemsolutionId></result>");
}
} catch (EasyJException e) {
xml.append("<message>failure</message></result>");
}
try {
if (request.getParameter("useState").equals("N")) {
ps.setGoodNum(new Long(ps.getGoodNum().intValue() + 1));
cdp.update(ps);
pse.setIsGood("Y");
pse.setStage(2);
sdp.create(pse);
xml
.append("<message>success</message><choose>flower</choose><problemsolutionId>"
+ pse.getProblemsolutionId()
+ "</problemsolutionId></result>");
}
} catch (EasyJException e) {
xml.append("<message>failure</message></result>");
}
}
if (request.getParameter("badegg") != null) {
try {
if (request.getParameter("useState").equals("C")) {
Finalsolution finalsolution = new Finalsolution();
finalsolution.setProblemsolutionId(pse
.getProblemsolutionId());
finalsolution = (Finalsolution) sdp.get(finalsolution);
finalsolution.setFinalbadNum(new Long(finalsolution
.getFinalbadNum().intValue() + 1));
sdp.update(finalsolution);
FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
fse.setIsGood("N");
sdp.create(fse);
xml
.append("<message>success</message><choose>badegg</choose><problemsolutionId>"
+ pse.getProblemsolutionId()
+ "</problemsolutionId></result>");