Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace wstmart\common\model;
use think\Db;
/**
* ============================================================================
* 充值项业务处理
*/
class ChargeItems extends Base{
/**
* 分页
*/
public function queryList(){
$where = [];
$where['dataFlag'] = 1;
return $this->where($where)->field(true)->order('itemSort asc,id asc')->select();
}
public function getItemMoney($itmeId){
$where = [];
$where['dataFlag'] = 1;
$where['id'] = $itmeId;
return $this->where($where)->field("chargeMoney,giveMoney")->find();
}
}