You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
24
hyhproject/common/model/ChargeItems.php
Executable file
24
hyhproject/common/model/ChargeItems.php
Executable 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user