diff --git a/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java b/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java new file mode 100644 index 0000000..62cfb06 --- /dev/null +++ b/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java @@ -0,0 +1,42 @@ +package org.nl.wms.sch.tasks; + +import cn.hutool.core.date.DateTime; +import cn.hutool.core.date.DateUtil; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.nl.wql.core.bean.WQLObject; +import org.springframework.stereotype.Component; + +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + + +/** + * @author geng by + * 自动清理大于十五天的日志 + */ +@Slf4j +@Component +@RequiredArgsConstructor +public class AutoCleanUpLogs { + + private ExecutorService threadPool = Executors.newCachedThreadPool(); + + public void run() throws Exception { + try { + System.out.println("开始清理日志"); + // 0 0/10 0,1 * * ? * 每天0-1点执行间隔10分钟一次 + //sys_log + //delete from sys_log where DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL 30 day)) limit 10; + WQLObject logTab = WQLObject.getWQLObject("sys_log"); + String days = WQLObject.getWQLObject("sys_param").query("code='clean_day'").uniqueResult(0).getString("value"); + logTab.delete("DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL '" + days + "' day))"); + log.info("自动清理日志执行成功...!"); + } catch (Exception e) { + e.printStackTrace(); + } + } + +} diff --git a/wms/qd/src/assets/images/background.jpg b/wms/qd/src/assets/images/background.jpg index 69e6348..79d2685 100644 Binary files a/wms/qd/src/assets/images/background.jpg and b/wms/qd/src/assets/images/background.jpg differ diff --git a/wms/qd/src/views/wms/md/material/index.vue b/wms/qd/src/views/wms/md/material/index.vue index c577b92..e97a1e6 100644 --- a/wms/qd/src/views/wms/md/material/index.vue +++ b/wms/qd/src/views/wms/md/material/index.vue @@ -3,17 +3,27 @@
- - - + + + + + + +
diff --git a/wms/qd/src/views/wms/md/materiallabel/index.vue b/wms/qd/src/views/wms/md/materiallabel/index.vue index 8e1af7e..dc25f2a 100644 --- a/wms/qd/src/views/wms/md/materiallabel/index.vue +++ b/wms/qd/src/views/wms/md/materiallabel/index.vue @@ -3,17 +3,27 @@
- - - + + + + + + +
@@ -96,7 +106,7 @@ - + diff --git a/wms/qd/src/views/wms/pdm/produceTask/index.vue b/wms/qd/src/views/wms/pdm/produceTask/index.vue index 4d657bc..f742170 100644 --- a/wms/qd/src/views/wms/pdm/produceTask/index.vue +++ b/wms/qd/src/views/wms/pdm/produceTask/index.vue @@ -3,81 +3,69 @@
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + +
@@ -215,7 +203,7 @@ >