tongce.py 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. from excel_util import ExcelUtil
  2. from mysql_db import MysqlDB
  3. from itertools import groupby
  4. class TongCe:
  5. """
  6. 同策测试数据清洗
  7. """
  8. # 统计筒体结果
  9. sql_1 = '''
  10. SELECT
  11. a.sub_question_id,
  12. b.sub_question_content,
  13. a.score,
  14. b.sub_option_content,
  15. count(1)
  16. FROM
  17. f_t_daren_score_2 a
  18. LEFT JOIN d_shangju_tiku_02 b ON a. STATUS = b. STATUS = 1
  19. WHERE
  20. a.testcase_id in %s and
  21. a.testcase_id = b.testcase_id
  22. AND a.sub_question_id = b.sub_question_id
  23. AND (
  24. a.score = b.score
  25. OR a.score = b.sub_option_id
  26. )
  27. GROUP BY
  28. b.sub_question_content,
  29. a.score,
  30. b.sub_option_content
  31. '''
  32. # 选项信息
  33. sql_2 = '''
  34. SELECT
  35. b.id as question_id,
  36. b. NAME as question_title,
  37. a.id as sub_question_id,
  38. a. NAME as sub_question_title,
  39. d.id as option_id,
  40. d.content as option_title,
  41. c.id as sub_option_id,
  42. c.content as sub_option_title
  43. FROM
  44. bq_sub_question a
  45. LEFT JOIN bq_question b ON a.father_id = b.id
  46. LEFT JOIN bq_sub_option c ON a.id = c.sub_question_id
  47. LEFT JOIN bq_option d ON c.father_id = d.id
  48. WHERE
  49. FIND_IN_SET(
  50. a.id,
  51. (
  52. SELECT
  53. GROUP_CONCAT(question_ids)
  54. FROM
  55. bq_testcase
  56. WHERE
  57. house_ids = %s
  58. GROUP BY
  59. house_ids
  60. )
  61. )
  62. AND a. STATUS = b. STATUS = c. STATUS = 1
  63. ORDER BY
  64. a.id
  65. '''
  66. # 表
  67. sql_3 = '''
  68. INSERT INTO mvp_page_display_match (
  69. house_id,
  70. question_id,
  71. question_title,
  72. sub_question_id,
  73. sub_question_title,
  74. option_id,
  75. option_content,
  76. sub_option_id,
  77. sub_option_content,
  78. data_item_tab,
  79. data_item_title,
  80. data_item_name,
  81. STATUS,
  82. creator,
  83. created
  84. )
  85. VALUES
  86. (
  87. %s,
  88. %s,
  89. %s,
  90. %s,
  91. %s,
  92. %s,
  93. %s,
  94. %s,
  95. %s,
  96. %s,
  97. %s,
  98. %s,
  99. 1,
  100. 'binren',
  101. now()
  102. )
  103. '''
  104. sql_4 = '''
  105. SELECT
  106. id,
  107. sub_question_id,
  108. sub_option_id,
  109. data_item_name
  110. FROM
  111. mvp_page_display_match
  112. WHERE
  113. STATUS = 1
  114. '''
  115. sql_5 = '''
  116. SELECT
  117. id
  118. FROM
  119. bq_testcase
  120. WHERE
  121. STATUS = 1
  122. AND FIND_IN_SET(
  123. (
  124. SELECT
  125. id
  126. FROM
  127. bq_house
  128. WHERE
  129. STATUS = 1
  130. AND NAME = %s
  131. ),
  132. house_ids
  133. )
  134. '''
  135. sql_6 = '''
  136. insert INTO mvp_page_display_data (
  137. crowd_info_id,
  138. match_id,
  139. page_display_rule_id,
  140. name,
  141. value,
  142. STATUS,
  143. creator,
  144. created
  145. )
  146. VALUES
  147. (%s, %s, %s, %s, %s, 1, 'binren', now())
  148. '''
  149. sql_7 = '''
  150. SELECT
  151. a.testcase_id,
  152. a.uuid,
  153. GROUP_CONCAT(
  154. DISTINCT b.sub_option_content
  155. )
  156. FROM
  157. f_t_daren_score_2 a
  158. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  159. WHERE
  160. a.testcase_id IN (84, 85, 86, 87)
  161. AND b.father_id IN (47, 48, 234, 254)
  162. and a.sub_question_id = b.sub_question_id and a.testcase_id = b.testcase_id
  163. GROUP BY
  164. a.testcase_id,
  165. a.uuid
  166. '''
  167. sql_8 = '''
  168. SELECT
  169. a.uuid,
  170. a.title,
  171. a.testcase_id,
  172. b.father_id,
  173. b.father_content,
  174. b.sub_option_id,
  175. b.sub_option_content
  176. FROM
  177. f_t_daren_score_2 a
  178. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  179. WHERE
  180. a.testcase_id = b.testcase_id
  181. AND a.sub_question_id = b.sub_question_id
  182. AND a.testcase_id IN (84, 85, 86, 87)
  183. '''
  184. sql_9 = '''
  185. SELECT
  186. x.city
  187. ,x.uuid
  188. ,x.sex
  189. ,x.nld
  190. ,x.zhifuli
  191. ,x.juzhujiegou
  192. ,m.father_content
  193. ,m.father_id
  194. ,m.sub_question_id
  195. ,m.sub_question_content
  196. ,m.sub_option_id
  197. ,m.sub_option_content
  198. ,m.testcase_id
  199. ,m.title
  200. FROM
  201. (
  202. SELECT
  203. e.uuid,
  204. e.sex,
  205. f.nld,
  206. c.zhifuli,
  207. d.city,
  208. w.juzhujiegou
  209. FROM
  210. (
  211. SELECT
  212. a.testcase_id,
  213. a.uuid,
  214. b.sub_option_content AS sex
  215. FROM
  216. f_t_daren_score_2 a
  217. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  218. WHERE
  219. a.testcase_id IN (84, 85, 86, 87)
  220. AND b.father_id = 47
  221. AND a.sub_question_id = b.sub_question_id
  222. AND a.testcase_id = b.testcase_id
  223. GROUP BY
  224. a.testcase_id,
  225. a.uuid
  226. ) e
  227. LEFT JOIN (
  228. SELECT
  229. a.uuid,
  230. b.sub_option_content AS nld
  231. FROM
  232. f_t_daren_score_2 a
  233. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  234. WHERE
  235. a.testcase_id IN (84, 85, 86, 87)
  236. AND b.father_id = 48
  237. AND a.sub_question_id = b.sub_question_id
  238. AND a.testcase_id = b.testcase_id
  239. GROUP BY
  240. a.testcase_id,
  241. a.uuid
  242. ) f ON e.uuid = f.uuid
  243. LEFT JOIN (
  244. SELECT
  245. a.uuid,
  246. b.sub_option_content AS zhifuli
  247. FROM
  248. f_t_daren_score_2 a
  249. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  250. WHERE
  251. a.testcase_id IN (84, 85, 86, 87)
  252. AND b.father_id = 234
  253. AND a.sub_question_id = b.sub_question_id
  254. AND a.testcase_id = b.testcase_id
  255. GROUP BY
  256. a.testcase_id,
  257. a.uuid
  258. ) c ON f.uuid = c.uuid
  259. LEFT JOIN (
  260. SELECT
  261. a.uuid,
  262. b.sub_option_content AS city
  263. FROM
  264. f_t_daren_score_2 a
  265. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  266. WHERE
  267. a.testcase_id IN (84, 85, 86, 87)
  268. AND b.father_id = 254
  269. AND a.sub_question_id = b.sub_question_id
  270. AND a.testcase_id = b.testcase_id
  271. GROUP BY
  272. a.testcase_id,
  273. a.uuid
  274. ) d ON c.uuid = d.uuid
  275. left join (
  276. SELECT
  277. a.uuid,
  278. b.sub_option_content AS juzhujiegou
  279. FROM
  280. f_t_daren_score_2 a
  281. LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
  282. WHERE
  283. a.testcase_id IN (84, 85, 86, 87)
  284. AND b.father_id = 211
  285. AND a.sub_question_id = b.sub_question_id
  286. AND a.testcase_id = b.testcase_id
  287. GROUP BY
  288. a.testcase_id,
  289. a.uuid
  290. ) w on d.uuid = w.uuid
  291. ) x
  292. LEFT JOIN (
  293. SELECT
  294. a.uuid,
  295. a.title,
  296. a.testcase_id,
  297. b.father_id,
  298. b.father_content,
  299. b.sub_question_id,
  300. b.sub_question_content,
  301. b.sub_option_id,
  302. b.sub_option_content
  303. FROM
  304. f_t_daren_score_2 a
  305. LEFT JOIN d_shangju_tiku_02 b ON a.sub_question_id = b.sub_question_id
  306. WHERE
  307. a.testcase_id = b.testcase_id
  308. AND (a.score = b.sub_option_id or a.score = b.score)
  309. AND a.testcase_id IN (84, 85, 86, 87)
  310. AND a.sub_question_id = 417
  311. ) m ON x.uuid = m.uuid
  312. '''
  313. sql_10 = '''
  314. INSERT INTO f_t_daren_score_2 (
  315. testcase_id,
  316. title,
  317. uuid, score, created, sub_question_id
  318. )
  319. VALUE
  320. (84, '有钱人的生活就是很枯燥的……', %s, %s, %s, %s)
  321. '''
  322. sql_11 = '''
  323. select id, title_type, title_in_page, sub_question_id from mvp_page_display_rule where status = 1
  324. '''
  325. sql_12 = '''
  326. INSERT INTO mvp_page_display_rule (
  327. house_id,
  328. function_id,
  329. title_type,
  330. title_in_page,
  331. sub_question_id,
  332. STATUS,
  333. creator,
  334. created
  335. )
  336. VALUE
  337. (
  338. 67,
  339. 1,
  340. %s,
  341. %s,
  342. %s,
  343. 1,
  344. 'binren',
  345. now()
  346. )
  347. '''
  348. sql_13 = '''
  349. INSERT INTO mvp_crowd_info (
  350. house_id,
  351. pay_ability,
  352. age_area,
  353. city_name,
  354. life_cycle,
  355. STATUS,
  356. creator,
  357. created
  358. )
  359. VALUES
  360. (
  361. 67,
  362. %s,
  363. %s,
  364. %s,
  365. %s,
  366. 1,
  367. 'binren',
  368. now()
  369. )
  370. '''
  371. def __init__(self):
  372. self.shangju_db = MysqlDB('shangju')
  373. self.marketing_db = MysqlDB('bi_report')
  374. self.linshi_db = MysqlDB('linshi', db_type=1)
  375. self.options_info = ExcelUtil('工作表6', 'tongce.xlsx').read_options_info()
  376. self.table_type_info = ExcelUtil('新增项目数据项类型排序与展示图表类型管理表', 'table_type.xlsx').get_table_type_info()
  377. def close(self):
  378. self.shangju_db.close()
  379. self.linshi_db.close()
  380. self.marketing_db.close()
  381. def get_question_info_from_db(self):
  382. result = self.shangju_db.select(self.sql_2, [67])
  383. insert_data = []
  384. for rt in result:
  385. rt = list(rt)
  386. option_configuration = self.options_info.get('67' + str(rt[6]))
  387. if option_configuration and len(option_configuration) == 4:
  388. rt.insert(0, 67)
  389. rt.extend(option_configuration[0:3])
  390. insert_data.append(rt)
  391. return insert_data
  392. def get_option_match_info(self):
  393. result = self.linshi_db.select(self.sql_4)
  394. return result
  395. # 支付力:376,年龄:29,城市:377,居住结构:395。
  396. sql_14 = '''
  397. select content from bq_sub_option where sub_question_id = %s
  398. '''
  399. def insert_into_mvp_crowd_info(self):
  400. zhifuli = self.shangju_db.select(self.sql_14, [376])
  401. age = self.shangju_db.select(self.sql_14, [29])
  402. city = self.shangju_db.select(self.sql_14, [377])
  403. juzhujiegou = self.shangju_db.select(self.sql_14, [395])
  404. insert_data = []
  405. for zfl in zhifuli:
  406. for a in age:
  407. for cy in city:
  408. for jzjg in juzhujiegou:
  409. insert_data.append([zfl, a, cy, jzjg])
  410. if len(insert_data) > 0:
  411. # self.linshi_db.truncate('mvp_crowd_info')
  412. self.linshi_db.add_some(self.sql_13, insert_data)
  413. sql_15 = '''
  414. select id, pay_ability, age_area, city_name, life_cycle from mvp_crowd_info where status = 1 and house_id = 67
  415. '''
  416. def get_crowd_info(self):
  417. data = self.linshi_db.select(self.sql_15)
  418. return data
  419. def insert_into_rule(self):
  420. option_info = self.options_info
  421. insert_data = []
  422. sub_question_ids = []
  423. for key in option_info.keys():
  424. data = option_info[key]
  425. if data[3] not in sub_question_ids:
  426. insert_data.append([data[0], data[1], data[3]])
  427. sub_question_ids.append(data[3])
  428. if len(insert_data) > 0:
  429. self.linshi_db.truncate('mvp_page_display_rule')
  430. self.linshi_db.add_some(self.sql_12, insert_data)
  431. def get_rule_data_info(self):
  432. data = self.linshi_db.select(self.sql_11)
  433. return data
  434. sql_16 = '''
  435. insert INTO mvp_page_display_data (
  436. crowd_info_id,
  437. match_id,
  438. value,
  439. STATUS,
  440. creator,
  441. created
  442. )
  443. VALUES
  444. (%s, %s, %s, 1, 'binren', now())
  445. '''
  446. def lingdi_data_scores(self):
  447. # 1: 写入mvp_crowd_info
  448. # self.insert_into_mvp_crowd_info()
  449. crowd_info = self.get_crowd_info()
  450. # 2: 写入rule
  451. # self.insert_into_rule()
  452. rule = self.get_rule_data_info()
  453. # 3: 读入答题数据
  454. self.answers = self.marketing_db.select(self.sql_9)
  455. # 4: 写入match信息
  456. # match_data = self.get_question_info_from_db()
  457. # self.linshi_db.truncate('mvp_page_display_match')
  458. # self.linshi_db.add_some(self.sql_3, match_data)
  459. self.match_data_info = self.get_option_match_info()
  460. # self.linshi_db.truncate('mvp_page_display_data')
  461. # 筛选写入data的数据
  462. count = 0
  463. no_data_case = []
  464. try:
  465. for ci in crowd_info:
  466. insert_data = []
  467. crowd_info_id = ci[0]
  468. zhifuli = ci[1]
  469. age = ci[2]
  470. city = ci[3]
  471. juzhujiegou = ci[4]
  472. data = self.filter_people(city, age, zhifuli, juzhujiegou)
  473. data.sort(key=lambda obj: obj[0])
  474. for key, questions_data in groupby(data, key=lambda obj: obj[0]):
  475. question_data_list = []
  476. for qd in questions_data:
  477. question_data_list.append([x for x in qd])
  478. rule_id = self.get_rule_id(key, rule)
  479. if rule_id is not None:
  480. question_people = len(question_data_list)
  481. if question_people > 0:
  482. question_data_list.sort(key=lambda obj: obj[3])
  483. for option_name, option_data_1 in groupby(question_data_list, key=lambda obj: obj[3]):
  484. option_data_list = []
  485. for od in option_data_1:
  486. option_data_list.append([x for x in od])
  487. if len(option_data_list) > 0:
  488. match_id = 0
  489. option_name_alias = option_name
  490. option_id = option_data_list[0][2]
  491. for md in self.match_data_info:
  492. if str(md[1]) == str(key) and str(md[2]) == str(option_id):
  493. match_id = md[0]
  494. option_name_alias = md[3]
  495. insert_data.append([crowd_info_id, match_id, rule_id, option_name_alias, len(option_data_list)])
  496. else:
  497. no_data_case.append([zhifuli, city, age, juzhujiegou, option_name])
  498. else:
  499. no_data_case.append([zhifuli, city, age, juzhujiegou, key])
  500. count += len(insert_data)
  501. self.linshi_db.add_some(self.sql_6, insert_data)
  502. isnert_data_all = []
  503. quanliang_scores = self.scores()
  504. for q_s in quanliang_scores:
  505. rule_id = self.get_rule_id(q_s[0], rule)
  506. if rule_id:
  507. for md in self.match_data_info:
  508. if str(md[1]) == str(q_s[0]) and str(md[2]) == str(q_s[1]):
  509. match_id = md[0]
  510. option_name_alias = md[3]
  511. isnert_data_all.append([5405, match_id, rule_id, option_name_alias, q_s[2]])
  512. self.linshi_db.add_some(self.sql_6, isnert_data_all)
  513. count += len(isnert_data_all)
  514. return {'写入库中的数据': count, '无数据': len(no_data_case)}
  515. except Exception as e:
  516. return str(e)
  517. sql_20 = '''
  518. UPDATE mvp_page_display_rule
  519. SET display_type = %s,
  520. display_size = %s
  521. WHERE
  522. title_in_page = %s
  523. '''
  524. def table_type_insert(self):
  525. for data in self.table_type_info:
  526. self.linshi_db.update(self.sql_20, data)
  527. def get_rule_id(self, sub_question_id, rule):
  528. for re in rule:
  529. if str(re[3]) == str(sub_question_id):
  530. return re[0]
  531. def filter_people(self, city, age, zhifuli, juzhujiegou):
  532. result = []
  533. for answer in self.answers:
  534. if answer[0] == city and answer[3] == age and answer[4] == zhifuli and answer[5] == juzhujiegou:
  535. # 子题id, 子题题目,子选项id,子选项题目
  536. if answer[8] is not None and answer[9] is not None and answer[12] is not None and answer[13]:
  537. result.append([answer[8], answer[9], answer[12], answer[13]])
  538. return result
  539. def get_testcase_ids_by_house_name(self, house_name):
  540. testcase_ids = self.shangju_db.select(self.sql_5, [house_name])
  541. return testcase_ids
  542. def scores(self):
  543. testcase_ids = self.get_testcase_ids_by_house_name('同策 领地')
  544. db_data = self.marketing_db.select(self.sql_1, [testcase_ids])
  545. answer = []
  546. for data in db_data:
  547. answer.append([data[0], data[2], data[4]])
  548. answer.sort(key=lambda obj: obj[0])
  549. sub_option_score = []
  550. for sub_question_id, others in groupby(answer, key=lambda obj: obj[0]):
  551. others_data = []
  552. for ot in others:
  553. others_data.append([x for x in ot])
  554. sub_question_count = sum([x[2] for x in others_data])
  555. for td in others_data:
  556. sub_option_id = td[1]
  557. sub_option_count = td[2]
  558. rate = int(sub_option_count) / sub_question_count
  559. sub_option_score.append([sub_question_id, sub_option_id, sub_option_count])
  560. return sub_option_score
  561. def tongce(self):
  562. """
  563. tongce测试数据清洗
  564. :return:
  565. """
  566. match_data = self.get_question_info_from_db()
  567. # self.linshi_db.truncate('mvp_page_display_match')
  568. self.linshi_db.add_some(self.sql_3, match_data)
  569. scores = self.scores()
  570. match_data_info = self.get_option_match_info()
  571. dispaly_data = []
  572. for score in scores:
  573. sub_question_id = score[0]
  574. sub_option_id = score[1]
  575. value = score[2]
  576. for mi in match_data_info:
  577. if str(mi[1]) == str(sub_question_id) and str(mi[2]) == str(sub_option_id):
  578. dispaly_data.append([mi[0], value])
  579. if len(dispaly_data) > 0:
  580. self.linshi_db.truncate('mvp_page_display_data')
  581. self.linshi_db.add_some(self.sql_6, dispaly_data)
  582. return {'插入数据条数': len(dispaly_data), 'scores': dispaly_data}
  583. def wenjuanxin_84(self):
  584. excel = ExcelUtil('Sheet1', '84_1500.xlsx')
  585. insert_data = excel.wenjuanxin_84()
  586. self.linshi_db.add_some(self.sql_10, insert_data)
  587. print()
  588. sql_17 = '''
  589. SELECT
  590. id,
  591. uuid,
  592. created,
  593. `status`,
  594. sub_question_id,
  595. testcase_id,
  596. title,
  597. score,
  598. province,
  599. city,
  600. district
  601. FROM
  602. f_t_daren_score_2
  603. WHERE
  604. testcase_id IN (84, 85, 86, 87)
  605. AND sub_question_id = 377
  606. AND score = 2917
  607. AND (
  608. city IN (
  609. '昆明市',
  610. '西安市',
  611. '咸阳市',
  612. '郑州市',
  613. '洛阳市',
  614. '武汉市',
  615. '襄阳市',
  616. '重庆市',
  617. '璧山'
  618. )
  619. OR province IN (
  620. '昆明市',
  621. '西安市',
  622. '咸阳市',
  623. '郑州市',
  624. '洛阳市',
  625. '武汉市',
  626. '襄阳市',
  627. '重庆市',
  628. '璧山'
  629. )
  630. OR district IN (
  631. '昆明市',
  632. '西安市',
  633. '咸阳市',
  634. '郑州市',
  635. '洛阳市',
  636. '武汉市',
  637. '襄阳市',
  638. '重庆市',
  639. '璧山区'
  640. )
  641. )
  642. '''
  643. sql_18 = '''
  644. update f_t_daren_score_2 set score = %s where id = %s
  645. '''
  646. city_info = {
  647. '昆明市': 2918,
  648. '西安市': 2919,
  649. '咸阳市': 2920,
  650. '郑州市': 2921,
  651. '洛阳市': 2922,
  652. '武汉市': 2923,
  653. '襄阳市': 2924,
  654. '重庆市': 2925,
  655. '璧山市': 2926
  656. }
  657. def other_city_clean(self):
  658. update_data = []
  659. need_update_data = self.marketing_db.select(self.sql_17)
  660. for nd in need_update_data:
  661. id = nd[0]
  662. province = nd[8]
  663. city = nd[9]
  664. district = nd[10]
  665. bishan = self.city_info.get(district)
  666. if bishan:
  667. update_data.append([bishan, id])
  668. else:
  669. city_id = self.city_info.get(city)
  670. if city_id:
  671. update_data.append([city_id, id])
  672. else:
  673. province_id = self.city_info.get(province)
  674. if province_id:
  675. update_data.append([province_id, id])
  676. self.marketing_db.add_some(self.sql_18, update_data)
  677. return len(update_data)
  678. sql_19 = '''
  679. select GROUP_CONCAT(id)from f_t_daren_score_2 where testcase_id in (84, 85, 86, 87) and score = 2925 and district = '璧山区'
  680. update f_t_daren_score_2 set score = 2926 where id in (979728,979890,981251,984783,985250,985564,990999)
  681. '''
  682. def chongqin_to_bishan(self):
  683. pass
  684. if __name__ == '__main__':
  685. tongce = TongCe()
  686. match_data = tongce.get_question_info_from_db()
  687. tongce.linshi_db.truncate('mvp_page_display_match')
  688. tongce.linshi_db.add_some(tongce.sql_3, match_data)