where($condition) ->select(); return $result; } public function findProductInfo($condition) { $result = $this ->where($condition) ->find(); return $result; } public function updateProductInfo($id, $data) { $result = $this ->where(['productInfo_id' => $id]) ->update($data); return $result; } public function deleteProductInfo($condition) { $result = $this ->where($condition) ->delete(); return $result; } public function addProductInfo($data) { $result = $this ->insert($data); return $result; } }