You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
package com.fr.plugin.db.procedure.stableKey; |
|
|
|
import com.fr.json.JSONObject; |
|
import com.fr.log.FineLoggerFactory; |
|
import com.fr.plugin.db.procedure.controller.DbController; |
|
import com.fr.plugin.db.procedure.controller.HttpReqBean; |
|
|
|
public class ExecuteProcedureActionImpl implements ExecuteProcedureAction{ |
|
@Override |
|
public String execute(String param) { |
|
FineLoggerFactory.getLogger().info("远程接收到执行存储过程参数:"+param); |
|
|
|
JSONObject jsonObject = new JSONObject(param); |
|
String procedureId = jsonObject.getString("procedureId"); |
|
String reportSessionID = jsonObject.getString("reportSessionID"); |
|
String otherPara = jsonObject.getString("otherPara"); |
|
FineLoggerFactory.getLogger().info("procedureId:"+procedureId+",reportSessionID:"+reportSessionID+",otherPara:"+otherPara); |
|
HttpReqBean httpReqBean = new HttpReqBean(); |
|
httpReqBean.setProcedureId(procedureId); |
|
httpReqBean.setReportSessionID(reportSessionID); |
|
httpReqBean.setOtherPara(otherPara); |
|
try { |
|
String jsonResult = DbController.beginExecuteProcedure(httpReqBean); |
|
return jsonResult; |
|
} catch (Exception e) { |
|
e.printStackTrace(); |
|
} |
|
return null; |
|
} |
|
}
|
|
|