diff --git a/log/server-20251128.log b/log/server-20251128.log index d2f47c2..eae527d 100644 --- a/log/server-20251128.log +++ b/log/server-20251128.log @@ -116,3 +116,21 @@ sql=EXPLAIN SELECT `order_info`.order_no,`order_info`.key_code,`order_info`.out_ trace_id=49a9f280a3926a82acdf01ed6d7c35e5 sql=INSERT INTO export_jobs (template_id, status, requested_by, owner_id, permission_scope_json, filters_json, options_json, explain_json, explain_score, row_estimate, file_format, created_at, updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) args=[17 queued 1 0 [123 125] [123 34 99 114 101 97 116 101 95 116 105 109 101 95 98 101 116 119 101 101 110 34 58 91 34 50 48 50 53 45 48 49 45 48 49 32 48 48 58 48 48 58 48 48 34 44 34 50 48 50 53 45 49 50 45 51 49 32 50 51 58 53 57 58 53 57 34 93 44 34 116 121 112 101 95 101 113 34 58 50 125] [123 125] [123 34 115 113 108 34 58 34 83 69 76 69 67 84 32 96 111 114 100 101 114 95 105 110 102 111 96 46 111 114 100 101 114 95 110 111 44 96 111 114 100 101 114 95 105 110 102 111 96 46 107 101 121 95 99 111 100 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 117 116 95 111 114 100 101 114 95 110 111 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 116 121 112 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 231 142 176 233 135 145 231 186 162 229 140 133 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 231 155 180 229 133 133 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 231 171 139 229 135 143 233 135 145 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 116 121 112 101 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 229 133 133 229 128 188 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 133 133 229 128 188 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 133 133 229 128 188 230 136 144 229 138 159 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 133 133 229 128 188 229 164 177 232 180 165 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 229 183 178 232 191 135 230 156 159 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 229 183 178 228 189 156 229 186 159 39 32 87 72 69 78 32 55 32 84 72 69 78 32 39 229 183 178 230 160 184 233 148 128 39 32 87 72 69 78 32 56 32 84 72 69 78 32 39 230 160 184 233 148 128 229 164 177 232 180 165 39 32 87 72 69 78 32 57 32 84 72 69 78 32 39 232 174 162 229 141 149 233 135 141 231 189 174 39 32 87 72 69 78 32 49 48 32 84 72 69 78 32 39 229 141 161 229 141 149 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 116 97 116 117 115 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 111 110 116 114 97 99 116 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 110 117 109 44 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 112 114 105 99 101 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 230 148 175 228 187 152 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 148 175 228 187 152 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 183 178 230 148 175 228 187 152 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 143 150 230 182 136 230 148 175 228 187 152 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 233 128 128 230 172 190 228 184 173 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 233 128 128 230 172 190 230 136 144 229 138 159 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 112 97 121 95 115 116 97 116 117 115 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 114 101 97 116 101 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 102 102 105 99 105 97 108 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 109 101 114 99 104 97 110 116 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 97 99 116 105 118 105 116 121 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 103 111 111 100 115 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 100 105 115 99 111 117 110 116 95 97 109 111 117 110 116 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 111 115 116 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 115 117 99 99 101 115 115 95 110 117 109 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 104 97 110 110 101 108 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 117 116 95 111 114 100 101 114 95 110 111 44 96 111 114 100 101 114 95 105 110 102 111 96 46 114 101 99 104 97 114 103 101 95 115 117 99 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 107 101 121 95 98 97 116 99 104 95 110 97 109 101 44 67 65 83 69 32 96 97 99 116 105 118 105 116 121 96 46 115 101 116 116 108 101 109 101 110 116 95 116 121 112 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 143 145 230 148 190 231 187 147 231 174 151 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 137 147 229 188 128 231 187 147 231 174 151 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 233 162 134 231 148 168 231 187 147 231 174 151 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 230 160 184 233 148 128 231 187 147 231 174 151 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 101 116 116 108 101 109 101 110 116 95 116 121 112 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 118 111 117 99 104 101 114 95 105 100 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 229 143 145 230 148 190 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 143 145 230 148 190 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 143 145 230 148 190 229 164 177 232 180 165 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 190 133 230 160 184 233 148 128 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 229 183 178 230 160 184 233 148 128 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 229 183 178 232 191 135 230 156 159 39 32 87 72 69 78 32 55 32 84 72 69 78 32 39 229 183 178 233 128 128 230 172 190 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 116 97 116 117 115 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 114 101 99 101 105 118 101 95 109 111 100 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 230 184 160 233 129 147 230 142 136 230 157 131 231 148 168 230 136 183 105 100 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 137 139 230 156 186 229 143 183 230 136 150 233 130 174 231 174 177 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 114 101 99 101 105 118 101 95 109 111 100 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 103 114 97 110 116 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 117 115 97 103 101 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 101 120 112 105 114 101 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 114 101 102 117 110 100 95 97 109 111 117 110 116 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 97 99 99 111 117 110 116 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 116 101 109 112 95 110 111 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 46 110 97 109 101 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 32 87 72 69 78 32 49 32 84 72 69 78 32 39 230 148 175 228 187 152 229 174 157 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 190 174 228 191 161 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 228 186 145 233 151 170 228 187 152 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 99 104 97 110 110 101 108 32 70 82 79 77 32 96 111 114 100 101 114 95 105 110 102 111 96 32 76 69 70 84 32 74 79 73 78 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 32 79 78 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 111 114 100 101 114 95 110 111 32 61 32 96 111 114 100 101 114 95 105 110 102 111 96 46 111 114 100 101 114 95 110 111 32 76 69 70 84 32 74 79 73 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 32 79 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 32 61 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 32 76 69 70 84 32 74 79 73 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 32 79 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 46 105 100 32 61 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 105 100 32 76 69 70 84 32 74 79 73 78 32 96 97 99 116 105 118 105 116 121 96 32 79 78 32 96 97 99 116 105 118 105 116 121 96 46 105 100 32 61 32 96 111 114 100 101 114 95 105 110 102 111 96 46 97 99 116 105 118 105 116 121 95 105 100 32 87 72 69 82 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 99 114 101 97 116 101 95 116 105 109 101 32 66 69 84 87 69 69 78 32 63 32 65 78 68 32 63 32 65 78 68 32 96 111 114 100 101 114 95 105 110 102 111 96 46 116 121 112 101 32 61 32 63 34 44 34 115 117 103 103 101 115 116 105 111 110 115 34 58 91 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 105 110 102 111 96 40 99 114 101 97 116 101 95 116 105 109 101 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 232 166 134 231 155 150 230 151 182 233 151 180 232 140 131 229 155 180 34 44 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 105 110 102 111 96 40 111 114 100 101 114 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 229 173 144 232 161 168 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 40 111 114 100 101 114 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 228 184 187 232 161 168 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 40 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 232 174 162 229 141 149 231 171 139 229 135 143 233 135 145 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 40 105 100 41 32 228 184 138 231 161 174 228 191 157 228 184 187 233 148 174 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 97 99 116 105 118 105 116 121 96 40 105 100 41 32 228 184 138 231 161 174 228 191 157 228 184 187 233 148 174 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 232 191 158 230 142 165 34 93 125] 100 1413697 xlsx 2025-11-28 09:31:17.491445752 +0000 UTC m=+711.646017449 2025-11-28 09:31:17.491446293 +0000 UTC m=+711.646017741] trace_id=49a9f280a3926a82acdf01ed6d7c35e5 status=500 file=response.go:43 method=POST path=/api/exports query= remote=172.17.0.1:55256 sql=SELECT `order_info`.order_no,`order_info`.key_code,`order_info`.out_order_no,CASE `order_info`.type WHEN 1 THEN '现金红包' WHEN 2 THEN '直充' WHEN 3 THEN '立减金' ELSE '' END AS type,CASE `order_info`.status WHEN 1 THEN '待充值' WHEN 2 THEN '充值中' WHEN 3 THEN '充值成功' WHEN 4 THEN '充值失败' WHEN 5 THEN '已过期' WHEN 6 THEN '已作废' WHEN 7 THEN '已核销' WHEN 8 THEN '核销失败' WHEN 9 THEN '订单重置' WHEN 10 THEN '卡单' ELSE '' END AS status,`order_info`.contract_price,`order_info`.num,`order_info`.pay_price,CASE `order_info`.pay_status WHEN 1 THEN '待支付' WHEN 2 THEN '支付中' WHEN 3 THEN '已支付' WHEN 4 THEN '取消支付' WHEN 5 THEN '退款中' WHEN 6 THEN '退款成功' ELSE '' END AS pay_status,`order_info`.create_time,`order_info`.official_price,`order_info`.merchant_name,`order_info`.activity_name,`order_info`.goods_name,`order_info`.pay_time,`order_info`.discount_amount,`order_info`.cost_price,`order_info`.success_num,`order_info`.channel,`order_info`.out_order_no,`order_info`.recharge_suc_time,`order_info`.key_batch_name,CASE `activity`.settlement_type WHEN 1 THEN '发放结算' WHEN 2 THEN '打开结算' WHEN 3 THEN '领用结算' WHEN 4 THEN '核销结算' ELSE '' END AS settlement_type,`order_voucher`.channel_batch_no,`order_voucher`.channel_voucher_id,CASE `order_voucher`.status WHEN 1 THEN '待发放' WHEN 2 THEN '发放中' WHEN 3 THEN '发放失败' WHEN 4 THEN '待核销' WHEN 5 THEN '已核销' WHEN 6 THEN '已过期' WHEN 7 THEN '已退款' ELSE '' END AS status,CASE `order_voucher`.receive_mode WHEN 1 THEN '渠道授权用户id' WHEN 2 THEN '手机号或邮箱' ELSE '' END AS receive_mode,`order_voucher`.grant_time,`order_voucher`.usage_time,`order_voucher`.expire_time,`order_voucher`.refund_amount,`order_voucher`.account,`goods_voucher_batch`.channel_batch_no,`goods_voucher_batch`.temp_no,`goods_voucher_subject_config`.name,CASE `order_voucher`.channel WHEN 1 THEN '支付宝' WHEN 2 THEN '微信' WHEN 3 THEN '云闪付' ELSE '' END AS channel FROM `order_info` LEFT JOIN `order_voucher` ON `order_voucher`.order_no = `order_info`.order_no LEFT JOIN `goods_voucher_batch` ON `goods_voucher_batch`.channel_batch_no = `order_voucher`.channel_batch_no LEFT JOIN `goods_voucher_subject_config` ON `goods_voucher_subject_config`.id = `goods_voucher_batch`.voucher_subject_id LEFT JOIN `activity` ON `activity`.id = `order_info`.activity_id WHERE `order_info`.create_time BETWEEN ? AND ? AND `order_info`.type = ? payload={"template_id":17,"requested_by":1,"permission":{},"options":{},"file_format":"xlsx","filters":{"create_time_between":["2025-01-01 00:00:00","2025-12-31 23:59:59"],"type_eq":2},"datasource":"ymt"} msg=Error 8001 (HY000): Not allowed to execute statement that may change data on polar slave {"bytes":165,"duration_ms":3012,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":500,"trace_id":"","ts":"2025-11-28T09:31:17Z"} +connecting YMT MySQL: 47.97.27.195:3306 db merketing user root +connecting Marketing MySQL: 192.168.6.92:3306 db market user root +server listening on :8077 +{"bytes":1983,"duration_ms":59,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:01Z"} +{"bytes":19525,"duration_ms":277,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:01Z"} +{"bytes":1983,"duration_ms":49,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:02Z"} +{"bytes":19525,"duration_ms":272,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:02Z"} +{"bytes":1983,"duration_ms":46,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:05Z"} +{"bytes":19525,"duration_ms":254,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:05Z"} +{"bytes":1983,"duration_ms":56,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:27Z"} +{"bytes":19525,"duration_ms":1019,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:28Z"} +{"bytes":1259,"duration_ms":118,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:29Z"} +{"bytes":891,"duration_ms":101,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-28T09:33:29Z"} +trace_id=7d973ab3d8644ea77afa9878067c3173 sql=SELECT datasource, main_table, fields_json FROM export_templates WHERE id= ? args=[17] +sql=EXPLAIN SELECT `order_info`.order_no,`order_info`.key_code,`order_info`.out_order_no,CASE `order_info`.type WHEN 1 THEN '现金红包' WHEN 2 THEN '直充' WHEN 3 THEN '立减金' ELSE '' END AS type,CASE `order_info`.status WHEN 1 THEN '待充值' WHEN 2 THEN '充值中' WHEN 3 THEN '充值成功' WHEN 4 THEN '充值失败' WHEN 5 THEN '已过期' WHEN 6 THEN '已作废' WHEN 7 THEN '已核销' WHEN 8 THEN '核销失败' WHEN 9 THEN '订单重置' WHEN 10 THEN '卡单' ELSE '' END AS status,`order_info`.contract_price,`order_info`.num,`order_info`.pay_price,CASE `order_info`.pay_status WHEN 1 THEN '待支付' WHEN 2 THEN '支付中' WHEN 3 THEN '已支付' WHEN 4 THEN '取消支付' WHEN 5 THEN '退款中' WHEN 6 THEN '退款成功' ELSE '' END AS pay_status,`order_info`.create_time,`order_info`.official_price,`order_info`.merchant_name,`order_info`.activity_name,`order_info`.goods_name,`order_info`.pay_time,`order_info`.discount_amount,`order_info`.cost_price,`order_info`.success_num,`order_info`.channel,`order_info`.out_order_no,`order_info`.recharge_suc_time,`order_info`.key_batch_name,CASE `activity`.settlement_type WHEN 1 THEN '发放结算' WHEN 2 THEN '打开结算' WHEN 3 THEN '领用结算' WHEN 4 THEN '核销结算' ELSE '' END AS settlement_type,`order_voucher`.channel_batch_no,`order_voucher`.channel_voucher_id,CASE `order_voucher`.status WHEN 1 THEN '待发放' WHEN 2 THEN '发放中' WHEN 3 THEN '发放失败' WHEN 4 THEN '待核销' WHEN 5 THEN '已核销' WHEN 6 THEN '已过期' WHEN 7 THEN '已退款' ELSE '' END AS status,CASE `order_voucher`.receive_mode WHEN 1 THEN '渠道授权用户id' WHEN 2 THEN '手机号或邮箱' ELSE '' END AS receive_mode,`order_voucher`.grant_time,`order_voucher`.usage_time,`order_voucher`.expire_time,`order_voucher`.refund_amount,`order_voucher`.account,`goods_voucher_batch`.channel_batch_no,`goods_voucher_batch`.temp_no,`goods_voucher_subject_config`.name,CASE `order_voucher`.channel WHEN 1 THEN '支付宝' WHEN 2 THEN '微信' WHEN 3 THEN '云闪付' ELSE '' END AS channel FROM `order_info` LEFT JOIN `order_voucher` ON `order_voucher`.order_no = `order_info`.order_no LEFT JOIN `goods_voucher_batch` ON `goods_voucher_batch`.channel_batch_no = `order_voucher`.channel_batch_no LEFT JOIN `goods_voucher_subject_config` ON `goods_voucher_subject_config`.id = `goods_voucher_batch`.voucher_subject_id LEFT JOIN `activity` ON `activity`.id = `order_info`.activity_id WHERE `order_info`.create_time BETWEEN ? AND ? AND `order_info`.type = ? args=[2025-01-01 00:00:00 2025-12-31 23:59:59 2] +trace_id=7d973ab3d8644ea77afa9878067c3173 sql=INSERT INTO export_jobs (template_id, status, requested_by, owner_id, permission_scope_json, filters_json, options_json, explain_json, explain_score, row_estimate, file_format, created_at, updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) args=[17 queued 1 0 [123 125] [123 34 99 114 101 97 116 101 95 116 105 109 101 95 98 101 116 119 101 101 110 34 58 91 34 50 48 50 53 45 48 49 45 48 49 32 48 48 58 48 48 58 48 48 34 44 34 50 48 50 53 45 49 50 45 51 49 32 50 51 58 53 57 58 53 57 34 93 44 34 116 121 112 101 95 101 113 34 58 50 125] [123 125] [123 34 115 113 108 34 58 34 83 69 76 69 67 84 32 96 111 114 100 101 114 95 105 110 102 111 96 46 111 114 100 101 114 95 110 111 44 96 111 114 100 101 114 95 105 110 102 111 96 46 107 101 121 95 99 111 100 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 117 116 95 111 114 100 101 114 95 110 111 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 116 121 112 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 231 142 176 233 135 145 231 186 162 229 140 133 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 231 155 180 229 133 133 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 231 171 139 229 135 143 233 135 145 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 116 121 112 101 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 229 133 133 229 128 188 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 133 133 229 128 188 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 133 133 229 128 188 230 136 144 229 138 159 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 133 133 229 128 188 229 164 177 232 180 165 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 229 183 178 232 191 135 230 156 159 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 229 183 178 228 189 156 229 186 159 39 32 87 72 69 78 32 55 32 84 72 69 78 32 39 229 183 178 230 160 184 233 148 128 39 32 87 72 69 78 32 56 32 84 72 69 78 32 39 230 160 184 233 148 128 229 164 177 232 180 165 39 32 87 72 69 78 32 57 32 84 72 69 78 32 39 232 174 162 229 141 149 233 135 141 231 189 174 39 32 87 72 69 78 32 49 48 32 84 72 69 78 32 39 229 141 161 229 141 149 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 116 97 116 117 115 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 111 110 116 114 97 99 116 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 110 117 109 44 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 112 114 105 99 101 44 67 65 83 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 230 148 175 228 187 152 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 148 175 228 187 152 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 183 178 230 148 175 228 187 152 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 143 150 230 182 136 230 148 175 228 187 152 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 233 128 128 230 172 190 228 184 173 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 233 128 128 230 172 190 230 136 144 229 138 159 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 112 97 121 95 115 116 97 116 117 115 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 114 101 97 116 101 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 102 102 105 99 105 97 108 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 109 101 114 99 104 97 110 116 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 97 99 116 105 118 105 116 121 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 103 111 111 100 115 95 110 97 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 112 97 121 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 100 105 115 99 111 117 110 116 95 97 109 111 117 110 116 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 111 115 116 95 112 114 105 99 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 115 117 99 99 101 115 115 95 110 117 109 44 96 111 114 100 101 114 95 105 110 102 111 96 46 99 104 97 110 110 101 108 44 96 111 114 100 101 114 95 105 110 102 111 96 46 111 117 116 95 111 114 100 101 114 95 110 111 44 96 111 114 100 101 114 95 105 110 102 111 96 46 114 101 99 104 97 114 103 101 95 115 117 99 95 116 105 109 101 44 96 111 114 100 101 114 95 105 110 102 111 96 46 107 101 121 95 98 97 116 99 104 95 110 97 109 101 44 67 65 83 69 32 96 97 99 116 105 118 105 116 121 96 46 115 101 116 116 108 101 109 101 110 116 95 116 121 112 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 143 145 230 148 190 231 187 147 231 174 151 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 137 147 229 188 128 231 187 147 231 174 151 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 233 162 134 231 148 168 231 187 147 231 174 151 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 230 160 184 233 148 128 231 187 147 231 174 151 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 101 116 116 108 101 109 101 110 116 95 116 121 112 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 118 111 117 99 104 101 114 95 105 100 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 115 116 97 116 117 115 32 87 72 69 78 32 49 32 84 72 69 78 32 39 229 190 133 229 143 145 230 148 190 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 143 145 230 148 190 228 184 173 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 229 143 145 230 148 190 229 164 177 232 180 165 39 32 87 72 69 78 32 52 32 84 72 69 78 32 39 229 190 133 230 160 184 233 148 128 39 32 87 72 69 78 32 53 32 84 72 69 78 32 39 229 183 178 230 160 184 233 148 128 39 32 87 72 69 78 32 54 32 84 72 69 78 32 39 229 183 178 232 191 135 230 156 159 39 32 87 72 69 78 32 55 32 84 72 69 78 32 39 229 183 178 233 128 128 230 172 190 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 115 116 97 116 117 115 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 114 101 99 101 105 118 101 95 109 111 100 101 32 87 72 69 78 32 49 32 84 72 69 78 32 39 230 184 160 233 129 147 230 142 136 230 157 131 231 148 168 230 136 183 105 100 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 230 137 139 230 156 186 229 143 183 230 136 150 233 130 174 231 174 177 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 114 101 99 101 105 118 101 95 109 111 100 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 103 114 97 110 116 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 117 115 97 103 101 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 101 120 112 105 114 101 95 116 105 109 101 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 114 101 102 117 110 100 95 97 109 111 117 110 116 44 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 97 99 99 111 117 110 116 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 116 101 109 112 95 110 111 44 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 46 110 97 109 101 44 67 65 83 69 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 32 87 72 69 78 32 49 32 84 72 69 78 32 39 230 148 175 228 187 152 229 174 157 39 32 87 72 69 78 32 50 32 84 72 69 78 32 39 229 190 174 228 191 161 39 32 87 72 69 78 32 51 32 84 72 69 78 32 39 228 186 145 233 151 170 228 187 152 39 32 69 76 83 69 32 39 39 32 69 78 68 32 65 83 32 99 104 97 110 110 101 108 32 70 82 79 77 32 96 111 114 100 101 114 95 105 110 102 111 96 32 76 69 70 84 32 74 79 73 78 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 32 79 78 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 111 114 100 101 114 95 110 111 32 61 32 96 111 114 100 101 114 95 105 110 102 111 96 46 111 114 100 101 114 95 110 111 32 76 69 70 84 32 74 79 73 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 32 79 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 32 61 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 46 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 32 76 69 70 84 32 74 79 73 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 32 79 78 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 46 105 100 32 61 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 46 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 105 100 32 76 69 70 84 32 74 79 73 78 32 96 97 99 116 105 118 105 116 121 96 32 79 78 32 96 97 99 116 105 118 105 116 121 96 46 105 100 32 61 32 96 111 114 100 101 114 95 105 110 102 111 96 46 97 99 116 105 118 105 116 121 95 105 100 32 87 72 69 82 69 32 96 111 114 100 101 114 95 105 110 102 111 96 46 99 114 101 97 116 101 95 116 105 109 101 32 66 69 84 87 69 69 78 32 63 32 65 78 68 32 63 32 65 78 68 32 96 111 114 100 101 114 95 105 110 102 111 96 46 116 121 112 101 32 61 32 63 34 44 34 115 117 103 103 101 115 116 105 111 110 115 34 58 91 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 105 110 102 111 96 40 99 114 101 97 116 101 95 116 105 109 101 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 232 166 134 231 155 150 230 151 182 233 151 180 232 140 131 229 155 180 34 44 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 105 110 102 111 96 40 111 114 100 101 114 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 229 173 144 232 161 168 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 111 114 100 101 114 95 118 111 117 99 104 101 114 96 40 111 114 100 101 114 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 228 184 187 232 161 168 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 98 97 116 99 104 96 40 99 104 97 110 110 101 108 95 98 97 116 99 104 95 110 111 41 32 229 187 186 231 171 139 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 228 184 142 232 174 162 229 141 149 231 171 139 229 135 143 233 135 145 231 154 132 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 103 111 111 100 115 95 118 111 117 99 104 101 114 95 115 117 98 106 101 99 116 95 99 111 110 102 105 103 96 40 105 100 41 32 228 184 138 231 161 174 228 191 157 228 184 187 233 148 174 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 232 191 158 230 142 165 34 44 34 229 187 186 232 174 174 229 156 168 32 96 97 99 116 105 118 105 116 121 96 40 105 100 41 32 228 184 138 231 161 174 228 191 157 228 184 187 233 148 174 231 180 162 229 188 149 228 187 165 228 188 152 229 140 150 232 191 158 230 142 165 34 93 125] 100 1413719 xlsx 2025-11-28 09:33:33.979110218 +0000 UTC m=+848.134029221 2025-11-28 09:33:33.979110634 +0000 UTC m=+848.134029512] +trace_id=7d973ab3d8644ea77afa9878067c3173 status=500 file=response.go:43 method=POST path=/api/exports query= remote=172.17.0.1:55316 sql=SELECT `order_info`.order_no,`order_info`.key_code,`order_info`.out_order_no,CASE `order_info`.type WHEN 1 THEN '现金红包' WHEN 2 THEN '直充' WHEN 3 THEN '立减金' ELSE '' END AS type,CASE `order_info`.status WHEN 1 THEN '待充值' WHEN 2 THEN '充值中' WHEN 3 THEN '充值成功' WHEN 4 THEN '充值失败' WHEN 5 THEN '已过期' WHEN 6 THEN '已作废' WHEN 7 THEN '已核销' WHEN 8 THEN '核销失败' WHEN 9 THEN '订单重置' WHEN 10 THEN '卡单' ELSE '' END AS status,`order_info`.contract_price,`order_info`.num,`order_info`.pay_price,CASE `order_info`.pay_status WHEN 1 THEN '待支付' WHEN 2 THEN '支付中' WHEN 3 THEN '已支付' WHEN 4 THEN '取消支付' WHEN 5 THEN '退款中' WHEN 6 THEN '退款成功' ELSE '' END AS pay_status,`order_info`.create_time,`order_info`.official_price,`order_info`.merchant_name,`order_info`.activity_name,`order_info`.goods_name,`order_info`.pay_time,`order_info`.discount_amount,`order_info`.cost_price,`order_info`.success_num,`order_info`.channel,`order_info`.out_order_no,`order_info`.recharge_suc_time,`order_info`.key_batch_name,CASE `activity`.settlement_type WHEN 1 THEN '发放结算' WHEN 2 THEN '打开结算' WHEN 3 THEN '领用结算' WHEN 4 THEN '核销结算' ELSE '' END AS settlement_type,`order_voucher`.channel_batch_no,`order_voucher`.channel_voucher_id,CASE `order_voucher`.status WHEN 1 THEN '待发放' WHEN 2 THEN '发放中' WHEN 3 THEN '发放失败' WHEN 4 THEN '待核销' WHEN 5 THEN '已核销' WHEN 6 THEN '已过期' WHEN 7 THEN '已退款' ELSE '' END AS status,CASE `order_voucher`.receive_mode WHEN 1 THEN '渠道授权用户id' WHEN 2 THEN '手机号或邮箱' ELSE '' END AS receive_mode,`order_voucher`.grant_time,`order_voucher`.usage_time,`order_voucher`.expire_time,`order_voucher`.refund_amount,`order_voucher`.account,`goods_voucher_batch`.channel_batch_no,`goods_voucher_batch`.temp_no,`goods_voucher_subject_config`.name,CASE `order_voucher`.channel WHEN 1 THEN '支付宝' WHEN 2 THEN '微信' WHEN 3 THEN '云闪付' ELSE '' END AS channel FROM `order_info` LEFT JOIN `order_voucher` ON `order_voucher`.order_no = `order_info`.order_no LEFT JOIN `goods_voucher_batch` ON `goods_voucher_batch`.channel_batch_no = `order_voucher`.channel_batch_no LEFT JOIN `goods_voucher_subject_config` ON `goods_voucher_subject_config`.id = `goods_voucher_batch`.voucher_subject_id LEFT JOIN `activity` ON `activity`.id = `order_info`.activity_id WHERE `order_info`.create_time BETWEEN ? AND ? AND `order_info`.type = ? payload={"template_id":17,"requested_by":1,"permission":{},"options":{},"file_format":"xlsx","filters":{"create_time_between":["2025-01-01 00:00:00","2025-12-31 23:59:59"],"type_eq":2},"datasource":"ymt"} msg=Error 8001 (HY000): Not allowed to execute statement that may change data on polar slave +{"bytes":165,"duration_ms":2884,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":500,"trace_id":"","ts":"2025-11-28T09:33:34Z"}