xhDrawCashService.php 498 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace common\services;
  3. use common\components\util;
  4. use Yii;
  5. use common\models\xhDrawCash;
  6. use common\components\dict;
  7. class xhDrawCashService {
  8. public static function add($data)
  9. {
  10. $return = xhDrawCash::add($data);
  11. return $return;
  12. }
  13. public static function getById($id)
  14. {
  15. $cash = xhDrawCash::find()->where(['id'=>$id])->asArray()->one();
  16. return $cash;
  17. }
  18. public static function updateById($id, $data)
  19. {
  20. $re = xhDrawCash::updateById($id, $data);
  21. return $re;
  22. }
  23. }