KlRuleConfig.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. class KlRuleConfig extends Model
  5. {
  6. // 表名
  7. protected $table = 'kl_rule_config';
  8. // 自动写入时间戳字段
  9. protected $autoWriteTimestamp = 'int';
  10. // 定义时间戳字段名
  11. protected $createTime = 'createtime';
  12. protected $updateTime = 'updatetime';
  13. // 追加属性
  14. protected $append = [
  15. 's_new_user_status_text',
  16. 's_new_user_city_status_text',
  17. 's_new_user_add_status_text',
  18. 's_new_user_add_op_text',
  19. 's_new_user_recharge_status_text',
  20. 's_new_user_recharge_op_text',
  21. 's_new_relation_text',
  22. 's_old_user_status_text',
  23. 's_old_user_city_status_text',
  24. 's_old_user_active_status_text',
  25. 's_old_user_active_op_text',
  26. 's_old_user_recharge_status_text',
  27. 's_old_user_recharge_op_text',
  28. 's_old_relation_text',
  29. 'f_behavior_status_text',
  30. 'f_one_recharge_status_text',
  31. 'f_recharge_status_text',
  32. 'f_read_status_text',
  33. 'f_read_op_text',
  34. 'f_kandian_status_text',
  35. 'f_kandian_op_text',
  36. 'f_orders_status_text',
  37. 'f_orders_op_text',
  38. 'f_behavior_relation_text',
  39. 'f_register_status_text',
  40. 'f_register_op_text',
  41. 'f_register_relation_text',
  42. 'o_general_status_text',
  43. 'o_general_new_status_text',
  44. 'o_general_new_op_text',
  45. 'o_general_old_status_text',
  46. 'o_general_old_op_text',
  47. 'o_general_many_status_text',
  48. 'o_general_many_op_text',
  49. 'o_general_relation_text',
  50. 'o_vip_status_text',
  51. 'o_vip_new_status_text',
  52. 'o_vip_new_op_text',
  53. 'o_vip_old_status_text',
  54. 'o_vip_old_op_text',
  55. 'o_vip_many_status_text',
  56. 'o_vip_many_op_text',
  57. 'o_vip_relation_text',
  58. 'o_activity_status_text',
  59. 'o_activity_new_status_text',
  60. 'o_activity_new_op_text',
  61. 'o_activity_old_status_text',
  62. 'o_activity_old_op_text',
  63. 'o_activity_many_status_text',
  64. 'o_activity_many_op_text',
  65. 'o_activity_relation_text'
  66. ];
  67. public function getSNewUserStatusList()
  68. {
  69. return ['0' => __('S_new_user_status 0'),'1' => __('S_new_user_status 1')];
  70. }
  71. public function getSNewUserCityStatusList()
  72. {
  73. return ['0' => __('S_new_user_city_status 0'),'1' => __('S_new_user_city_status 1')];
  74. }
  75. public function getSNewUserAddStatusList()
  76. {
  77. return ['0' => __('S_new_user_add_status 0'),'1' => __('S_new_user_add_status 1')];
  78. }
  79. public function getSNewUserAddOpList()
  80. {
  81. return ['0' => __('S_new_user_add_op 0'),'1' => __('S_new_user_add_op 1')];
  82. }
  83. public function getSNewUserRechargeStatusList()
  84. {
  85. return ['0' => __('S_new_user_recharge_status 0'),'1' => __('S_new_user_recharge_status 1')];
  86. }
  87. public function getSNewUserRechargeOpList()
  88. {
  89. return ['0' => __('S_new_user_recharge_op 0'),'1' => __('S_new_user_recharge_op 1')];
  90. }
  91. public function getSNewRelationList()
  92. {
  93. return ['0' => __('S_new_relation 0'),'1' => __('S_new_relation 1')];
  94. }
  95. public function getSOldUserStatusList()
  96. {
  97. return ['0' => __('S_old_user_status 0'),'1' => __('S_old_user_status 1')];
  98. }
  99. public function getSOldUserCityStatusList()
  100. {
  101. return ['0' => __('S_old_user_city_status 0'),'1' => __('S_old_user_city_status 1')];
  102. }
  103. public function getSOldUserActiveStatusList()
  104. {
  105. return ['0' => __('S_old_user_active_status 0'),'1' => __('S_old_user_active_status 1')];
  106. }
  107. public function getSOldUserActiveOpList()
  108. {
  109. return ['0' => __('S_old_user_active_op 0'),'1' => __('S_old_user_active_op 1')];
  110. }
  111. public function getSOldUserRechargeStatusList()
  112. {
  113. return ['0' => __('S_old_user_recharge_status 0'),'1' => __('S_old_user_recharge_status 1')];
  114. }
  115. public function getSOldUserRechargeOpList()
  116. {
  117. return ['0' => __('S_old_user_recharge_op 0'),'1' => __('S_old_user_recharge_op 1')];
  118. }
  119. public function getSOldRelationList()
  120. {
  121. return ['0' => __('S_old_relation 0'),'1' => __('S_old_relation 1')];
  122. }
  123. public function getFBehaviorStatusList()
  124. {
  125. return ['0' => __('F_behavior_status 0'),'1' => __('F_behavior_status 1')];
  126. }
  127. public function getFOneRechargeStatusList()
  128. {
  129. return ['0' => __('F_one_recharge_status 0'),'1' => __('F_one_recharge_status 1')];
  130. }
  131. public function getFRechargeStatusList()
  132. {
  133. return ['0' => __('F_recharge_status 0'),'1' => __('F_recharge_status 1')];
  134. }
  135. public function getFReadStatusList()
  136. {
  137. return ['0' => __('F_read_status 0'),'1' => __('F_read_status 1')];
  138. }
  139. public function getFReadOpList()
  140. {
  141. return ['0' => __('F_read_op 0'),'1' => __('F_read_op 1')];
  142. }
  143. public function getFKandianStatusList()
  144. {
  145. return ['0' => __('F_kandian_status 0'),'1' => __('F_kandian_status 1')];
  146. }
  147. public function getFKandianOpList()
  148. {
  149. return ['0' => __('F_kandian_op 0'),'1' => __('F_kandian_op 1')];
  150. }
  151. public function getFOrdersStatusList()
  152. {
  153. return ['0' => __('F_orders_status 0'),'1' => __('F_orders_status 1')];
  154. }
  155. public function getFOrdersOpList()
  156. {
  157. return ['0' => __('F_orders_op 0'),'1' => __('F_orders_op 1')];
  158. }
  159. public function getFBehaviorRelationList()
  160. {
  161. return ['0' => __('F_behavior_relation 0'),'1' => __('F_behavior_relation 1')];
  162. }
  163. public function getFRegisterStatusList()
  164. {
  165. return ['0' => __('F_register_status 0'),'1' => __('F_register_status 1')];
  166. }
  167. public function getFRegisterOpList()
  168. {
  169. return ['0' => __('F_register_op 0'),'1' => __('F_register_op 1')];
  170. }
  171. public function getFRegisterRelationList()
  172. {
  173. return ['0' => __('F_register_relation 0'),'1' => __('F_register_relation 1')];
  174. }
  175. public function getOGeneralStatusList()
  176. {
  177. return ['0' => __('O_general_status 0'),'1' => __('O_general_status 1')];
  178. }
  179. public function getOGeneralNewStatusList()
  180. {
  181. return ['0' => __('O_general_new_status 0'),'1' => __('O_general_new_status 1')];
  182. }
  183. public function getOGeneralNewOpList()
  184. {
  185. return ['0' => __('O_general_new_op 0'),'1' => __('O_general_new_op 1')];
  186. }
  187. public function getOGeneralOldStatusList()
  188. {
  189. return ['0' => __('O_general_old_status 0'),'1' => __('O_general_old_status 1')];
  190. }
  191. public function getOGeneralOldOpList()
  192. {
  193. return ['0' => __('O_general_old_op 0'),'1' => __('O_general_old_op 1')];
  194. }
  195. public function getOGeneralManyStatusList()
  196. {
  197. return ['0' => __('O_general_many_status 0'),'1' => __('O_general_many_status 1')];
  198. }
  199. public function getOGeneralManyOpList()
  200. {
  201. return ['0' => __('O_general_many_op 0'),'1' => __('O_general_many_op 1')];
  202. }
  203. public function getOGeneralRelationList()
  204. {
  205. return ['0' => __('O_general_relation 0'),'1' => __('O_general_relation 1')];
  206. }
  207. public function getOVipStatusList()
  208. {
  209. return ['0' => __('O_vip_status 0'),'1' => __('O_vip_status 1')];
  210. }
  211. public function getOVipNewStatusList()
  212. {
  213. return ['0' => __('O_vip_new_status 0'),'1' => __('O_vip_new_status 1')];
  214. }
  215. public function getOVipNewOpList()
  216. {
  217. return ['0' => __('O_vip_new_op 0'),'1' => __('O_vip_new_op 1')];
  218. }
  219. public function getOVipOldStatusList()
  220. {
  221. return ['0' => __('O_vip_old_status 0'),'1' => __('O_vip_old_status 1')];
  222. }
  223. public function getOVipOldOpList()
  224. {
  225. return ['0' => __('O_vip_old_op 0'),'1' => __('O_vip_old_op 1')];
  226. }
  227. public function getOVipManyStatusList()
  228. {
  229. return ['0' => __('O_vip_many_status 0'),'1' => __('O_vip_many_status 1')];
  230. }
  231. public function getOVipManyOpList()
  232. {
  233. return ['0' => __('O_vip_many_op 0'),'1' => __('O_vip_many_op 1')];
  234. }
  235. public function getOVipRelationList()
  236. {
  237. return ['0' => __('O_vip_relation 0'),'1' => __('O_vip_relation 1')];
  238. }
  239. public function getOActivityStatusList()
  240. {
  241. return ['0' => __('O_activity_status 0'),'1' => __('O_activity_status 1')];
  242. }
  243. public function getOActivityNewStatusList()
  244. {
  245. return ['0' => __('O_activity_new_status 0'),'1' => __('O_activity_new_status 1')];
  246. }
  247. public function getOActivityNewOpList()
  248. {
  249. return ['0' => __('O_activity_new_op 0'),'1' => __('O_activity_new_op 1')];
  250. }
  251. public function getOActivityOldStatusList()
  252. {
  253. return ['0' => __('O_activity_old_status 0'),'1' => __('O_activity_old_status 1')];
  254. }
  255. public function getOActivityOldOpList()
  256. {
  257. return ['0' => __('O_activity_old_op 0'),'1' => __('O_activity_old_op 1')];
  258. }
  259. public function getOActivityManyStatusList()
  260. {
  261. return ['0' => __('O_activity_many_status 0'),'1' => __('O_activity_many_status 1')];
  262. }
  263. public function getOActivityManyOpList()
  264. {
  265. return ['0' => __('O_activity_many_op 0'),'1' => __('O_activity_many_op 1')];
  266. }
  267. public function getOActivityRelationList()
  268. {
  269. return ['0' => __('O_activity_relation 0'),'1' => __('O_activity_relation 1')];
  270. }
  271. public function getSNewUserStatusTextAttr($value, $data)
  272. {
  273. $value = $value ? $value : $data['s_new_user_status'];
  274. $list = $this->getSNewUserStatusList();
  275. return isset($list[$value]) ? $list[$value] : '';
  276. }
  277. public function getSNewUserCityStatusTextAttr($value, $data)
  278. {
  279. $value = $value ? $value : $data['s_new_user_city_status'];
  280. $list = $this->getSNewUserCityStatusList();
  281. return isset($list[$value]) ? $list[$value] : '';
  282. }
  283. public function getSNewUserAddStatusTextAttr($value, $data)
  284. {
  285. $value = $value ? $value : $data['s_new_user_add_status'];
  286. $list = $this->getSNewUserAddStatusList();
  287. return isset($list[$value]) ? $list[$value] : '';
  288. }
  289. public function getSNewUserAddOpTextAttr($value, $data)
  290. {
  291. $value = $value ? $value : $data['s_new_user_add_op'];
  292. $list = $this->getSNewUserAddOpList();
  293. return isset($list[$value]) ? $list[$value] : '';
  294. }
  295. public function getSNewUserRechargeStatusTextAttr($value, $data)
  296. {
  297. $value = $value ? $value : $data['s_new_user_recharge_status'];
  298. $list = $this->getSNewUserRechargeStatusList();
  299. return isset($list[$value]) ? $list[$value] : '';
  300. }
  301. public function getSNewUserRechargeOpTextAttr($value, $data)
  302. {
  303. $value = $value ? $value : $data['s_new_user_recharge_op'];
  304. $list = $this->getSNewUserRechargeOpList();
  305. return isset($list[$value]) ? $list[$value] : '';
  306. }
  307. public function getSNewRelationTextAttr($value, $data)
  308. {
  309. $value = $value ? $value : $data['s_new_relation'];
  310. $list = $this->getSNewRelationList();
  311. return isset($list[$value]) ? $list[$value] : '';
  312. }
  313. public function getSOldUserStatusTextAttr($value, $data)
  314. {
  315. $value = $value ? $value : $data['s_old_user_status'];
  316. $list = $this->getSOldUserStatusList();
  317. return isset($list[$value]) ? $list[$value] : '';
  318. }
  319. public function getSOldUserCityStatusTextAttr($value, $data)
  320. {
  321. $value = $value ? $value : $data['s_old_user_city_status'];
  322. $list = $this->getSOldUserCityStatusList();
  323. return isset($list[$value]) ? $list[$value] : '';
  324. }
  325. public function getSOldUserActiveStatusTextAttr($value, $data)
  326. {
  327. $value = $value ? $value : $data['s_old_user_active_status'];
  328. $list = $this->getSOldUserActiveStatusList();
  329. return isset($list[$value]) ? $list[$value] : '';
  330. }
  331. public function getSOldUserActiveOpTextAttr($value, $data)
  332. {
  333. $value = $value ? $value : $data['s_old_user_active_op'];
  334. $list = $this->getSOldUserActiveOpList();
  335. return isset($list[$value]) ? $list[$value] : '';
  336. }
  337. public function getSOldUserRechargeStatusTextAttr($value, $data)
  338. {
  339. $value = $value ? $value : $data['s_old_user_recharge_status'];
  340. $list = $this->getSOldUserRechargeStatusList();
  341. return isset($list[$value]) ? $list[$value] : '';
  342. }
  343. public function getSOldUserRechargeOpTextAttr($value, $data)
  344. {
  345. $value = $value ? $value : $data['s_old_user_recharge_op'];
  346. $list = $this->getSOldUserRechargeOpList();
  347. return isset($list[$value]) ? $list[$value] : '';
  348. }
  349. public function getSOldRelationTextAttr($value, $data)
  350. {
  351. $value = $value ? $value : $data['s_old_relation'];
  352. $list = $this->getSOldRelationList();
  353. return isset($list[$value]) ? $list[$value] : '';
  354. }
  355. public function getFBehaviorStatusTextAttr($value, $data)
  356. {
  357. $value = $value ? $value : $data['f_behavior_status'];
  358. $list = $this->getFBehaviorStatusList();
  359. return isset($list[$value]) ? $list[$value] : '';
  360. }
  361. public function getFOneRechargeStatusTextAttr($value, $data)
  362. {
  363. $value = $value ? $value : $data['f_one_recharge_status'];
  364. $list = $this->getFOneRechargeStatusList();
  365. return isset($list[$value]) ? $list[$value] : '';
  366. }
  367. public function getFRechargeStatusTextAttr($value, $data)
  368. {
  369. $value = $value ? $value : $data['f_recharge_status'];
  370. $list = $this->getFRechargeStatusList();
  371. return isset($list[$value]) ? $list[$value] : '';
  372. }
  373. public function getFReadStatusTextAttr($value, $data)
  374. {
  375. $value = $value ? $value : $data['f_read_status'];
  376. $list = $this->getFReadStatusList();
  377. return isset($list[$value]) ? $list[$value] : '';
  378. }
  379. public function getFReadOpTextAttr($value, $data)
  380. {
  381. $value = $value ? $value : $data['f_read_op'];
  382. $list = $this->getFReadOpList();
  383. return isset($list[$value]) ? $list[$value] : '';
  384. }
  385. public function getFKandianStatusTextAttr($value, $data)
  386. {
  387. $value = $value ? $value : $data['f_kandian_status'];
  388. $list = $this->getFKandianStatusList();
  389. return isset($list[$value]) ? $list[$value] : '';
  390. }
  391. public function getFKandianOpTextAttr($value, $data)
  392. {
  393. $value = $value ? $value : $data['f_kandian_op'];
  394. $list = $this->getFKandianOpList();
  395. return isset($list[$value]) ? $list[$value] : '';
  396. }
  397. public function getFOrdersStatusTextAttr($value, $data)
  398. {
  399. $value = $value ? $value : $data['f_orders_status'];
  400. $list = $this->getFOrdersStatusList();
  401. return isset($list[$value]) ? $list[$value] : '';
  402. }
  403. public function getFOrdersOpTextAttr($value, $data)
  404. {
  405. $value = $value ? $value : $data['f_orders_op'];
  406. $list = $this->getFOrdersOpList();
  407. return isset($list[$value]) ? $list[$value] : '';
  408. }
  409. public function getFBehaviorRelationTextAttr($value, $data)
  410. {
  411. $value = $value ? $value : $data['f_behavior_relation'];
  412. $list = $this->getFBehaviorRelationList();
  413. return isset($list[$value]) ? $list[$value] : '';
  414. }
  415. public function getFRegisterStatusTextAttr($value, $data)
  416. {
  417. $value = $value ? $value : $data['f_register_status'];
  418. $list = $this->getFRegisterStatusList();
  419. return isset($list[$value]) ? $list[$value] : '';
  420. }
  421. public function getFRegisterOpTextAttr($value, $data)
  422. {
  423. $value = $value ? $value : $data['f_register_op'];
  424. $list = $this->getFRegisterOpList();
  425. return isset($list[$value]) ? $list[$value] : '';
  426. }
  427. public function getFRegisterRelationTextAttr($value, $data)
  428. {
  429. $value = $value ? $value : $data['f_register_relation'];
  430. $list = $this->getFRegisterRelationList();
  431. return isset($list[$value]) ? $list[$value] : '';
  432. }
  433. public function getOGeneralStatusTextAttr($value, $data)
  434. {
  435. $value = $value ? $value : $data['o_general_status'];
  436. $list = $this->getOGeneralStatusList();
  437. return isset($list[$value]) ? $list[$value] : '';
  438. }
  439. public function getOGeneralNewStatusTextAttr($value, $data)
  440. {
  441. $value = $value ? $value : $data['o_general_new_status'];
  442. $list = $this->getOGeneralNewStatusList();
  443. return isset($list[$value]) ? $list[$value] : '';
  444. }
  445. public function getOGeneralNewOpTextAttr($value, $data)
  446. {
  447. $value = $value ? $value : $data['o_general_new_op'];
  448. $list = $this->getOGeneralNewOpList();
  449. return isset($list[$value]) ? $list[$value] : '';
  450. }
  451. public function getOGeneralOldStatusTextAttr($value, $data)
  452. {
  453. $value = $value ? $value : $data['o_general_old_status'];
  454. $list = $this->getOGeneralOldStatusList();
  455. return isset($list[$value]) ? $list[$value] : '';
  456. }
  457. public function getOGeneralOldOpTextAttr($value, $data)
  458. {
  459. $value = $value ? $value : $data['o_general_old_op'];
  460. $list = $this->getOGeneralOldOpList();
  461. return isset($list[$value]) ? $list[$value] : '';
  462. }
  463. public function getOGeneralManyStatusTextAttr($value, $data)
  464. {
  465. $value = $value ? $value : $data['o_general_many_status'];
  466. $list = $this->getOGeneralManyStatusList();
  467. return isset($list[$value]) ? $list[$value] : '';
  468. }
  469. public function getOGeneralManyOpTextAttr($value, $data)
  470. {
  471. $value = $value ? $value : $data['o_general_many_op'];
  472. $list = $this->getOGeneralManyOpList();
  473. return isset($list[$value]) ? $list[$value] : '';
  474. }
  475. public function getOGeneralRelationTextAttr($value, $data)
  476. {
  477. $value = $value ? $value : $data['o_general_relation'];
  478. $list = $this->getOGeneralRelationList();
  479. return isset($list[$value]) ? $list[$value] : '';
  480. }
  481. public function getOVipStatusTextAttr($value, $data)
  482. {
  483. $value = $value ? $value : $data['o_vip_status'];
  484. $list = $this->getOVipStatusList();
  485. return isset($list[$value]) ? $list[$value] : '';
  486. }
  487. public function getOVipNewStatusTextAttr($value, $data)
  488. {
  489. $value = $value ? $value : $data['o_vip_new_status'];
  490. $list = $this->getOVipNewStatusList();
  491. return isset($list[$value]) ? $list[$value] : '';
  492. }
  493. public function getOVipNewOpTextAttr($value, $data)
  494. {
  495. $value = $value ? $value : $data['o_vip_new_op'];
  496. $list = $this->getOVipNewOpList();
  497. return isset($list[$value]) ? $list[$value] : '';
  498. }
  499. public function getOVipOldStatusTextAttr($value, $data)
  500. {
  501. $value = $value ? $value : $data['o_vip_old_status'];
  502. $list = $this->getOVipOldStatusList();
  503. return isset($list[$value]) ? $list[$value] : '';
  504. }
  505. public function getOVipOldOpTextAttr($value, $data)
  506. {
  507. $value = $value ? $value : $data['o_vip_old_op'];
  508. $list = $this->getOVipOldOpList();
  509. return isset($list[$value]) ? $list[$value] : '';
  510. }
  511. public function getOVipManyStatusTextAttr($value, $data)
  512. {
  513. $value = $value ? $value : $data['o_vip_many_status'];
  514. $list = $this->getOVipManyStatusList();
  515. return isset($list[$value]) ? $list[$value] : '';
  516. }
  517. public function getOVipManyOpTextAttr($value, $data)
  518. {
  519. $value = $value ? $value : $data['o_vip_many_op'];
  520. $list = $this->getOVipManyOpList();
  521. return isset($list[$value]) ? $list[$value] : '';
  522. }
  523. public function getOVipRelationTextAttr($value, $data)
  524. {
  525. $value = $value ? $value : $data['o_vip_relation'];
  526. $list = $this->getOVipRelationList();
  527. return isset($list[$value]) ? $list[$value] : '';
  528. }
  529. public function getOActivityStatusTextAttr($value, $data)
  530. {
  531. $value = $value ? $value : $data['o_activity_status'];
  532. $list = $this->getOActivityStatusList();
  533. return isset($list[$value]) ? $list[$value] : '';
  534. }
  535. public function getOActivityNewStatusTextAttr($value, $data)
  536. {
  537. $value = $value ? $value : $data['o_activity_new_status'];
  538. $list = $this->getOActivityNewStatusList();
  539. return isset($list[$value]) ? $list[$value] : '';
  540. }
  541. public function getOActivityNewOpTextAttr($value, $data)
  542. {
  543. $value = $value ? $value : $data['o_activity_new_op'];
  544. $list = $this->getOActivityNewOpList();
  545. return isset($list[$value]) ? $list[$value] : '';
  546. }
  547. public function getOActivityOldStatusTextAttr($value, $data)
  548. {
  549. $value = $value ? $value : $data['o_activity_old_status'];
  550. $list = $this->getOActivityOldStatusList();
  551. return isset($list[$value]) ? $list[$value] : '';
  552. }
  553. public function getOActivityOldOpTextAttr($value, $data)
  554. {
  555. $value = $value ? $value : $data['o_activity_old_op'];
  556. $list = $this->getOActivityOldOpList();
  557. return isset($list[$value]) ? $list[$value] : '';
  558. }
  559. public function getOActivityManyStatusTextAttr($value, $data)
  560. {
  561. $value = $value ? $value : $data['o_activity_many_status'];
  562. $list = $this->getOActivityManyStatusList();
  563. return isset($list[$value]) ? $list[$value] : '';
  564. }
  565. public function getOActivityManyOpTextAttr($value, $data)
  566. {
  567. $value = $value ? $value : $data['o_activity_many_op'];
  568. $list = $this->getOActivityManyOpList();
  569. return isset($list[$value]) ? $list[$value] : '';
  570. }
  571. public function getOActivityRelationTextAttr($value, $data)
  572. {
  573. $value = $value ? $value : $data['o_activity_relation'];
  574. $list = $this->getOActivityRelationList();
  575. return isset($list[$value]) ? $list[$value] : '';
  576. }
  577. }