| | |
| | | [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"} |