|
@@ -20,39 +20,15 @@
|
|
|
WHERE shortLink = #{shortLink}
|
|
|
</select>
|
|
|
<select id="findOldUser" resultType="com.caimei365.order.model.vo.PushMessageUserVo">
|
|
|
- SELECT
|
|
|
- a.clubID AS clubID,
|
|
|
- u.userID AS userID,
|
|
|
- a.contractMobile AS mobile
|
|
|
- FROM club a
|
|
|
- LEFT JOIN USER u ON u.userID = a.userID
|
|
|
- WHERE u.userID IN
|
|
|
- (6068,6072,6075,6077,6082,6083,6085,6090,
|
|
|
- 6091,6092,6094,6095,6096,6100,6101,6102,6103,6104,6105,6106,6110,6111,6113,6116,6120,6130,6153,6156,6163,6164,6169,
|
|
|
- 6182,6184,6190,6201,6205,6208,6209,6210,6211,6212,6214,6215,6216,6222,6223,6224,6225,6227,6229,6230,6249,6253,6254,6256,6257,
|
|
|
- 6258,6259,6260,6261,6264,6266,6269,6270,6275,6278,6279,6280,6282,6284,6288,6289,6292,6294,6307,6308,6309,6311,6312,6315,6317,6318,
|
|
|
- 6320,6321,6322,6323,6325,6326,6327,6328,6329,6330,6333,6335,6336,6337,6338,6343,6344,6345,6347,6350,6351,6352,6353,6355,
|
|
|
- 6356,6357,6359,6360,6361,6363,6364,6365,6366,6370,6371,6372,6373,6374,6375,6377,6383,6384,6385,6386,6387,6389,6390,6392,6394,6396,6398,
|
|
|
- 6399,6401,6403,6406,6408,6412,6418,6422,6425,6435,6437,6439,6440,6441,6444,6445,6446,6449,6453,6455,6456,6457,6464,6465,6466,
|
|
|
- 6483,6487,6495,6499,6504,6505,6506,6560,6562,6570,6580,6589,6603,6612,6618,6641,6642,6659,6698,6699,6701,6744,6761,6762,6765,
|
|
|
- 6775,6827,6852,6865,6891,6899,6901,6910,6933,6943,6962,6958,6971,6972,6973,6978,6989,6991,7000,7006,7009,7012,7014,7022,7040,
|
|
|
- 7056,7058,7060,7071,7073,7077,7079,7090,7092,7099,7104,7112,7114,7115,7144,7162,7184,7185,7181,7203,7134,7223,7214,7247,7260,
|
|
|
- 7276,7291,7295,7324,7333,7354,7357,7361,7374,7385,7406,7431,7442,7443,7468,7471,7490,7520,7573,7577,7578,7595,7604,7631,7638,7671,
|
|
|
- 7582,7714,7730,7767,7787,7830,7940,7605,7968,7980,7988,7993,8017,8018,8027,8028,8037,8039,8040,6481,8053,8055,8072,8079,8082,8083,8089,
|
|
|
- 8091,8116,8122,8124,8135,8138,8146,8157,8162,8163,7967,8188,8190,8196,8207,8209,8211,8233,8235,8239,8257,8267,8278,8279,8280,
|
|
|
- 8292,8318,8324,8331,8338,8339,8340,8366,8368,8372,8404,8406,8386,8408,8416,8417,8425,8438,8458,8495,8506,8522,8524,8488,8590,8596,
|
|
|
- 8664,8681,8001,8784,8795,8891,8892,8926,8929,8981,8992,9026,9049,9076,9101,9114,9038,9525,9541,9577,9637,9639,9672,9686,9735,9831,9838,9844,
|
|
|
- 9859,9917,9925,9982,9991,10019,10029,10069,10104,10125,10143,10174,10203,10213,10216,10228,10234,10242,10244,10248,10249,10251,
|
|
|
- 10252,10316,10334,10340,10354,10355,10371,10382,10384,10392,10403,10414,10442,10472,10477,10499,10516,10522,10529,10545,10606,10628,
|
|
|
- 10643,10648,10664,10671,10706,10721,10747,10754,10788,10801,10831,10832,10841,10855,10889,10903,10941,10945,10955,11009,11011,11036,
|
|
|
- 11040,11046,11070,11083,11135,11189,11200,11206,11210,11230,11243,11262,11276,11309,11334,11338,11362,11390,11400,11430,11463,11482,
|
|
|
- 11499,11540,11541,11563,11610,11635,11704,11716,11909,12222,12825,12847,12855,12871,12891,12892,12912,12937,12987,13004,13012,13094,13104,13126,
|
|
|
- 13137,13142,13151,13154,13165,13224,13243,13279,13288,13295,13296,13306,13311,13327,13354,13355,13363,13404,13432,13439,13458,13495,
|
|
|
- 13500,13507,13525,13536,13543,13545,13573,13595,13600,13630,13691,13711,13726,13756,13776,13817,13831,13841,13867,13921,13924,13939,
|
|
|
- 13969,13978,14037,14046,14070,14085,14104,14114,14148,14152,14159,14162,14186,14229,14245,14251,14254,14279,14356,14365,14367,14413,
|
|
|
- 14414,14424,14443,14446,14451,14452,14460,14547,14577,14598,14668,14718,14752,14755,14764,14805,14806,14814,14818,14830,14839,14856,
|
|
|
- 14859,14897,14900,14903,14951,14967,14989,15000,15009,15012,15037,15040,15072,15093,15095,15102,15106,15140,15160,15184,15229,15239,
|
|
|
- 15240,15258,15269,15320,15329,15343,15344,15420,15457,15466,15490,15496,15522,15578,15603,15627,15636,15641,15654,15662,15690,15768)
|
|
|
+ SELECT cu.mobile,
|
|
|
+ cu.authId AS userId
|
|
|
+ FROM cm_brand_club_user cu
|
|
|
+ LEFT JOIN cm_brand_auth a ON cu.authId = a.id
|
|
|
+ WHERE cu.authUserId = 12
|
|
|
+ AND cu.delFlag = 0
|
|
|
+ AND (a.id IS NULL || a.delFlag = 0)
|
|
|
+ AND cu.id NOT IN (51, 56, 57)
|
|
|
+ ORDER BY cu.addTime DESC
|
|
|
</select>
|
|
|
<select id="findOldUserTow" resultType="com.caimei365.order.model.vo.PushMessageUserVo">
|
|
|
SELECT
|