Browse Source

增加依赖,添加结算清单定时任务

hym 3 years ago
parent
commit
70d8d8b3d9

+ 8 - 0
zoniot-rmcp/zoniot-xxljob-client/pom.xml

@@ -28,5 +28,13 @@
                     </exclusion>
                 </exclusions>
             </dependency>
+        <dependency>
+            <groupId>com.zcxk</groupId>
+            <artifactId>zoniot-core-mongo</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.zcxk</groupId>
+            <artifactId>zoniot-rmcp-api</artifactId>
+        </dependency>
     </dependencies>
 </project>

+ 15 - 0
zoniot-rmcp/zoniot-xxljob-client/src/main/java/com/zcxk/xxljob/jobs/MeasurementSettlementRecordHander.java

@@ -0,0 +1,15 @@
+package com.zcxk.xxljob.jobs;
+import com.xxl.job.core.biz.model.ReturnT;
+import com.xxl.job.core.handler.annotation.XxlJob;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+
+@Slf4j
+@Component
+public class MeasurementSettlementRecordHander {
+    @XxlJob("demoJobHandler")
+    public ReturnT<String> execute(String s) throws Exception {
+        log.info("开始执行分发任务");
+        return ReturnT.SUCCESS;
+    }
+}