【调度系统】广东民航医疗快线调度系统源代码
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
/**
 * Created by PhpStorm.
 * User: xudong.ding
 * Date: 16/5/19
 * Time: 下午2:09
 */
class GoodsDetail
{
    // 商品编号(国标)
    private $goodsId;
 
    //支付宝定义的统一商品编号
    private $alipayGoodsId;
 
    // 商品名称
    private $goodsName;
 
    // 商品数量
    private $quantity;
 
    // 商品价格,此处单位为元,精确到小数点后2位
    private $price;
 
    // 商品类别
    private $goodsCategory;
 
    // 商品详情
    private $body;
 
    private $goodsDetail = array();
 
    //单个商品json字符串
    //private $goodsDetailStr = NULL;
 
    //获取单个商品的json字符串
    public function getGoodsDetail()
    {
        return $this->goodsDetail;
        /*$this->goodsDetailStr = "{";
        foreach ($this->goodsDetail as $k => $v){
            $this->goodsDetailStr.= "\"".$k."\":\"".$v."\",";
        }
        $this->goodsDetailStr = substr($this->goodsDetailStr,0,-1);
        $this->goodsDetailStr.= "}";
        return $this->goodsDetailStr;*/
    }
 
    public function setGoodsId($goodsId)
    {
        $this->goodsId = $goodsId;
        $this->goodsDetail['goods_id'] = $goodsId;
    }
 
    public function getGoodsId()
    {
        return $this->goodsId;
    }
 
    public function setAlipayGoodsId($alipayGoodsId)
    {
        $this->alipayGoodsId = $alipayGoodsId;
        $this->goodsDetail['alipay_goods_id'] = $alipayGoodsId;
    }
 
    public function getAlipayGoodsId()
    {
        return $this->alipayGoodsId;
    }
 
    public function setGoodsName($goodsName)
    {
        $this->goodsName = $goodsName;
        $this->goodsDetail['goods_name'] = $goodsName;
    }
 
    public function getGoodsName()
    {
        return $this->goodsName;
    }
 
    public function setQuantity($quantity)
    {
        $this->quantity = $quantity;
        $this->goodsDetail['quantity'] = $quantity;
    }
 
    public function getQuantity()
    {
        return $this->quantity;
    }
 
    public function setPrice($price)
    {
        $this->price = $price;
        $this->goodsDetail['price'] = $price;
    }
 
    public function getPrice()
    {
        return $this->price;
    }
 
    public function setGoodsCategory($goodsCategory)
    {
        $this->goodsCategory = $goodsCategory;
        $this->goodsDetail['goods_category'] = $goodsCategory;
    }
 
    public function getGoodsCategory()
    {
        return $this->goodsCategory;
    }
 
    public function setBody($body)
    {
        $this->body = $body;
        $this->goodsDetail['body'] = $body;
    }
 
    public function getBody()
    {
        return $this->body;
    }
 
 
}
 
?>