三方restful接口"/>
泛微OA调用三方restful接口
直接上代码:
package weaver.interfaces.workflow.action;import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apachemons.logging.Log;
import org.apachemons.logging.LogFactory;
import org.springframework.http.*;
import org.springframework.web.client.RestTemplate;
import weaver.soa.workflow.request.Property;
import weaver.soa.workflow.request.RequestInfo;import java.URI;
import java.util.HashMap;
import java.util.Map;public class DenyAction implements Action {private Log log = LogFactory.getLog(DenyAction.class);@Overridepublic String execute(RequestInfo requestInfo) {// 获取主表数据Property[] properties = requestInfo.getMainTableInfo().getProperty();Map<String, Object> mainDatas = new HashMap<>();for (Property property : properties) {mainDatas.put(property.getName(), property.getValue());}// 构
更多推荐
泛微OA调用三方restful接口
发布评论