findOrEmpty(); return $isT->isEmpty()? 0:1; } public function Qrd(){ return $this->belongsTo(QrdInfo::class,"orderCode","sequenceNo"); } public function Cgd(){ return $this->belongsTo(CgdInfo::class,'cgdNo','sequenceNo'); } public function Good(){ return $this->belongsTo(Good::class,'goodNo','spuCode'); } // 检测是否已经取消 public static function CheckCxCode($code){ self::where(["cxCode"=>$code,"status"=>0])->update(["status"=>-1]); } }