| 1234567891011121314151617181920212223 |
- <?php
- namespace common\services;
- use common\models\xhOrderGoods;
- class xhOrderGoodsService {
-
- public static function add($data)
- {
- return xhOrderGoods::add($data);
- }
- public static function getByCondition($condition)
- {
- return xhOrderGoods::getByCondition($condition);
- }
- public static function getAllByOrderId($orderId)
- {
- return xhOrderGoods::find()->where(['orderId' => $orderId])->asArray()->all();
- }
- }
|