|
@@ -2,7 +2,6 @@ package cn.com.qmth.examcloud.core.questions.service.temp;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
-import java.net.URLEncoder;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.LinkedHashMap;
|
|
@@ -18,6 +17,7 @@ import java.util.regex.Pattern;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
|
|
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.beans.factory.annotation.Qualifier;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -64,6 +64,7 @@ import cn.com.qmth.examcloud.core.questions.service.temp.vo.TestQuestionInfo;
|
|
public class DdCollegeUtilService {
|
|
public class DdCollegeUtilService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ @Qualifier("secondaryJdbcTemplate")
|
|
private JdbcTemplate jdbcTemplate;
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -200,6 +201,13 @@ public class DdCollegeUtilService {
|
|
return questions;
|
|
return questions;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //测试oracle的连接
|
|
|
|
+ public int testCount(){
|
|
|
|
+ String sql = "select count(*) from QUESTION_CONTENT";
|
|
|
|
+ int count = this.jdbcTemplate.queryForObject(sql, Integer.class);
|
|
|
|
+ return count;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据父ID查询子题
|
|
* 根据父ID查询子题
|
|
* @param parentId
|
|
* @param parentId
|