定时删除同步任务、下载记录和第三方数据的30天之前数据和sql

busUser
wangwei 3 years ago
parent 448594231e
commit 5bb8acef03

@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource; import javax.annotation.Resource;
; ;
/** /**
* *
*/ */
@Slf4j @Slf4j
@Component @Component

@ -6,6 +6,12 @@ CALL Pro_Temp_ColumnWork ('io_order','wzUploadResult','varchar(255) ', 1);
CALL Pro_Temp_ColumnWork ('stock_order','noInvOut','tinyint', 1); CALL Pro_Temp_ColumnWork ('stock_order','noInvOut','tinyint', 1);
INSERT ignore INTO spms.scheduled(id, cronName, cron, customerId, remark)
VALUES
(16, 'ScheduledDeletion', '0 0 2 1/1 * ? ', NULL, '删除30天数据');
INSERT ignore INTO spms.system_param_config ( id, parentId, paramName, paramKey, paramValue, paramStatus, paramType, paramExplain )
VALUES
( 20009, 0, '删除30天数据', 'ScheduledDeletion', '1', 1, 0, '1:是0' );
-- 创建表时必须 create table if not exists 表名 -- 创建表时必须 create table if not exists 表名
Loading…
Cancel
Save