酒店预订平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
792 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: nizongfeng
  5. * Date: 2021/11/4
  6. * Time: 16:03
  7. */
  8. namespace app\admin\dao;
  9. use app\admin\command\Util;
  10. use app\admin\model\CfSuplierInfo;
  11. use think\Exception;
  12. class CfSuplierInfoDao
  13. {
  14. /**
  15. * 获取供应商详情
  16. * @param int $id
  17. * @return array
  18. */
  19. public function getInfoById(int $id) {
  20. try{
  21. $model = new CfSuplierInfo();
  22. $info = $model->where(["id"=>$id])->find();
  23. if ($info == null) {
  24. return Util::returnArrEr("获取供应商信息失败:".$id);
  25. }
  26. return Util::returnArrSu("",$info->toArray());
  27. }catch (Exception $e){
  28. return Util::returnArrEr("获取供应商信息失败:".$e->getMessage());
  29. }
  30. }
  31. }