29 lines
528 B
PHP
29 lines
528 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use app\common\model\Base;
|
|
use think\Model;
|
|
use app\common\model\ProfitMoney;
|
|
use app\common\model\ProfitIntegral;
|
|
use app\common\model\ProfitScore;
|
|
|
|
class Give extends Base
|
|
{
|
|
|
|
// 设置当前模型对应的完整数据表名称
|
|
protected $table = 'give';
|
|
|
|
/**
|
|
* 获取单条数据
|
|
*/
|
|
public static function getInfo($where = [], $field = '*')
|
|
{
|
|
$data = self::where($where)
|
|
->field($field)
|
|
->find();
|
|
return $data;
|
|
}
|
|
|
|
|
|
} |