|
@@ -1,5 +1,7 @@
|
|
|
package net.chenlin.dp.modules;
|
|
|
|
|
|
+import net.chenlin.dp.common.openapi4j.exception.OpenAPIException;
|
|
|
+import net.chenlin.dp.common.openapi4j.service.SaleOrderService;
|
|
|
import net.chenlin.dp.common.utils.DateUtils;
|
|
|
import net.chenlin.dp.modules.api.controller.DingdingOpenInterface;
|
|
|
import net.chenlin.dp.modules.api.service.PettyCashService;
|
|
@@ -34,11 +36,66 @@ public class TaskDemo {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 定时任务 销售订单同步至 钉钉
|
|
|
+ */
|
|
|
+ public static void autoSaleToDingJob(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========销售订单同步至钉钉定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 定时任务 采购订单同步至 钉钉
|
|
|
+ */
|
|
|
+ public static void autoOrderToDingJob(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========采购订单同步至钉钉定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 定时任务 付款申请单同步至 钉钉
|
|
|
+ */
|
|
|
+ public static void autoFkdToDingJob(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========付款申请单同步至钉钉定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 定时任务 钉钉销售订单审核回写至U8
|
|
|
+ */
|
|
|
+ public static void autoSaleToU8Job(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========钉钉销售订单回写至U8定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 定时任务 钉钉采购订单回写至U8
|
|
|
+ */
|
|
|
+ public static void autoOrderToU8Job(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========钉钉采购订单回写至U8定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 定时任务 钉钉付款申请单回写至U8
|
|
|
+ */
|
|
|
+ public static void autoFkdToU8Job(){
|
|
|
+ System.out.println("==================================");
|
|
|
+ System.out.println("===========钉钉付款申请单回写至U8定时任务执行 "+ DateUtils.getNowTime()+" ============" );
|
|
|
+ System.out.println("==================================");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
+ public static void main(String[] args) throws OpenAPIException {
|
|
|
+ SaleOrderService saleOrderService = new SaleOrderService();
|
|
|
+ saleOrderService.shenghe("","");
|
|
|
|
|
|
- DingdingOpenInterface dingdingOpenInterface = new DingdingOpenInterface();
|
|
|
+ /* DingdingOpenInterface dingdingOpenInterface = new DingdingOpenInterface();
|
|
|
dingdingOpenInterface.getToken();
|
|
|
|
|
|
for (int i = 0; i < 4; i++) {
|
|
@@ -53,7 +110,7 @@ public class TaskDemo {
|
|
|
System.out.println("33333333333333333");
|
|
|
}
|
|
|
|
|
|
- System.out.println("44444444444444");
|
|
|
+ System.out.println("44444444444444");*/
|
|
|
}
|
|
|
|
|
|
}
|