hyx 2 tahun lalu
induk
melakukan
3e673f6cf6

+ 6 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/task/HlwTask.java

@@ -24,6 +24,7 @@ import com.example.nngkxxdp.entity.Article;
 import com.example.nngkxxdp.entity.Dept;
 import com.example.nngkxxdp.hlw.HlwHttpUtil;
 import com.example.nngkxxdp.util.Blank;
+import com.example.nngkxxdp.util.WzkpRecordUtil;
 import org.apache.xmlbeans.impl.common.XPath;
 import org.jsoup.Jsoup;
 import org.jsoup.internal.StringUtil;
@@ -72,6 +73,9 @@ public class HlwTask {
     @Resource
     private HlwInterfaceDao hlwInterfaceDao;
 
+    @Resource
+    private WzkpRecordUtil wzkpRecordUtil;
+
     public static void main(String[] args) {
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         long startTime = System.currentTimeMillis();
@@ -183,6 +187,8 @@ public class HlwTask {
         long endTime = System.currentTimeMillis();
         log.info("耗时:" + (endTime - startTime) / 1000 + "秒");
         log.info("耗时:" + (endTime - startTime) / (1000 * 60) + "分");
+        log.info("开始生成重新加扣分详情");
+        wzkpRecordUtil.generateRecord(null);
     }
 
     /**

+ 0 - 18
nngkxxdp/src/main/java/com/example/nngkxxdp/util/NewDeptTaskUtil3.java

@@ -1,29 +1,11 @@
 package com.example.nngkxxdp.util;
 
-import cn.hutool.core.convert.Convert;
-import cn.hutool.core.date.DateField;
-import cn.hutool.core.date.DateUnit;
-import cn.hutool.core.date.DateUtil;
-import cn.hutool.core.util.StrUtil;
-import cn.hutool.log.StaticLog;
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.example.nngkxxdp.dao.HlwInterfaceDao;
-import com.example.nngkxxdp.dao.TjDao;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
-import java.security.Key;
-import java.text.DateFormat;
-import java.util.*;
-import java.util.stream.Collectors;
 
 /** 
 * @author Mr.wang