|
@@ -16,6 +16,8 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.net.URLEncoder;
|
|
|
+
|
|
|
/**
|
|
|
* 题库业务服务接口
|
|
|
*
|
|
@@ -31,6 +33,7 @@ public class QuestionPoolServiceImpl implements QuestionPoolService {
|
|
|
@Override
|
|
|
public String downloadPaper(String paperId, String orgName) throws Exception {
|
|
|
//封装请求参数
|
|
|
+ orgName = URLEncoder.encode(orgName, "utf-8");
|
|
|
return String.format("%s/api/ecs_ques/paper/export/%s/PAPER/%s/%s/offLine", propertyService.getQuestionPoolUrl(), paperId, orgName, paperId);
|
|
|
}
|
|
|
|