| | |
| | | public class OaApiService : Repository<dynamic> |
| | | { |
| | | private readonly HttpClient _httpClient; |
| | | private const string AppId = "303233EF-AC39-40C1-8364-AC989C6258A5"; |
| | | private const string BaseUrl = "http://192.168.1.149:8099/api/ec/dev/auth/"; |
| | | private const string WorkflowUrl = "http://192.168.1.149:8099/api/workflow/paService/doCreateRequest"; |
| | | //private const string AppId = "303233EF-AC39-40C1-8364-AC989C6258A5"; |
| | | //private const string BaseUrl = "http://192.168.1.149:8099/api/ec/dev/auth/"; |
| | | //private const string WorkflowUrl = "http://192.168.1.149:8099/api/workflow/paService/doCreateRequest"; |
| | | |
| | | private const string AppId = "AB7F0461-89C3-4EAD-B5B5-B7D540617921"; |
| | | private const string BaseUrl = "http://192.168.1.20:80/api/ec/dev/auth/"; |
| | | private const string WorkflowUrl = "http://192.168.1.20:80/api/workflow/paService/doCreateRequest"; |
| | | |
| | | public OaApiService() |
| | | { |
| | |
| | | |
| | | // 4. 构建请求体 |
| | | var requestData = BuildRequestData(queryObj); |
| | | |
| | | //var A = JObject.FromObject(requestData).ToString(); |
| | | |
| | | // 5. 发送请求 |
| | | var response = PostForm(WorkflowUrl, requestData); |
| | |
| | | { |
| | | {"mainData", BuildMainData(queryObj)}, |
| | | {"requestName", $"IQC异常处置单流程-{DateTime.Now:yyyyMMddHHmmss}"}, |
| | | {"workflowId", "379"}, |
| | | {"workflowId", "600"},//测试:379 正式:600 |
| | | //{"otherParams", BuildOtherParams()}, |
| | | {"detailData", BuildDetailData(queryObj)} |
| | | }; |
| | |
| | | WHERE pGuid = @guid"; |
| | | |
| | | var fileData = Db.Ado.SqlQuery<dynamic>(fileSql, new { guid = queryObj.qcczdGuid }); |
| | | var files = CreateFileData(fileData); |
| | | var files = fileData.Count > 0 ? CreateFileData(fileData) : null; // 新增 |
| | | |
| | | // 添加文件字段 |
| | | result.Add(new JObject |
| | |
| | | { |
| | | new JObject |
| | | { |
| | | ["tableDBName"] = "formtable_main_33_dt1", |
| | | ["tableDBName"] = "formtable_main_321_dt1",//测试:formtable_main_33_dt1 |
| | | ["workflowRequestTableRecords"] = tableRecords |
| | | } |
| | | }; |