Merge branch 'master' into fly
# Conflicts:
# logs/aps-admin.err.log
# logs/aps-admin.info.log
New file |
| | |
| | | [2023-05-30 18:00:10] [error] [main.main:46] listen tcp :8001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. |
| | | [2023-05-30 18:03:20] [error] [main.main:46] 1111listen tcp :8001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. |
| | | [2023-05-30 18:15:02] [error] [aps_admin/model.(*UserSearch).First:196] trace {"error": "record not found", "elapsed": 0.0005063, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '用户名' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-05-30 18:31:12] [error] [aps_admin/model.(*DeviceSearch).First:50] trace {"error": "record not found", "elapsed": 0.0005965, "rows": 0, "sql": "SELECT * FROM `device` ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-30 18:31:12] [error] [aps_admin/model.(*DeviceSearch).Create:84] trace {"error": "Error 1364 (HY000): Field 'id' doesn't have a default value", "elapsed": 0.0010052, "rows": 0, "sql": "INSERT INTO `device` (`name`,`ip`,`account`,`password`) VALUES ('设备名称','设备IP','root账号','$2a$10$MszYytZoKVX6tP1.Rbq6TeY2zTXsIhOEu/U/Cf6CC4XMegsGbmqlS')"} |
| | | [2023-05-30 18:33:16] [error] [aps_admin/model.(*DeviceSearch).First:50] trace {"error": "record not found", "elapsed": 0.0020821, "rows": 0, "sql": "SELECT * FROM `device` ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 14:22:53] [error] [aps_admin/api/v1.(*DeviceApi).Add:36] device! err:&{0 189test 192.168.20.189 basic 123} |
| | | [2023-05-31 14:22:53] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 189test 192.168.20.189 basic 123} |
| | | [2023-05-31 14:27:39] [error] [aps_admin/api/v1.(*DeviceApi).Add:36] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 14:27:39] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 14:33:34] [error] [aps_admin/api/v1.(*DeviceApi).Add:36] device! err:&{0 189test 192.168.20.189 basic 123} |
| | | [2023-05-31 14:33:34] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0005033, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '189test' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 14:33:34] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 189test 192.168.20.189 basic 123} |
| | | [2023-05-31 17:22:08] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0052562, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:22:08] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 17:22:14] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0010507, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:22:14] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 17:23:29] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0005704, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:23:29] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 17:23:39] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.000556, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:23:39] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-05-31 17:23:50] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0005385, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:23:50] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root11} |
| | | [2023-05-31 17:24:00] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0010769, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '111' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:24:00] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 111 设备IP root账号 root11} |
| | | [2023-05-31 17:26:19] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0041733, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '111' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-05-31 17:26:19] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 111 设备IP root账号 root11} |
| | | [2023-05-31 20:01:57] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:59] 获取失败! err:failed to get cluster list request: parse "192.168.20.189:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-05-31 20:03:45] [error] [aps_admin/service.(*ClusterService).GetClusterList:37] 11111111 [ c-lbrzv local] |
| | | [2023-06-01 15:01:28] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:59] 获取失败! err:failed to get cluster list: unexpected status code 405 |
| | | [2023-06-01 15:03:40] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:59] 获取失败! err:failed to get cluster list: unexpected status code 404 |
| | | [2023-06-01 15:58:29] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:59] 获取失败! err:failed to get cluster list: unexpected status code 405 |
| | | [2023-06-01 17:11:34] [error] [aps_admin/api/v1.(*ClusterApi).Examine:81] port: 31835 |
| | | [2023-06-01 18:11:53] [error] [aps_admin/api/v1.(*ClusterApi).Examine:81] port: 30397 |
| | | [2023-06-01 18:12:25] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:59] 获取失败! err:failed to get cluster list: unexpected status code 404 |
| | | [2023-06-01 18:14:02] [error] [aps_admin/api/v1.(*ClusterApi).Examine:81] port: 31681 |
| | | [2023-06-01 18:26:21] [error] [aps_admin/api/v1.(*ClusterApi).Examine:81] port: 0 |
| | | [2023-06-01 18:30:40] [error] [aps_admin/api/v1.(*ClusterApi).Examine:81] port: 30246 |
| | | [2023-06-01 18:47:03] [error] [aps_admin/api/v1.(*BaseApi).Examine:359] port: 0 |
| | | [2023-06-01 19:51:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:359] port: 30272 |
| | | [2023-06-01 19:53:22] [error] [aps_admin/api/v1.(*BaseApi).Examine:359] port: 0 |
| | | [2023-06-02 10:07:46] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0050154, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-02 10:07:46] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-06-02 11:02:58] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0054478, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-02 11:02:58] [error] [aps_admin/service.(*DeviceService).AddDevice:17] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-06-04 19:00:47] [error] [aps_admin/api/v1.(*BaseApi).Examine:359] port: 0 |
| | | [2023-06-04 19:00:47] [error] [aps_admin/api/v1.(*BaseApi).Examine:362] 审核失败! err:no ETCD pods found |
| | | [2023-06-04 19:44:29] [error] [aps_admin/api/v1.(*BaseApi).Examine:359] port: 32287 |
| | | [2023-06-05 10:21:35] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0071569, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-05 10:21:35] [error] [aps_admin/service.(*DeviceService).AddDevice:17] device! err:&{0 设备名称 设备IP root账号 root密码} |
| | | [2023-06-05 11:53:23] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 32622 |
| | | [2023-06-05 12:04:02] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31192 |
| | | [2023-06-05 13:39:12] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 13:39:12] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:failed to create Deployment: deployments.apps "wpf" is forbidden: unable to create new content in namespace wpf because it is being terminated |
| | | [2023-06-05 13:39:47] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 30745 |
| | | [2023-06-05 14:27:03] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31372 |
| | | [2023-06-05 14:30:53] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0010616, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '2' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-05 14:30:53] [error] [aps_admin/service.(*DeviceService).AddDevice:17] device! err:&{0 2 2 2 2} |
| | | [2023-06-05 14:49:56] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31867 |
| | | [2023-06-05 15:22:27] [error] [aps_admin/model.(*DeviceSearch).First:54] trace {"error": "record not found", "elapsed": 0.0005096, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '设备名称' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-05 15:22:27] [error] [aps_admin/service.(*DeviceService).AddDevice:17] device! err:&{0 设备名称 192.168.20.119 root账号 $2a$10$SeKKQpa6BfBL49Q3GmFGIe1MWBPZGCFayUTiT2GAibKxCs4/Lxbr.} |
| | | [2023-06-05 16:32:07] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31587 |
| | | [2023-06-05 16:46:24] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 32571 |
| | | [2023-06-05 17:25:46] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:25:46] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 17:26:37] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:26:37] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 17:32:36] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:32:36] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 17:36:49] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:36:49] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 17:41:42] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:41:42] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 17:50:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 17:50:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:364] 审核失败! err:no ports defined for Service wangpengfei |
| | | [2023-06-05 18:05:57] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 32187 |
| | | [2023-06-05 18:14:13] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31374 |
| | | [2023-06-05 18:27:36] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 0 |
| | | [2023-06-05 18:29:05] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 30343 |
| | | [2023-06-05 18:46:10] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31900 |
| | | [2023-06-05 19:23:39] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 30128 |
| | | [2023-06-05 20:30:49] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 30404 |
| | | [2023-06-05 20:38:00] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 32274 |
| | | [2023-06-05 20:49:32] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31106 |
| | | [2023-06-05 20:59:19] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 31546 |
| | | [2023-06-05 21:10:01] [error] [aps_admin/api/v1.(*BaseApi).Examine:361] port: 32594 |
| | | [2023-06-07 11:22:53] [error] [aps_admin/service.pass:119] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-07 11:22:53] [error] [aps_admin/api/v1.(*BaseApi).Examine:382] port: 0 |
| | | [2023-06-07 11:22:53] [error] [aps_admin/api/v1.(*BaseApi).Examine:385] 审核失败! err:context deadline exceeded |
| | | [2023-06-07 15:51:42] [error] [aps_admin/api/v1.(*BaseApi).Examine:382] port: 0 |
| | | [2023-06-07 15:51:42] [error] [aps_admin/api/v1.(*BaseApi).Examine:385] 审核失败! err:failed to create Deployment: Deployment.apps "wpf1" is invalid: spec.template.spec.containers[0].image: Required value |
| | | [2023-06-07 15:57:18] [error] [aps_admin/api/v1.(*BaseApi).Examine:382] port: 30577 |
| | | [2023-06-07 18:25:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:383] 123123123123123123123123: 192.168.20.118 |
| | | [2023-06-08 11:33:25] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:67] 获取失败! err:failed to get cluster list request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-08 11:33:27] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:67] 获取失败! err:failed to get cluster list request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-08 11:35:12] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:67] 获取失败! err:failed to get cluster list request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-08 11:41:27] [error] [aps_admin/api/v1.(*ClusterApi).GetClusters:67] 获取失败! err:failed to get cluster list request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-08 14:38:44] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 30587 |
| | | [2023-06-08 14:53:32] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-08 14:54:08] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-08 16:03:57] [warn] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:58] trace {"elapsed": 0.2194591, "rows": 14, "sql": "ALTER TABLE `device` MODIFY COLUMN `port` varchar(255) COMMENT '端口号'"} |
| | | [2023-06-08 16:04:59] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0015733, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = 'aly91' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-08 16:04:59] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 aly91 116.62.20.91 root Feiai123~ } |
| | | [2023-06-08 16:07:26] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0006222, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = 'aly21' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-08 16:07:26] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 aly21 121.196.212.21 root Feiai123~ } |
| | | [2023-06-08 16:09:43] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0005294, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = 'aly94' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-08 16:09:43] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 aly94 116.62.232.94 root Feiai123~ 22} |
| | | [2023-06-08 16:48:11] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:49:29] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:52:37] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:53:31] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:55:51] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:56:23] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:57:42] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 16:58:38] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 17:07:54] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 17:22:00] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 17:24:59] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 17:26:31] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 17:27:36] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 18:05:59] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 18:30:55] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 18:32:11] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 18:33:42] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 18:37:37] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 19:39:43] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-08 19:41:11] [error] [aps_admin/service.(*ClusterService).CreateCluster:79] get node command err:failed to get node command: unexpected status code 404 |
| | | [2023-06-08 20:31:38] [warn] [gorm.io/driver/mysql.Migrator.ColumnTypes.func1:204] trace {"elapsed": 0.1552878, "rows": -1, "sql": "SELECT * FROM `user` LIMIT 1"} |
| | | [2023-06-08 20:38:35] [error] [aps_admin/service.(*ClusterService).CreateCluster:108] deploy kubernetes roles err:failed to deploy Kubernetes roles on the remote server: command execution failed: sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run registry.cn-hangzhou.aliyuncs.com/rancher/rancher-agent:v2.5.17 --server https://192.168.20.119:8443 --token f44d79ctncdl6h6c7mbdckl85rvnq9cmxlrxkmkdx62bt2rv64x8pf --ca-checksum 3044e5cd6846cbc8bc2c8221122d84b0e82770766875f288dc81ce2c72f2378e --worker err:Process exited with status 125 |
| | | [2023-06-08 20:39:54] [error] [aps_admin/service.(*ClusterService).CreateCluster:108] deploy kubernetes roles err:failed to deploy Kubernetes roles on the remote server: command execution failed: sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run registry.cn-hangzhou.aliyuncs.com/rancher/rancher-agent:v2.5.17 --server https://192.168.20.119:8443 --token ljzdrm8vhvnbd564qxzpsdhkm494kbljz4kx49x2h4zwz8qs8m2nkd --ca-checksum 3044e5cd6846cbc8bc2c8221122d84b0e82770766875f288dc81ce2c72f2378e --worker err:Process exited with status 125 |
| | | [2023-06-08 20:59:54] [error] [aps_admin/service.(*ClusterService).CreateCluster:92] install docker err:failed to install Docker on the remote server:116.62.232.94 failed to connect to node 116.62.232.94: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain |
| | | [2023-06-09 09:48:47] [error] [aps_admin/service.(*ClusterService).CreateCluster:108] deploy kubernetes roles err:failed to deploy Kubernetes roles on the remote server: command execution failed: sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run registry.cn-hangzhou.aliyuncs.com/rancher/rancher-agent:v2.5.17 --server https://192.168.20.119:8443 --token lrr5ffjz84bn6vpcww2l6q8xprv5p5pktvbchfnz52x6gc5hvsksrv --ca-checksum 3044e5cd6846cbc8bc2c8221122d84b0e82770766875f288dc81ce2c72f2378e --worker err:Process exited with status 125 |
| | | [2023-06-09 09:49:14] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-09 09:50:35] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create cluster, status code: 422 |
| | | [2023-06-09 09:51:34] [error] [aps_admin/service.(*ClusterService).CreateCluster:108] deploy kubernetes roles err:failed to deploy Kubernetes roles on the remote server: command execution failed: sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run registry.cn-hangzhou.aliyuncs.com/rancher/rancher-agent:v2.5.17 --server https://192.168.20.119:8443 --token rwbbfgjgm2vbdmpjl66g7kwjn25hzkxskndv5nwk4n4dkm9jc4v82b --ca-checksum 3044e5cd6846cbc8bc2c8221122d84b0e82770766875f288dc81ce2c72f2378e --worker err:Process exited with status 125 |
| | | [2023-06-09 10:42:07] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0041885, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '内网116' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-09 10:42:07] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 内网116 192.168.20.116 basic 123 100} |
| | | [2023-06-09 10:42:35] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '内网117' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-09 10:42:35] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 内网117 192.168.20.117 basic 123 22} |
| | | [2023-06-09 10:43:10] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0005351, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '内网119' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-09 10:43:10] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 内网119 192.168.20.119 basic 123 22} |
| | | [2023-06-13 10:02:25] [error] [aps_admin/model.Init:10] failed to initialize database, got error dial tcp 172.20.11.128:3306: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. |
| | | [2023-06-13 10:02:25] [error] [main.main:29] model Init err:dial tcp 172.20.11.128:3306: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. |
| | | [2023-06-13 10:20:07] [error] [aps_admin/model.(*MenuSearch).First:200] trace {"error": "record not found", "elapsed": 0.000506, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-06-13 10:20:07] [error] [aps_admin/model.(*MenuSearch).CreateBatch:143] trace {"error": "Error 1062 (23000): Duplicate entry '1' for key 'menu.PRIMARY'", "elapsed": 0.0099959, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`sort`,`icon`,`hidden`,`type`,`create_time`,`update_time`,`id`) VALUES (0,'','','车间管理',1,'home',false,0,1686622807,1686622807,1),(1,'/facilty','','设备管理',2,'object-ungroup',false,1,1686622807,1686622807,2),(1,'/faciltyResource','','设备资源',3,'object-group',false,1,1686622807,1686622807,3),(1,'/oricedureDiagram','','设备工序图',4,'object-group',false,1,1686622807,1686622807,4),(0,'','','生产计划',5,'paper-plane',false,0,1686622807,1686622807,5),(5,'/orderManagement','','订单管理',6,'files-o',false,1,1686622807,1686622807,6),(5,'/plannedProduction','','计划生产',7,'',false,1,1686622807,1686622807,7),(5,'/Scheduling','','生产排程',8,'delicious',false,1,1686622807,1686622807,8),(5,'/productionProcess','','生产工序表',9,'',false,1,1686622807,1686622807,9),(0,'','','基础数据',10,'database',false,0,1686622807,1686622807,10),(10,'/inventory','','BOM管理',11,'film',false,1,1686622807,1686622807,11),(10,'/bomCraft','','产品/工序',12,'sliders',false,1,1686622807,1686622807,12),(10,'/humanResource','','数据配置',13,'',false,1,1686622807,1686622807,13),(10,'/calendar','','生产日历',14,'user',false,1,1686622807,1686622807,14),(10,'/abilityModel','','模板管理',15,'connectdevelop',false,1,1686622807,1686622807,15),(10,'/mouldManagement','','模具管理',16,'',false,1,1686622807,1686622807,16),(10,'/gauge','','检具管理',17,'',false,1,1686622807,1686622807,17),(10,'/transportation','','规范管理',18,'',false,1,1686622807,1686622807,18),(10,'/proccessModel','','工艺模型',19,'',false,1,1686622807,1686622807,19),(10,'/dictionary','','数据配置',20,'',false,1,1686622807,1686622807,20),(0,'','','系统设置',21,'database',false,0,1686622807,1686622807,21),(21,'/system/userManage','','管理员管理',22,'film',false,1,1686622807,1686622807,22)"} |
| | | [2023-06-13 10:20:07] [error] [aps_admin/service.(*InitDBService).InitDB:72] InitDB InitData err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'menu.PRIMARY', records: [0xc0009bc630 0xc0009bc6e0 0xc0009bc790 0xc0009bc840 0xc0009bc8f0 0xc0009bc9a0 0xc0009bca50 0xc0009bcb00 0xc0009bcbb0 0xc0009bcc60 0xc0009bcd10 0xc0009bcdc0 0xc0009bce70 0xc0009bcf20 0xc0009bcfd0 0xc0009bd080 0xc0009bd130 0xc0009bd1e0 0xc0009bd290 0xc0009bd340 0xc0009bd3f0 0xc0009bd4a0] |
| | | [2023-06-13 10:20:07] [error] [aps_admin/initialize.Init:38] initDB err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'menu.PRIMARY', records: [0xc0009bc630 0xc0009bc6e0 0xc0009bc790 0xc0009bc840 0xc0009bc8f0 0xc0009bc9a0 0xc0009bca50 0xc0009bcb00 0xc0009bcbb0 0xc0009bcc60 0xc0009bcd10 0xc0009bcdc0 0xc0009bce70 0xc0009bcf20 0xc0009bcfd0 0xc0009bd080 0xc0009bd130 0xc0009bd1e0 0xc0009bd290 0xc0009bd340 0xc0009bd3f0 0xc0009bd4a0] |
| | | [2023-06-13 10:20:07] [error] [main.main:34] initialize Init err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'menu.PRIMARY', records: [0xc0009bc630 0xc0009bc6e0 0xc0009bc790 0xc0009bc840 0xc0009bc8f0 0xc0009bc9a0 0xc0009bca50 0xc0009bcb00 0xc0009bcbb0 0xc0009bcc60 0xc0009bcd10 0xc0009bcdc0 0xc0009bce70 0xc0009bcf20 0xc0009bcfd0 0xc0009bd080 0xc0009bd130 0xc0009bd1e0 0xc0009bd290 0xc0009bd340 0xc0009bd3f0 0xc0009bd4a0] |
| | | [2023-06-13 10:35:43] [error] [aps_admin/service.getClusters:150] get cluster err:failed to get cluster list request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-13 10:40:59] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0045216, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '119' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-13 10:40:59] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 119 192.168.20.119 basic 123 22} |
| | | [2023-06-13 10:43:28] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0030381, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '116' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-13 10:43:28] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 116 192.168.20.116 basic 123 22} |
| | | [2023-06-13 10:43:38] [error] [aps_admin/model.(*DeviceSearch).First:55] trace {"error": "record not found", "elapsed": 0.0005551, "rows": 0, "sql": "SELECT * FROM `device` WHERE ip = '117' ORDER BY `device`.`id` LIMIT 1"} |
| | | [2023-06-13 10:43:38] [error] [aps_admin/service.(*DeviceService).AddDevice:16] device! err:&{0 117 192.168.20.117 basic 123 22} |
| | | [2023-06-13 10:44:56] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create HTTP request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-13 10:56:34] [error] [aps_admin/service.(*ClusterService).CreateCluster:72] create cluster err:Failed to create HTTP request: parse "192.168.20.119:8443/v3/clusters": first path segment in URL cannot contain colon |
| | | [2023-06-13 11:03:39] [error] [aps_admin/utils.GetClaims:14] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-06-13 11:03:39] [error] [aps_admin/model.(*UserSearch).First:210] trace {"error": "record not found", "elapsed": 0.004199, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = 'fly-test' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-06-13 11:03:39] [error] [aps_admin/model.(*Mysql).CreateUser.func1:24] trace {"error": "Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-test@'%' identified by 'fly-test@Basic2023'' at line 1", "elapsed": 0, "rows": 0, "sql": "create user if not exists fly-test@'%' identified by 'fly-test@Basic2023'"} |
| | | [2023-06-13 11:03:39] [error] [aps_admin/model.(*Mysql).CreateUser.func1:26] create mysql-user err:Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-test@'%' identified by 'fly-test@Basic2023'' at line 1 |
| | | [2023-06-13 11:25:56] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-13 11:25:56] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-13 11:25:56] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-13 11:28:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 32032 |
| | | [2023-06-13 11:31:02] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 30220 |
| | | [2023-06-13 11:36:10] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 31263 |
| | | [2023-06-13 11:37:41] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 31789 |
| | | [2023-06-13 11:54:00] [error] [aps_admin/utils.GetClaims:14] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-06-13 11:54:00] [error] [aps_admin/model.(*UserSearch).First:212] trace {"error": "record not found", "elapsed": 0.0007172, "rows": 0, "sql": "SELECT * FROM `user` WHERE id = 'wenze3' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-06-13 11:54:46] [error] [aps_admin/utils.GetClaims:14] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-06-13 11:54:46] [error] [aps_admin/api/v1.(*BaseApi).DeleteUser:254] 删除失败! err:该用户已经登录,无法删除 |
| | | [2023-06-13 13:33:50] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:24:39] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:24:39] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:24:39] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 15:33:00] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:33:00] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:33:00] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 15:33:55] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:33:55] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:33:55] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 15:41:16] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:41:16] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:41:16] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 15:47:35] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:47:35] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:47:35] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 15:53:03] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 15:53:03] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 15:53:03] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-14 16:03:17] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-14 16:03:17] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-14 16:03:17] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-15 16:01:18] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-15 16:01:18] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-15 16:01:18] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:context deadline exceeded |
| | | [2023-06-15 16:04:44] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 31298 |
| | | [2023-06-15 16:29:32] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-15 16:29:32] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:failed to create Service: Service "wenze3" is invalid: [spec.ports[2].name: Invalid value: "nsqTcp": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.ports[2].nodePort: Duplicate value: 31300] |
| | | [2023-06-15 16:31:28] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-15 16:31:28] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:failed to create Service: Service "wenze3" is invalid: [spec.ports[2].name: Invalid value: "nsqTcp": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.ports[2].nodePort: Duplicate value: 30306] |
| | | [2023-06-15 16:34:17] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-15 16:34:17] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:failed to create Service: Service "wenze3" is invalid: spec.ports[2].nodePort: Duplicate value: 31989 |
| | | [2023-06-15 16:35:30] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 0 |
| | | [2023-06-15 16:35:30] [error] [aps_admin/api/v1.(*BaseApi).Examine:387] 审核失败! err:failed to create Service: Service "wenze3" is invalid: spec.ports[2].nodePort: Duplicate value: 31920 |
| | | [2023-06-15 16:37:48] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 31273 |
| | | [2023-06-15 16:53:39] [error] [aps_admin/api/v1.(*BaseApi).Examine:384] port: 31822 |
| | | [2023-06-19 19:34:53] [error] [aps_admin/service.getClusters:150] get cluster err:failed to get cluster list: Get "https://121.31.232.83:8443:8443/v3/clusters": dial tcp: lookup 121.31.232.83:8443: no such host |
| | | [2023-06-19 20:31:06] [error] [aps_admin/api/v1.(*BaseApi).Examine:405] port: 0 |
| | | [2023-06-19 20:31:06] [error] [aps_admin/api/v1.(*BaseApi).Examine:408] 审核失败! err:Operation cannot be fulfilled on pods "wenze3-5589fd8fb6-nwvts": the object has been modified; please apply your changes to the latest version and try again |
| | | [2023-06-19 20:39:16] [error] [aps_admin/service.pass:226] etcd.NewServiceRegister err:context deadline exceeded |
| | | [2023-06-19 20:39:16] [error] [aps_admin/api/v1.(*BaseApi).Examine:405] port: 0 |
| | | [2023-06-19 20:39:16] [error] [aps_admin/api/v1.(*BaseApi).Examine:408] 审核失败! err:context deadline exceeded |
| | | [2023-06-19 20:42:14] [error] [aps_admin/api/v1.(*BaseApi).Examine:405] port: 32710 |
| | | [2023-06-21 15:06:16] [error] [aps_crm/model.(*MenuSearch).First:200] trace {"error": "record not found", "elapsed": 0.0007204, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-06-21 15:06:16] [error] [aps_crm/model.(*UserSearch).First:220] trace {"error": "record not found", "elapsed": 0.0008966, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = 'admin' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-06-21 15:36:44] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0017341, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:49] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0020244, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:56] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.002863, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:56] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0024232, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:57] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0029844, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:57] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0022299, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:57] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0030413, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:38:57] [error] [aps_crm/model.(*CountrySearch).Create:51] trace {"error": "Error 1062 (23000): Duplicate entry '中国' for key 'name'", "elapsed": 0.0024366, "rows": 0, "sql": "INSERT INTO `country` (`name`) VALUES ('中国')"} |
| | | [2023-06-21 15:53:35] [error] [aps_crm/model.(*CountrySearch).First:122] trace {"error": "record not found", "elapsed": 0.0012382, "rows": 0, "sql": "SELECT * FROM `country` WHERE id = 1 ORDER BY `country`.`id` LIMIT 1"} |
| | | [2023-06-21 15:53:46] [error] [aps_crm/model.(*CountrySearch).First:122] trace {"error": "record not found", "elapsed": 0.0010364, "rows": 0, "sql": "SELECT * FROM `country` WHERE id = 1 ORDER BY `country`.`id` LIMIT 1"} |
| | | [2023-06-21 15:54:58] [error] [aps_crm/model.(*CountrySearch).First:122] trace {"error": "record not found", "elapsed": 0.0009974, "rows": 0, "sql": "SELECT * FROM `country` WHERE id = 1 ORDER BY `country`.`id` LIMIT 1"} |
| | | [2023-06-21 15:56:58] [error] [aps_crm/model.(*CountrySearch).First:122] trace {"error": "record not found", "elapsed": 0.0026063, "rows": 0, "sql": "SELECT * FROM `country` WHERE id = 1 ORDER BY `country`.`id` LIMIT 1"} |
| | | [2023-06-21 15:57:13] [error] [aps_crm/model.(*CountrySearch).First:122] trace {"error": "record not found", "elapsed": 0.0005088, "rows": 0, "sql": "SELECT * FROM `country` WHERE id = 1 ORDER BY `country`.`id` LIMIT 1"} |
| | | [2023-06-25 10:31:02] [error] [aps_crm/model.(*ProvinceSearch).UpdateList:89] trace {"error": "WHERE conditions required", "elapsed": 0.0005567, "rows": 0, "sql": "UPDATE `province` SET `country_id`=3"} |
| | | [2023-06-25 10:52:26] [error] [aps_crm/model.(*CountrySearch).FindAll:74] trace {"error": "province: unsupported relations for schema Country", "elapsed": 0.0008028, "rows": 2, "sql": "SELECT * FROM `country`"} |
| | | [2023-06-25 11:29:09] [error] [aps_crm/model.(*CitySearch).Create:46] trace {"error": "Error 1054 (42S22): Unknown column 'province_id' in 'field list'", "elapsed": 0.0015733, "rows": 0, "sql": "INSERT INTO `city` (`name`,`province_id`) VALUES ('北京',0)"} |
| | | [2023-06-25 11:30:56] [error] [aps_crm/model.(*CitySearch).Create:46] trace {"error": "Error 1054 (42S22): Unknown column 'province_id' in 'field list'", "elapsed": 0.0015465, "rows": 0, "sql": "INSERT INTO `city` (`name`,`province_id`) VALUES ('北京',0)"} |
| | | [2023-06-25 11:43:30] [error] [aps_crm/model.(*ProvinceSearch).First:95] trace {"error": "record not found", "elapsed": 0.0010742, "rows": 0, "sql": "SELECT * FROM `province` WHERE id = 100 ORDER BY `province`.`id` LIMIT 1"} |
| | | [2023-06-25 11:45:04] [error] [aps_crm/model.(*CountrySearch).FindAll:75] trace {"error": "City: unsupported relations for schema Country", "elapsed": 0.0025641, "rows": 2, "sql": "SELECT * FROM `country`"} |
| | | [2023-06-25 17:33:14] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1146 (42S02): Table 'aps_crm.contact' doesn't exist", "elapsed": 0.0012363, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('string','',0,'string','string',0,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:34:24] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1146 (42S02): Table 'aps_crm.contact' doesn't exist", "elapsed": 0.00114, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:36:30] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1146 (42S02): Table 'aps_crm.contact' doesn't exist", "elapsed": 0.0016653, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:37:41] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1054 (42S22): Unknown column 'is_first' in 'field list'", "elapsed": 0.0017984, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:38:08] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1054 (42S22): Unknown column 'is_first' in 'field list'", "elapsed": 0.0016086, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:39:00] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1054 (42S22): Unknown column 'is_first' in 'field list'", "elapsed": 0.0016683, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:41:33] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1292 (22007): Incorrect datetime value: 'string' for column 'birthday' at row 1", "elapsed": 0.0026264, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','string','string','string',3,1,1,20)"} |
| | | [2023-06-25 17:42:36] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1292 (22007): Incorrect datetime value: '' for column 'birthday' at row 1", "elapsed": 0.0026709, "rows": 0, "sql": "INSERT INTO `contact` (`name`,`number`,`company_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`) VALUES ('test','',0,'string','string',1,true,'string','','string','string',3,1,1,20)"} |
| | | [2023-06-26 15:31:23] [error] [aps_crm/model.(*CitySearch).Updates:81] trace {"error": "WHERE conditions required", "elapsed": 0.0005428, "rows": 0, "sql": "UPDATE `city` SET `color`='123',`turn`=11"} |
| | | [2023-06-26 15:33:18] [error] [aps_crm/model.(*CitySearch).Updates:81] trace {"error": "WHERE conditions required", "elapsed": 0.0010696, "rows": 0, "sql": "UPDATE `city` SET `color`='123',`turn`=11"} |
| | | [2023-06-26 15:35:23] [error] [aps_crm/model.(*CitySearch).Updates:82] trace {"error": "WHERE conditions required", "elapsed": 0.0005346, "rows": 0, "sql": "UPDATE `city` SET `color`='123',`turn`=11"} |
| | | [2023-06-26 15:36:00] [error] [aps_crm/model.(*CitySearch).Updates:82] trace {"error": "WHERE conditions required", "elapsed": 0.0005087, "rows": 0, "sql": "UPDATE `city` SET `color`='123',`turn`=11"} |
| | | [2023-06-27 11:06:58] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.000531, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:10:26] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0005344, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:22:43] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:24:39] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0005072, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:27:27] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0005447, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:28:04] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.000532, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:29:47] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0005419, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:30:26] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0005273, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 11:34:08] [error] [aps_crm/model.(*CitySearch).Delete:54] trace {"error": "WHERE conditions required", "elapsed": 0.0021733, "rows": 0, "sql": "DELETE FROM `city`"} |
| | | [2023-06-27 15:00:52] [error] [aps_crm/model.(*ContactSearch).First:100] trace {"error": "record not found", "elapsed": 0.0015938, "rows": 0, "sql": "SELECT * FROM `contact` WHERE id = 12 AND `contact`.`deleted_at` IS NULL ORDER BY `contact`.`id` LIMIT 1"} |
| | | [2023-06-27 15:01:01] [error] [aps_crm/model.(*ContactSearch).Delete:70] trace {"error": "WHERE conditions required", "elapsed": 0.0005284, "rows": 0, "sql": "UPDATE `contact` SET `deleted_at`='2023-06-27 15:01:01.78' WHERE `contact`.`deleted_at` IS NULL"} |
| | | [2023-06-27 15:10:12] [error] [aps_crm/model.(*ContactSearch).First:100] trace {"error": "record not found", "elapsed": 0.001272, "rows": 0, "sql": "SELECT * FROM `contact` WHERE id = 1 AND `contact`.`deleted_at` IS NULL ORDER BY `contact`.`id` LIMIT 1"} |
| | | [2023-06-27 16:35:34] [error] [aps_crm/model.(*ContactSearch).First:100] trace {"error": "record not found", "elapsed": 0.0009159, "rows": 0, "sql": "SELECT * FROM `contact` WHERE id = 1 AND `contact`.`deleted_at` IS NULL ORDER BY `contact`.`id` LIMIT 1"} |
| | | [2023-06-28 10:42:18] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1146 (42S02): Table 'aps_crm.client' doesn't exist", "elapsed": 0.0025819, "rows": 0, "sql": "INSERT INTO `client` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('string','string',1,0,0,1,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','0000-00-00 00:00:00',0,0,0,0,'','2023-06-28 10:42:18.885','2023-06-28 10:42:18.885',NULL)"} |
| | | [2023-06-28 10:43:37] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1146 (42S02): Table 'aps_crm.client' doesn't exist", "elapsed": 0.0027251, "rows": 0, "sql": "INSERT INTO `client` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('string','string',1,0,0,1,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','0000-00-00 00:00:00',0,0,0,0,'','2023-06-28 10:43:37.11','2023-06-28 10:43:37.11',NULL)"} |
| | | [2023-06-28 10:44:12] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'registration_time' at row 1", "elapsed": 0.003669, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('string','string',1,0,0,1,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','0000-00-00 00:00:00',0,0,0,0,'','2023-06-28 10:44:12.577','2023-06-28 10:44:12.577',NULL)"} |
| | | [2023-06-28 14:16:00] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1062 (23000): Duplicate entry '这仅仅是一个测试' for key 'name'", "elapsed": 0.0040316, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这仅仅是一个测试','string',1,0,0,0,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','1970-01-01 08:00:00',0,0,0,0,'','2023-06-28 14:16:00.318','2023-06-28 14:16:00.318',NULL)"} |
| | | [2023-06-28 14:25:31] [error] [aps_crm/model.(*ClientSearch).First:91] trace {"error": "record not found", "elapsed": 0.0016111, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 12 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-06-28 14:36:34] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1062 (23000): Duplicate entry '这仅仅是一个测试' for key 'name'", "elapsed": 0.0049793, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这仅仅是一个测试','string',1,0,0,0,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','1970-01-01 08:00:00',0,0,0,0,'','2023-06-28 14:36:34.816','2023-06-28 14:36:34.816',NULL)"} |
| | | [2023-06-28 14:37:21] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contact: unsupported relations for schema Client", "elapsed": 0.0018183, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:38:31] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contacts: unsupported relations for schema Client", "elapsed": 0.0028328, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:39:23] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contacts: unsupported relations for schema Client", "elapsed": 0.0036906, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:44:06] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contacts: unsupported relations for schema Client", "elapsed": 0.00205, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:44:41] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contact: unsupported relations for schema Client", "elapsed": 0.0025056, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:46:21] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contact: unsupported relations for schema Client", "elapsed": 0.0026419, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 14:46:42] [error] [aps_crm/model.(*ClientSearch).Find:98] trace {"error": "contacts: unsupported relations for schema Client", "elapsed": 0.0026226, "rows": 3, "sql": "SELECT * FROM `clients` WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-06-28 15:43:57] [error] [aps_crm/model.(*ContactSearch).FindAll:80] trace {"error": "Country: unsupported relations for schema Contact", "elapsed": 0.0027306, "rows": 14, "sql": "SELECT * FROM `contacts` WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 15:44:15] [error] [aps_crm/model.(*ContactSearch).FindAll:80] trace {"error": "Country: unsupported relations for schema Contact", "elapsed": 0.0018499, "rows": 14, "sql": "SELECT * FROM `contacts` WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 15:48:57] [error] [aps_crm/model.(*ContactSearch).FindAll:80] trace {"error": "CountryId: unsupported relations for schema Contact", "elapsed": 0.0018594, "rows": 14, "sql": "SELECT * FROM `contacts` WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:09:18] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`aps_crm`.`contacts`, CONSTRAINT `fk_clients_contacts` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`))", "elapsed": 0.0024561, "rows": 0, "sql": "INSERT INTO `contacts` (`name`,`number`,`client_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这还是一个测试','string',0,'string','string',12,true,'string','1970-01-01 16:00:00','string','string',0,0,0,0,'2023-06-28 17:09:18.959','2023-06-28 17:09:18.959',NULL)"} |
| | | [2023-06-28 17:10:04] [error] [aps_crm/model.(*ContactSearch).Create:58] trace {"error": "Error 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`aps_crm`.`contacts`, CONSTRAINT `fk_clients_contacts` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`))", "elapsed": 0.0032324, "rows": 0, "sql": "INSERT INTO `contacts` (`name`,`number`,`client_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这还是一个测试','string',0,'string','string',12,true,'string','1970-01-01 16:00:00','string','string',0,0,0,0,'2023-06-28 17:10:04.461','2023-06-28 17:10:04.461',NULL)"} |
| | | [2023-06-28 17:11:43] [error] [aps_crm/model.(*ContactSearch).UpdateByMap:109] trace {"error": "WHERE conditions required", "elapsed": 0.0005544, "rows": 0, "sql": "UPDATE `contacts` SET `isFirst`=false,`updated_at`='2023-06-28 17:11:43.889' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:11:59] [error] [aps_crm/model.(*ContactSearch).UpdateByMap:109] trace {"error": "WHERE conditions required", "elapsed": 0.0010541, "rows": 0, "sql": "UPDATE `contacts` SET `isFirst`=false,`updated_at`='2023-06-28 17:11:59.912' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:13:00] [error] [aps_crm/model.(*ContactSearch).UpdateByMap:109] trace {"error": "WHERE conditions required", "elapsed": 0.001093, "rows": 0, "sql": "UPDATE `contacts` SET `isFirst`=false,`updated_at`='2023-06-28 17:13:00.291' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:14:09] [error] [aps_crm/model.(*ContactSearch).UpdateByMap:109] trace {"error": "WHERE conditions required", "elapsed": 0, "rows": 0, "sql": "UPDATE `contacts` SET `isFirst`=false,`updated_at`='2023-06-28 17:14:09.657' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:14:56] [error] [aps_crm/model.(*ContactSearch).UpdateByMap:113] trace {"error": "Error 1054 (42S22): Unknown column 'isFirst' in 'field list'", "elapsed": 0.0012111, "rows": 0, "sql": "UPDATE `contacts` SET `isFirst`=false,`updated_at`='2023-06-28 17:14:56.118' WHERE client_id = 5 AND `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:23:27] [error] [aps_crm/model.(*ContactSearch).Create:62] trace {"error": "Error 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`aps_crm`.`contacts`, CONSTRAINT `fk_clients_contacts` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`))", "elapsed": 0.0027926, "rows": 0, "sql": "INSERT INTO `contacts` (`name`,`number`,`client_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这还是一个测试','string',0,'string','string',12,true,'string','1970-01-01 16:00:00','string','string',0,0,0,0,'2023-06-28 17:23:27.45','2023-06-28 17:23:27.45',NULL)"} |
| | | [2023-06-28 17:24:00] [error] [aps_crm/model.(*ContactSearch).Create:62] trace {"error": "Error 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`aps_crm`.`contacts`, CONSTRAINT `fk_clients_contacts` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`))", "elapsed": 0.0061602, "rows": 0, "sql": "INSERT INTO `contacts` (`name`,`number`,`client_id`,`position`,`phone`,`member_id`,`is_first`,`wechat`,`birthday`,`email`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这还是一个测试','string',0,'string','string',12,true,'string','1970-01-01 16:00:00','string','string',0,0,0,0,'2023-06-28 17:24:00.185','2023-06-28 17:24:00.185',NULL)"} |
| | | [2023-06-28 17:37:42] [error] [aps_crm/model.(*ContactSearch).Update:67] trace {"error": "WHERE conditions required", "elapsed": 0.0005442, "rows": 0, "sql": "UPDATE `contacts` SET `name`='这还是一个测试',`number`='string',`client_id`=5,`position`='string',`phone`='string',`member_id`=12,`is_first`=true,`wechat`='string',`birthday`='1970-01-01 16:00:00',`email`='string',`desc`='string',`updated_at`='2023-06-28 17:37:42.529' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:38:43] [error] [aps_crm/model.(*ContactSearch).Update:67] trace {"error": "WHERE conditions required", "elapsed": 0.0010533, "rows": 0, "sql": "UPDATE `contacts` SET `name`='这还是一个测试',`number`='string',`client_id`=5,`position`='string',`phone`='string',`member_id`=12,`is_first`=true,`wechat`='string',`birthday`='1970-01-01 16:00:00',`email`='string',`desc`='string',`updated_at`='2023-06-28 17:38:43.585' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:39:57] [error] [aps_crm/model.(*ContactSearch).Update:67] trace {"error": "WHERE conditions required", "elapsed": 0.0009104, "rows": 0, "sql": "UPDATE `contacts` SET `name`='这还是一个测试',`number`='string',`client_id`=5,`position`='string',`phone`='string',`member_id`=12,`is_first`=true,`wechat`='string',`birthday`='1970-01-01 16:00:00',`email`='string',`desc`='string',`updated_at`='2023-06-28 17:39:57.729' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:40:37] [error] [aps_crm/model.(*ContactSearch).Update:67] trace {"error": "WHERE conditions required", "elapsed": 0.0009064, "rows": 0, "sql": "UPDATE `contacts` SET `name`='这还是一个测试',`number`='string',`client_id`=5,`position`='string',`phone`='string',`member_id`=12,`is_first`=true,`wechat`='string',`birthday`='1970-01-01 16:00:00',`email`='string',`desc`='string',`updated_at`='2023-06-28 17:40:37.561' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:44:13] [error] [aps_crm/model.(*ContactSearch).Update:67] trace {"error": "WHERE conditions required", "elapsed": 0.000541, "rows": 0, "sql": "UPDATE `contacts` SET `name`='这还是一个测试',`number`='string',`client_id`=5,`position`='string',`phone`='string',`member_id`=12,`is_first`=true,`wechat`='string',`birthday`='1970-01-01 16:00:00',`email`='string',`desc`='string',`updated_at`='2023-06-28 17:44:13.628' WHERE `contacts`.`deleted_at` IS NULL"} |
| | | [2023-06-28 17:47:39] [error] [aps_crm/model.(*ClientSearch).Create:60] trace {"error": "Error 1062 (23000): Duplicate entry 'string' for key 'name'", "elapsed": 0.0048814, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('string','string',12,0,0,0,12,0,'string','string','1970-01-01 08:00:00','1970-01-01 08:00:00',0,0,0,0,'','1970-01-01 08:00:00',0,0,0,0,'','2023-06-28 17:47:39.901','2023-06-28 17:47:39.901',NULL)"} |
| | | [2023-06-29 11:40:31] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0034817, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 11:40:32] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0031771, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 11:40:32] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0030861, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 11:40:33] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0034967, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 11:40:33] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0025038, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 11:40:33] [error] [aps_crm/model.(*ClientStatusSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '什么客户' for key 'name'", "elapsed": 0.0024172, "rows": 0, "sql": "INSERT INTO `client_status` (`name`) VALUES ('什么客户')"} |
| | | [2023-06-29 15:19:13] [error] [aps_crm/model.(*ClientStatusSearch).First:86] trace {"error": "record not found", "elapsed": 0.0005073, "rows": 0, "sql": "SELECT * FROM `client_status` WHERE id = 14 ORDER BY `client_status`.`id` LIMIT 1"} |
| | | [2023-06-29 15:24:23] [error] [aps_crm/model.(*ClientTypeSearch).First:86] trace {"error": "record not found", "elapsed": 0.0005318, "rows": 0, "sql": "SELECT * FROM `client_type` WHERE id = 110 ORDER BY `client_type`.`id` LIMIT 1"} |
| | | [2023-06-29 16:17:34] [error] [aps_crm/model.(*ClientOriginSearch).Create:44] trace {"error": "Error 1062 (23000): Duplicate entry '蟹老板' for key 'name'", "elapsed": 0.0029311, "rows": 0, "sql": "INSERT INTO `client_origin` (`name`) VALUES ('蟹老板')"} |
| | | [2023-06-29 16:17:34] [error] [aps_crm/model.(*ClientOriginSearch).Create:44] trace {"error": "Error 1062 (23000): Duplicate entry '蟹老板' for key 'name'", "elapsed": 0.0032711, "rows": 0, "sql": "INSERT INTO `client_origin` (`name`) VALUES ('蟹老板')"} |
| | | [2023-06-29 20:09:48] [error] [aps_crm/model.(*ClientTypeSearch).First:86] trace {"error": "record not found", "elapsed": 0.0011122, "rows": 0, "sql": "SELECT * FROM `client_type` WHERE id = 5 ORDER BY `client_type`.`id` LIMIT 1"} |
| | | [2023-06-30 11:44:26] [error] [aps_crm/model.(*IndustrySearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '测试' for key 'name'", "elapsed": 0.002451, "rows": 0, "sql": "INSERT INTO `industry` (`name`) VALUES ('测试')"} |
| | | [2023-06-30 14:55:56] [error] [aps_crm/model.(*EnterpriseNatureSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '测试企业' for key 'name'", "elapsed": 0.0028795, "rows": 0, "sql": "INSERT INTO `enterprise_nature` (`name`) VALUES ('测试企业')"} |
| | | [2023-06-30 16:50:42] [error] [aps_crm/model.(*RegisteredCapitalSearch).Updates:73] trace {"error": "Error 1062 (23000): Duplicate entry 'string2' for key 'name'", "elapsed": 0.0017808, "rows": 0, "sql": "UPDATE `registered_capital` SET `name`='string2' WHERE id = 7"} |
| | | [2023-07-03 11:09:17] [error] [aps_crm/model.(*EnterpriseScaleSearch).Find:63] trace {"error": "record not found", "elapsed": 0.0011696, "rows": 0, "sql": "SELECT * FROM `enterprise_scale` WHERE id = 10 ORDER BY `enterprise_scale`.`id` LIMIT 1"} |
| | | [2023-07-03 11:09:19] [error] [aps_crm/model.(*EnterpriseScaleSearch).Find:63] trace {"error": "record not found", "elapsed": 0.0005372, "rows": 0, "sql": "SELECT * FROM `enterprise_scale` WHERE id = 11 ORDER BY `enterprise_scale`.`id` LIMIT 1"} |
| | | [2023-07-03 11:09:22] [error] [aps_crm/model.(*EnterpriseScaleSearch).Find:63] trace {"error": "record not found", "elapsed": 0.0005098, "rows": 0, "sql": "SELECT * FROM `enterprise_scale` WHERE id = 12 ORDER BY `enterprise_scale`.`id` LIMIT 1"} |
| | | [2023-07-03 11:19:14] [error] [aps_crm/model.(*EnterpriseScaleSearch).Create:46] trace {"error": "Error 1062 (23000): Duplicate entry '傻逼' for key 'name'", "elapsed": 0.0020095, "rows": 0, "sql": "INSERT INTO `enterprise_scale` (`name`) VALUES ('傻逼')"} |
| | | [2023-07-03 11:20:04] [error] [aps_crm/model.(*EnterpriseScaleSearch).Find:63] trace {"error": "record not found", "elapsed": 0.0005126, "rows": 0, "sql": "SELECT * FROM `enterprise_scale` WHERE id = 4 ORDER BY `enterprise_scale`.`id` LIMIT 1"} |
| | | [2023-07-04 10:59:56] [error] [aps_crm/model.(*SalesLeadsSearch).Create:79] trace {"error": "Error 1146 (42S02): Table 'aps_crm.sales_leads' doesn't exist", "elapsed": 0.0034692, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这是一个客户','LEA50','string','string','string',110,112,'1','string',0,0,0,0,'2023-07-04 10:59:56.539','2023-07-04 10:59:56.539',NULL)"} |
| | | [2023-07-04 11:04:41] [error] [aps_crm/model.(*SalesLeadsSearch).Update:84] trace {"error": "WHERE conditions required", "elapsed": 0.0022112, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='string',`contact_phone`='string',`contact_position`='string',`sales_sources_id`=110,`member_id`=120,`sales_status`='1',`desc`='123123123',`updated_at`='2023-07-04 11:04:41.981' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-04 11:05:21] [error] [aps_crm/model.(*SalesLeadsSearch).Update:84] trace {"error": "WHERE conditions required", "elapsed": 0.0007035, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='string',`contact_phone`='string',`contact_position`='string',`sales_sources_id`=110,`member_id`=120,`sales_status`='1',`desc`='123123123',`updated_at`='2023-07-04 11:05:21.227' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-04 11:06:05] [error] [aps_crm/model.(*SalesLeadsSearch).Update:84] trace {"error": "WHERE conditions required", "elapsed": 0.0009636, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='string',`contact_phone`='string',`contact_position`='string',`sales_sources_id`=110,`member_id`=120,`sales_status`='1',`desc`='123123123',`updated_at`='2023-07-04 11:06:05.259' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-04 11:12:32] [error] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:59] trace {"error": "Error 1062 (23000): Duplicate entry '这是一个客户' for key 'name'", "elapsed": 0.0045154, "rows": 0, "sql": "ALTER TABLE `sales_leads` MODIFY COLUMN `name` varchar(255) UNIQUE COMMENT '公司名称'"} |
| | | [2023-07-04 11:12:32] [error] [main.main:29] model Init err:Error 1062 (23000): Duplicate entry '这是一个客户' for key 'name' |
| | | [2023-07-04 11:13:13] [error] [aps_crm/model.(*SalesLeadsSearch).Create:79] trace {"error": "Error 1062 (23000): Duplicate entry '这是一个客户' for key 'name'", "elapsed": 0.003706, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('这是一个客户','LEA50','string','string','string',110,112,'1','string',0,0,0,0,'2023-07-04 11:13:13.402','2023-07-04 11:13:13.402',NULL)"} |
| | | [2023-07-04 13:46:36] [error] [aps_crm/model.(*SalesSourcesSearch).Create:46] trace {"error": "Error 1146 (42S02): Table 'aps_crm.sales_sources' doesn't exist", "elapsed": 0.0014411, "rows": 0, "sql": "INSERT INTO `sales_sources` (`name`) VALUES ('电话来访')"} |
| | | [2023-07-04 16:19:59] [error] [aps_crm/model.(*ClientSearch).First:91] trace {"error": "record not found", "elapsed": 0.0036884, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 110 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-04 16:20:29] [error] [aps_crm/model.(*ClientSearch).First:91] trace {"error": "record not found", "elapsed": 0.0012979, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 110 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-04 16:50:20] [error] [aps_crm/model.(*ClientSearch).First:91] trace {"error": "record not found", "elapsed": 0.0011865, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 8 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-04 16:57:58] [error] [aps_crm/model.(*ClientSearch).First:91] trace {"error": "record not found", "elapsed": 0.0031332, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 8 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-04 16:58:50] [error] [aps_crm/model.(*FollowRecordSearch).Update:132] trace {"error": "WHERE conditions required", "elapsed": 0.0009061, "rows": 0, "sql": "UPDATE `follow_records` SET `client_id`=3,`member_id`=110,`number`='LXJL371',`contact_id`=32,`topic`='string',`sales_leads_id`=3,`follow_time`='1970-01-01 08:00:00',`next_follow_time`='1970-01-01 08:00:00',`purpose`='string',`content`='string',`updated_at`='2023-07-04 16:58:50.977' WHERE `follow_records`.`deleted_at` IS NULL"} |
| | | [2023-07-04 17:00:53] [error] [aps_crm/model.(*FollowRecordSearch).Update:132] trace {"error": "WHERE conditions required", "elapsed": 0.0009347, "rows": 0, "sql": "UPDATE `follow_records` SET `client_id`=3,`member_id`=110,`number`='LXJL371',`contact_id`=32,`topic`='string',`sales_leads_id`=3,`follow_time`='1970-01-01 08:00:00',`next_follow_time`='1970-01-01 08:00:00',`purpose`='string',`content`='string',`updated_at`='2023-07-04 17:00:53.907' WHERE `follow_records`.`deleted_at` IS NULL"} |
| | | [2023-07-04 17:01:37] [error] [aps_crm/model.(*FollowRecordSearch).Update:132] trace {"error": "WHERE conditions required", "elapsed": 0.0005444, "rows": 0, "sql": "UPDATE `follow_records` SET `client_id`=3,`member_id`=110,`number`='LXJL371',`contact_id`=32,`topic`='string',`sales_leads_id`=3,`follow_time`='1970-01-01 08:00:00',`next_follow_time`='1970-01-01 08:00:00',`purpose`='string',`content`='string',`updated_at`='2023-07-04 17:01:37.026' WHERE `follow_records`.`deleted_at` IS NULL"} |
| | | [2023-07-04 17:04:51] [error] [aps_crm/model.(*FollowRecordSearch).Update:132] trace {"error": "WHERE conditions required", "elapsed": 0.0005238, "rows": 0, "sql": "UPDATE `follow_records` SET `client_id`=3,`member_id`=110,`number`='LXJL371',`contact_id`=32,`topic`='string',`sales_leads_id`=3,`follow_time`='1970-01-01 08:00:00',`next_follow_time`='1970-01-01 08:00:00',`purpose`='string',`content`='string',`updated_at`='2023-07-04 17:04:51.636' WHERE `follow_records`.`deleted_at` IS NULL"} |
| | | [2023-07-06 13:52:06] [error] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:59] trace {"error": "Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length", "elapsed": 0.0005897, "rows": 0, "sql": "ALTER TABLE `client_origin` MODIFY COLUMN `name` longtext"} |
| | | [2023-07-06 13:52:06] [error] [main.main:29] model Init err:Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length |
| | | [2023-07-06 13:52:52] [error] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:59] trace {"error": "Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length", "elapsed": 0.0007521, "rows": 0, "sql": "ALTER TABLE `client_origin` MODIFY COLUMN `name` longtext"} |
| | | [2023-07-06 13:52:52] [error] [main.main:29] model Init err:Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length |
| | | [2023-07-06 13:55:26] [error] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:59] trace {"error": "Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length", "elapsed": 0.0007354, "rows": 0, "sql": "ALTER TABLE `client_level` MODIFY COLUMN `name` longtext"} |
| | | [2023-07-06 13:55:26] [error] [main.main:29] model Init err:Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length |
| | | [2023-07-10 11:06:33] [error] [aps_crm/model.(*PossibilitySearch).Create:46] trace {"error": "Error 1146 (42S02): Table 'aps_crm.possibility' doesn't exist", "elapsed": 0.0032687, "rows": 0, "sql": "INSERT INTO `possibility` (`name`) VALUES ('10')"} |
| | | [2023-07-10 20:54:43] [error] [aps_crm/model.(*SubOrderSearch).Create:45] trace {"error": "Error 1146 (42S02): Table 'aps_crm.sub_order' doesn't exist", "elapsed": 0.001705, "rows": 0, "sql": "INSERT INTO `sub_order` (`client_id`,`member_id`,`master_order_id`,`number`,`created_at`,`updated_at`,`deleted_at`) VALUES (11,110,1,'AC6521','2023-07-10 20:54:43.768','2023-07-10 20:54:43.768',NULL)"} |
| | | [2023-07-11 10:43:59] [error] [gorm.io/gorm/migrator.Migrator.AutoMigrate:104] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", Products:[]model.Product(nil), Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field Products: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 10:43:59] [error] [gorm.io/gorm/migrator.Migrator.CreateTable:198] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", Products:[]model.Product(nil), Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field Products: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 10:43:59] [error] [main.main:29] model Init err:invalid field found for struct aps_crm/model.SubOrder's field Products: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:31:58] [error] [gorm.io/gorm/migrator.Migrator.AutoMigrate:104] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:31:58] [error] [gorm.io/gorm/migrator.Migrator.CreateTable:198] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:31:58] [error] [main.main:29] model Init err:invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:32:32] [error] [gorm.io/gorm/migrator.Migrator.AutoMigrate:104] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:32:32] [error] [gorm.io/gorm/migrator.Migrator.CreateTable:198] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:32:32] [error] [main.main:29] model Init err:invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:33:55] [error] [gorm.io/gorm/migrator.Migrator.AutoMigrate:104] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:33:55] [error] [gorm.io/gorm/migrator.Migrator.CreateTable:198] failed to parse value model.SubOrder{Id:0, ClientId:0, MemberId:0, MasterOrderId:0, Number:"", ProductOrder:model.ProductOrder{Id:0, Products:[]model.Product(nil)}, Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}, got error invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-11 11:33:55] [error] [main.main:29] model Init err:invalid field found for struct aps_crm/model.SubOrder's field ProductOrder: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-12 15:23:10] [error] [aps_crm/model.(*ContractSearch).Create:46] trace {"error": "Error 1146 (42S02): Table 'aps_crm.contract' doesn't exist", "elapsed": 0.003547, "rows": 0, "sql": "INSERT INTO `contract` (`client_id`,`member_id`,`number`,`quotation_id`,`status_id`,`file`) VALUES (11,11,'ZDYB02-2',0,0,'string')"} |
| | | [2023-07-13 10:55:49] [error] [aps_crm/model.(*ServiceContractSearch).FindAll:80] trace {"error": ": unsupported relations for schema ServiceContract", "elapsed": 0.001442, "rows": 2, "sql": "SELECT * FROM `service_contract`"} |
| | | [2023-07-13 10:57:45] [error] [aps_crm/model.(*ServiceContractSearch).FindAll:80] trace {"error": ": unsupported relations for schema ServiceContract", "elapsed": 0.0011591, "rows": 2, "sql": "SELECT * FROM `service_contract`"} |
| | | [2023-07-13 14:11:03] [error] [aps_crm/model.(*ServiceFollowupSearch).Create:53] trace {"error": "Error 1146 (42S02): Table 'aps_crm.service_followup' doesn't exist", "elapsed": 0.0024191, "rows": 0, "sql": "INSERT INTO `service_followup` (`client_id`,`number`,`contact_id`,`service_id`,`member_id`,`plan_id`,`satisfaction`,`timely_rate`,`solve_rate`,`is_visit`,`old_member_id`,`remark`,`file`) VALUES (0,'HF21',0,0,110,0,0,0,0,0,0,'string','string')"} |
| | | [2023-07-13 15:00:16] [error] [aps_crm/model.(*CustomerServiceSheetSearch).Create:46] trace {"error": "Error 1146 (42S02): Table 'aps_crm.customer_service_sheet' doesn't exist", "elapsed": 0.0020622, "rows": 0, "sql": "INSERT INTO `customer_service_sheet` (`member_id`,`number`,`service_mode`,`priority`,`handle_status`,`created_at`,`updated_at`,`deleted_at`) VALUES (110,'HF30',0,0,0,'2023-07-13 15:00:16.507','2023-07-13 15:00:16.507',NULL)"} |
| | | [2023-07-13 16:51:08] [error] [aps_crm/model.(*ServiceFeeManageSearch).Create:51] trace {"error": "Error 1146 (42S02): Table 'aps_crm.service_fee_manage' doesn't exist", "elapsed": 0.0153005, "rows": 0, "sql": "INSERT INTO `service_fee_manage` (`client_id`,`member_id`,`latest_date`,`remark`,`file`,`created_at`,`updated_at`,`deleted_at`) VALUES (11,11,'1970-01-01 08:00:00','string','string','2023-07-13 16:51:08.533','2023-07-13 16:51:08.533',NULL)"} |
| | | [2023-07-13 17:00:44] [error] [aps_crm/model.(*ServiceFeeManageSearch).Update:56] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0027936, "rows": 0, "sql": "UPDATE `service_fee_manage` SET `id`=1,`client_id`=11,`member_id`=11,`latest_date`='1970-01-01 08:00:00',`remark`='string',`file`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:00:44.246',`deleted_at`=NULL WHERE id = 1 AND `service_fee_manage`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:01:15] [error] [aps_crm/model.(*ServiceFeeManageSearch).Update:56] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0022256, "rows": 0, "sql": "UPDATE `service_fee_manage` SET `id`=1,`client_id`=11,`member_id`=11,`latest_date`='1970-01-01 08:00:00',`remark`='string',`file`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:01:15.183',`deleted_at`=NULL WHERE id = 1 AND `service_fee_manage`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:08:23] [error] [aps_crm/model.(*ServiceFeeManageSearch).Update:56] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0017581, "rows": 0, "sql": "UPDATE `service_fee_manage` SET `id`=1,`client_id`=11,`member_id`=11,`latest_date`='1970-01-01 08:00:00',`remark`='string',`file`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:08:23.099',`deleted_at`=NULL WHERE id = 1 AND `service_fee_manage`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:48:17] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'registration_time' at row 1", "elapsed": 0.0058166, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=0,`region_id`=0,`representative`='',`registration_time`='0000-00-00 00:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:48:17.558',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:51:09] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'registration_time' at row 1", "elapsed": 0.0012249, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=0,`region_id`=0,`representative`='',`registration_time`='0000-00-00 00:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:51:09.321',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:53:30] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'registration_time' at row 1", "elapsed": 0.0027763, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=0,`region_id`=0,`representative`='',`registration_time`='0000-00-00 00:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:53:30.214',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:58:57] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0033448, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=1,`region_id`=0,`representative`='string',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:58:57.549',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 17:59:36] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0011543, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=1,`region_id`=0,`representative`='string',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 17:59:36.66',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 18:01:19] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'created_at' at row 1", "elapsed": 0.0013602, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`client_type_id`=0,`client_origin_id`=0,`client_level_id`=0,`member_id`=11,`service_member_id`=0,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`country_id`=0,`province_id`=0,`city_id`=1,`region_id`=0,`representative`='string',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=0,`industry_id`=0,`enterprise_nature_id`=0,`enterprise_scale_id`=0,`business_scope`='string',`created_at`='0000-00-00 00:00:00',`updated_at`='2023-07-13 18:01:19.088',`deleted_at`=NULL WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-13 18:01:58] [error] [aps_crm/model.(*ClientSearch).Update:70] trace {"error": "Error 1062 (23000): Duplicate entry 'string' for key 'name'", "elapsed": 0.0014261, "rows": 0, "sql": "UPDATE `clients` SET `id`=11,`name`='string',`number`='string',`client_status_id`=1,`member_id`=11,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`city_id`=1,`representative`='string',`registration_time`='1970-01-01 08:00:00',`business_scope`='string',`updated_at`='2023-07-13 18:01:58.989' WHERE id = 11 AND `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-14 10:22:44] [error] [aps_crm/api/v1.(*BaseApi).Login:55] 登陆失败! 用户名不存在或者密码错误! errCode:2006 |
| | | [2023-07-14 15:25:35] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0021927, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:26:22] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005371, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:26:22] [error] [aps_crm/model.(*MenuSearch).CreateBatch:112] trace {"error": "Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY'", "elapsed": 0.0021074, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`id`) VALUES (0,'','','客户管理',1),(1,'/client','','客户管理',2),(0,'','','销售管理',3),(3,'/saleChance','','销售机会',4),(0,'','','服务管理',5),(5,'/serviceContract','','服务合同',6),(0,'','','后台设置',7),(7,'/member','','成员管理',8),(7,'/role','','角色管理',9)"} |
| | | [2023-07-14 15:26:22] [error] [aps_crm/service.(*InitDBService).InitDB:72] InitDB InitData err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00184fe00 0xc00184fe60 0xc00184fec0 0xc00184ff20 0xc00184ff80 0xc001a14000 0xc001a14060 0xc001a140c0 0xc001a14120] |
| | | [2023-07-14 15:26:22] [error] [aps_crm/initialize.Init:38] initDB err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00184fe00 0xc00184fe60 0xc00184fec0 0xc00184ff20 0xc00184ff80 0xc001a14000 0xc001a14060 0xc001a140c0 0xc001a14120] |
| | | [2023-07-14 15:26:22] [error] [main.main:34] initialize Init err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00184fe00 0xc00184fe60 0xc00184fec0 0xc00184ff20 0xc00184ff80 0xc001a14000 0xc001a14060 0xc001a140c0 0xc001a14120] |
| | | [2023-07-14 15:29:24] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007517, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:29:24] [error] [aps_crm/model.(*MenuSearch).CreateBatch:112] trace {"error": "Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY'", "elapsed": 0.002691, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`id`) VALUES (0,'','','客户管理',1),(1,'/client','','客户管理',2),(0,'','','销售管理',3),(3,'/saleChance','','销售机会',4),(0,'','','服务管理',5),(5,'/serviceContract','','服务合同',6),(0,'','','后台设置',7),(7,'/member','','成员管理',8),(7,'/role','','角色管理',9)"} |
| | | [2023-07-14 15:29:24] [error] [aps_crm/service.(*InitDBService).InitDB:72] InitDB InitData err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00198e2a0 0xc00198e300 0xc00198e360 0xc00198e3c0 0xc00198e420 0xc00198e480 0xc00198e4e0 0xc00198e540 0xc00198e5a0] |
| | | [2023-07-14 15:29:24] [error] [aps_crm/initialize.Init:38] initDB err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00198e2a0 0xc00198e300 0xc00198e360 0xc00198e3c0 0xc00198e420 0xc00198e480 0xc00198e4e0 0xc00198e540 0xc00198e5a0] |
| | | [2023-07-14 15:29:24] [error] [main.main:34] initialize Init err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00198e2a0 0xc00198e300 0xc00198e360 0xc00198e3c0 0xc00198e420 0xc00198e480 0xc00198e4e0 0xc00198e540 0xc00198e5a0] |
| | | [2023-07-14 15:33:28] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005602, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:33:28] [error] [aps_crm/model.(*MenuSearch).CreateBatch:112] trace {"error": "Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY'", "elapsed": 0.0021189, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`id`) VALUES (0,'','','客户管理',1),(1,'/client','','客户管理',2),(0,'','','销售管理',3),(3,'/saleChance','','销售机会',4),(0,'','','服务管理',5),(5,'/serviceContract','','服务合同',6),(0,'','','后台设置',7),(7,'/member','','成员管理',8),(7,'/role','','角色管理',9)"} |
| | | [2023-07-14 15:33:28] [error] [aps_crm/service.(*InitDBService).InitDB:72] InitDB InitData err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc001821f20 0xc001821f80 0xc0019e2000 0xc0019e2060 0xc0019e20c0 0xc0019e2120 0xc0019e2180 0xc0019e21e0 0xc0019e2240] |
| | | [2023-07-14 15:33:28] [error] [aps_crm/initialize.Init:38] initDB err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc001821f20 0xc001821f80 0xc0019e2000 0xc0019e2060 0xc0019e20c0 0xc0019e2120 0xc0019e2180 0xc0019e21e0 0xc0019e2240] |
| | | [2023-07-14 15:33:28] [error] [main.main:34] initialize Init err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc001821f20 0xc001821f80 0xc0019e2000 0xc0019e2060 0xc0019e20c0 0xc0019e2120 0xc0019e2180 0xc0019e21e0 0xc0019e2240] |
| | | [2023-07-14 15:35:35] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006411, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:48:13] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007671, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:49:38] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.00055, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:51:18] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008014, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:52:38] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005069, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 15:58:56] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010706, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 16:04:59] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010221, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 16:04:59] [error] [aps_crm/model.(*MenuSearch).CreateBatch:112] trace {"error": "Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY'", "elapsed": 0.003467, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`id`) VALUES (0,'','','客户管理',1),(1,'/client','','客户管理',2),(0,'','','销售管理',3),(3,'/saleChance','','销售机会',4),(0,'','','服务管理',5),(5,'/serviceContract','','服务合同',6),(0,'','','后台设置',7),(7,'/member','','成员管理',8),(7,'/role','','角色管理',9)"} |
| | | [2023-07-14 16:04:59] [error] [aps_crm/service.(*InitDBService).InitDB:72] InitDB InitData err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00183bf80 0xc0019fa000 0xc0019fa060 0xc0019fa0c0 0xc0019fa120 0xc0019fa180 0xc0019fa1e0 0xc0019fa240 0xc0019fa2a0] |
| | | [2023-07-14 16:04:59] [error] [aps_crm/initialize.Init:38] initDB err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00183bf80 0xc0019fa000 0xc0019fa060 0xc0019fa0c0 0xc0019fa120 0xc0019fa180 0xc0019fa1e0 0xc0019fa240 0xc0019fa2a0] |
| | | [2023-07-14 16:04:59] [error] [main.main:34] initialize Init err:menu表数据初始化失败!: create batch err: Error 1062 (23000): Duplicate entry '1' for key 'PRIMARY', records: [0xc00183bf80 0xc0019fa000 0xc0019fa060 0xc0019fa0c0 0xc0019fa120 0xc0019fa180 0xc0019fa1e0 0xc0019fa240 0xc0019fa2a0] |
| | | [2023-07-14 16:15:14] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010364, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 16:52:57] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000507, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 16:55:08] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005376, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:27:19] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005075, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:30:57] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010067, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:31:53] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005038, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:39:58] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0012292, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:56:59] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005564, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 17:58:02] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005697, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 18:01:27] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0009352, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-14 18:09:58] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007123, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 09:56:05] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005071, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 10:16:52] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006395, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 10:17:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005062, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 10:54:15] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.001018, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 10:56:05] [error] [gorm.io/gorm/migrator.Migrator.CreateTable.func1:281] trace {"error": "Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key", "elapsed": 0.0008635, "rows": 0, "sql": "CREATE TABLE `sys_authorities` (`authority_id` bigint unsigned NOT NULL UNIQUE COMMENT '角色ID',`authority_name` longtext COMMENT '角色名',`default_router` varchar(191) DEFAULT 'dashboard' COMMENT '默认菜单',`id` bigint unsigned AUTO_INCREMENT,`created_at` datetime(3) NULL,`updated_at` datetime(3) NULL,`deleted_at` datetime(3) NULL,PRIMARY KEY (`authority_id`,`id`),INDEX `idx_sys_authorities_deleted_at` (`deleted_at`))"} |
| | | [2023-07-17 10:56:05] [error] [main.main:29] model Init err:Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key |
| | | [2023-07-17 11:00:44] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007257, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:01:32] [error] [aps_crm/model.(*SysAuthoritySearch).Find:60] trace {"error": "record not found", "elapsed": 0.0019116, "rows": 0, "sql": "SELECT * FROM `sys_authorities` WHERE `sys_authorities`.`deleted_at` IS NULL ORDER BY `sys_authorities`.`id` LIMIT 1"} |
| | | [2023-07-17 11:07:10] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005085, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:11:23] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006308, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:15:06] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007297, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:15:41] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007593, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:17:56] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007206, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:17:59] [error] [aps_crm/model.(*SysAuthoritySearch).SetMenuAuthority:71] trace {"error": "Error 1054 (42S22): Unknown column 'authority_id' in 'where clause'", "elapsed": 0.0005551, "rows": 0, "sql": "SELECT * FROM `sys_authorities` WHERE authority_id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 ORDER BY `sys_authorities`.`id` LIMIT 1"} |
| | | [2023-07-17 11:18:49] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000579, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:26:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0011434, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:29:17] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007046, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:32:05] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006638, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:32:10] [error] [gorm.io/gorm.(*Association).saveAssociation:537] trace {"error": "WHERE conditions required", "elapsed": 0.0011037, "rows": 0, "sql": "UPDATE `sys_authorities` SET `updated_at`='2023-07-17 11:32:10.394' WHERE `sys_authorities`.`deleted_at` IS NULL"} |
| | | [2023-07-17 11:34:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005688, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:34:43] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_authority_id' in 'where clause'", "elapsed": 0.0011759, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_authority_id` = 1 ORDER BY `sys_authorities`.`authority_authority_id` LIMIT 1"} |
| | | [2023-07-17 11:36:08] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005509, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:39:13] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005854, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:39:23] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_authority_id' in 'where clause'", "elapsed": 0.0011151, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_authority_id` = 1 ORDER BY `sys_authorities`.`authority_authority_id` LIMIT 1"} |
| | | [2023-07-17 11:40:43] [error] [gorm.io/gorm/migrator.Migrator.AddColumn.func1:354] trace {"error": "Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key", "elapsed": 0.0006162, "rows": 0, "sql": "ALTER TABLE `sys_authorities` ADD `authorityId` bigint unsigned AUTO_INCREMENT NOT NULL UNIQUE COMMENT '角色ID'"} |
| | | [2023-07-17 11:40:43] [error] [main.main:29] model Init err:Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key |
| | | [2023-07-17 11:43:18] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005072, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:43:29] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.0007053, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `sys_authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:45:40] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005067, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:45:51] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.0011872, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `sys_authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:48:43] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005841, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:48:50] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.0005623, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `sys_authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:48:56] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.0012913, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `sys_authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:49:44] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.0012212, "rows": 1, "sql": "DELETE FROM `sys_authorities` WHERE id = 1 AND `sys_authorities`.`deleted_at` IS NULL AND `sys_authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `sys_authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:52:11] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005318, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 11:52:22] [error] [aps_crm/model.(*SysAuthoritySearch).SetMenuAuthority:71] trace {"error": "record not found", "elapsed": 0.0012739, "rows": 0, "sql": "SELECT * FROM `authorities` WHERE id = 1 AND `authorities`.`deleted_at` IS NULL AND `authorities`.`id` = 1 ORDER BY `authorities`.`id` LIMIT 1"} |
| | | [2023-07-17 11:53:37] [error] [aps_crm/model.(*SysAuthoritySearch).Find:60] trace {"error": "record not found", "elapsed": 0.001747, "rows": 0, "sql": "SELECT * FROM `authorities` WHERE `authorities`.`deleted_at` IS NULL ORDER BY `authorities`.`id` LIMIT 1"} |
| | | [2023-07-17 11:53:43] [error] [gorm.io/gorm.(*Association).Replace:191] trace {"error": "Error 1054 (42S22): Unknown column 'authority_menus.authority_id' in 'where clause'", "elapsed": 0.001167, "rows": 1, "sql": "DELETE FROM `authorities` WHERE id = 1 AND `authorities`.`deleted_at` IS NULL AND `authorities`.`id` = 1 AND `authority_menus`.`authority_id` = 1 ORDER BY `authorities`.`authority_id` LIMIT 1"} |
| | | [2023-07-17 11:57:50] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000046, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:08:02] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006937, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:09:34] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006703, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:11:25] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0012014, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:14:27] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006965, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:17:39] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010866, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:17:50] [error] [github.com/casbin/gorm-adapter/v3.(*Adapter).AddPolicies:597] trace {"error": "Error 1062 (23000): Duplicate entry 'p-6-/user/getUserInfo-GET-----' for key 'idx_casbin_rule'", "elapsed": 0.0061053, "rows": 0, "sql": "INSERT INTO `casbin_rule` (`ptype`,`v0`,`v1`,`v2`,`v3`,`v4`,`v5`,`v6`,`v7`) VALUES ('p','6','/menu/getMenu','POST','','','','',''),('p','6','/jwt/jsonInBlacklist','POST','','','','',''),('p','6','/base/login','POST','','','','',''),('p','6','/user/admin_register','POST','','','','',''),('p','6','/user/changePassword','POST','','','','',''),('p','6','/user/setUserAuthority','POST','','','','',''),('p','6','/user/setUserInfo','PUT','','','','',''),('p','6','/user/getUserInfo','GET','','','','',''),('p','6','/user/getUserInfo','GET','','','','',''),('p','6','/city/list','GET','','','','',''),('p','6','/api/city/list','get','','','','','')"} |
| | | [2023-07-17 14:18:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006808, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:18:29] [error] [github.com/casbin/gorm-adapter/v3.(*Adapter).AddPolicies:597] trace {"error": "Error 1062 (23000): Duplicate entry 'p-7-/user/getUserInfo-GET-----' for key 'idx_casbin_rule'", "elapsed": 0.0059629, "rows": 0, "sql": "INSERT INTO `casbin_rule` (`ptype`,`v0`,`v1`,`v2`,`v3`,`v4`,`v5`,`v6`,`v7`) VALUES ('p','7','/menu/getMenu','POST','','','','',''),('p','7','/jwt/jsonInBlacklist','POST','','','','',''),('p','7','/base/login','POST','','','','',''),('p','7','/user/admin_register','POST','','','','',''),('p','7','/user/changePassword','POST','','','','',''),('p','7','/user/setUserAuthority','POST','','','','',''),('p','7','/user/setUserInfo','PUT','','','','',''),('p','7','/user/getUserInfo','GET','','','','',''),('p','7','/user/getUserInfo','GET','','','','',''),('p','7','/city/list','GET','','','','',''),('p','7','/api/city/list','get','','','','','')"} |
| | | [2023-07-17 14:21:59] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000741, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:24:42] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006664, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:25:49] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008167, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:27:01] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006676, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:29:04] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005891, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:30:46] [error] [aps_crm/utils.GetClaims:20] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-07-17 14:35:15] [error] [aps_crm/utils.GetClaims:20] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-07-17 14:38:51] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007995, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:49:22] [error] [gorm.io/gorm/migrator.Migrator.AutoMigrate:104] failed to parse value model.User{ID:"", Username:"", UserType:0, Password:"", NickName:"", HeaderImg:"", Phone:"", Email:"", Enable:false, ParentId:"", ParentName:"", CompanyName:"", Pos:"", ModifiedPwd:false, CreateTime:0, UpdateTime:0, Menus:[]model.Menu(nil), CreateAt:"", UpdateAt:"", MenuIds:[]uint(nil), Ip:"", Port:"", Status:0, AuthorityId:0x0, Authority:model.Authority{Id:0x0, AuthorityName:"", Users:[]model.User(nil), Menus:[]model.Menu(nil), DefaultRouter:"", Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}}, got error invalid field found for struct aps_crm/model.User's field Authority: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-17 14:49:22] [error] [gorm.io/gorm/migrator.Migrator.CreateTable:198] failed to parse value model.User{ID:"", Username:"", UserType:0, Password:"", NickName:"", HeaderImg:"", Phone:"", Email:"", Enable:false, ParentId:"", ParentName:"", CompanyName:"", Pos:"", ModifiedPwd:false, CreateTime:0, UpdateTime:0, Menus:[]model.Menu(nil), CreateAt:"", UpdateAt:"", MenuIds:[]uint(nil), Ip:"", Port:"", Status:0, AuthorityId:0x0, Authority:model.Authority{Id:0x0, AuthorityName:"", Users:[]model.User(nil), Menus:[]model.Menu(nil), DefaultRouter:"", Model:gorm.Model{ID:0x0, CreatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), UpdatedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletedAt:gorm.DeletedAt{Time:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Valid:false}}}}, got error invalid field found for struct aps_crm/model.User's field Authority: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-17 14:49:22] [error] [main.main:29] model Init err:invalid field found for struct aps_crm/model.User's field Authority: define a valid foreign key for relations or implement the Valuer/Scanner interface |
| | | [2023-07-17 14:51:30] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008246, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:55:54] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008169, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 14:56:44] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007456, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 15:12:38] [error] [github.com/casbin/gorm-adapter/v3.(*Adapter).AddPolicies:597] trace {"error": "Error 1062 (23000): Duplicate entry 'p-8-/user/getUserInfo-GET-----' for key 'idx_casbin_rule'", "elapsed": 0.006012, "rows": 0, "sql": "INSERT INTO `casbin_rule` (`ptype`,`v0`,`v1`,`v2`,`v3`,`v4`,`v5`,`v6`,`v7`) VALUES ('p','8','/menu/getMenu','POST','','','','',''),('p','8','/jwt/jsonInBlacklist','POST','','','','',''),('p','8','/base/login','POST','','','','',''),('p','8','/user/admin_register','POST','','','','',''),('p','8','/user/changePassword','POST','','','','',''),('p','8','/user/setUserAuthority','POST','','','','',''),('p','8','/user/setUserInfo','PUT','','','','',''),('p','8','/user/getUserInfo','GET','','','','',''),('p','8','/user/getUserInfo','GET','','','','',''),('p','8','/city/list','GET','','','','',''),('p','8','/api/city/list','get','','','','','')"} |
| | | [2023-07-17 15:19:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007174, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 15:21:42] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007162, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 15:55:58] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005643, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 16:15:10] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005356, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 16:32:08] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007777, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 16:46:33] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006707, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 16:47:07] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008197, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 17:26:09] [error] [aps_crm/model.(*SalesLeadsSearch).Create:80] trace {"error": "Error 1062 (23000): Duplicate entry '测试一下' for key 'name'", "elapsed": 0.0024549, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('测试一下','SL110','张三','18511112222','销售总监',1,1,'1','string',0,0,0,0,'2023-07-17 17:26:09.407','2023-07-17 17:26:09.407',NULL)"} |
| | | [2023-07-17 17:26:36] [error] [aps_crm/model.(*SalesLeadsSearch).Create:80] trace {"error": "Error 1062 (23000): Duplicate entry '测试一下' for key 'name'", "elapsed": 0.0031624, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('测试一下','SL110','张三','18511112222','销售总监',1,1,'1','啊啊啊',0,0,0,0,'2023-07-17 17:26:36.833','2023-07-17 17:26:36.833',NULL)"} |
| | | [2023-07-17 17:50:28] [error] [aps_crm/model.(*SalesLeadsSearch).Create:80] trace {"error": "Error 1062 (23000): Duplicate entry '啊啊啊' for key 'name'", "elapsed": 0.0026716, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('啊啊啊','789','订单','15377889999','订单',1,6,'1','',0,0,0,0,'2023-07-17 17:50:28.113','2023-07-17 17:50:28.113',NULL)"} |
| | | [2023-07-17 18:12:56] [error] [aps_crm/model.(*SalesLeadsSearch).Create:80] trace {"error": "Error 1062 (23000): Duplicate entry '客户名称2' for key 'name'", "elapsed": 0.0033985, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('客户名称2','AL123','赵六1','18513374564','',2,1,'1','',0,0,0,0,'2023-07-17 18:12:56.68','2023-07-17 18:12:56.68',NULL)"} |
| | | [2023-07-17 18:13:12] [error] [aps_crm/model.(*SalesLeadsSearch).Create:80] trace {"error": "Error 1062 (23000): Duplicate entry '客户名称2' for key 'name'", "elapsed": 0.0037702, "rows": 0, "sql": "INSERT INTO `sales_leads` (`name`,`number`,`contact_name`,`contact_phone`,`contact_position`,`sales_sources_id`,`member_id`,`sales_status`,`desc`,`country_id`,`province_id`,`city_id`,`region_id`,`created_at`,`updated_at`,`deleted_at`) VALUES ('客户名称2','AL123','赵六1','18513374564','',2,1,'1','',0,0,0,0,'2023-07-17 18:13:12.431','2023-07-17 18:13:12.431',NULL)"} |
| | | [2023-07-17 18:17:04] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0010362, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=110,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:17:04.346' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-17 18:17:42] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0012063, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:19:26] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005652, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:20:39] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0011788, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=110,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:20:39.464' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-17 18:21:16] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008695, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:21:28] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0011174, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=3,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:21:28.942' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-17 18:22:06] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0016199, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=3,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:22:06.346' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-17 18:22:39] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007587, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:23:49] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006442, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:24:12] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006851, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-17 18:25:24] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0012611, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=3,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:25:24.132' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-17 18:26:10] [error] [aps_crm/model.(*SalesLeadsSearch).Update:85] trace {"error": "WHERE conditions required", "elapsed": 0.0006283, "rows": 0, "sql": "UPDATE `sales_leads` SET `name`='这是一个客户',`number`='LEA50',`contact_name`='小红',`contact_phone`='string',`sales_sources_id`=3,`member_id`=120,`sales_status`='1',`updated_at`='2023-07-17 18:26:10.899' WHERE `sales_leads`.`deleted_at` IS NULL"} |
| | | [2023-07-18 09:39:39] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006401, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 13:49:23] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006902, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 13:52:15] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007397, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 13:54:01] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006212, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 13:55:46] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006984, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 14:43:13] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006373, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 14:45:53] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006257, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 16:03:51] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005916, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 16:42:17] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000631, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 16:43:43] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006654, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 16:52:54] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005044, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 16:54:02] [error] [aps_crm/utils.GetClaims:20] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-07-18 16:56:44] [error] [aps_crm/model.(*UserSearch).First:175] trace {"error": "record not found", "elapsed": 0.0009614, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '小赵' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-18 17:03:57] [error] [aps_crm/model.(*UserSearch).First:175] trace {"error": "record not found", "elapsed": 0.004, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '小王' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-18 17:06:59] [error] [aps_crm/model.(*UserSearch).First:175] trace {"error": "record not found", "elapsed": 0.003998, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '小李' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-18 17:08:04] [error] [aps_crm/model.(*UserSearch).First:175] trace {"error": "record not found", "elapsed": 0.0009699, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '小张' ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-18 17:15:57] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000663, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 17:16:26] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005854, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 17:16:57] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005213, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 17:28:17] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006999, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 17:30:11] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007138, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-18 18:14:25] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000507, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 11:56:00] [error] [gorm.io/driver/mysql.Migrator.AlterColumn.func1:59] trace {"error": "Error 1366 (HY000): Incorrect integer value: 'u891408251931852800' for column 'id' at row 1", "elapsed": 0.0095729, "rows": 0, "sql": "ALTER TABLE `user` MODIFY COLUMN `id` bigint unsigned AUTO_INCREMENT"} |
| | | [2023-07-19 11:56:00] [error] [main.main:29] model Init err:Error 1366 (HY000): Incorrect integer value: 'u891408251931852800' for column 'id' at row 1 |
| | | [2023-07-19 11:56:39] [error] [gorm.io/gorm/migrator.Migrator.CreateTable.func1:281] trace {"error": "Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key", "elapsed": 0.0008917, "rows": 0, "sql": "CREATE TABLE `user` (`uuid` varchar(255) COMMENT '用户ID',`username` varchar(255) COMMENT '用户登录名',`user_type` int(11) COMMENT '用户类型 1超级管理员 2主账户 3子账户',`password` varchar(255) COMMENT '用户登录密码',`nick_name` varchar(255) DEFAULT '系统用户' COMMENT '用户昵称',`real_name` varchar(255) COMMENT '用户真实姓名',`department_id` int(11) COMMENT '用户部门ID',`header_img` varchar(255) COMMENT '用户头像',`phone` varchar(255) COMMENT '用户手机号',`email` varchar(255) COMMENT '用户邮箱',`pos` varchar(255) COMMENT '岗位',`authority_id` bigint unsigned DEFAULT 888 COMMENT '用户角色ID',`id` bigint unsigned AUTO_INCREMENT,`created_at` datetime(3) NULL,`updated_at` datetime(3) NULL,`deleted_at` datetime(3) NULL,PRIMARY KEY (`uuid`,`id`),INDEX `idx_user_username` (`username`),INDEX `idx_user_deleted_at` (`deleted_at`))"} |
| | | [2023-07-19 11:56:39] [error] [main.main:29] model Init err:Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key |
| | | [2023-07-19 11:59:15] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0012387, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 11:59:15] [error] [aps_crm/model.(*UserSearch).First:177] trace {"error": "record not found", "elapsed": 0.0017221, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = 'admin' AND `user`.`deleted_at` IS NULL ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-19 11:59:58] [error] [aps_crm/model.(*UserSearch).First:177] trace {"error": "record not found", "elapsed": 0.0016458, "rows": 0, "sql": "SELECT * FROM `user` WHERE username = '小张' AND `user`.`deleted_at` IS NULL ORDER BY `user`.`id` LIMIT 1"} |
| | | [2023-07-19 13:56:26] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006817, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:13:34] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008297, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:46:12] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006164, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:46:52] [error] [aps_crm/model.(*ClientSearch).Update:74] trace {"error": "WHERE conditions required", "elapsed": 0.00098, "rows": 0, "sql": "UPDATE `clients` SET `name`='string',`number`='string',`client_status_id`=1,`client_level_id`=1,`member_id`=12,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=1,`industry_id`=1,`enterprise_nature_id`=1,`enterprise_scale_id`=1,`updated_at`='2023-07-19 14:46:52.069' WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-19 14:47:23] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006306, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:47:24] [warn] [aps_crm/model.(*MenuSearch).CreateBatch:112] trace {"elapsed": 0.8179823, "rows": 0, "sql": "INSERT INTO `menu` (`parent_id`,`path`,`name`,`title`,`id`) VALUES (0,'','','客户管理',1),(1,'/client','','客户管理',2),(0,'','','销售管理',3),(3,'/saleChance','','销售机会',4),(0,'','','服务管理',5),(5,'/serviceContract','','服务合同',6),(0,'','','后台设置',7),(7,'/member','','成员管理',8),(7,'/role','','角色管理',9) ON DUPLICATE KEY UPDATE `parent_id`=VALUES(`parent_id`),`path`=VALUES(`path`),`name`=VALUES(`name`),`title`=VALUES(`title`)"} |
| | | [2023-07-19 14:48:02] [error] [aps_crm/model.(*ClientSearch).Update:74] trace {"error": "WHERE conditions required", "elapsed": 0.0005604, "rows": 0, "sql": "UPDATE `clients` SET `name`='string',`number`='string',`client_status_id`=1,`client_level_id`=1,`member_id`=12,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=1,`industry_id`=1,`enterprise_nature_id`=1,`enterprise_scale_id`=1,`updated_at`='2023-07-19 14:48:02.386' WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-19 14:48:26] [error] [aps_crm/model.(*ClientSearch).Update:74] trace {"error": "WHERE conditions required", "elapsed": 0.0012007, "rows": 0, "sql": "UPDATE `clients` SET `name`='string',`number`='123',`client_status_id`=1,`client_type_id`=1,`client_origin_id`=3,`client_level_id`=1,`member_id`=12,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=1,`industry_id`=1,`enterprise_nature_id`=1,`enterprise_scale_id`=1,`updated_at`='2023-07-19 14:48:26.647' WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-19 14:51:54] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006071, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:53:02] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007668, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 14:56:44] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006152, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:33:19] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007129, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:33:45] [error] [aps_crm/model.(*ClientSearch).First:100] trace {"error": "record not found", "elapsed": 0.0012825, "rows": 0, "sql": "SELECT * FROM `clients` WHERE id = 1 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-19 15:35:59] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005055, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:43:22] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005431, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:46:07] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.00109, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:50:05] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005841, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:52:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006751, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:52:41] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008777, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 15:58:10] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005874, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 16:10:50] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005074, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 16:18:43] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000673, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 16:21:04] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005784, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 16:24:00] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007138, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 16:30:00] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000507, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 17:26:14] [error] [aps_crm/model.(*ClientSearch).Create:69] trace {"error": "Error 1062 (23000): Duplicate entry 'aaa' for key 'name'", "elapsed": 0.0082669, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('aaa','123',1,0,0,0,2,0,'','','1970-01-01 00:00:00','1970-01-01 00:00:00',0,0,0,0,'','1970-01-01 00:00:00',0,0,0,0,'','2023-07-19 17:26:14.7','2023-07-19 17:26:14.7',NULL)"} |
| | | [2023-07-19 17:27:51] [error] [aps_crm/model.(*ClientSearch).Create:69] trace {"error": "Error 1062 (23000): Duplicate entry 'aaa' for key 'name'", "elapsed": 0.0043177, "rows": 0, "sql": "INSERT INTO `clients` (`name`,`number`,`client_status_id`,`client_type_id`,`client_origin_id`,`client_level_id`,`member_id`,`service_member_id`,`detail_address`,`remark`,`next_visit_time`,`latest_service_time`,`country_id`,`province_id`,`city_id`,`region_id`,`representative`,`registration_time`,`registered_capital_id`,`industry_id`,`enterprise_nature_id`,`enterprise_scale_id`,`business_scope`,`created_at`,`updated_at`,`deleted_at`) VALUES ('aaa','123',1,0,0,0,2,0,'','','1970-01-01 00:00:00','1970-01-01 00:00:00',0,0,0,0,'','1970-01-01 00:00:00',0,0,0,0,'','2023-07-19 17:27:51.768','2023-07-19 17:27:51.768',NULL)"} |
| | | [2023-07-19 17:36:57] [error] [aps_crm/model.(*ClientSearch).Update:74] trace {"error": "WHERE conditions required", "elapsed": 0.0010779, "rows": 0, "sql": "UPDATE `clients` SET `name`='小兰',`number`='15693',`client_status_id`=1,`client_type_id`=3,`client_origin_id`=4,`client_level_id`=1,`member_id`=12,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=1,`industry_id`=1,`enterprise_nature_id`=1,`enterprise_scale_id`=1,`updated_at`='2023-07-19 17:36:57.21' WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-19 17:44:45] [error] [aps_crm/model.(*ClientSearch).Update:74] trace {"error": "WHERE conditions required", "elapsed": 0.0005284, "rows": 0, "sql": "UPDATE `clients` SET `name`='string',`number`='string',`client_status_id`=1,`client_level_id`=1,`member_id`=12,`detail_address`='string',`remark`='string',`next_visit_time`='1970-01-01 08:00:00',`latest_service_time`='1970-01-01 08:00:00',`registration_time`='1970-01-01 08:00:00',`registered_capital_id`=1,`industry_id`=1,`enterprise_nature_id`=1,`enterprise_scale_id`=1,`updated_at`='2023-07-19 17:44:45.994' WHERE `clients`.`deleted_at` IS NULL"} |
| | | [2023-07-19 17:47:12] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008359, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 18:01:40] [warn] [aps_crm/model.(*ClientSearch).First:100] trace {"elapsed": 0.747809, "rows": 1, "sql": "SELECT * FROM `clients` WHERE id = 3 AND `clients`.`deleted_at` IS NULL ORDER BY `clients`.`id` LIMIT 1"} |
| | | [2023-07-19 18:01:40] [warn] [aps_crm/model.(*CountrySearch).FindAll:75] trace {"elapsed": 3.0636675, "rows": 2, "sql": "SELECT * FROM `country`"} |
| | | [2023-07-19 18:01:40] [warn] [aps_crm/model.(*CountrySearch).FindAll:75] trace {"elapsed": 3.0658679, "rows": 2, "sql": "SELECT * FROM `country`"} |
| | | [2023-07-19 18:03:24] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005487, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 18:04:13] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007069, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-19 18:28:49] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006261, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 10:17:27] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000637, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 10:37:24] [error] [aps_crm/model.(*SalesDetailsSearch).Update:66] trace {"error": "WHERE conditions required", "elapsed": 0.0010649, "rows": 0, "sql": "UPDATE `sales_details` SET `client_id`=123,`number`='4564654',`sign_time`='1970-01-01 00:00:00',`member_id`=2,`delivery_date`='1970-01-01 00:00:00',`updated_at`='2023-07-20 10:37:24.981' WHERE `sales_details`.`deleted_at` IS NULL"} |
| | | [2023-07-20 10:37:36] [error] [aps_crm/model.(*SalesDetailsSearch).Update:66] trace {"error": "WHERE conditions required", "elapsed": 0.0006816, "rows": 0, "sql": "UPDATE `sales_details` SET `client_id`=123,`number`='4564654',`sign_time`='1970-01-01 00:00:00',`member_id`=2,`delivery_date`='1970-01-01 00:00:00',`updated_at`='2023-07-20 10:37:36.235' WHERE `sales_details`.`deleted_at` IS NULL"} |
| | | [2023-07-20 10:39:09] [error] [aps_crm/model.(*SalesDetailsSearch).Update:66] trace {"error": "WHERE conditions required", "elapsed": 0.000969, "rows": 0, "sql": "UPDATE `sales_details` SET `client_id`=123,`number`='4564654',`sign_time`='1970-01-01 00:00:00',`member_id`=2,`delivery_date`='1970-01-01 00:00:00',`updated_at`='2023-07-20 10:39:09.289' WHERE `sales_details`.`deleted_at` IS NULL"} |
| | | [2023-07-20 10:40:07] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006323, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 11:13:50] [error] [aps_crm/model.(*ContractSearch).Update:58] trace {"error": "WHERE conditions required", "elapsed": 0.0006321, "rows": 0, "sql": "UPDATE `contract` SET `member_id`=1,`number`='ZDYB02-2',`file`='string',`updated_at`='2023-07-20 11:13:50.358' WHERE `contract`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:14:21] [error] [aps_crm/model.(*ContractSearch).Update:58] trace {"error": "WHERE conditions required", "elapsed": 0.0008895, "rows": 0, "sql": "UPDATE `contract` SET `member_id`=1,`number`='ZDYB02-2',`file`='string',`updated_at`='2023-07-20 11:14:21.377' WHERE `contract`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:14:34] [error] [aps_crm/model.(*ContractSearch).Update:58] trace {"error": "WHERE conditions required", "elapsed": 0.0005347, "rows": 0, "sql": "UPDATE `contract` SET `member_id`=1,`number`='ZDYB02-2',`file`='string',`updated_at`='2023-07-20 11:14:34.978' WHERE `contract`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:15:01] [error] [aps_crm/model.(*ContractSearch).Update:58] trace {"error": "WHERE conditions required", "elapsed": 0.000929, "rows": 0, "sql": "UPDATE `contract` SET `member_id`=1,`number`='ZDYB02-2',`updated_at`='2023-07-20 11:15:01.897' WHERE `contract`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:16:36] [error] [aps_crm/model.(*ContractSearch).Update:58] trace {"error": "WHERE conditions required", "elapsed": 0.000607, "rows": 0, "sql": "UPDATE `contract` SET `member_id`=1,`number`='ZDYB02-2',`updated_at`='2023-07-20 11:16:36.464' WHERE `contract`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:20:29] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007282, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 11:21:23] [error] [aps_crm/model.(*PlanSearch).Update:63] trace {"error": "WHERE conditions required", "elapsed": 0.001233, "rows": 0, "sql": "UPDATE `plan` SET `client_id`=1,`number`='4566',`member_id`=1,`start_time`='1970-01-01 00:00:00',`end_time`='1970-01-01 00:00:00',`updated_at`='2023-07-20 11:21:23.276' WHERE `plan`.`deleted_at` IS NULL"} |
| | | [2023-07-20 11:23:28] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005875, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 11:38:15] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008671, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 11:39:25] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006355, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 11:45:52] [error] [aps_crm/model.(*OrderManageSearch).Update:55] trace {"error": "WHERE conditions required", "elapsed": 0.0005097, "rows": 0, "sql": "UPDATE `order_manage` SET `name`='string',`client_id`=11,`number`='CS2155',`order_type`=1,`problem_description`='string',`file`='string',`updated_at`='2023-07-20 11:45:52.796' WHERE `order_manage`.`deleted_at` IS NULL"} |
| | | [2023-07-20 13:38:07] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005071, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 15:21:44] [error] [aps_crm/model.(*ServiceFollowupSearch).Update:61] trace {"error": "WHERE conditions required", "elapsed": 0.0007967, "rows": 0, "sql": "UPDATE `service_followup` SET `number`='HF21',`member_id`=2,`remark`='string',`file`='string',`updated_at`='2023-07-20 15:21:44.081' WHERE `service_followup`.`deleted_at` IS NULL"} |
| | | [2023-07-20 15:40:36] [error] [aps_crm/utils.GetClaims:20] 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 |
| | | [2023-07-20 16:01:12] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005245, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 16:32:46] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006596, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 16:35:30] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006732, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 16:37:34] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006941, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 16:39:03] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.000742, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 17:00:17] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010247, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 17:18:25] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005175, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 17:34:20] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005842, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 20:19:37] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006813, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-20 20:23:01] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005062, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 10:10:56] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005065, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 10:28:46] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008674, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 10:31:05] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006935, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 10:51:07] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0016954, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 10:56:12] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005848, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:04:19] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0014695, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:26:51] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0008314, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:31:25] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006005, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:39:15] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0000318, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:42:41] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005338, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:44:33] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0006307, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 11:56:26] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0010573, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 13:34:36] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0007134, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 13:42:32] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0005048, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |
| | | [2023-07-21 13:42:44] [error] [aps_crm/model.(*MenuSearch).First:169] trace {"error": "record not found", "elapsed": 0.0009163, "rows": 0, "sql": "SELECT * FROM `menu` WHERE id = 22 ORDER BY `menu`.`id` LIMIT 1"} |