|
@@ -1,6 +1,11 @@
|
|
package com.malk.luyi.controller;
|
|
package com.malk.luyi.controller;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
|
+import com.malk.server.aliwork.YDConf;
|
|
|
|
+import com.malk.server.aliwork.YDParam;
|
|
|
|
+import com.malk.service.aliwork.YDClient;
|
|
|
|
+import com.malk.utils.UtilMap;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
@@ -14,14 +19,27 @@ import org.springframework.scheduling.annotation.Scheduled;
|
|
public class KSJC_timer {
|
|
public class KSJC_timer {
|
|
@Autowired
|
|
@Autowired
|
|
private KSJCController legalEntityService;
|
|
private KSJCController legalEntityService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private YDClient ydClient;
|
|
/*集晨判断是否能打卡*/
|
|
/*集晨判断是否能打卡*/
|
|
//每天早晨7点05分同步数据
|
|
//每天早晨7点05分同步数据
|
|
@Scheduled(cron = "0 5 7 * * ?")
|
|
@Scheduled(cron = "0 5 7 * * ?")
|
|
- // @Scheduled(fixedRate = 2000)
|
|
|
|
|
|
+// @Scheduled(fixedRate = 1000)
|
|
public void LegalEntityList(){
|
|
public void LegalEntityList(){
|
|
log.info("k");
|
|
log.info("k");
|
|
try{
|
|
try{
|
|
legalEntityService.insetTHXM_TMER();
|
|
legalEntityService.insetTHXM_TMER();
|
|
|
|
+// String XMCSLID="FINST-3RB66I91VT5OZPGY8CWOD9237ZDD2KPZ5KH0MYK8";
|
|
|
|
+// if (true)
|
|
|
|
+// {
|
|
|
|
+// ydClient.operateData(YDParam.builder()
|
|
|
|
+// .appType("APP_X89Y00KKTG36B8JYGZVR")
|
|
|
|
+// .systemToken("QIA66091HJPLRHM3AUFJLCN24CUP2VNMO41XLW4")
|
|
|
|
+// .formInstanceId(String.valueOf(XMCSLID))
|
|
|
|
+// //data.get("shop_name")
|
|
|
|
+// .updateFormDataJson(JSON.toJSONString(UtilMap.map("textField_m0hk58mb", "ceshi")))
|
|
|
|
+// .build(), YDConf.FORM_OPERATION.update);
|
|
|
|
+// }
|
|
System.out.println("集晨判断,同步完成");
|
|
System.out.println("集晨判断,同步完成");
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
//记录错误信息
|
|
//记录错误信息
|