SupplierInfo.php 285 B

12345678910111213141516
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class SupplierInfo extends Model
  9. {
  10. public static function getRegisterCode($code){
  11. return SupplierInfo::where(['code'=>$code])->value("registercode","");
  12. }
  13. }