ask a question
mysql"s order table somehow, the pay_time field data will change. A random line is updated into the sum of order adding time + a fixed period of time. I am not sure which project links the updated data in the database, or there are scheduled tasks, how to check?
problem description
the environmental background of the problems and what methods you have tried
try to find the commonness of these orders, but there is nothing in common in the fields. Some of my personal orders have been updated and some have not.
related codes
part of order data
CREATE TABLE `aws_orders` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT "id ",
`oid` varchar(32) DEFAULT "0" COMMENT "ID",
`plat_oid` varchar(64) DEFAULT "0" COMMENT "",
`uid` int(10) unsigned DEFAULT "0" COMMENT "ID",
`add_time` int(10) unsigned DEFAULT "0" COMMENT "",
`amount` int(10) unsigned DEFAULT "0" COMMENT "",
`pay_amount` decimal(7,2) unsigned DEFAULT "0.00" COMMENT "",
`pay_time` varchar(20) DEFAULT "0" COMMENT "",
`is_delete` tinyint(3) unsigned DEFAULT "0" COMMENT " 0 1",
`pay_type` tinyint(3) unsigned DEFAULT "0" COMMENT " 1 2 3",
`from` tinyint(3) unsigned DEFAULT "0" COMMENT " 1 2 3IOS 4Android",
`coupon_id` int(10) unsigned DEFAULT "0" COMMENT "ID",
`from_plat` tinyint(3) unsigned DEFAULT "0" COMMENT " 0 1ios 2android 3IPAD 4Mobile",
`pay_plat` tinyint(3) unsigned DEFAULT "0" COMMENT " 0 1ios 2android 3IPAD 4Mobile",
`type` tinyint(3) unsigned DEFAULT "0" COMMENT " 0 1 2",
`full_cut` varchar(20) DEFAULT "0" COMMENT " ",
PRIMARY KEY (`id`),
KEY `i_oid` (`oid`) USING BTREE,
KEY `i_uid` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=48035 DEFAULT CHARSET=utf8
the problem is the pay_time field, which originally has a value. I don"t know why it has been updated after a period of time. I have asked the relevant colleagues of the company and leader, that no one is operating at the back end. All operations related to the order table, such as payment callbacks and placing orders, are logged, and there is no such stifling operation.
some error data
+------------+-----------------+----------------------+--------+-------+
| add_time | pay_time | oid | uid | ispay |
+------------+-----------------+----------------------+--------+-------+
| 1524973498 | 1533008773.6939 | 1524973498601898106 | 60189 | 2 |
| 1524975582 | 1533010805.9663 | 15249755824529331409 | 452933 | 0 |
| 1525001588 | 1533036851.0322 | 15250015884533789469 | 453378 | 2 |
| 1525001992 | 1533037260.197 | 15250019924533763961 | 453376 | 2 |
| 1525002153 | 1533037381.1686 | 15250021534533765879 | 453376 | 2 |
+------------+-----------------+----------------------+--------+-------+
there is also a point here. The integers originally stored in pay_time are transformed into floating-point digital timestamps after data confusion.
what result do you expect? What is the error message actually seen?
now I want to know why it has been updated for no reason