| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace common\services;
- use common\components\util;
- use Yii;
- use common\models\xhDrawCash;
- use common\components\dict;
- class xhDrawCashService {
- public static function add($data)
- {
- $return = xhDrawCash::add($data);
- return $return;
- }
- public static function getById($id)
- {
- $cash = xhDrawCash::find()->where(['id'=>$id])->asArray()->one();
- return $cash;
- }
- public static function updateById($id, $data)
- {
- $re = xhDrawCash::updateById($id, $data);
- return $re;
- }
- }
|