|
@@ -3,6 +3,7 @@ package com.malk.longyou.Controller;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.malk.server.aliwork.YDConf;
|
|
|
import com.malk.server.aliwork.YDParam;
|
|
|
+import com.malk.server.common.McException;
|
|
|
import com.malk.server.common.McR;
|
|
|
import com.malk.server.dingtalk.DDConf;
|
|
|
import com.malk.server.dingtalk.DDFormComponentDto;
|
|
@@ -61,7 +62,7 @@ public class lytoOAController {
|
|
|
String DDFromName = data.get("FromName").toString();
|
|
|
String DDFromID = data.get("DDFromID").toString();//钉钉表单ID
|
|
|
String foromuuid = retunYDFROMID(DDFromName);
|
|
|
- String FormInstanceId = data.get("FormInstanceId").toString();
|
|
|
+ String FormInstanceId = data.get("YDfromID").toString();
|
|
|
if (!AppKey.equals("") && !AppSecret.equals("") && !CorpId.equals("") && !DDFromName.equals("") && !DDFromID.equals("")) {
|
|
|
try {
|
|
|
//通过CorpI查询对应的数据
|
|
@@ -75,7 +76,7 @@ public class lytoOAController {
|
|
|
//String formInstanceId = data.get("formInstanceId").toString();
|
|
|
|
|
|
|
|
|
-
|
|
|
+ mesg+=":"+dataList_bgxx.size();
|
|
|
if (dataList_bgxx != null && dataList_bgxx.size() > 0) {
|
|
|
for (int i = 0; i < dataList_bgxx.size(); i++) {
|
|
|
Map formdata = dataList_bgxx.get(i);
|
|
@@ -91,7 +92,7 @@ public class lytoOAController {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (McException e) {
|
|
|
|
|
|
mesg = e.getMessage();
|
|
|
}
|