Commit 1c9f891b authored by 陈祥烨's avatar 陈祥烨

应用导出优化

parent 59b80ec9
...@@ -46,6 +46,7 @@ DataApiResource { ...@@ -46,6 +46,7 @@ DataApiResource {
/** /**
* 依据参数导出 应用快搭增量脚本 * 依据参数导出 应用快搭增量脚本
*
* @throws SQLException * @throws SQLException
*/ */
@TycloudOperation(ApiLevel = UserType.ANONYMOUS, needAuth = false) @TycloudOperation(ApiLevel = UserType.ANONYMOUS, needAuth = false)
...@@ -54,17 +55,19 @@ DataApiResource { ...@@ -54,17 +55,19 @@ DataApiResource {
public void generateSQL( public void generateSQL(
@RequestParam("resourceCode") String resourceCode, @RequestParam("resourceCode") String resourceCode,
@RequestParam("dimension") String dimension, @RequestParam("dimension") String dimension,
@RequestParam("ipSeq") Long ipSeq,
HttpServletRequest request, HttpServletRequest request,
HttpServletResponse response) throws SQLException { HttpServletResponse response) throws SQLException {
Map<String, Object> variables = new HashMap<>(); Map<String, Object> variables = new HashMap<>();
Enumeration<String> keys = request.getParameterNames(); Enumeration<String> keys = request.getParameterNames();
while(keys.hasMoreElements()){ while (keys.hasMoreElements()) {
String name = (String)keys.nextElement(); String name = (String) keys.nextElement();
String value = request.getParameter(name); String value = request.getParameter(name);
variables.put(name, value); variables.put(name, value);
} }
variables.remove("resourceCode"); variables.remove("resourceCode");
variables.remove("dimension"); variables.remove("dimension");
studioResourceService.generateSQL(resourceCode, dimension, variables, response); variables.remove("ipSeq");
studioResourceService.generateSQL(resourceCode, dimension, ipSeq, variables, response);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment