“lqy пре 1 месец
родитељ
комит
f3c79592fc

+ 14 - 2
mjava-huagao/src/main/java/com/malk/huagao/controller/KdYdCustomerController.java

@@ -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);

+ 5 - 1
mjava-huagao/src/main/java/com/malk/huagao/service/impl/YdHuaGaoServiceImpl.java

@@ -733,6 +733,7 @@ public class YdHuaGaoServiceImpl implements YdHuaGaoService {
                 }
                 }
                 updateData.put("tableField_mhiui6v5", tableListPay);
                 updateData.put("tableField_mhiui6v5", tableListPay);
                 updateData.put("textField_mg3a0tgs", kdYdReceivable.getDjbh());
                 updateData.put("textField_mg3a0tgs", kdYdReceivable.getDjbh());
+                updateData.put("textField_mj15q3dk", ckddjbh);
                 updateData.put("selectField_mg3a0th4", kdYdReceivable.getDjlx());
                 updateData.put("selectField_mg3a0th4", kdYdReceivable.getDjlx());
                 updateData.put("selectField_mev13l3r", kdYdReceivable.getSktj());
                 updateData.put("selectField_mev13l3r", kdYdReceivable.getSktj());
                 updateData.put("dateField_mejmtic3", kdYdReceivable.getEndTime().atZone(java.time.ZoneId.systemDefault()).toInstant().toEpochMilli());
                 updateData.put("dateField_mejmtic3", kdYdReceivable.getEndTime().atZone(java.time.ZoneId.systemDefault()).toInstant().toEpochMilli());
@@ -950,7 +951,10 @@ public class YdHuaGaoServiceImpl implements YdHuaGaoService {
                         .appType("APP_VQDMMWS6OR1VHL8VMFD3")
                         .appType("APP_VQDMMWS6OR1VHL8VMFD3")
                         .systemToken("XE766X81JHKXK4Z27SYOI86CPCLQ3J1LV7ODMH2")
                         .systemToken("XE766X81JHKXK4Z27SYOI86CPCLQ3J1LV7ODMH2")
 //                        .searchCondition(JSONObject.toJSONString(UtilMap.map("textField_mg4h6mz5", wlbt)))
 //                        .searchCondition(JSONObject.toJSONString(UtilMap.map("textField_mg4h6mz5", wlbt)))
-                        .searchCondition(JSONObject.toJSONString(UtilMap.map("textField_misfb2ft", jdnm)))
+//                        .searchCondition(JSONObject.toJSONString(UtilMap.map("textField_misfb2ft", jdnm)))
+                        .searchCondition(JSONObject.toJSONString(Arrays.asList(new YDSearch(
+                                "textField_misfb2ft", jdnm, "金蝶内码", YDSearch.Type.TEXT_FIELD, YDSearch.Operator.EQ))))
+//
                         .formDataJson(JSONObject.toJSONString(updateFormData))
                         .formDataJson(JSONObject.toJSONString(updateFormData))
                         .build(), YDConf.FORM_OPERATION.upsert);
                         .build(), YDConf.FORM_OPERATION.upsert);