PrizeService.class.php
1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* PrizeService.class.php
* 奖品设置表
* @author: zhoutao
* @version: $Id$
* @copyright: vchangyi.com
*/
namespace Common\Service;
use Common\Model\PrizeModel;
class PrizeService extends AbstractService
{
// 构造方法
public function __construct()
{
parent::__construct();
$this->_d = new PrizeModel();
}
/**
* Apicp 奖品列表
* @param $conds
* @param null $pageOption
* @param array $orderOption
* @return int
*/
public function getPrizeList($conds, $pageOption = null, $orderOption = array())
{
return $this->_d->getPrizeList($conds, $pageOption, $orderOption);
}
/**
* Apicp 奖品列表总数
* @param $conds
* @return int
*/
public function countPrizeList($conds)
{
return $this->_d->countPrizeList($conds);
}
/**
* 微信端查询奖品分页列表
* @param $conds
* @param null $pageOption
* @param array $orderOption
* @return array|bool
*/
public function getWxPrizePageList($conds, $pageOption = null, $orderOption = array())
{
return $this->_d->getWxPrizePageList($conds, $pageOption, $orderOption);
}
/**
* 微信端 查询符合条件的奖品记录总数
* @param $conds
* @return array
*/
public function countWxPrize($conds)
{
return $this->_d->countWxPrize($conds);
}
/**
* 操作奖品库存
* $param int $id 主键
* @param int $number 操作库存数
* @return mixed
*/
public function changeReserve($id, $number)
{
return $this->_d->changeReserve($id, $number);
}
/**
* 查询奖品 无视逻辑删除
* @param $iaId
* @return mixed
*/
public function getWithOutDeleted($iaId)
{
return $this->_d->getWithOutDeleted($iaId);
}
}