You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1663 lines
60 KiB

SELECT * FROM lpk_giftcard WHERE isEnable=2
SELECT * FROM lpk_giftcard WHERE serialNumber IN(
'66004063'
,'66004064'
,'66004110'
,'66004090'
,'70000849'
,'70000850'
,'70000886'
,'70000887'
,'70000888'
,'70000889'
,'70000890'
,'70000892'
,'70000893'
,'70000894'
,'70004245'
,'70004246'
,'70004247'
,'66000597'
,'70004563'
,'66000003'
);
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66004063'
,'66004064'
,'66004110'
,'66004090'
,'70000849'
,'70000850'
,'70000886'
,'70000887'
,'70000888'
,'70000889'
,'70000890'
,'70000892'
,'70000893'
,'70000894'
,'70004245'
,'70004246'
,'70004247'
,'66000597'
,'70004563'
,'66000003'
);
SELECT * FROM lpk_giftcard
WHERE serialNumber>='66001044' and serialNumber<='66001056';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001044' and serialNumber<='66001056';
SELECT * FROM lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001058' and serialNumber<='66001130';
SELECT * FROM lpk_giftcard WHERE serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
);
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
);
SELECT * FROM lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001058' and serialNumber<='66001130';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000674' and serialNumber<='66000849';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='70001207' and serialNumber<='70001331';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66002474' and serialNumber<='66002484';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000122' and serialNumber<='66000123';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000429' and serialNumber<='66000436';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66002402' and serialNumber<='66002444';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66002447' and serialNumber<='66002473';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66002401',
'66002446'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66002371' and serialNumber<='66002393';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66002400',
'66002445'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66002890' and serialNumber<='66002939';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001210' and serialNumber<='66001257';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66003899' and serialNumber<='66003902';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000517' and serialNumber<='66000543';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000185' and serialNumber<='66000297';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000559' and serialNumber<='66000564';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000566' and serialNumber<='66000568';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000570' and serialNumber<='66000574';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66001429',
'66001435',
'66001464',
'66001469'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='70000415' and serialNumber<='70000417';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'70000423'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001151' and serialNumber<='66001200';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66000043'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000046' and serialNumber<='66000055';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000060' and serialNumber<='66000066';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000069' and serialNumber<='66000070';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000072' and serialNumber<='66000079';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000081' and serialNumber<='66000084';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66000086'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66000088' and serialNumber<='66000095';
update lpk_giftcard set isEnable=2 WHERE serialNumber IN(
'66000098',
'66000100'
);
update lpk_giftcard set isEnable=2
WHERE serialNumber>='66001658' and serialNumber<='66001726';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='70003924' and serialNumber<='70004099';
update lpk_giftcard set isEnable=2
WHERE serialNumber>='70001069' and serialNumber<='70001108';
-- 查看卡状态
select * from lpk_giftcard WHERE serialNumber IN(
'66004063'
,'66004064'
,'66004110'
,'66004090'
,'70000849'
,'70000850'
,'70000886'
,'70000887'
,'70000888'
,'70000889'
,'70000890'
,'70000892'
,'70000893'
,'70000894'
,'70004245'
,'70004246'
,'70004247'
,'66000597'
,'70004563'
,'66000003'
) and (customerSid is not null and customerSid<>'');
"id" "sid" "createTime" "remarks" "isEnable" "recordSid" "giftbagSid" "serialNumber" "code" "codeKey" "state" "grantName" "grantDate" "customerSid" "customerMobile" "recordId" "bankSid" "grantRecordSid" "bindDate" "isItInvalid" "isReservation" "isTransfer"
"12079" "f679c3ac-31f9-4b68-bd71-cd91e4432053" "2023-12-25 11:29:28" \N "2" "3f383300-677e-4f79-8ede-61a5c022d232" "04ca200b-df3c-4f00-8d4e-24268337a103" "66004063" "20231225112928490704" "328647" "4" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N "452" \N \N "2023-12-25 13:09:51" "0" "1" "0"
"12106" "9cc5537d-2fdf-4db2-aff9-f331b8aecaf3" "2023-12-25 11:30:18" \N "2" "c60d4493-f501-4474-af74-a8e58bef30ae" "1a9e549b-7853-41ad-a7bb-e39e34895d6d" "66004090" "20231225113018359684" "152596" "5" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N "455" \N \N "2024-01-19 14:27:17" "1" "1" "0"
"13407" "210f7c5e-f131-44c4-b75d-e5454f3474aa" "2024-01-05 13:05:15" \N "2" "a4cf2696-0545-4790-9f56-8daf6faa1129" "ae625b53-f54e-4161-a2e9-efdce633863c" "70000849" "20240105130514774036" "454016" "5" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N \N \N \N "2024-01-18 12:49:58" "1" "1" "0"
"17081" "e334c559-ea17-46e9-a4e2-534d2f5cc418" "2024-01-20 14:21:45" \N "2" "60797e96-211a-405b-95c5-9d020a189e5e" "6ce8be2c-d352-4b78-af7a-3354d006f6d1" "70004245" "20240120142145986892" "737759" "5" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N \N \N \N "2024-01-20 14:29:48" "1" "1" "0"
"17082" "dc9267c0-9930-47dd-958b-86410c91455c" "2024-01-20 14:21:45" \N "2" "424301be-7aec-45a4-9ae6-8a3a36e59a1e" "12e2e733-ed44-49ba-9bdc-6787da8641ea" "70004246" "20240120142145888048" "435487" "5" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N \N \N \N "2024-01-20 14:30:29" "1" "1" "0"
"17083" "e9fe4ad1-7bf0-4ceb-99ca-ecdf77fcec97" "2024-01-20 14:21:45" \N "2" "a8e59cbf-3a28-470a-825e-3f3782d3292f" "08206af7-d59b-4483-8c8a-cbb0902547ed" "70004247" "20240120142145366241" "545113" "5" \N \N "47547f4b-160f-45f0-9d03-d303420ff7b9" \N \N \N \N "2024-01-20 14:31:14" "1" "1" "0"
select * from lpk_giftcard
WHERE serialNumber>='66001044' and serialNumber<='66001056' and (customerSid is not null and customerSid<>'');
SELECT * FROM lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130' and (customerSid is not null and customerSid<>'');
SELECT * FROM lpk_giftcard WHERE serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (customerSid is not null and customerSid<>'');
SELECT * FROM lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66001058' and serialNumber<='66001130' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000674' and serialNumber<='66000849' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='70001207' and serialNumber<='70001331' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66002474' and serialNumber<='66002484' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000122' and serialNumber<='66000123' and (customerSid is not null and customerSid<>'');
"id" "sid" "createTime" "remarks" "isEnable" "recordSid" "giftbagSid" "serialNumber" "code" "codeKey" "state" "grantName" "grantDate" "customerSid" "customerMobile" "recordId" "bankSid" "grantRecordSid" "bindDate" "isItInvalid" "isReservation" "isTransfer"
"8137" "df9ed615-e36b-4462-b7b5-5db47565beca" "2023-12-15 20:04:17" \N "2" "8bdf3d0e-a37c-43cb-8fa8-3efdc2e4f8c6" "aaa75738-bef6-4a55-97ff-4345a5afb7b8" "66000122" "20231215200416784545" "699743" "3" \N \N "61282122-be02-47a5-a11d-b1e14774fc2a" \N "65" \N \N "2023-12-25 17:19:50" "0" "0" "0"
select * from lpk_giftcard
WHERE serialNumber>='66000429' and serialNumber<='66000436' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66002402' and serialNumber<='66002444' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66002447' and serialNumber<='66002473' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66002401',
'66002446'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66002371' and serialNumber<='66002393' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66002400',
'66002445'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66002890' and serialNumber<='66002939' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66001210' and serialNumber<='66001257' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66003899' and serialNumber<='66003902' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000517' and serialNumber<='66000543' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000185' and serialNumber<='66000297' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000559' and serialNumber<='66000564' and (customerSid is not null and customerSid<>'');
"id" "sid" "createTime" "remarks" "isEnable" "recordSid" "giftbagSid" "serialNumber" "code" "codeKey" "state" "grantName" "grantDate" "customerSid" "customerMobile" "recordId" "bankSid" "grantRecordSid" "bindDate" "isItInvalid" "isReservation" "isTransfer"
"8574" "3bf38bdc-fd4b-422e-81c2-ffa272211078" "2023-12-16 15:09:41" \N "2" "fca4129a-a76a-48f2-a08b-62f0094050c3" "2d456a4f-d771-43ba-af6d-79ea0efb3c35" "66000559" "20231216150941759792" "530305" "3" \N \N "9f498e8a-3775-4f98-96d6-3c029314fb60" \N "134" \N \N "2024-01-25 14:55:01" "0" "0" "0"
select * from lpk_giftcard
WHERE serialNumber>='66000566' and serialNumber<='66000568' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000570' and serialNumber<='66000574' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66001429',
'66001435',
'66001464',
'66001469'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='70000415' and serialNumber<='70000417' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'70000423'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66001151' and serialNumber<='66001200' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66000043'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000046' and serialNumber<='66000055' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000060' and serialNumber<='66000066' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000069' and serialNumber<='66000070' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000072' and serialNumber<='66000079' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000081' and serialNumber<='66000084' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66000086'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66000088' and serialNumber<='66000095' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard WHERE serialNumber IN(
'66000098',
'66000100'
) and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='66001658' and serialNumber<='66001726' and (customerSid is not null and customerSid<>'');
"id" "sid" "createTime" "remarks" "isEnable" "recordSid" "giftbagSid" "serialNumber" "code" "codeKey" "state" "grantName" "grantDate" "customerSid" "customerMobile" "recordId" "bankSid" "grantRecordSid" "bindDate" "isItInvalid" "isReservation" "isTransfer"
"9674" "ac36ac5e-1fb1-4b78-8f20-a003d6a50fea" "2023-12-18 13:31:28" \N "2" "38477d6f-7a05-4273-87ab-b56d375cc1a4" "e4251cd1-7853-4daf-aa95-7a7699897727" "66001658" "20231218133128689902" "360521" "5" \N \N "eca36f10-6dc4-473a-bfba-557d46090556" \N "243" \N \N "2023-12-25 15:00:13" "1" "1" "0"
select * from lpk_giftcard
WHERE serialNumber>='70003924' and serialNumber<='70004099' and (customerSid is not null and customerSid<>'');
select * from lpk_giftcard
WHERE serialNumber>='70001069' and serialNumber<='70001108' and (customerSid is not null and customerSid<>'');
"id" "sid" "createTime" "remarks" "isEnable" "recordSid" "giftbagSid" "serialNumber" "code" "codeKey" "state" "grantName" "grantDate" "customerSid" "customerMobile" "recordId" "bankSid" "grantRecordSid" "bindDate" "isItInvalid" "isReservation" "isTransfer"
"13627" "01ae979d-e1c2-4389-b4a0-a0b74fedf81b" "2024-01-08 15:25:51" \N "2" "0afba61e-1120-48e5-bd11-dbb35f00513a" "40a3a72b-216e-4746-9dce-2dc034daf376" "70001069" "20240108152550616736" "344078" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:42:52" "1" "1" "0"
"13628" "b8a1ff7d-c045-4080-bbb6-2becf9341b5a" "2024-01-08 15:25:51" \N "2" "7f67de0d-0a11-4056-aed5-8adee671b595" "aef87666-cc6b-4e0b-b9cf-58238080070a" "70001070" "20240108152550637612" "903892" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:43:39" "1" "1" "0"
"13629" "d545c18e-e637-4dff-978b-2f1950701cb5" "2024-01-08 15:25:51" \N "2" "020f41b8-71ec-4d59-b66b-c6cb30bdd7ba" "e4555203-cde6-46f4-ab28-f09373754b7d" "70001071" "20240108152550460735" "212311" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:43:51" "1" "1" "0"
"13630" "2b3535a1-298c-488f-a0d5-7a76999a3b20" "2024-01-08 15:25:51" \N "2" "81a4d115-5458-472a-ba4d-4fcbd2d7c448" "9d63ab8a-2250-46ed-bece-c087c5082ea1" "70001072" "20240108152550519777" "606660" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:43:59" "1" "1" "0"
"13631" "e2aa1a3f-22f1-4d31-9b79-2ed9d3638038" "2024-01-08 15:25:51" \N "2" "56620af1-fd4a-4540-9904-d4fae0153327" "5a55938e-b501-428e-8468-60e3feff9f01" "70001073" "20240108152550577251" "261236" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:44:19" "1" "1" "0"
"13632" "401b3486-ede0-42f5-b004-67ae660959db" "2024-01-08 15:25:51" \N "2" "572bfdf6-4d1e-4604-a528-29850b7e1418" "3b0da589-69ef-4059-bb11-f1c942d2d0b8" "70001074" "20240108152550559015" "742479" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:44:31" "1" "1" "0"
"13633" "29af0c1d-793e-4761-ad0a-9328cf2f0c7e" "2024-01-08 15:25:51" \N "2" "a41dc245-db6f-4adb-8500-e0d6ecbda092" "8da44372-1dcd-4cc2-8ebb-d74f7d5eb6f9" "70001075" "20240108152550465968" "992622" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:44:43" "1" "1" "0"
"13634" "6f1a01b0-5a51-42af-b739-860e8683cbb9" "2024-01-08 15:25:51" \N "2" "9fa0bcc4-8ca7-4854-93ab-99a70df74865" "cfb85a82-27bd-4446-9c0f-9b216705c7d0" "70001076" "20240108152550144057" "226721" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:44:53" "1" "1" "0"
"13635" "e8a37eef-fce6-4519-9cbd-af0d18240ffd" "2024-01-08 15:25:51" \N "2" "a5543c36-9f08-4f1d-a2da-58e9c846b833" "d67b4d9c-fb0b-42a7-8ca8-b4626a448336" "70001077" "20240108152550835915" "661689" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:48:24" "1" "1" "0"
"13636" "4f1d4089-1be0-4900-aa79-dad4b7a83e41" "2024-01-08 15:25:51" \N "2" "ee484a58-95c0-4339-879f-b4e8e91e6616" "66747087-0c6d-4d16-b7a7-1b4904c77d5c" "70001078" "20240108152550672837" "622041" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:48:34" "1" "1" "0"
"13637" "511acc6d-5396-43e5-9f68-3039520a8500" "2024-01-08 15:25:51" \N "2" "735d6689-5bf2-40fa-9aea-2f9d1f1bf135" "99568db1-e2eb-470c-8e70-ef721832c5d3" "70001079" "20240108152551345971" "258493" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:48:44" "1" "1" "0"
"13638" "97b265e3-1545-40c0-a3ca-c366cf427958" "2024-01-08 15:25:51" \N "2" "53dec639-e727-4607-abd1-f329d1bab70c" "403e0b0c-6556-4f9d-bc51-3c2790ac849c" "70001080" "20240108152551579451" "905276" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:48:57" "1" "1" "0"
"13639" "fdde49e6-9205-40a8-9f43-5764e424104f" "2024-01-08 15:25:51" \N "2" "851d7036-28b4-4524-b5b3-f2a749043939" "e4fed6a9-edee-450f-beb5-451bf93fad72" "70001081" "20240108152551959735" "435875" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:49:21" "1" "1" "0"
"13640" "70754e1a-8f34-4f3e-9147-3cc96b9e7d0b" "2024-01-08 15:25:51" \N "2" "5f8d22db-a01f-4687-90d0-c030bc851278" "19c5f985-394f-4a3a-8736-4a003afaad81" "70001082" "20240108152551300372" "584867" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:49:31" "1" "1" "0"
"13641" "7a1697bb-303c-4555-8422-70820b11ea7c" "2024-01-08 15:25:51" \N "2" "21a19c6b-d2ec-47b5-8b0d-179a1cf5c540" "acd2c6db-77a2-4fcb-ab3b-efa45cd220c9" "70001083" "20240108152551300347" "863525" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:49:43" "1" "1" "0"
"13642" "c236e80e-f6a2-46b6-be16-a9c6fe3c319a" "2024-01-08 15:25:51" \N "2" "c0a4da03-0f03-4bba-9ca9-14a71e016462" "ba2a2dc0-9d2c-4bab-9e85-a86457b30c97" "70001084" "20240108152551509336" "445175" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:49:58" "1" "1" "0"
"13643" "f60debff-ace8-4fcf-a927-5809e31134d0" "2024-01-08 15:25:51" \N "2" "dfb2ec96-f98a-4936-972d-43289b1394b5" "62012d59-525b-40a8-9bdf-7aa5ac51c81b" "70001085" "20240108152551668675" "850858" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:53:22" "1" "1" "0"
"13644" "29e3e379-00de-456e-90ba-d34f01832413" "2024-01-08 15:25:51" \N "2" "6ad381dc-e909-4be9-9055-342b541f0908" "6e7280e3-4864-4820-8df7-c1cce46f0582" "70001086" "20240108152551256862" "947400" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:53:33" "1" "1" "0"
"13645" "7385a8c2-f471-4ffe-accf-3adb721cb55d" "2024-01-08 15:25:51" \N "2" "5e5a319f-1985-4ba9-93d0-ad3de36c9c13" "bdd5cd07-7d9c-4420-ba62-bb29fa770814" "70001087" "20240108152551924236" "511616" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:53:42" "1" "1" "0"
"13646" "749508ee-1578-459f-8195-5e31073052a4" "2024-01-08 15:25:51" \N "2" "90847f0c-ebe0-4ebc-afed-43223950aee3" "cccd7359-d9f2-4bd9-8377-83d00ad8c717" "70001088" "20240108152551444480" "268798" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:53:50" "1" "1" "0"
"13647" "26f0c76a-37ae-45e4-a661-6d8fe6311c1a" "2024-01-08 15:25:51" \N "2" "b5b000b5-3ace-4696-8a0a-3191f5e662c1" "451cf65a-2472-4219-aac1-9e502c3879ea" "70001089" "20240108152551241099" "771281" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:54:03" "1" "1" "0"
"13648" "9bd03111-8062-4eb5-9023-aec859e8cdc8" "2024-01-08 15:25:51" \N "2" "9eaa5a2d-8980-4cd3-b5cf-db50d3de649f" "76467ab3-c5b1-4a10-8be0-b8a6ef2d0a32" "70001090" "20240108152551729568" "329926" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-15 12:54:11" "1" "1" "0"
"13649" "09c8b08b-9917-42dd-ae09-b809d21a954b" "2024-01-08 15:25:51" \N "2" "d641ebe1-c103-4317-be51-476964dd2f01" "11b7544a-d6e2-4714-bc69-e0540384b7f5" "70001091" "20240108152551538363" "293137" "5" \N \N "96b4ef58-ea26-4c2e-86cb-27a38c6ec1b5" \N \N \N \N "2024-01-17 11:57:07" "1" "1" "0"
-- 分批统计
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66004063'
,'66004064'
,'66004110'
,'66004090'
,'70000849'
,'70000850'
,'70000886'
,'70000887'
,'70000888'
,'70000889'
,'70000890'
,'70000892'
,'70000893'
,'70000894'
,'70004245'
,'70004246'
,'70004247'
,'66000597'
,'70004563'
,'66000003'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001044' and lg.serialNumber<='66001056' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000674' and lg.serialNumber<='66000849' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70001207' and lg.serialNumber<='70001331' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002474' and lg.serialNumber<='66002484' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000122' and lg.serialNumber<='66000123' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000429' and lg.serialNumber<='66000436' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002402' and lg.serialNumber<='66002444' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002447' and lg.serialNumber<='66002473' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66002401',
'66002446'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002371' and lg.serialNumber<='66002393' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66002400',
'66002445'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002890' and lg.serialNumber<='66002939' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001210' and lg.serialNumber<='66001257' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66003899' and lg.serialNumber<='66003902' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000517' and lg.serialNumber<='66000543' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000185' and lg.serialNumber<='66000297' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000559' and lg.serialNumber<='66000564' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000566' and lg.serialNumber<='66000568' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000570' and lg.serialNumber<='66000574' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001429',
'66001435',
'66001464',
'66001469'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70000415' and lg.serialNumber<='70000417' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'70000423'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001151' and lg.serialNumber<='66001200' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000043'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000046' and lg.serialNumber<='66000055' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000060' and lg.serialNumber<='66000066' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000069' and lg.serialNumber<='66000070' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000072' and lg.serialNumber<='66000079' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000081' and lg.serialNumber<='66000084' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000086'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000088' and lg.serialNumber<='66000095' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000098',
'66000100'
) and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001658' and lg.serialNumber<='66001726' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70003924' and lg.serialNumber<='70004099' and (lg.customerSid is not null and lg.customerSid<>'')
;
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70001069' and lg.serialNumber<='70001108' and (lg.customerSid is not null and lg.customerSid<>'')
;
-- 汇总
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66004063'
,'66004064'
,'66004110'
,'66004090'
,'70000849'
,'70000850'
,'70000886'
,'70000887'
,'70000888'
,'70000889'
,'70000890'
,'70000892'
,'70000893'
,'70000894'
,'70004245'
,'70004246'
,'70004247'
,'66000597'
,'70004563'
,'66000003'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001044' and lg.serialNumber<='66001056' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001132',
'70000172',
'70000173',
'70000180',
'70000181',
'70000183',
'70000184'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001058' and lg.serialNumber<='66001130' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000674' and lg.serialNumber<='66000849' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70001207' and lg.serialNumber<='70001331' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002474' and lg.serialNumber<='66002484' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000122' and lg.serialNumber<='66000123' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000429' and lg.serialNumber<='66000436' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002402' and lg.serialNumber<='66002444' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002447' and lg.serialNumber<='66002473' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66002401',
'66002446'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002371' and lg.serialNumber<='66002393' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66002400',
'66002445'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66002890' and lg.serialNumber<='66002939' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001210' and lg.serialNumber<='66001257' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66003899' and lg.serialNumber<='66003902' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000517' and lg.serialNumber<='66000543' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000185' and lg.serialNumber<='66000297' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000559' and lg.serialNumber<='66000564' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000566' and lg.serialNumber<='66000568' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000570' and lg.serialNumber<='66000574' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66001429',
'66001435',
'66001464',
'66001469'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70000415' and lg.serialNumber<='70000417' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'70000423'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001151' and lg.serialNumber<='66001200' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000043'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000046' and lg.serialNumber<='66000055' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000060' and lg.serialNumber<='66000066' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000069' and lg.serialNumber<='66000070' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000072' and lg.serialNumber<='66000079' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000081' and lg.serialNumber<='66000084' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000086'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66000088' and lg.serialNumber<='66000095' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber IN(
'66000098',
'66000100'
) and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='66001658' and lg.serialNumber<='66001726' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70003924' and lg.serialNumber<='70004099' and (lg.customerSid is not null and lg.customerSid<>'')
UNION
SELECT
lg.serialNumber ,
lg.bindDate ,
lc.wxMpOpenid OpenID,
lc.sid SID,
lc.nick ,
lc.mobile ,
lcb.name
from lpk_giftcard lg
LEFT JOIN lpk_customer lc ON lc.sid=lg.customerSid
LEFT JOIN lpk_customer_bank lcb ON lcb.sid=lc.customerBankSid
WHERE lg.serialNumber>='70001069' and lg.serialNumber<='70001108' and (lg.customerSid is not null and lg.customerSid<>'')
;