zhangqian
2023-08-15 550bd8a218224e6c73201f444387d66a299f438b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
[2023-08-14 20:09:18]    [debug]    [gorm.io/gorm/migrator.Migrator.CurrentDatabase:827]    trace    {"elapsed": 0.0009714, "rows": -1, "sql": "SELECT DATABASE()"}
[2023-08-14 20:09:18]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:309]    trace    {"elapsed": 0.0020006, "rows": 1, "sql": "SELECT SCHEMA_NAME from Information_schema.SCHEMATA where SCHEMA_NAME LIKE 'aps_client%' ORDER BY SCHEMA_NAME='aps_client' DESC,SCHEMA_NAME limit 1"}
[2023-08-14 20:09:18]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:310]    trace    {"elapsed": 0.0010025, "rows": -1, "sql": "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'aps_client' AND table_name = 'user' AND table_type = 'BASE TABLE'"}
[2023-08-14 20:10:31]    [debug]    [gorm.io/gorm/migrator.Migrator.CurrentDatabase:827]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT DATABASE()"}
[2023-08-14 20:10:31]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:309]    trace    {"elapsed": 0.0020057, "rows": 1, "sql": "SELECT SCHEMA_NAME from Information_schema.SCHEMATA where SCHEMA_NAME LIKE 'aps_client%' ORDER BY SCHEMA_NAME='aps_client' DESC,SCHEMA_NAME limit 1"}
[2023-08-14 20:10:31]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:310]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'aps_client' AND table_name = 'user' AND table_type = 'BASE TABLE'"}
[2023-08-14 20:10:43]    [debug]    [gorm.io/gorm/migrator.Migrator.CurrentDatabase:827]    trace    {"elapsed": 0.0010045, "rows": -1, "sql": "SELECT DATABASE()"}
[2023-08-14 20:10:43]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:309]    trace    {"elapsed": 0.0020024, "rows": 1, "sql": "SELECT SCHEMA_NAME from Information_schema.SCHEMATA where SCHEMA_NAME LIKE 'aps_client%' ORDER BY SCHEMA_NAME='aps_client' DESC,SCHEMA_NAME limit 1"}
[2023-08-14 20:10:43]    [debug]    [gorm.io/gorm/migrator.Migrator.HasTable.func1:310]    trace    {"elapsed": 0.0010035, "rows": -1, "sql": "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'aps_client' AND table_name = 'user' AND table_type = 'BASE TABLE'"}
[2023-08-14 20:11:04]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:32:54]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:33:18]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:33:20]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:34:05]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:37:58]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:38:01]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:38:12]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:38:23]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:38:28]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:38:50]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:38:52]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:38:55]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:39:11]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:39:19]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:39:26]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:40:21]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:40:22]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:40:26]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:42:41]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:43:07]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:43:09]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:44:44]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:44:44]    [info]    [apsClient/api/v1.(*NoticeApi).TaskStart.func1:40]    TaskStart Notice GetProcessModel: &{Number: OrderId: Product: Procedure: WorkOrder: Device: ParamsMap:map[]}
[2023-08-15 10:45:37]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:45:39]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:45:42]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:48:20]    [info]    [apsClient/api/v1.(*NoticeApi).TaskStart.func1:40]    TaskStart Notice GetProcessModel: &{Number: OrderId: Product: Procedure: WorkOrder: Device: ParamsMap:map[]}
[2023-08-15 10:48:20]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:48:23]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:48:25]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:48:45]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:49:54]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 10:49:57]    [info]    [main.main:27]    apsClient start serve...
[2023-08-15 10:49:59]    [info]    [apsClient/pkg/contextx.NewContext.func1:38]    192.168.20.120 | POST /v1/notice/task/start | uid:  | &{OrderId:string Product:string Procedure:string WorkOrder:string Device:string}
[2023-08-15 10:49:59]    [info]    [apsClient/api/v1.(*NoticeApi).TaskStart.func1:40]    TaskStart Notice GetProcessModel: {Number:工艺模型编号 OrderId:订单 Product:产品 Procedure:工序 WorkOrder:工单 Device:设备 ParamsMap:map[压强:100Mpa 时间:100min 温度:1000]}
[2023-08-15 15:24:23]    [info]    [main.shutdown:42]    apsClient exited...
[2023-08-15 15:25:28]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:25:28]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.attendance
[2023-08-15 15:26:08]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:26:11]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:26:11]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 15:34:26]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:37:47]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:37:47]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 15:39:19]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:39:28]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:39:28]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 15:41:47]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:41:52]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:41:52]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 15:42:41]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:42:46]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 15:42:46]    [debug]    [gorm.io/gorm/migrator.Migrator.CreateTable.func1:290]    trace    {"elapsed": 0.0050171, "rows": 0, "sql": "CREATE TABLE `schedule_task` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`menu_id` bigint(20),`user_id` varchar(255),PRIMARY KEY (`id`))"}
[2023-08-15 15:42:46]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0050369, "rows": 0, "sql": "CREATE INDEX `idx_schedule_task_user_id` ON `schedule_task`(`user_id`)"}
[2023-08-15 15:42:46]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0039837, "rows": 0, "sql": "CREATE INDEX `idx_schedule_task_deleted_at` ON `schedule_task`(`deleted_at`)"}
[2023-08-15 15:42:46]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Create:83]    trace    {"elapsed": 0.0040376, "rows": 1, "sql": "INSERT INTO `schedule_task` (`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id`) VALUES (\"2023-08-15 15:42:46.557\",\"2023-08-15 15:42:46.557\",NULL,1,\"userId\") RETURNING `id`"}
[2023-08-15 15:42:46]    [debug]    [apsClient/model.(*ScheduleTaskSearch).First:151]    trace    {"elapsed": 0.0009762, "rows": 1, "sql": "SELECT * FROM `schedule_task` WHERE menu_id = 1 AND `schedule_task`.`deleted_at` IS NULL ORDER BY `schedule_task`.`id` LIMIT 1"}
[2023-08-15 15:42:46]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:42:46]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 15:44:43]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 15:44:48]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.AlterColumn:80]    trace    {"elapsed": 0, "rows": 1, "sql": "PRAGMA foreign_keys"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.getRawDDL:370]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT sql FROM sqlite_master WHERE type = \"table\" AND tbl_name = \"schedule_task\" AND name = \"schedule_task\""}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:414]    trace    {"elapsed": 0.0010022, "rows": 0, "sql": "CREATE TABLE `schedule_task__temp` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`menu_id` bigint(20),`user_id` varchar(255),PRIMARY KEY (`id`))"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0, "rows": 1, "sql": "INSERT INTO `schedule_task__temp`(`id`,`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id` FROM `schedule_task`"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0.0010015, "rows": 1, "sql": "DROP TABLE `schedule_task`"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0, "rows": 1, "sql": "ALTER TABLE `schedule_task__temp` RENAME TO `schedule_task`"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_user_id\""}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0040193, "rows": 1, "sql": "CREATE INDEX `idx_schedule_task_user_id` ON `schedule_task`(`user_id`)"}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 15:44:48]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0030108, "rows": 1, "sql": "CREATE INDEX `idx_schedule_task_deleted_at` ON `schedule_task`(`deleted_at`)"}
[2023-08-15 15:44:48]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Create:83]    trace    {"elapsed": 0.0050514, "rows": 1, "sql": "INSERT INTO `schedule_task` (`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id`) VALUES (\"2023-08-15 15:44:48.543\",\"2023-08-15 15:44:48.543\",NULL,1,\"userId\") RETURNING `id`"}
[2023-08-15 15:44:48]    [debug]    [apsClient/model.(*ScheduleTaskSearch).First:151]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT * FROM `schedule_task` WHERE menu_id = 1 AND `schedule_task`.`deleted_at` IS NULL ORDER BY `schedule_task`.`id` LIMIT 1"}
[2023-08-15 15:44:48]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 15:44:48]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 16:08:19]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 16:08:24]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.AlterColumn:80]    trace    {"elapsed": 0, "rows": 1, "sql": "PRAGMA foreign_keys"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.getRawDDL:370]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT sql FROM sqlite_master WHERE type = \"table\" AND tbl_name = \"schedule_task\" AND name = \"schedule_task\""}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:414]    trace    {"elapsed": 0.0020047, "rows": 0, "sql": "CREATE TABLE `schedule_task__temp` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`menu_id` bigint(20),`user_id` varchar(255),PRIMARY KEY (`id`))"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0, "rows": 2, "sql": "INSERT INTO `schedule_task__temp`(`id`,`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`deleted_at`,`menu_id`,`user_id` FROM `schedule_task`"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0, "rows": 2, "sql": "DROP TABLE `schedule_task`"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.recreateTable.func1.1:424]    trace    {"elapsed": 0.0010019, "rows": 2, "sql": "ALTER TABLE `schedule_task__temp` RENAME TO `schedule_task`"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0.0010022, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0230621, "rows": 2, "sql": "CREATE INDEX `idx_schedule_task_deleted_at` ON `schedule_task`(`deleted_at`)"}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_user_id\""}
[2023-08-15 16:08:24]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0050129, "rows": 2, "sql": "CREATE INDEX `idx_schedule_task_user_id` ON `schedule_task`(`user_id`)"}
[2023-08-15 16:08:24]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 16:08:24]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 17:54:43]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0050116, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `order_id` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040109, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `product_id` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040373, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `product_name` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0049869, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `parameter` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040065, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `customer` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040113, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `deliver_date` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040103, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `order_attr` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0060163, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `amount` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0050132, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `unit` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.004011, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `start_time` integer"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0040399, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `end_time` integer"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.AddColumn.func1:363]    trace    {"elapsed": 0.0049836, "rows": 0, "sql": "ALTER TABLE `schedule_task` ADD `data` text"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"materials\""}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.CreateTable.func1:290]    trace    {"elapsed": 0.0040106, "rows": 0, "sql": "CREATE TABLE `materials` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`material_id` text,`material_name` text,`amount` text,`unit` text,PRIMARY KEY (`id`))"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0030088, "rows": 0, "sql": "CREATE INDEX `idx_materials_deleted_at` ON `materials`(`deleted_at`)"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"procedures\""}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.CreateTable.func1:290]    trace    {"elapsed": 0.005018, "rows": 0, "sql": "CREATE TABLE `procedures` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`procedure_id` text,`procedure_name` text,`device_id` text,`start_time` text,`end_time` text,`work_hours` text,`input_materials_id` integer,`output_materials_id` integer,PRIMARY KEY (`id`))"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.CreateIndex.func1:294]    trace    {"elapsed": 0.0040126, "rows": 0, "sql": "CREATE INDEX `idx_procedures_deleted_at` ON `procedures`(`deleted_at`)"}
[2023-08-15 19:36:31]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task_procedures\""}
[2023-08-15 19:36:31]    [debug]    [gorm.io/gorm/migrator.Migrator.CreateTable.func1:290]    trace    {"elapsed": 0.0040103, "rows": 0, "sql": "CREATE TABLE `schedule_task_procedures` (`schedule_task_id` integer,`procedures_id` integer,PRIMARY KEY (`schedule_task_id`,`procedures_id`))"}
[2023-08-15 19:36:31]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:36:31]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:45:18]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:45:24]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0.0010022, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:45:24]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:45:24]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:45:24]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:45:24]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:45:24]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:45:31]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Create:111]    trace    {"elapsed": 0.006015, "rows": 1, "sql": "INSERT INTO `schedule_task` (`created_at`,`updated_at`,`deleted_at`,`order_id`,`product_id`,`product_name`,`amount`,`unit`,`start_time`,`end_time`,`data`) VALUES (\"2023-08-15 19:45:31.418\",\"2023-08-15 19:45:31.418\",NULL,\"0100000\",\"PE500A01D/F\",\"前纺毛布\",\"1200\",\"\",1692328320,1692946800,\"{\\\"order\\\":{\\\"orderId\\\":\\\"0100000\\\",\\\"productId\\\":\\\"PE500A01D/F\\\",\\\"productName\\\":\\\"前纺毛布\\\",\\\"parameter\\\":\\\"\\\",\\\"customer\\\":\\\"1200\\\",\\\"deliverDate\\\":\\\"2023-08-16\\\",\\\"orderAttr\\\":\\\"产品类别:涤纶\\\",\\\"amount\\\":\\\"1200\\\",\\\"unit\\\":\\\"\\\",\\\"startTime\\\":1692328320,\\\"endTime\\\":1692946800},\\\"procedures\\\":[{\\\"procedureId\\\":\\\"QF\\\",\\\"procedureName\\\":\\\"严牌前纺\\\",\\\"deviceId\\\":\\\"08\\\",\\\"startTime\\\":1692328320,\\\"endTime\\\":1692946800,\\\"workHours\\\":\\\"171.8\\\",\\\"inputMaterials\\\":[{\\\"materialId\\\":\\\"PT\\\",\\\"materialName\\\":\\\"严牌PT\\\",\\\"amount\\\":\\\"10\\\",\\\"unit\\\":\\\"g/㎡\\\"}],\\\"outputMaterials\\\":[{\\\"materialId\\\":\\\"PS\\\",\\\"materialName\\\":\\\"严牌PS\\\",\\\"amount\\\":\\\"10\\\",\\\"unit\\\":\\\"g/㎡\\\"}],\\\"workers\\\":null}]}\") RETURNING `id`,`id`"}
[2023-08-15 19:45:45]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Create:111]    trace    {"elapsed": 0.0040113, "rows": 1, "sql": "INSERT INTO `schedule_task` (`created_at`,`updated_at`,`deleted_at`,`order_id`,`product_id`,`product_name`,`amount`,`unit`,`start_time`,`end_time`,`data`) VALUES (\"2023-08-15 19:45:45.435\",\"2023-08-15 19:45:45.435\",NULL,\"0100000\",\"PE500A01D/F\",\"前纺毛布\",\"1200\",\"\",1692328320,1692946800,\"{\\\"order\\\":{\\\"orderId\\\":\\\"0100000\\\",\\\"productId\\\":\\\"PE500A01D/F\\\",\\\"productName\\\":\\\"前纺毛布\\\",\\\"parameter\\\":\\\"\\\",\\\"customer\\\":\\\"1200\\\",\\\"deliverDate\\\":\\\"2023-08-16\\\",\\\"orderAttr\\\":\\\"产品类别:涤纶\\\",\\\"amount\\\":\\\"1200\\\",\\\"unit\\\":\\\"\\\",\\\"startTime\\\":1692328320,\\\"endTime\\\":1692946800},\\\"procedures\\\":[{\\\"procedureId\\\":\\\"QF\\\",\\\"procedureName\\\":\\\"严牌前纺\\\",\\\"deviceId\\\":\\\"08\\\",\\\"startTime\\\":1692328320,\\\"endTime\\\":1692946800,\\\"workHours\\\":\\\"171.8\\\",\\\"inputMaterials\\\":[{\\\"materialId\\\":\\\"PT\\\",\\\"materialName\\\":\\\"严牌PT\\\",\\\"amount\\\":\\\"10\\\",\\\"unit\\\":\\\"g/㎡\\\"}],\\\"outputMaterials\\\":[{\\\"materialId\\\":\\\"PS\\\",\\\"materialName\\\":\\\"严牌PS\\\",\\\"amount\\\":\\\"10\\\",\\\"unit\\\":\\\"g/㎡\\\"}],\\\"workers\\\":null}]}\") RETURNING `id`,`id`"}
[2023-08-15 19:47:49]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:47:55]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:47:55]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0.0010031, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:47:55]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:47:55]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0.0020095, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:47:55]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:47:55]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:48:02]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:48:02]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:193]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE end_time < 1692100082 AND `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:48:31]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:48:37]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:48:37]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:48:37]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:48:37]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:48:37]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:48:37]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:48:37]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:48:37]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:193]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:48:44]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:48:44]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:193]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:49:21]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:49:27]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:49:27]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:49:27]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:49:27]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:49:27]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:49:27]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:49:30]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:49:30]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:193]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:49:30]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:199]    trace    {"elapsed": 0, "rows": 4, "sql": "SELECT * FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL LIMIT 20"}
[2023-08-15 19:51:56]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:54:05]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:54:05]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:54:05]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:54:05]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:54:05]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:54:05]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:54:10]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:54:10]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:195]    trace    {"elapsed": 0, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:54:10]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:201]    trace    {"elapsed": 0, "rows": 4, "sql": "SELECT * FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL LIMIT 20"}
[2023-08-15 19:54:24]    [info]    [main.shutdown:48]    apsClient exited...
[2023-08-15 19:54:47]    [debug]    [gorm.io/driver/sqlite.Migrator.HasTable.func1:33]    trace    {"elapsed": 0.0010028, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type='table' AND name=\"schedule_task\""}
[2023-08-15 19:54:47]    [debug]    [gorm.io/gorm/migrator.Migrator.RunWithValue:71]    trace    {"elapsed": 0.0010025, "rows": 3, "sql": "SELECT sql FROM sqlite_master WHERE type IN (\"table\",\"index\") AND tbl_name = \"schedule_task\" AND sql IS NOT NULL order by type = \"table\" desc"}
[2023-08-15 19:54:47]    [debug]    [gorm.io/driver/sqlite.Migrator.ColumnTypes.func1:119]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT * FROM `schedule_task` LIMIT 1"}
[2023-08-15 19:54:47]    [debug]    [gorm.io/driver/sqlite.Migrator.HasIndex.func1:313]    trace    {"elapsed": 0, "rows": -1, "sql": "SELECT count(*) FROM sqlite_master WHERE type = \"index\" AND tbl_name = \"schedule_task\" AND name = \"idx_schedule_task_deleted_at\""}
[2023-08-15 19:54:47]    [info]    [main.main:33]    apsClient start serve...
[2023-08-15 19:54:47]    [info]    [apsClient/nsq.Consume:17]    Consume NewNsqConsumer topic:aps.wangpengfei.scheduleTask
[2023-08-15 19:54:52]    [info]    [apsClient/pkg/contextx.NewContext.func1:44]    192.168.20.120 | GET /v1/task/list?page=1&pageSize=20 | uid:  | &{PageInfo:{Page:1 PageSize:20}}
[2023-08-15 19:54:52]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:195]    trace    {"elapsed": 0.0010002, "rows": 1, "sql": "SELECT count(*) FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL"}
[2023-08-15 19:54:52]    [debug]    [apsClient/model.(*ScheduleTaskSearch).Find:201]    trace    {"elapsed": 0.0009973, "rows": 4, "sql": "SELECT * FROM `schedule_task` WHERE `schedule_task`.`deleted_at` IS NULL LIMIT 20"}
[2023-08-15 19:55:57]    [info]    [main.shutdown:48]    apsClient exited...