消费统计界面基础表格和搜索
This commit is contained in:
29
enum/account/ProductAccount.php
Normal file
29
enum/account/ProductAccount.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-22 15:35:49
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-11-18 10:41:10
|
||||
*/
|
||||
namespace enum\account;
|
||||
|
||||
class ProductAccount
|
||||
{
|
||||
public static $AccountType = [
|
||||
1 => '新开',
|
||||
2 => '批量新开',
|
||||
3 => '续费',
|
||||
4 => '批量续费',
|
||||
100 => '原系统认证',
|
||||
200 => '测试账号'
|
||||
];
|
||||
|
||||
public static $New = 1;
|
||||
public static $News = 2;
|
||||
public static $AgainBuy = 3;
|
||||
public static $AgainBuys = 4;
|
||||
public static $Origin = 100;
|
||||
public static $Test = 200;
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-22 15:35:49
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-11-16 11:42:15
|
||||
* @LastEditTime: 2020-11-18 17:38:12
|
||||
*/
|
||||
namespace enum\user;
|
||||
|
||||
@@ -26,6 +26,11 @@ class User
|
||||
11 => '已完成',
|
||||
];
|
||||
|
||||
/**
|
||||
* @description: 格式化方便选择处理
|
||||
* @param {*}
|
||||
* @return {*}
|
||||
*/
|
||||
public static function getFormatList($arr)
|
||||
{
|
||||
$format_list = [];
|
||||
@@ -37,4 +42,15 @@ class User
|
||||
return $format_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 通过值获取状态
|
||||
* @param {*}
|
||||
* @return {*}
|
||||
*/
|
||||
public static function getStatusByName($arr,$str)
|
||||
{
|
||||
$data = array_flip($arr);
|
||||
return $data[$str];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user