Short a;
a = 0;
problem.setProblemAward(a);
problem.setStatusId(0);
problem.setVotingNum(new Long(0));
ProblemVersion pv = new ProblemVersion();
pv.setCreatorId(userId);
pv.setProblemContent(problemContent);
// problem.setRoleId(roleId);
this.dp = dp;
try {
dp.create(problem);
SysUser user = new SysUser();
user.setUserId(userId);
user = (SysUser) dp.get(user);
// Problem pro = new Problem();
// pro.setProblemId(problem.getProblemId());
// ArrayList pros = dp.query(pro);
// newProblem = (Problem)pros.get(0);
pv.setProblemId(problem.getProblemId());
dp.create(pv);
StringBuffer buffer = BeanUtil.serializeObjectToClient(problem);
buffer.append("<message>保存成功");
returnMessage = buffer.toString();
} catch (EasyJException e) {