Hi Walkor,
$result = $ret->query("select * from protype_brand inner join protype on protype_brand.protype_id=protype.protype_id where protype_brand.product_code='{$product_code}'");
直接用這個(gè)query方法可以查到對(duì)應(yīng)的值 ,但為什么用下面封裝的方法卻不行呢,獲取數(shù)據(jù)一直為空
$result = $ret->select('*')
->from('protype_brand')
->innerJoin('protype', 'protype_brand.protype_id = protype.protype_id')
->where("protype_brand.product_code = '{$product_code}'");
我是按照GatewayWorker文檔上來寫的 ,