|
@@ -7,6 +7,7 @@ import com.malk.huagao.service.YdHuaGaoService;
|
|
|
import com.malk.server.aliwork.YDConf;
|
|
import com.malk.server.aliwork.YDConf;
|
|
|
import com.malk.server.aliwork.YDParam;
|
|
import com.malk.server.aliwork.YDParam;
|
|
|
import com.malk.server.common.McR;
|
|
import com.malk.server.common.McR;
|
|
|
|
|
+import com.malk.server.dingtalk.DDR_New;
|
|
|
import com.malk.service.aliwork.YDClient;
|
|
import com.malk.service.aliwork.YDClient;
|
|
|
import com.malk.utils.UtilMap;
|
|
import com.malk.utils.UtilMap;
|
|
|
import org.slf4j.MDC;
|
|
import org.slf4j.MDC;
|
|
@@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -44,14 +46,24 @@ private YDClient ydClient;
|
|
|
// String ins = String.valueOf(data.get("formInstId"));
|
|
// String ins = String.valueOf(data.get("formInstId"));
|
|
|
//
|
|
//
|
|
|
//
|
|
//
|
|
|
-//
|
|
|
|
|
|
|
+ DDR_New ddrNew = ydClient.queryData(YDParam.builder()
|
|
|
|
|
+ .formUuid("FORM-E64114E9F2C9426E91F92886EDFFA2C08Q90")
|
|
|
|
|
+ .build(), YDConf.FORM_QUERY.retrieve_search_form_id);
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println(ddrNew.getTotalCount());
|
|
|
|
|
+
|
|
|
|
|
+ ydClient.operateData(YDParam.builder()
|
|
|
|
|
+ .formUuid("FORM-E64114E9F2C9426E91F92886EDFFA2C08Q90")
|
|
|
|
|
+ .asynchronousExecution(true)
|
|
|
|
|
+ .formInstanceIdList((List<String>) ddrNew.getData())
|
|
|
|
|
+ .build(), YDConf.FORM_OPERATION.delete_batch);
|
|
|
// ydClient.operateData(YDParam.builder()
|
|
// ydClient.operateData(YDParam.builder()
|
|
|
// .formInstanceId(ins)
|
|
// .formInstanceId(ins)
|
|
|
// .updateFormDataJson(JSONObject.toJSONString(UtilMap.map("numberField_mhirg0kz","156")))//xz04
|
|
// .updateFormDataJson(JSONObject.toJSONString(UtilMap.map("numberField_mhirg0kz","156")))//xz04
|
|
|
//// .updateFormDataJson(JSONObject.toJSONString(UtilMap.map(employ,id)))//xz04
|
|
//// .updateFormDataJson(JSONObject.toJSONString(UtilMap.map(employ,id)))//xz04
|
|
|
// .useLatestVersion(true)
|
|
// .useLatestVersion(true)
|
|
|
// .build(), YDConf.FORM_OPERATION.update);
|
|
// .build(), YDConf.FORM_OPERATION.update);
|
|
|
- ydHuaGaoService.synckdYdMaterial();
|
|
|
|
|
|
|
+// ydHuaGaoService.synckdYdMaterial();
|
|
|
// ydHuaGaoService.synckdYdPayment();
|
|
// ydHuaGaoService.synckdYdPayment();
|
|
|
// ydHuaGaoService.syncKdYdReceivable();
|
|
// ydHuaGaoService.syncKdYdReceivable();
|
|
|
// kdYdZpService.insertkdYdZp(data);
|
|
// kdYdZpService.insertkdYdZp(data);
|