日期:2014-05-18 浏览次数:20707 次
private static ThreadPoolExecutor executor=Executors.newCachedThreadPool();
public String saveTime() throws Exception {
executor.execute(new Runnable(){
public void run(){
User user = (User) session.get("user");
int userId = user.getUserId();
int companyId = (Integer) session.get("companyId");
Score sq1 = examService.findScoreById(scoreId);
int a = sq1.getSpendTime();
sq1.setSpendTime(a + Constant.AUTO_TIME);
examService.update(sq1);
System.out.println("select:" + select);
if (select != null && select.length() > 0) {
String[] selectString = select.split("@@@@@@@@");
Paper paper = this.examinationService.findPaperById(paperId);
Question question = null ;
UserAnswer userAnswer = null ;
for (int i = 0; i < selectString.length; i++) {