insert($data); return $result; } public function findUserProduct($condition) { $result = $this ->where($condition) ->find(); return $result; } public function updateUserProduct($condition, $data) { $result = $this ->where($condition) ->update($data); return $result; } }